question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paths level Parameters are ignored

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Zaid-Ajajcommented, Feb 15, 2022

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 🙏

0reactions
Zaid-Ajajcommented, Mar 9, 2022

Resolved by #34

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found