Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for lower_username (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_filter_pydantic_sub_model_pv2.py

        class ModelA(BaseModel):
            name: str
            description: Optional[str] = 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.6K bytes
    - Click Count (0)
Back to Top