Skip to content

demopkg.models

Pydantic models, documented through the griffe_pydantic extension.

Classes

NameDescription
UserSomeone who can own a report.

Userclasspydantic model#

class User(BaseModel)

Bases: BaseModel

Someone who can own a report.

emailattributepydantic field#

email: str

Contact address, lowercased on validation.

nameattributepydantic field#

name: str

Display name of the user.

reportsattributepydantic field#

reports: int = 0

How many reports the user owns.