schema

Documentation for the schema module.

class app.lib.schema.BaseStruct[source]

Bases: Struct

class app.lib.schema.CamelizedBaseStruct[source]

Bases: BaseStruct

Camelized Base Struct

class app.lib.schema.Message(message: str)[source]

Bases: CamelizedBaseStruct

class app.lib.schema.BaseSchema[source]

Bases: BaseModel

Base Settings.

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, 'use_enum_values': True, 'validate_assignment': True}

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

class app.lib.schema.CamelizedBaseSchema[source]

Bases: BaseSchema

Camelized Base pydantic schema.

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] = {'alias_generator': <functools._lru_cache_wrapper object>, 'arbitrary_types_allowed': True, 'from_attributes': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

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