I have the following in my config file:
servers:
- url: "${MY_API_URL:-http://example.com}"
description: API
Whenever I generate the documentation with this config there's a trailing } for the API URL:
As you can see in the image, the URL is http://example.com}, but should be http://example.com
When I set the Environment-Variable, eg. by running:
MY_API_URL=https://something.org npx spectaql config.yml
I get https://something.org://example.com} as output.
IMO the syntax for the parameter-expansion seems to be correct, as it seems to work as it should in a posix shell:
MY_API_URL=http://something.org && echo "${MY_API_URL:-http://example.com}"
I'm using spectaql version 3.0.6
I have the following in my config file:
Whenever I generate the documentation with this config there's a trailing
}for the API URL:As you can see in the image, the URL is
http://example.com}, but should behttp://example.comWhen I set the Environment-Variable, eg. by running:
I get
https://something.org://example.com}as output.IMO the syntax for the parameter-expansion seems to be correct, as it seems to work as it should in a posix shell:
I'm using spectaql version 3.0.6