ronlisle
7 years agoFrequent Visitor
how to use stageVariables in host:
I'm trying to use AWS API Gateway Stage Variables in my SwaggerHub API definition. I'd like to set host: to be a stage variable, so each API Gateway stage can target a different host url.
However, SwaggerHub flags an error because of the curly braces, and won't allow save.
Can I disable the pattern match to allow curly braces, or specify a stage variable some other way?
The line I'm trying to include in my API is:
host: "${stageVariables.url}"
and it generates an error stating:
Schema error at host
should match pattern "^[^{}/ :\\]+(?::\d+)?$" pattern: ^[^{}/ :\\]+(?::\d+)?$