We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger/OpenAPI definition:
"servers": [ { "description": "environment", "url": "{protocol}://{server}", "variables": { "protocol": { "enum": [ "http", "https" ], "default": "https" }, "server": { "enum": [ "some.production.domain/api", "some.other.domain/otherapi" ], "default": "some.production.domain/api" } } } ]
Swagger-Client usage:
client = new SwaggerClient({ url: "https://url-to-swagger.json", servers: { protocol: "http", server: "some.other.domain/otherapi", } ...options })
The Problem is, that the server template variables are not set. Only the default will be used. Specification: https://swagger.io/docs/specification/api-host-and-base-path/
There is something mentioned on per OAS Tag that modifying the server is possible there. But how to set the template variables globally?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Content & configuration
Swagger/OpenAPI definition:
Swagger-Client usage:
How can we help?
The Problem is, that the server template variables are not set. Only the default will be used.
Specification: https://swagger.io/docs/specification/api-host-and-base-path/
There is something mentioned on per OAS Tag that modifying the server is possible there.
But how to set the template variables globally?
The text was updated successfully, but these errors were encountered: