Skip to content

Commit

Permalink
update address field StrictStr to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ybhalchim committed Feb 11, 2025
1 parent f7fe532 commit 4f393d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ipam/docs/FixedAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A __FixedAddress__ object (_dhcp/fixed_address_) reserves an address for a speci

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | **str** | The reserved address. |
**address** | **str** | The reserved address. | [optional]
**comment** | **str** | The description for the fixed address. May contain 0 to 1024 characters. Can include UTF-8. | [optional]
**compartment_id** | **str** | The compartment associated with the object. If no compartment is associated with the object, the value defaults to empty. | [optional] [readonly]
**created_at** | **datetime** | Time when the object has been created. | [optional] [readonly]
Expand Down
5 changes: 4 additions & 1 deletion src/ipam/models/fixed_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ class FixedAddress(BaseModel):
"""
A __FixedAddress__ object (_dhcp/fixed_address_) reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so it can match that client.
""" # noqa: E501
address: StrictStr = Field(description="The reserved address.")
address: Optional[StrictStr] = Field(
default=None,
description="The reserved address."
)
comment: Optional[StrictStr] = Field(
default=None,
description=
Expand Down

0 comments on commit 4f393d5

Please sign in to comment.