diff --git a/main.js b/main.js index c0d0366..22b8cfa 100644 --- a/main.js +++ b/main.js @@ -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)