Skip to content

Commit dfa5be4

Browse files
sathiya-nhsCopilot
andcommitted
Refactor display_name field to displayName for consistency with API standards
Co-authored-by: Copilot <copilot@github.com>
1 parent 243b081 commit dfa5be4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • ansible/collections/ansible_collections/nhsd/apigee/plugins/module_utils/models/apigee

ansible/collections/ansible_collections/nhsd/apigee/plugins/module_utils/models/apigee/product.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ApigeeProduct(BaseModel):
137137
Union[ApigeeProductAttributeSpecial, ApigeeProductAttributeOther]
138138
] = [{"name": "access", "value": "private"}]
139139
description: Optional[str] = None
140-
display_name: Optional[str] = Field(None, alias="displayName")
140+
displayName: Optional[str] = None
141141

142142
# Note: This value is manually inserted by apigee_environment
143143
# object that contains this product. So if you do not provide a
@@ -206,8 +206,8 @@ def ensure_identity_service(cls, proxies, values):
206206
return [f"identity-service-{env}"]
207207
return proxies
208208

209-
@validator("display_name", always=True)
210-
def validate_display_name(cls, display_name, values):
211-
if not display_name:
209+
@validator("displayName", always=True)
210+
def validate_display_name(cls, displayName, values):
211+
if not displayName:
212212
return values["name"]
213-
return display_name
213+
return displayName

0 commit comments

Comments
 (0)