MCPcopy
hub / github.com/pydantic/pydantic / BlogPost

Class BlogPost

tests/benchmarks/test_fastapi_startup_simple.py:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 description: str | None = None
43
44 class BlogPost(BaseModel):
45 title: Annotated[str, StringConstraints(pattern=r'[A-Za-z0-9]+')]
46 content: str
47 author: User
48 published: bool = False
49
50 class Website(BaseModel):
51 name: str

Callers

nothing calls this directly

Calls 1

StringConstraintsClass · 0.90

Tested by

no test coverage detected