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
Hello guys, recently got into a need to generate a client for my app written in fastapi 0.104.1 version.
Since version 0.99.0 FastAPI uses openapi of version 3.1.0 and they've also updated swagger-ui to match those updates - i've got into some problems(
11 validation errors for OpenAPI
components.schemas.KnownIssueUpdateSchema.Reference.$ref
Field required [type=missing, input_value={'properties': {'workitem...KnownIssueUpdateSchema'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
components.schemas.KnownIssueUpdateSchema.Schema.properties.workitem_id.Reference.$ref
Field required [type=missing, input_value={'anyOf': [{'type': 'stri... 'examples': ['123456']}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
components.schemas.KnownIssueUpdateSchema.Schema.properties.workitem_id.Schema.anyOf.1.Reference.$ref
Field required [type=missing, input_value={'type': 'null'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
components.schemas.KnownIssueUpdateSchema.Schema.properties.workitem_id.Schema.anyOf.1.Schema.type
Input should be 'string', 'number', 'integer', 'boolean', 'array' or 'object' [type=enum, input_value='null', input_type=str]
components.schemas.KnownIssueUpdateSchema.Schema.properties.workitem_url.Reference.$ref
Field required [type=missing, input_value={'anyOf': [{'type': 'stri...unCharts&runId=123456']}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
components.schemas.KnownIssueUpdateSchema.Schema.properties.workitem_url.Schema.anyOf.1.Reference.$ref
Field required [type=missing, input_value={'type': 'null'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
components.schemas.KnownIssueUpdateSchema.Schema.properties.workitem_url.Schema.anyOf.1.Schema.type
Input should be 'string', 'number', 'integer', 'boolean', 'array' or 'object' [type=enum, input_value='null', input_type=str]
openapi.`literal['3.0.0']`
Input should be '3.0.0' [type=literal_error, input_value='3.1.0', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/literal_error
openapi.`literal['3.0.1']`
Input should be '3.0.1' [type=literal_error, input_value='3.1.0', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/literal_error
openapi.`literal['3.0.2']`
Input should be '3.0.2' [type=literal_error, input_value='3.1.0', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/literal_error
openapi.`literal['3.0.3']`
Input should be '3.0.3' [type=literal_error, input_value='3.1.0', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/literal_error
Ofc there are more errors but they are very the same, so it is no point in providing full schema.
I'm sorry guys if i don't see the simple solution here, i really don't mind to have one).
But if the solution is "just downgrade thing" - i will consider this, but the problem will remain...
**Desktop
OS: Linux Fedora 39
Python Version - 3.10.13
openapi-python-client version - 0.15.2
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hello guys, recently got into a need to generate a client for my app written in fastapi
0.104.1
version.Since version 0.99.0 FastAPI uses openapi of version
3.1.0
and they've also updated swagger-ui to match those updates - i've got into some problems(OpenAPI Spec File
I've taken everything out except one entity from my fastapi app. So running the:
Gives me
Ofc there are more errors but they are very the same, so it is no point in providing full schema.
I'm sorry guys if i don't see the simple solution here, i really don't mind to have one).
But if the solution is "just downgrade thing" - i will consider this, but the problem will remain...
**Desktop
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: