Thanks to visit codestin.com
Credit goes to github.com

Skip to content

✨ Add support for OpenAPI 3.1.0#9770

Merged
tiangolo merged 34 commits into
masterfrom
openapi-3-1-0
Jun 30, 2023
Merged

✨ Add support for OpenAPI 3.1.0#9770
tiangolo merged 34 commits into
masterfrom
openapi-3-1-0

Conversation

@tiangolo

Copy link
Copy Markdown
Member

✨ Add support for OpenAPI 3.1.0

tiangolo added 27 commits June 29, 2023 16:15
…precated() (already a dependency of Pydantic)
@tiangolo

Copy link
Copy Markdown
Member Author

📝 Docs preview for commit c719570 at: https://649f03f3c002911c0a8b598b--fastapi.netlify.app

@tiangolo

Copy link
Copy Markdown
Member Author

📝 Docs preview for commit 3483b4c at: https://649f1770de745124017bddde--fastapi.netlify.app

@tiangolo tiangolo marked this pull request as ready for review June 30, 2023 18:11
@tiangolo

Copy link
Copy Markdown
Member Author

📝 Docs preview for commit aad9988 at: https://649f1b6f22c0772d2c878943--fastapi.netlify.app

@tiangolo

Copy link
Copy Markdown
Member Author

📝 Docs preview for commit aad9988 at: https://649f1db20103a834d44992e8--fastapi.netlify.app

@francipvb

Copy link
Copy Markdown

Hello,

Is there a way to downgrade to 3.0 while keeping up to date?

@francipvb

Copy link
Copy Markdown

I mean the FastAPI package itself...

@wlievens

wlievens commented Nov 7, 2023

Copy link
Copy Markdown

Is there a way to use recent FastAPI releases but emit v3.0 OpenAPI? I'm using OpenAPITools openapi-generator and they do not fully support v3.1 yet.

@felix-hilden

Copy link
Copy Markdown

Looking through the code, it seems that there is no way to do that unfortunately. The OpenAPI versions set in the code are only directly forwarded to the spec content instead of determining how it's generated.


A little awkward for me and I'm sure many others who committed to Pydantic 2 as well, because that now clashes :P But for me it seems to be mostly about transforming how optional types are represented so maybe there's a semi-easy way to do it by hand after generating the spec.

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

Successfully merging this pull request may close these issues.

4 participants