- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for lower_username (0.37 seconds)
-
tests/test_filter_pydantic_sub_model_pv2.py
class ModelA(BaseModel): name: str description: str | None = None foo: ModelB tags: dict[str, str] = {} @field_validator("name") def lower_username(cls, name: str, info: ValidationInfo): if not name.endswith("A"): raise ValueError("name must end in A") return name async def get_model_c() -> ModelC:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 6.7K bytes - Click Count (0)