-
Notifications
You must be signed in to change notification settings - Fork 762
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
[3.27.4 Regression] Multiple path parameters are not all applied #3508
Comments
When path has more than one placeholder like Code bug here : swagger-js/src/execute/index.js Line 215 in 7be6636
So after 1st iteration req.url changes to
|
…pdate the reference
Hi @swati410, Thanks for the detailed description of the issue. We're looking at possible vector of remediation + your PR. |
Option 1@glowcloud we can return back to using swagger-js/src/execute/index.js Line 215 in 7be6636
Option 2We will fake path template for Absolute URLs will be prepended by
Option 3We will pass baseURL to parameter builds and use it to compute current path template for resolution from As discussed, we decided to go for Option 3 as it the cleanest and most explicit one. |
Addressed in #3511 |
Q&A (please complete the following information)
Content & configuration
Swagger/OpenAPI definition:
OpenAPI 3.0 example (saved as
openapi.yaml
)Swagger 2.0 example (saved as
swagger.yaml
)Describe the bug you're encountering
When an operation contains multiple path parameters, SwaggerClient makes a request to a URL where only one of the path parameters is applied and the other parameter names remain unchanged from the URL template in the request URL.
To reproduce...
Run the following code
Expected behavior
The script produces:
This occurs with swagger-client 3.27.3 and earlier.
Actual behavior
The script produces:
This occurs with swagger-client 3.27.4 and later.
Additional context or thoughts
It appears that this was broken by #3504
The text was updated successfully, but these errors were encountered: