from pydantic import BaseModel, Field class ContainerDTO(BaseModel): key: str = Field(..., min_length=1, max_length=3) description: str class Config: from_attributes = True