Open TomPeirs opened 3 years ago
@TomPeirs Thanks for reporting this issue I will have a look at it!
@tim-lai @hkosova This is due to unresolved allOf keword.
Breakpoint at:
https://github.com/swagger-api/swagger-ui/blob/cc408812fc927e265da158bf68239530740ab4cc/src/core/components/response.jsx#L160-L165
expand as described:
http://localhost:3200/?url=https://gist.githubusercontent.com/mathis-m/e4d96e6487859d9d44c27b773055eb0e/raw/96689e567705aee84f2d06bcf01612e12c06b328/ZBUuuCHIwC.txt
sampleSchema.properties.user.properties.usergroups.items.allOf
:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
I configured the swagger-ui-react component in MDX as seen above. This renders the layout perfectly as expected.
However the example value, of the response code 200 of the Endpoint for updating user attributes is inconsistent with the schema. There is some data missing in the examplev value for the "usergroups" property" and for the "attributes" property
To reproduce...
Steps to reproduce the behavior:
Expected behavior
When I use Plain old HTML/CSS/JS (Standalone) it renders fine. OR When I use the " Swagger Viewer arjun.swagger-viewer " (in VS-code) it renders fine. And then you get to see the following proper response, where usergroups is not empty, and where admin attributes are not empty