Skip to content

Commit

Permalink
Fix exclusiveMaximum condition as per jsonform#86
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed Jan 8, 2019
1 parent 0b11bd9 commit 7cf600f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonform.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ jsonform.elementTypes = {
}
if (typeof node.schemaElement.maximum !== 'undefined') {
if (node.schemaElement.exclusiveMaximum) {
data.range.max = node.schemaElement.maximum + data.range.step;
data.range.max = node.schemaElement.maximum - data.range.step;
}
else {
data.range.max = node.schemaElement.maximum;
Expand Down

0 comments on commit 7cf600f

Please sign in to comment.