-
Notifications
You must be signed in to change notification settings - Fork 9.1k
$ref in response example is not correctly processed #1882
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 use case should be covered already. Can you verify the versions that you're using? And assuming you have a file called |
Actually, I wouldn't expect this to be supported. The Example Object has a wildcard value and the results would be displayed as-is. While the spec is not explicit either way, personally that's how I'd interpret it (it is also not included in our reusability guide). Since it potentially makes sense, I'd suggest opening a ticket on the spec so the support for it would be more explicit in the next version. |
@fehguy I downloaded from the @webron That kinda makes sense, but it conflicts with the definition of I need to break up the spec, because it's otherwise becoming an unruly document without any way to divide the work amongst my team. Examples are a great thing to externalize, because they can then stand alone, be referenced, updated, or included verbatim in sample implementations. |
@webron is right. Examples are taken as literal objects or strings and regardless of rendering they will not be processed for resolution. |
@paulprogrammer - your expectations are understandable, which is why I encourage you to open a ticket on it on the spec itself. |
I opened an issue in the specification #544 to address this. |
Already labeled ;) |
I have a responses block that uses
$ref
to include an example:The
$ref
for the schema is correctly processed and rendered in the swagger-ui, but the$ref
for the example shows the following in the swagger-ui display:I would expect that the content of the
$ref
would appear as if it were inline.The text was updated successfully, but these errors were encountered: