Open igor-tatarnikov-idt opened 2 months ago
Any updates?
We were also hit by the same issue and I did some analysis:
openapi-path-templating
library.openapi-path-templating
at that time had a broken BNF for the template:
https://github.com/swaggerexpert/openapi-path-templating/blob/16f894f81b9e4679f313c55db2abd59854131796/src/path-templating.bnf
path-literal
does not allow =
so the template is not resolved.So it looks like this should be fixed in the upcoming swagger-ui version?
Any updates on this ?
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Ran Swagger UI from Docker images v5.17.7 and v5.17.6 against locally running ASP.NET Core test web app
Describe the bug you're encountering
In v5.17.6 a path parameter gets populated with the value provided in the input. In v5.17.7+ it doesn't, the template
{name}
is sent in the request URL.Expected behavior
Input path parameter value gets populated into the request URL
Screenshots
v5.17.7+
v5.17.6
Additional context or thoughts
I suppose the openapi-path-templating package is used for resolving path values (here in swagger-js). So, I thought maybe the template of type
/api/hello/name={name}
is no longer recognized as valid - tried to run the following locally:Got:
So, I feel like the path template is fine. Looking at the v5.17.7 release I can't see anything related to the issue from above.