Replies: 1 comment
-
|
Docs: https://fastapi.tiangolo.com/how-to/configure-swagger-ui/#javascript-only-settings |
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 problem seems to be that the included
SwaggerUIBundle.SwaggerUIStandalonePresetdoes not inlcude the StandaloneLayout for whatever reason :If this is changed to the following, you get the "StandaloneLayout" of swagger, with the navbar enabled.:
[edit] added the relevant standalone-preset.js
Should we allow for configuring these presets using new input variables (swagger_ui_parameters won't work here), or just fix the default value? Is there anything else that could break with this change?
Operating System
Linux
Operating System Details
Running dockerized
python3.10-slimdocker container on various linux distros and macOS across our development teamFastAPI Version
0.100.0 -> 0.103.0
Pydantic Version
2.0.3
Python Version
3.10.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions