Skip to content

Commit 83bcf4a

Browse files
authored
Merge pull request #16 from huntflow/INT-411_fix_Applicant_model
[INT-411] - Make first_name and last_name optional in the Applicant model.
2 parents 0d48c48 + 33ac504 commit 83bcf4a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

huntflow_webhook_models/common_models/applicant.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ class Applicant(BaseModel):
5151
description="Applicant's email",
5252
examples=["[email protected]"],
5353
)
54-
first_name: str = Field(..., description="Applicant's firstname", examples=["test_name"])
55-
last_name: str = Field(..., description="Applicant's lastname", examples=["test"])
54+
first_name: Optional[str] = Field(
55+
None,
56+
description="Applicant's firstname",
57+
examples=["test_name"],
58+
)
59+
last_name: Optional[str] = Field(None, description="Applicant's lastname", examples=["test"])
5660
middle_name: Optional[str] = Field(
5761
None,
5862
description="Applicant's patronymic",

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "huntflow-webhook-models"
4-
version = "0.1.1"
4+
version = "0.1.2"
55
description = "Huntflow webhooks requests data models"
66
authors = [
77
{name = "Developers huntflow", email = "[email protected]"},

0 commit comments

Comments
 (0)