Skip to content

Variables in OpenAPI servers render with %7B and %7D instead of { and } #1518

@nderjung

Description

@nderjung

Given an OpenAPI specification which has a set of servers which include a variable, e.g.:

servers:
- url: https://api.{region}.example.com
  variables:
    region:
      default: eu-central-1
      enum:
      - eu-central-1
      - us-west-1
      - us-east-1

The example snippet in the OpenAPI render will return something like the following:

curl --request GET \
  --url https://api./%7Bregion%7D.example.com/v1/example \
  --header 'Content-Type: application/json'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions