com handler 1.0

This commit is contained in:
2025-11-08 22:09:10 +03:00
parent 07553d96cf
commit d9bf44e669
8 changed files with 123 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
from pydantic import BaseModel, Field, field_validator
class ExcelInfo(BaseModel):
arti:str = Field(..., min_length=6, max_length=12, description="arti of the clothes")
arti:str = Field(..., min_length=5, max_length=12, description="arti of the clothes")
counts:int = Field(..., gt=0, description="the quantity of the clothes")
price:float = Field(..., gt=0, description="the price of the clothes")
class ExcelRealization(BaseModel):