Skip to content

Commit

Permalink
SHIBUI-2151
Browse files Browse the repository at this point in the history
Changes per ryan to backend schema
  • Loading branch information
chasegawa committed Oct 7, 2021
1 parent 1a7a60d commit 14c16dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class JsonSchemaBuilderService {
def items = [type : 'string',
minLength: 1, // TODO: should this be configurable?
maxLength: 255] //TODO: or this?
if (it['displayType'] == 'set' || it['displayType'] == 'selection_list') {
if (it['displayType'] == 'set' || it['displayType'] == 'list') {
definition['uniqueItems'] = true
items.examples = it['examples']
} else if (it['displayType'] == 'list') {
} else if (it['displayType'] == 'selection_list') {
definition['uniqueItems'] = false
items.enum = it['examples']
}
Expand Down

0 comments on commit 14c16dd

Please sign in to comment.