adding the logic to generate the image
This commit is contained in:
8
backend/app/schemas/qr.py
Normal file
8
backend/app/schemas/qr.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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)"
|
||||
)
|
||||
Reference in New Issue
Block a user