-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Feature Request: $ref for servers object #3129
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
Labels
re-use: ref-everywhere
Requests to support referencing in more / all places
Comments
Please could you fix the inconsistent indentation so it's valid yaml? it's difficult to understand what you're asking. |
I fixed the indentation of both code blocks here:
After,
Please let me know if this looks okay |
Looks like a duplicate of #2338. |
Yes, closing this as a duplicate of #2338. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In many use cases, there would be multiple APIs that would be associated with different servers. It would be great if the server could be referenced from a single server object under
components
and reused everywhere instead of overriding theservers
object for each API.Currently,
would result in API:
https://bookstore/v1/book/123
But we also have the following apis that have server somewhere else, We'll have to override the global server variable in each of these paths which results in redundancy, maintenance issues when the server variables are changed.
Waiting to hear your thoughts!
The text was updated successfully, but these errors were encountered: