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
When generating the OpenAPI schema via app.openapi(), models with the same name across different routers (like Data) sometimes get mapped to $ref names in a non-deterministic way. For example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
When generating the OpenAPI schema via app.openapi(), models with the same name across different routers (like Data) sometimes get mapped to $ref names in a non-deterministic way. For example:
Operating System
Windows
Operating System Details
No response
FastAPI Version
python -c "import fastapi; print(fastapi.version)"
Pydantic Version
python -c "import pydantic; print(pydantic.version.VERSION)"
Python Version
python --version
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions