app.schemas.project_schema module

class app.schemas.project_schema.ProjectSchema(*, name: Annotated[str, MinLen(min_length=2), MaxLen(max_length=255)], state: ProjectStateEnum, start_date: str, slug: str | None = None, end_date: str | None = None, description: str | None = None)[source]

Bases: BaseModel

description: str | None
end_date: str | None
classmethod from_project(project: Project)[source]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
slug: str | None
start_date: str
state: ProjectStateEnum
classmethod validate_end_datestring(v: str)[source]
classmethod validate_start_datestring(v: str)[source]