Skip to content

Generation of client aborts using OpenAPI 3.1.0 document #864

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

Closed
waterfallwhitebread opened this issue Sep 26, 2023 · 1 comment
Closed

Comments

@waterfallwhitebread
Copy link

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

@dbanty
Copy link
Collaborator

dbanty commented Sep 26, 2023

Follow #818 and #856 for updates on 3.1.0 support.

@dbanty dbanty closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants