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

from __future__ import annotations

from pydantic import BaseModel, Extra, Field, constr

from ..type import basic


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

    firstName: str = Field(..., description='First Name')
    lastName: str = Field(..., description='Last Name')
    email: basic.Email = Field(..., description='Email address of the user.')
    password: constr(min_length=8, max_length=16) = Field(
        ..., description='Login Password'
    )
