-
Notifications
You must be signed in to change notification settings - Fork 72
Extend OpenAPISpecGeneratorPlugin to include default values for parameters #1110
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
Comments
I think for ease it would be easier to use the value from the request as the default value. Thinking about it some more, should we have an array of known parameters like
In this case yes, not sending the param results in an error from the API. |
The reason I'd prefer to expose it via an option and an explicit opt-in is because of potential PII that could end up in the spec.
We already have a list of standard headers. We could go about it in two ways:
We could offer both options and customers can decide which way they want to go about it. |
Good shout on PII, then an option makes sense. I'd say go with an include list, option 2. |
api-version
query string parameter support
Azure API endpoints use the
api-version
query string parameter to version endpoints.When using Dev Proxy to generate an OpenAPI spec the
api-version
parameter in not included in the generated document. This leads to an error when issuing a request as theapi-version
parameter is not sent.We should look to include this as a parameter in generated documents with a default value.
The text was updated successfully, but these errors were encountered: