feat(types): individual.last_name becomes optional

This commit is contained in:
dextmorgn
2026-02-07 17:44:55 +01:00
parent ad85a5c419
commit 2bac67e2a8

View File

@@ -1,10 +1,12 @@
from typing import List, Literal, Optional, Self, Union
from pydantic import Field, field_validator, model_validator
from typing import Optional, Literal, List, Union, Self
from .address import Location
from .email import Email
from .phone import Phone
from .ip import Ip
from .flowsint_base import FlowsintType
from .ip import Ip
from .phone import Phone
from .registry import flowsint_type
@@ -16,8 +18,8 @@ class Individual(FlowsintType):
first_name: str = Field(
..., description="First name of the individual", title="First Name"
)
last_name: str = Field(
..., description="Last name of the individual", title="Last Name"
last_name: Optional[str] = Field(
None, description="Last name of the individual", title="Last Name"
)
full_name: Optional[str] = Field(
None,