- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for safe_load (0.03 sec)
-
docs_src/path_operation_advanced_configuration/tutorial007_pv1_py39.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.parse_obj(data) except ValidationError as e:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 767 bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007_py39.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 Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 797 bytes - Viewed (0) -
scripts/translate.py
""" app = typer.Typer() @lru_cache def get_langs() -> dict[str, str]: return yaml.safe_load(Path("docs/language_names.yml").read_text(encoding="utf-8")) def generate_lang_path(*, lang: str, path: Path) -> Path: en_docs_path = Path("docs/en/docs") assert str(path).startswith(str(en_docs_path)), (
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 19:05:53 UTC 2025 - 34.1K bytes - Viewed (0)