-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5.17.7 broke path template processing #10078
Comments
Any updates? |
We were also hit by the same issue and I did some analysis:
So it looks like this should be fixed in the upcoming swagger-ui version? |
Any updates on this ? |
We're also affected by this issue, which seems similar to #9979 |
OpenAPI path templating is defined as follows:
Notice the section "section of a URL path as replaceable" specifically. According to OpenAPI spec, only sections of the URL path are replaceable. There MUST be no support for path template expression within the As for the |
This issue is about the path, not the query. A path may also contain Or, for example, in an OData service call: So it would be really great if There has been many (indirect) changes since 5.17.14: But all of them were dependency updates, nothing local to this repo, which is why -- I presume -- no release was (auto?)-scheduled. |
@sratz you're absolutely right, I somehow seen the The release is technically not needed. If you do |
I am not using npm, We bundle https://mvnrepository.com/artifact/org.webjars/swagger-ui in our product which is created based on released distributions of swagger-ui. |
This should be resolved now. There's been multiple releases since the last message in this issue. |
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:
true /hello/name=Bob
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.
The text was updated successfully, but these errors were encountered: