You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I understand, OAS 2.0 response examples (responses.<code>.examples.<media-type>) are inline examples and do not support $ref. But Swagger UI tries to resolve properties named $ref in these examples.
Q&A (please complete the following information)
This issue was originally reported on Stack Overflow: https://stackoverflow.com/questions/51095684/ref-in-response-example
A similar issue for OAS 3.0 was reported in #4564 and fixed in swagger-api/swagger-js#1349.
Describe the bug you're encountering
From what I understand, OAS 2.0 response examples (
responses.<code>.examples.<media-type>
) are inline examples and do not support$ref
. But Swagger UI tries to resolve properties named$ref
in these examples.Swagger/OpenAPI definition
Actual behavior
Response example is displayed as
Expected behavior
Response example is displayed as
The text was updated successfully, but these errors were encountered: