from pydantic import BaseModel, Field class QRRequest(BaseModel): text: str = Field(..., description="Text or URL to encode into the QR code") size: int = Field( 500, gt=0, le=2000, description="Output image size in pixels (square)" )