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

Add support for server variables #53

Closed
lottamus opened this issue Jan 14, 2020 · 1 comment
Closed

Add support for server variables #53

lottamus opened this issue Jan 14, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@lottamus
Copy link
Contributor

lottamus commented Jan 14, 2020

User story.

As an OpenAPI v3 spec, all of my servers and server variables will be included after transforming to an IHttpService.

Is your feature request related to a problem?

This feature allows us to display server variables in Docs and replace server variables with their default values in @stoplight/request-maker.

Describe the solution you'd like

When mapping over the http service's servers, we should also include any server variables as defined by the IServer interface

Additional context

@philsturgeon
Copy link
Contributor

Make sure we're looking for servers at the global level, and at the Path Item level (i.e servers can sit next to get, post, etc.) and operation level (servers can sit inside get, post, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants