Skip to content

Commit 4c80c7f

Browse files
committed
Merge pull request #486 from iamdarrenhall/patch-1
minLength validation bug fix
2 parents 4c8f1f4 + ef22299 commit 4c80c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/schema-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ angular.module('schemaForm').provider('schemaForm',
7878
if (schema.description) { f.description = schema.description; }
7979
if (options.required === true || schema.required === true) { f.required = true; }
8080
if (schema.maxLength) { f.maxlength = schema.maxLength; }
81-
if (schema.minLength) { f.minlength = schema.maxLength; }
81+
if (schema.minLength) { f.minlength = schema.minLength; }
8282
if (schema.readOnly || schema.readonly) { f.readonly = true; }
8383
if (schema.minimum) { f.minimum = schema.minimum + (schema.exclusiveMinimum ? 1 : 0); }
8484
if (schema.maximum) { f.maximum = schema.maximum - (schema.exclusiveMaximum ? 1 : 0); }

0 commit comments

Comments
 (0)