- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for model_json_schema (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs_src/path_operation_advanced_configuration/tutorial007_py310.py
class Item(BaseModel): name: str tags: list[str] @app.post( "/items/", openapi_extra={ "requestBody": { "content": {"application/x-yaml": {"schema": Item.model_json_schema()}}, "required": True, }, }, ) async def create_item(request: Request): raw_body = await request.body() try: data = yaml.safe_load(raw_body)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 797 bytes - Click Count (0)