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

Variables in servers object #31

Closed
VonSerpe opened this issue Nov 28, 2019 · 3 comments
Closed

Variables in servers object #31

VonSerpe opened this issue Nov 28, 2019 · 3 comments
Assignees

Comments

@VonSerpe
Copy link

When I use variables inside URL, the library doesn't make substitution.
This is an example

"servers": [
    {
      "url": "https://{environment}.domain.com{basePath}",
      "description": "My API server",
      "variables": {
        "environment": {
          "enum": [
            "www",
            "stage"
          ],
          "default": "www"
        },
        "basePath": {
          "default": "/api/v2"
        }
      }
    }
]

This is a link on OpenAPI3 specification.

@byjg
Copy link
Owner

byjg commented Nov 28, 2019

Hello, thank you for let me know it. I'll take a look on this.

@byjg byjg self-assigned this Nov 28, 2019
byjg added a commit that referenced this issue Nov 30, 2019
@byjg
Copy link
Owner

byjg commented Dec 1, 2019

Done! PR #32 . Soon I will create a version number.

@byjg
Copy link
Owner

byjg commented Dec 7, 2019

Tag 2.0.1 released.

@byjg byjg closed this as completed Dec 7, 2019
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