swagger-ui
swagger-ui copied to clipboard
Swagger document object order affects rendering
- OS: Linux
- Browser: Firefox
- Version: 122.0
- Method of installation: distribution rpm package
- Swagger-UI version: 5.11.2
- Swagger/OpenAPI version: OpenAPI 3.0
When the "components" section of a Swagger document is placed before the "paths", the rendering of schemas with $ref fails to display as shown below:
- "components" placed before "paths" (bug.json):
- "paths" placed before "components" (nobug.json):
The only difference in the docs is the order of "components" and "paths".
Generate interface documentation, perhaps you can try Apidog, which I think is very user-friendly and UI friendly.