Skip to content

Commit

Permalink
SHIBUI-2110
Browse files Browse the repository at this point in the history
Adding the display name for the custom attributes
  • Loading branch information
chasegawa committed Oct 1, 2021
1 parent 6ecc5be commit f79ab8a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ class JsonSchemaBuilderService {
resultNames.add(bundle.getName())
})

result.addAll(customPropertiesConfiguration.getAttributes().collect {
it['name']
})
for (Map<String,String> attribute : customPropertiesConfiguration.getAttributes()) {
result.add(attribute.get("name"))
resultNames.add(attribute.get("displayName"))
}

json['enum'] = result
json['enumNames'] = resultNames
Expand Down

0 comments on commit f79ab8a

Please sign in to comment.