From fb7050513248f15a13133a9bf5a3c0b712da8159 Mon Sep 17 00:00:00 2001 From: Tejashree-RS Date: Thu, 28 May 2026 10:42:44 +0530 Subject: [PATCH] Updated schema for DTC Policy --- src/dtc/docs/PolicyPool.md | 2 +- src/dtc/models/policy_pool.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dtc/docs/PolicyPool.md b/src/dtc/docs/PolicyPool.md index 3ef2452..665ceac 100644 --- a/src/dtc/docs/PolicyPool.md +++ b/src/dtc/docs/PolicyPool.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Display name of __Pool__. | [optional] [readonly] **pool_id** | **str** | The resource identifier. | -**weight** | **int** | Weight of __Pool__ to be used for load balancing. Unsigned integer, min 1; max 65535. | +**weight** | **int** | Weight of __Pool__ to be used for load balancing. Unsigned integer, min 1; max 65535. | [optional] ## Example diff --git a/src/dtc/models/policy_pool.py b/src/dtc/models/policy_pool.py index cf7b177..79146cd 100644 --- a/src/dtc/models/policy_pool.py +++ b/src/dtc/models/policy_pool.py @@ -29,7 +29,8 @@ class PolicyPool(BaseModel): name: Optional[StrictStr] = Field(default=None, description="Display name of __Pool__.") pool_id: StrictStr = Field(description="The resource identifier.") - weight: StrictInt = Field( + weight: Optional[StrictInt] = Field( + default=None, description= "Weight of __Pool__ to be used for load balancing. Unsigned integer, min 1; max 65535." )