✨ Add support for extensions and updates to the OpenAPI schema in path operations (#1922)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Edouard Lavery-PlanteandSebastián Ramírez authored and GitHub committed 2021-07-29 22:01:13 +02:00
1 parent 7db359182d
commit 836bb97a2d
13 files changed
+487 -1

No files matched your search

@@ -0,0 +1,8 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"})
async def read_items():
return [{"item_id": "portal-gun"}]