Swagger UI crashes for generated openapi.json for recursive schema definitions #10525
Replies: 2 comments
-
|
Alternative workaround provided here: #10524 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Seems that has been fixed. In current version it doesn't crash |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
The shared code snippet has one API route (
/hello) that returns Message object. The Message schema has recursive association to itself - Message has details which is a list Message(s)./helloit gets stuck in loading, and soon after the whole page becomes unresponsive.I expected this to work like before for all released version of swagger-ui-dist
I have 3 questions:
swagger_js_urltohttps://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js. This works for now. But is there any other way to specify the swagger-ui version to be used?Operating System
macOS
Operating System Details
No response
FastAPI Version
0.104.0
Pydantic Version
2.4.2
Python Version
3.11.4
Additional Context
I have also added a comment here swagger-api/swagger-ui#9337 (comment) regarding the same.
Beta Was this translation helpful? Give feedback.
All reactions