Allow usage of server variables other than default #4183
Unanswered
meesvandongen
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
I would like to generate a Kong Configuration for multiple servers using the same OpenAPI specification file.
Describe the solution you'd like
OpenAPI allows specifying "server variables" in the servers field of the specification. These are currently set to the default value by openapi-2-kong. I would propose adding a new command line option to the CLI for specifying these server variables.
Describe alternatives you've considered
Writing a script to replace these variables in the generated config, perhaps substituting with another templating system so it doesn't interfere with
openapi-2-kong.Additional context
An example of a server variable in OpenAPI
All reactions