Skip to content

Commit

Permalink
Fix APIs github, slack urls update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chashikajw committed May 27, 2024
1 parent a8877e0 commit 44e63ba
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,15 @@ public static API fromDTOtoAPI(APIDTO dto, String provider) throws APIManagement
Map<String, APIInfoAdditionalPropertiesMapDTO> additionalPropertiesMap = dto.getAdditionalPropertiesMap();
if (additionalPropertiesMap != null && !additionalPropertiesMap.isEmpty()) {
for (Map.Entry<String, APIInfoAdditionalPropertiesMapDTO> entry : additionalPropertiesMap.entrySet()) {
String propertyKey = null;
if (entry.getValue().isDisplay()) {
model.addProperty(entry.getKey() + APIConstants.API_RELATED_CUSTOM_PROPERTIES_SURFIX,
entry.getValue().getValue());
propertyKey = entry.getKey() + APIConstants.API_RELATED_CUSTOM_PROPERTIES_SURFIX;
} else {
model.addProperty(entry.getKey(), entry.getValue().getValue());
propertyKey = entry.getKey();
}
// If this property already added from the additional properties, avoid overriding it
if (propertyKey != null && !model.getAdditionalProperties().containsKey(propertyKey)) {
model.addProperty(propertyKey, entry.getValue().getValue());
}
}
}
Expand Down

0 comments on commit 44e63ba

Please sign in to comment.