From 4a7f704a07c1a2523ea4e08f712ee99630e09587 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:14:44 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/_compat/v1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fastapi/_compat/v1.py b/fastapi/_compat/v1.py index 7f10293fb..c080f9104 100644 --- a/fastapi/_compat/v1.py +++ b/fastapi/_compat/v1.py @@ -349,6 +349,7 @@ def create_body_model( def get_model_fields(model: Type[BaseModel]) -> List[ModelField]: return list(model.__fields__.values()) # type: ignore[attr-defined] + def omit_by_default(field_info: FieldInfo) -> FieldInfo: """add a wrap validator to omit invalid values by default.""" raise NotImplementedError("This function is a placeholder in Pydantic v1.")