Skip to content

Commit 707cb0c

Browse files
committed
Merge pull request #431 from leipert/patch-1
Fixing schema.{min,max}Items message mixup.
2 parents df64960 + 1727869 commit 707cb0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/errors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ angular.module('schemaForm').provider('sfErrorMessage', function() {
3131
303: 'Additional properties not allowed',
3232
304: 'Dependency failed - key must exist',
3333
// Array errors
34-
400: 'Array is too short ({{value.length}}), minimum {{schema.maxItems}}',
35-
401: 'Array is too long ({{value.length}}), maximum {{schema.minItems}}',
34+
400: 'Array is too short ({{value.length}}), minimum {{schema.minItems}}',
35+
401: 'Array is too long ({{value.length}}), maximum {{schema.maxItems}}',
3636
402: 'Array items are not unique',
3737
403: 'Additional items not allowed',
3838
// Format errors

0 commit comments

Comments
 (0)