schemas.transform#

Module Contents#

Classes#

TransformSchema

Pydantic model for validating incoming transformation parameters.

TransformResponse

Pydantic model for serializing transformation data in responses.

API#

class schemas.transform.TransformSchema(**data: Any)#

Bases: pydantic.BaseModel

Pydantic model for validating incoming transformation parameters.

Initialization

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.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

transformation_params: Dict[str, Union[str, int]] = 'Field(...)'#
class schemas.transform.TransformResponse(**data: Any)#

Bases: pydantic.BaseModel

Pydantic model for serializing transformation data in responses.

Initialization

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.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

id: int = None#
original_picture_id: int = None#
url: str = None#
qr_url: Optional[str] = None#
created_at: datetime.datetime = None#
user_id: int = None#
class Config#
from_attributes = True#