Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add default=None for Optional fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrajewski committed Mar 27, 2024
1 parent 13e8f06 commit e828e6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ class VrrpIPv4(BaseModel):
serialization_alias="ipAddress", validation_alias="ipAddress"
)
ip_address_secondary: Optional[List[StaticIPv4Address]] = Field(
serialization_alias="ipAddressSecondary", validation_alias="ipAddressSecondary"
serialization_alias="ipAddressSecondary",
validation_alias="ipAddressSecondary",
default=None,
)
tloc_pref_change: Union[Global[bool], Default[bool]] = Field(
serialization_alias="tlocPrefChange", validation_alias="tlocPrefChange", default=Default[bool](value=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class VrrpIPv4(BaseModel):
serialization_alias="ipAddress", validation_alias="ipAddress"
)
ip_address_secondary: Optional[List[VrrpIPv4SecondaryAddress]] = Field(
serialization_alias="ipAddressSecondary", validation_alias="ipAddressSecondary"
serialization_alias="ipAddressSecondary", validation_alias="ipAddressSecondary", default=None
)
tloc_pref_change: Union[Global[bool], Default[bool]] = Field(
serialization_alias="tlocPrefChange", validation_alias="tlocPrefChange", default=Default[bool](value=False)
Expand Down

0 comments on commit e828e6f

Please sign in to comment.