Skip to content

Commit

Permalink
Every version has snake case in group_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrajewski committed Dec 4, 2024
1 parent 5664a66 commit 90f604e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ class VrrpIPv6(BaseModel):
class VrrpIPv4(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True, populate_by_name=True, extra="forbid")

group_id: Annotated[
Union[Variable, Global[int]],
VersionedField(versions="<=20.12", serialization_alias="group_id"),
] = Field(serialization_alias="groupId", validation_alias=AliasChoices("groupId", "group_id"))
group_id: Union[Variable, Global[int]]
priority: Union[Variable, Global[int], Default[int]] = Default[int](value=100)
timer: Union[Variable, Global[int], Default[int]] = Default[int](value=1000)
track_omp: Union[Global[bool], Default[bool]] = Field(
Expand Down

0 comments on commit 90f604e

Please sign in to comment.