Source code for app.schemas.login_schema
from pydantic import BaseModel, Field
[docs]
class LoginSchema(BaseModel):
username: str = Field(..., min_length=3, max_length=32, pattern="^[a-zA-Z0-9]*$")
password: str = Field(..., min_length=6, max_length=256)