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

Commit

Permalink
don't use Union
Browse files Browse the repository at this point in the history
  • Loading branch information
cicharka committed Apr 18, 2024
1 parent d669939 commit 0c9affc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions catalystwan/endpoints/configuration_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Organization(BaseModel):
class Device(BaseModel):
model_config = ConfigDict(populate_by_name=True)
domain_ip: Optional[str] = Field(default=None, serialization_alias="domainIp", validation_alias="domainIp")
port: Optional[Union[str, int]] = Field(default="12346")
port: Optional[str] = Field(default="12346")


class EmailNotificationSettings(BaseModel):
Expand All @@ -50,9 +50,7 @@ class Certificate(BaseModel):
model_config = ConfigDict(populate_by_name=True)
certificate_signing: str = Field(serialization_alias="certificateSigning", validation_alias="certificateSigning")
validity_period: str = Field(serialization_alias="validityPeriod", validation_alias="validityPeriod")
retrieve_interval: Union[str, int] = Field(
serialization_alias="retrieveInterval", validation_alias="retrieveInterval"
)
retrieve_interval: str = Field(serialization_alias="retrieveInterval", validation_alias="retrieveInterval")
first_name: Optional[str] = Field(default=None, serialization_alias="firstName", validation_alias="firstName")
last_name: Optional[str] = Field(default=None, serialization_alias="lastName", validation_alias="lastName")
email: Optional[str] = Field(default=None)
Expand Down

0 comments on commit 0c9affc

Please sign in to comment.