# generated by datamodel-codegen:
#   filename:  auth/passwordResetRequest.json
#   timestamp: 2022-10-03T15:16:21+00:00

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, Extra, Field, constr


class PasswordResetRequest(BaseModel):
    class Config:
        extra = Extra.forbid

    username: str = Field(..., description='UserName')
    password: Optional[constr(min_length=8, max_length=16)] = Field(
        None, description='Password'
    )
    confirmPassword: Optional[constr(min_length=8, max_length=16)] = Field(
        None, description='Confirm Password'
    )
    token: Optional[str] = Field(None, description='Token')
