Skip to content

Commit

Permalink
SHIBUI-1967
Browse files Browse the repository at this point in the history
Adjusted name of default value to "default"
  • Loading branch information
chasegawa committed Jun 18, 2021
1 parent 871db98 commit 6427a77
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class JsonSchemaBuilderService {
[title : it['displayName'],
description : it['helpText'],
type : it['displayType'],
defaultValue: it['defaultValue'],
deafult : it['defaultValue'],
examples : it['examples']]
}
properties[(String) it['name']] = property
Expand All @@ -51,7 +51,7 @@ class JsonSchemaBuilderService {
def definition = [title : it['displayName'],
description: it['helpText'],
type : 'array',
default : null]
default : it['defaultValue']]
if (it['displayType'] == 'set' || it['displayType'] == 'selection_list') {
definition['uniqueItems'] = true
} else if (it['displayType'] == 'list') {
Expand All @@ -64,7 +64,7 @@ class JsonSchemaBuilderService {


definition['items'] = items
definition['defaultValue'] = it['defaultValue']
definition['default'] = it['defaultValue']
json[(String) it['name']] = definition
}
}
Expand Down

0 comments on commit 6427a77

Please sign in to comment.