File size: 1,205 Bytes
ef1ad9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pydantic import BaseModel, Field


class PersonalInfoSchema(BaseModel):
    firstName: str = Field(..., example="John", description="The first name of the user.")
    lastName: str = Field(..., example="Doe", description="The last name of the user.")
    phoneNumber: str = Field(
        ..., example="+15555555555", description="The phone number of the user in international format."
    )
    NMLS: str = Field(
        ..., example="123456", description="The National Mortgage Licensing System (NMLS) ID of the user."
    )
    isOrganization: bool = Field(
        ..., example=False, description="Indicates if the user is representing an organization."
    )
    organizationNMLS: str = Field(..., example="654321", description="The NMLS ID of the organization, if applicable.")
    userId: str = Field(..., example="user-001", description="The unique identifier of the user.")
    stateToken: str = Field(
        ..., example="state-token-abc", description="The state token for the user, used for verification purposes."
    )
    role: str = Field(
        ..., example="Loan Officer", description="The role of the user within the mortgage application process."
    )