Skip to content

Generation of client aborts using OpenAPI 3.1.0 document #864

Closed as not planned
@waterfallwhitebread

Description

@waterfallwhitebread

Describe the bug
I am having an OpenAPI document generated from FastAPI backend. The OpenAPI version is 3.1.0. Generation of client is aborting with:

Error(s) encountered while generating, client was not created

Failed to parse OpenAPI document
    For further information visit https://errors.pydantic.dev/2.3/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.3/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.3/v/literal_error

OpenAPI Spec File
Any OpenAPI spec starting with {"openapi":"3.1.0"

Desktop (please complete the following information):

  • OS: Windows 10
  • Python Version : 3.11.2
  • openapi-python-client version, 0.15.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions