@@ -33,6 +33,11 @@ var schemaForm = angular.module('schemaForm', deps);
33
33
34
34
angular . module ( 'schemaForm' ) . provider ( 'sfPath' ,
35
35
[ function ( ) {
36
+
37
+ // When building with browserify it's objectpath,
38
+ // otherwise it's just objectpath.
39
+ var ObjectPath = window . ObjectPath || objectpath ;
40
+
36
41
var sfPath = { parse : ObjectPath . parse } ;
37
42
38
43
// if we're on Angular 1.2.x, we need to continue using dot notation
@@ -853,8 +858,8 @@ angular.module('schemaForm').provider('sfErrorMessage', function() {
853
858
303 : 'Additional properties not allowed' ,
854
859
304 : 'Dependency failed - key must exist' ,
855
860
// Array errors
856
- 400 : 'Array is too short ({{value.length}}), minimum {{schema.maxItems }}' ,
857
- 401 : 'Array is too long ({{value.length}}), maximum {{schema.minItems }}' ,
861
+ 400 : 'Array is too short ({{value.length}}), minimum {{schema.minItems }}' ,
862
+ 401 : 'Array is too long ({{value.length}}), maximum {{schema.maxItems }}' ,
858
863
402 : 'Array items are not unique' ,
859
864
403 : 'Additional items not allowed' ,
860
865
// Format errors
0 commit comments