OpenAPI 3.1.0 with Pydantic v2, merge master (#9773)

This commit is contained in:
Sebastián Ramírez
2023-07-01 20:08:39 +02:00
committed by GitHub
parent 1d8d8925fc
commit d6db5d4f58
487 changed files with 5187 additions and 10907 deletions

View File

@@ -26,7 +26,7 @@ def test_openapi_schema():
response = client.get("/openapi.json")
assert response.status_code == 200, response.text
assert response.json() == {
"openapi": "3.0.2",
"openapi": "3.1.0",
"info": {"title": "FastAPI", "version": "0.1.0"},
"paths": {
"/notes/": {