Skip to content

Commit

Permalink
SHIBUI-1967
Browse files Browse the repository at this point in the history
Included/added back  the  default value from relyingpartyoverrides in
the JSON being sent to the front end
  • Loading branch information
chasegawa committed Jun 18, 2021
1 parent 93f4a5f commit 871db98
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ class JsonSchemaBuilderService {
property = [$ref: '#/definitions/' + it['name']]
} else {
property =
[title : it['displayName'],
description: it['helpText'],
type : it['displayType'],
examples : it['examples']]
[title : it['displayName'],
description : it['helpText'],
type : it['displayType'],
defaultValue: it['defaultValue'],
examples : it['examples']]
}
properties[(String) it['name']] = property
}
Expand All @@ -60,8 +61,10 @@ class JsonSchemaBuilderService {
minLength: 1, // TODO: should this be configurable?
maxLength: 255] //TODO: or this?
items.examples = it['examples']


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

0 comments on commit 871db98

Please sign in to comment.