-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validation errors for openAPI schema with length >=2 tuples #3898
Comments
Where is that screenshot from? Are you able to
If it matters, I'm on:
|
it's http://localhost:8000/docs It is not working now. I got the same error as yours. Sad. |
Can confirm had the same errors here, docs work on previous versions, but update seems to break something. After a bit of search, I found an issue in pydantic related to this: |
It seems this is a duplicate of #3665 In short, it should be fixed by FastAPI For more info, read the last comment in that issue: #3665 (comment) And the comment in the PR: #3874 (comment) |
Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
First Check
Commit to Help
Example Code
Description
If you try to retrieve the
/openapi.json
, the FooArgs get a validation error:This error is new to
fastapi>=0.68
, it does not happen withfastapi==0.67.0
.I think this is related to Pydantic coercing
Tuple[str, str]
intoDict[str, str]
somewhere?Things that don't cause this error:
This that do cause this error:
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.68.1
Python Version
3.9.1 (also seeing this in 3.8.*)
Additional Context
Seems pretty likely that this commit introduced it, but there's a lot going on so I'm not sure where:
97fa743#diff-4939896f79697822446463d5d6dfbf7a0ea5805c46565d355c7305d86f3405c7
The text was updated successfully, but these errors were encountered: