timelink.app.schemas package
Submodules
timelink.app.schemas.project module
- class timelink.app.schemas.project.ProjectAccess(**data: Any)[source]
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'from_attributes': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class timelink.app.schemas.project.ProjectSchema(*, id: int, name: str, description: str | None = None, databaseURL: str | None = None, kleioServerURL: str | None = None, created: datetime | None = None, updated: datetime | None = None)[source]
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'from_attributes': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
timelink.app.schemas.user module
- class timelink.app.schemas.user.UserProjectSchema(*, user_id: int | None = None, project_id: int | None = None, project_name: str | None = None, project_description: str | None = None, access_level: str | None = None)[source]
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'from_attributes': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class timelink.app.schemas.user.UserPropertySchema(*, name: str, value: str)[source]
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'from_attributes': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class timelink.app.schemas.user.UserSchema(*, name: str, email: str, nickname: str | None, disabled: bool | None, properties: List[UserPropertySchema] | None, projects: List[UserProjectSchema] | None, current_project_name: str | None = None, current_project_db: Annotated[TimelinkDatabase, SkipValidation] = None, current_project_kleio_server: Annotated[KleioServer, SkipValidation] = None, created: datetime | None = None, updated: datetime | None = None)[source]
User schema.
Fields: - name: str - email: str - nickname: Optional[str] - disabled: Optional[bool] - properties: Optional[List[UserPropertySchema]]
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].