Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
479 stars 306 forks source link

Developer Portal: Default value for parameters not shown #2341

Open nweseloh opened 7 months ago

nweseloh commented 7 months ago

Bug description

When a default value is specified for an operation, the default is not shown in the developer portal.

Reproduction steps

  1. Import an OpenAPI definition like this (abbreviated):
 /countries:
    get:
      operationId: get-countries
      parameters:
        - name: displayLanguage
          in: query
          description: Please provide a two letter language code to set the language for the display name.
          schema:
            type: string
            default: EN
          example: EN
  1. Go to the developer portal and select the operation
  2. The 'default' value is not shown (only the 'example') value: image

Expected behavior

The 'default' value should be shown, similar to the example value, like this:

image

Is your portal managed or self-hosted?

Managed