Skip to content

Extend OpenAPISpecGeneratorPlugin to include default values for parameters #1110

@garrytrinder

Description

@garrytrinder

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 the api-version parameter is not sent.

We should look to include this as a parameter in generated documents with a default value.

      parameters:
        - name: api-version
          in: query
          required: true
          schema:
            type: string
            default: "2024-11-01-preview"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions