Skip to content
New issue

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

servers - variable substitutions not supported #565

Closed
fogine opened this issue Jul 18, 2018 · 1 comment
Closed

servers - variable substitutions not supported #565

fogine opened this issue Jul 18, 2018 · 1 comment

Comments

@fogine
Copy link

fogine commented Jul 18, 2018

OAS: v3
the following configuration should be supported:

{
    servers: [
        {
             url: '{protocol}{host}{basePath}',
             variables: {
                 protocol: {default: 'http://'},
                 host: {default: '127.0.0.1'},
                 basePath: {default: ''}
        }
    ]
}

currently it renders endpoints as {protocol}{host}{basePath} instead of http://127.0.0.1

I might make a PR.

@RomanHotsiy
Copy link
Member

@fogine go for it 🏃!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants