10 lines
231 B
Python
10 lines
231 B
Python
from pydantic import BaseModel, Field
|
|
from pydantic import ConfigDict
|
|
|
|
class ContainerDTO(BaseModel):
|
|
key: str = Field(..., min_length=1, max_length=3)
|
|
description: str
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|