MCPcopy
hub / github.com/pydantic/pydantic / Address

Class Address

tests/benchmarks/test_fastapi_startup_simple.py:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 full_name: str | None = None
31
32 class Address(BaseModel):
33 street: str
34 city: str
35 state: Annotated[str, AfterValidator(lambda x: x.upper())]
36 postal_code: Annotated[str, StringConstraints(min_length=5, max_length=5, pattern=r'[A-Z0-9]+')]
37
38 class Product(BaseModel):
39 id: int

Callers

nothing calls this directly

Calls 2

AfterValidatorClass · 0.90
StringConstraintsClass · 0.90

Tested by

no test coverage detected