Skip to content

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