- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for safe_load (0.06 sec)
-
docs_src/path_operation_advanced_configuration/tutorial007.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:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 822 bytes - Viewed (0)