Skip to content
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

Add config to auto disable optional query params #510

Closed
matt-clarson opened this issue Aug 25, 2023 · 4 comments
Closed

Add config to auto disable optional query params #510

matt-clarson opened this issue Aug 25, 2023 · 4 comments

Comments

@matt-clarson
Copy link

Looks like there was at one point behaviour to automatically disable query params that are flagged as optional in the OpenAPI schema (i.e. required: false).
This was taken out in this PR #14

Would it be possible to add a config flag to opt-in to this behaviour - I have a lot of requests with a lot of optional query params, and I'd like to be able to quickly setup a happy-path postman collection - having to manually disable all the parameters is a pain.

@matt-clarson
Copy link
Author

Happy to contribute a PR to help this along if it's accepted as a proposal

@thim81
Copy link
Collaborator

thim81 commented Oct 28, 2023

hi @matt-clarson

Can you provide me simple OpenAPI example and what you would the result to be from the example?

@thim81
Copy link
Collaborator

thim81 commented Jan 5, 2024

@matt-clarson It sounds like a use-full addition, but if possible could you share an example and the expected result?

@thim81
Copy link
Collaborator

thim81 commented Jan 28, 2024

hi @matt-clarson

Since release v.1.26.0 this is now possible.

@thim81 thim81 closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants