wb_real_handler 1.0 + yandex_real_handler 1.1

This commit is contained in:
2025-11-04 16:24:01 +03:00
parent 0201985399
commit aa5cc18e24
4 changed files with 45 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
from pydantic import BaseModel, Field, field_validator
class ExcelInfo(BaseModel):
arti:str = Field(..., min_length=6, max_length=12, description="arti of the clothes")
counts:int = Field(..., ge=0, description="the quantity of the clothes")
price:int = Field(..., ge=0, description="the price 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):
pass
class ExcelReturning(BaseModel):