Replies: 2 comments
-
|
To follow up on my own question above, when I added auth to my app, if I did the scenario above (i.e. no query params) then the addition of the event handler actually causes swagger to crash and not load. It seems like I have to have a query parameter/something that causes a 422 somewhere on one of my endpoints to have the openapi swagger load. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I see the issue in the code, I will close this and create an issue with a PR. |
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.
-
I'm not adding this as an issue as I have a feeling it's FastAPI behaviour, but when trying to get the 4XX and 5XX responses on Swagger I noticed they don't show up until you have at least one endpoint with some validation, e.g.:
No 4XX, 5XX
Now it will show with:
Is there a way around this?
On a side note, many thanks for publishing this library, it's really nice!
Beta Was this translation helpful? Give feedback.
All reactions