-
Notifications
You must be signed in to change notification settings - Fork 9.1k
$ref in response example #544
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
Comments
This issue arose from a discussion on swagger-ui: |
Hi, Does this same issue exist for the example field within the schema object? If so, will that be addressed as well? Basically, we'd like the option to $ref in examples everywhere an example can be specified. Thanks! |
The revised guidelines for external file usage should help clarify this once merged: #535 |
Parent issue #560 |
We resolved this during build process by using the json-refs tool to resolve references before delivery of the final artifacts. |
You can do that now! 😱 |
I would like to use
$ref
in the response example in order to break up my specification into more readily manageable chunks. Examples also benefit from being externalized because they can be easily revisioned, and included verbatim in reference implementations.desired structure:
Today, the children of examples are included directly, meaning the example itself using this example is:
The text was updated successfully, but these errors were encountered: