(loc: tuple[int | str, ...])
| 377 | |
| 378 | |
| 379 | def get_missing_field_error(loc: tuple[int | str, ...]) -> dict[str, Any]: |
| 380 | error = ValidationError.from_exception_data( |
| 381 | "Field required", [{"type": "missing", "loc": loc, "input": {}}] |
| 382 | ).errors(include_url=False)[0] |
| 383 | error["input"] = None |
| 384 | return error # type: ignore[return-value] # ty: ignore[invalid-return-type] |
| 385 | |
| 386 | |
| 387 | def create_body_model( |
no test coverage detected
searching dependent graphs…