Skip to content

Commit

Permalink
fix for integer treating
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Oct 4, 2018
1 parent c8ee0b5 commit a85bab1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,17 @@ window.twbschema = (function () {

// try to handle specs for each field type
switch (type) {
case 'integer':
case 'number':
addSpec('Minimun', prop.minimum)
addSpec('Maximum', prop.maximum)
addSpec('Max precision', prop.multipleOf)
break

case 'integer':
addSpec('Minimun', prop.min)
addSpec('Maximum', prop.max)
break

case 'string':
addSpec('Min length', prop.minLength)
addSpec('Max length', prop.maxLength)
Expand Down

0 comments on commit a85bab1

Please sign in to comment.