docusaurus-openapi
docusaurus-openapi copied to clipboard
Default server renders incorrectly
My openapi spec file: https://github.com/p2-inc/phasetwo-docs/blob/master/openapi.yaml The result: https://phasetwo.io/api
For example in this page https://phasetwo.io/api/get-organizations the server section doesn't render with the defaults, and the values are undefined in the curl/code examples:

But renders correctly when you expand the server section and select an option:

Here is the relevant part of the openapi spec:
servers:
- url: '{protocol}://{host}{port}/auth/realms'
variables:
host:
enum:
- app.phasetwo.io
- localhost
default: app.phasetwo.io
description: API host
port:
enum:
- ''
- '8081'
default: ''
description: API port
protocol:
enum:
- http
- https
default: https