-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Regression: OAS2 response examples are not displayed #5458
Labels
Comments
hkosova
changed the title
Regression: OAS2 response examples are not displayed if the response does not have schema
Regression: OAS2 response examples are not displayed
Jul 12, 2019
thanks as always @hkosova! |
wait a secondMy implementation missed the mark, it's generating Reopening. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
/pull/5427 seems to have introduced an issue where OAS2 response
examples
are not displayed if the response does not have aschema
defined. Previous versions of Swagger UI rendered the responseexamples
in this case.Expected behavior
Both
/foo1
and/foo2
display the following response example, as it was in Swagger UI v. 3.22.3:Actual behavior
/foo1
does not display any example./foo2
displays schema-based example instead of the custom example fromexamples
.The text was updated successfully, but these errors were encountered: