openapi-snippet
openapi-snippet copied to clipboard
Parse required query params only
Add query param only if the parameter object has required: true
@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.
@ErikWittern please share your thoughts.
Oh, I like the idea of this PR. We have a few operations with really long example URLs