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
{{ message }}
Repository navigation
Regression: OAS2 response examples are not displayed #5458
/pull/5427 seems to have introduced an issue where OAS2 response examples are not displayed if the response does not have a schema defined. Previous versions of Swagger UI rendered the response examples in this case.
Expected behavior
Both /foo1 and /foo2 display the following response example, as it was in Swagger UI v. 3.22.3:
{
"foo": "custom value"
}
Actual behavior
/foo1 does not display any example. /foo2 displays schema-based example instead of the custom example from examples.
changed the title [-]Regression: OAS2 response examples are not displayed if the response does not have schema[/-][+]Regression: OAS2 response examples are not displayed[/+]on Jul 12, 2019
Activity
[-]Regression: OAS2 response examples are not displayed if the response does not have schema[/-][+]Regression: OAS2 response examples are not displayed[/+]shockey commentedon Jul 13, 2019
(P1 in order to push this above #5453 and #5455)
shockey commentedon Jul 13, 2019
thanks as always @hkosova!
shockey commentedon Jul 13, 2019
wait a second
My implementation missed the mark, it's generating
custom valueinstead of the entire object.Reopening.
shockey commentedon Jul 13, 2019