Skip to content

Developer Portal: Default value for parameters not shown #2341

@nweseloh

Description

@nweseloh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    (t) Feature requestRequests for new functionality and features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions