Skip to content

Commit ce67b6f

Browse files
authored
doc: Fix non-existing function in "Accessing the OpenAPI schema in code" section (#4209)
Small fix in documentation - Usage of nonexistent function
1 parent 563381f commit ce67b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/openapi/schema_generation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ access the request instance:
183183
@get(path="/")
184184
def my_route_handler(request: Request) -> dict:
185185
schema = request.app.openapi_schema
186-
return schema.dict()
186+
return schema.to_schema()
187187
188188
189189
Customizing Pydantic model schemas

0 commit comments

Comments
 (0)