Paths level Parameters are ignored
See original GitHub issueI have to parse a json which has parameters on Path level.
I did a quick fix by extending operationParameters and calling it in createOpenApiClient like this:
let parameters = operationParameters operationInfo pathInfo.Parameters visitedTypes config
pathInfo.Parameters are concated with the operation.Parameters. I haven’t checked yet if that does the overriding like specified in the OpenAPI documentation.
Does that sound like a valid PullRequest, or am I missing something? 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Path parameters are ignored into operation · Issue #4391
openapi: "3.1.0" info: version: 1.0.0 title: Path parameters are ignored into operation paths: /{id}: parameters: - name: id in: path required: true schema: ......
Read more >Node.js path.join() ignoring parameter
Path.join isn't ignoring the last two parameters. Path.join takes the parameters you input and outputs a normalized path in string format.
Read more >What is the difference b/w Handle Path parameter?
Path parameters are parameters that are attached to path segments in the URI. Path parameters can be ignored, or treated as parameters, ...
Read more >OpenAPI, @Parameter on parameter ignored?
Here I've commented out the method-level `@Parameter` annotation, so only the parameter-level one remains (with `@PathParam`). This way, I do not see the ......
Read more >Describing Parameters
Path parameters are components of a URL path that can vary. They are typically used to point to a specific resource within a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for the clarification @MichaelMay81, I see the problem now. The parameters should be indeed merged as you suggested. If you want to give a try and send a PR, would really appreciate it 🙏
Resolved by #34