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

Parse required query params only #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rajesh-kg-20089
Copy link

Add query param only if the parameter object has required: true

@rajesh-kg-20089
Copy link
Author

@ErikWittern,

By default, the query params listed in the parameters object are appended to url even if it is not a required field.
Instead of this can we append only required query param (i.e required: true) to the code snippets ?

Swagger also follows this approach for generating code snippets.

image

@ErikWittern please share your thoughts.

@michaelgwelch
Copy link
Contributor

Oh, I like the idea of this PR. We have a few operations with really long example URLs

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

Successfully merging this pull request may close these issues.

2 participants