Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for safe_load (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/path_operation_advanced_configuration/tutorial007_py310.py

                "required": True,
            },
        },
    )
    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.model_validate(data)
        except ValidationError as e:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 797 bytes
    - Click Count (0)
Back to Top