mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
8472f4addf
commit
4a7f704a07
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue