OpenAPI v 3.0.X invalid when model can be None #10953
Unanswered
panfilenok-epam
asked this question in
Questions
Replies: 1 comment 2 replies
-
It seems a bit weird, but if I run the code with your In another case, try to show and upload an MRE we can just run. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The problem is when an OpenAPI document is generated it contains the following:
which appears to be invalid for the document schema v3.0.x
Structural error at components.schemas.Model.properties.item.anyOf.1.type should be equal to one of the allowed values allowedValues: array, boolean, integer, number, object, string
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.109.0
Pydantic Version
2.5.2
Python Version
3.11.7
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions