diff --git a/src/services/schema-form.js b/src/services/schema-form.js index feaec7293..d4722057c 100644 --- a/src/services/schema-form.js +++ b/src/services/schema-form.js @@ -78,7 +78,7 @@ angular.module('schemaForm').provider('schemaForm', if (schema.description) { f.description = schema.description; } if (options.required === true || schema.required === true) { f.required = true; } if (schema.maxLength) { f.maxlength = schema.maxLength; } - if (schema.minLength) { f.minlength = schema.maxLength; } + if (schema.minLength) { f.minlength = schema.minLength; } if (schema.readOnly || schema.readonly) { f.readonly = true; } if (schema.minimum) { f.minimum = schema.minimum + (schema.exclusiveMinimum ? 1 : 0); } if (schema.maximum) { f.maximum = schema.maximum - (schema.exclusiveMaximum ? 1 : 0); }