Skip to content

Commit

Permalink
[SHIBUI-906]
Browse files Browse the repository at this point in the history
Added String->Boolean conversion for relying party override defaults.
  • Loading branch information
Bill Smith committed Nov 8, 2018
1 parent 9a1fd96 commit 6f44a57
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ class JsonSchemaBuilderService {
property =
[title : it['displayName'],
description: it['helpText'],
type : it['displayType'],
default : it['defaultValue']]
type : it['displayType']]
if (it['displayType'] == 'boolean') {
property['defaultValue'] = (Boolean)(it['defaultValue'])
} else {
property['defaultValue'] = it['defaultValue']
}
}
properties[(String) it['name']] = property
}
Expand Down

0 comments on commit 6f44a57

Please sign in to comment.