@@ -36,7 +36,7 @@ public boolean length(JString target, JInteger length) {
36
36
var rLength = target .length ();
37
37
if (rLength != length .getValue ()) return fail (new JsonSchemaException (
38
38
new ErrorDetail (SLEN01 , "Invalid length of string " , target ),
39
- new ExpectedDetail (function , "a string of length " , length ),
39
+ new ExpectedDetail (caller , "a string of length " , length ),
40
40
new ActualDetail (target , "found " , rLength , " which does not match" )));
41
41
return true ;
42
42
}
@@ -45,7 +45,7 @@ public boolean length(JArray target, JInteger length) {
45
45
var rLength = target .getElements ().size ();
46
46
if (rLength != length .getValue ()) return fail (new JsonSchemaException (
47
47
new ErrorDetail (ALEN01 , "Invalid length of array " , target .getOutline ()),
48
- new ExpectedDetail (function , "an array of length " , length ),
48
+ new ExpectedDetail (caller , "an array of length " , length ),
49
49
new ActualDetail (target , "found " , rLength , " which does not match" )));
50
50
return true ;
51
51
}
@@ -54,7 +54,7 @@ public boolean length(JObject target, JInteger length) {
54
54
var rLength = target .getProperties ().size ();
55
55
if (rLength != length .getValue ()) return fail (new JsonSchemaException (
56
56
new ErrorDetail (OLEN01 , "Invalid size or length of object " , target .getOutline ()),
57
- new ExpectedDetail (function , "an object of length " , length ),
57
+ new ExpectedDetail (caller , "an object of length " , length ),
58
58
new ActualDetail (target , "found " , rLength , " which does not match" )));
59
59
return true ;
60
60
}
@@ -64,12 +64,12 @@ public boolean length(JString target, JInteger minimum, JInteger maximum) {
64
64
if (length < minimum .getValue ())
65
65
return fail (new JsonSchemaException (new ErrorDetail (SLEN02 ,
66
66
"String " , target .getOutline (), " length is outside of range" ),
67
- new ExpectedDetail (function , "length in range [" , minimum , ", " , maximum , "]" ),
67
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , maximum , "]" ),
68
68
new ActualDetail (target , "found " , length , " that is less than " , minimum )));
69
69
if (length > maximum .getValue ())
70
70
return fail (new JsonSchemaException (new ErrorDetail (SLEN03 ,
71
71
"String " , target .getOutline (), " length is outside of range" ),
72
- new ExpectedDetail (function , "length in range [" , minimum , ", " , maximum , "]" ),
72
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , maximum , "]" ),
73
73
new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
74
74
return true ;
75
75
}
@@ -79,7 +79,7 @@ public boolean length(JString target, JInteger minimum, JUndefined undefined) {
79
79
if (length < minimum .getValue ())
80
80
return fail (new JsonSchemaException (new ErrorDetail (SLEN04 ,
81
81
"String " , target .getOutline (), " length is outside of range" ),
82
- new ExpectedDetail (function , "length in range [" , minimum , ", " , undefined , "]" ),
82
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , undefined , "]" ),
83
83
new ActualDetail (target , "found " , length , " that is less than " , minimum )));
84
84
return true ;
85
85
}
@@ -89,7 +89,7 @@ public boolean length(JString target, JUndefined undefined, JInteger maximum) {
89
89
if (length > maximum .getValue ())
90
90
return fail (new JsonSchemaException (new ErrorDetail (SLEN05 ,
91
91
"String " , target .getOutline (), " length is outside of range" ),
92
- new ExpectedDetail (function , "length in range [" , undefined , ", " , maximum , "]" ),
92
+ new ExpectedDetail (caller , "length in range [" , undefined , ", " , maximum , "]" ),
93
93
new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
94
94
return true ;
95
95
}
@@ -99,12 +99,12 @@ public boolean length(JArray target, JInteger minimum, JInteger maximum) {
99
99
if (length < minimum .getValue ())
100
100
return fail (new JsonSchemaException (new ErrorDetail (ALEN02 ,
101
101
"Array " , target .getOutline (), " length is outside of range" ),
102
- new ExpectedDetail (function , "length in range [" , minimum , ", " , maximum , "]" ),
102
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , maximum , "]" ),
103
103
new ActualDetail (target , "found " , length , " that is less than " , minimum )));
104
104
if (length > maximum .getValue ())
105
105
return fail (new JsonSchemaException (new ErrorDetail (ALEN03 ,
106
106
"Array " , target .getOutline (), " length is outside of range" ),
107
- new ExpectedDetail (function , "length in range [" , minimum , ", " , maximum , "]" ),
107
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , maximum , "]" ),
108
108
new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
109
109
return true ;
110
110
}
@@ -114,7 +114,7 @@ public boolean length(JArray target, JInteger minimum, JUndefined undefined) {
114
114
if (length < minimum .getValue ())
115
115
return fail (new JsonSchemaException (new ErrorDetail (ALEN04 ,
116
116
"Array " , target .getOutline (), " length is outside of range" ),
117
- new ExpectedDetail (function , "length in range [" , minimum , ", " , undefined , "]" ),
117
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , undefined , "]" ),
118
118
new ActualDetail (target , "found " , length , " that is less than " , minimum )));
119
119
return true ;
120
120
}
@@ -124,7 +124,7 @@ public boolean length(JArray target, JUndefined undefined, JInteger maximum) {
124
124
if (length > maximum .getValue ())
125
125
return fail (new JsonSchemaException (new ErrorDetail (ALEN05 ,
126
126
"Array " , target .getOutline (), " length is outside of range" ),
127
- new ExpectedDetail (function , "length in range [" , undefined , ", " , maximum , "]" ),
127
+ new ExpectedDetail (caller , "length in range [" , undefined , ", " , maximum , "]" ),
128
128
new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
129
129
return true ;
130
130
}
@@ -134,12 +134,12 @@ public boolean length(JObject target, JInteger minimum, JInteger maximum) {
134
134
if (length < minimum .getValue ())
135
135
return fail (new JsonSchemaException (new ErrorDetail (OLEN02 ,
136
136
"Object " , target .getOutline (), " size or length is outside of range" ),
137
- new ExpectedDetail (function , "length in range [" , minimum , ", " , maximum , "]" ),
137
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , maximum , "]" ),
138
138
new ActualDetail (target , "found " , length , " that is less than " , minimum )));
139
139
if (length > maximum .getValue ())
140
140
return fail (new JsonSchemaException (new ErrorDetail (OLEN03 ,
141
141
"Object " , target .getOutline (), " size or length is outside of range" ),
142
- new ExpectedDetail (function , "length in range [" , minimum , ", " , maximum , "]" ),
142
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , maximum , "]" ),
143
143
new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
144
144
return true ;
145
145
}
@@ -149,7 +149,7 @@ public boolean length(JObject target, JInteger minimum, JUndefined undefined) {
149
149
if (length < minimum .getValue ())
150
150
return fail (new JsonSchemaException (new ErrorDetail (OLEN04 ,
151
151
"Object " , target .getOutline (), " size or length is outside of range" ),
152
- new ExpectedDetail (function , "length in range [" , minimum , ", " , undefined , "]" ),
152
+ new ExpectedDetail (caller , "length in range [" , minimum , ", " , undefined , "]" ),
153
153
new ActualDetail (target , "found " , length , " that is less than " , minimum )));
154
154
return true ;
155
155
}
@@ -159,7 +159,7 @@ public boolean length(JObject target, JUndefined undefined, JInteger maximum) {
159
159
if (length > maximum .getValue ())
160
160
return fail (new JsonSchemaException (new ErrorDetail (OLEN05 ,
161
161
"Object " , target .getOutline (), " size or length is outside of range" ),
162
- new ExpectedDetail (function , "length in range [" , undefined , ", " , maximum , "]" ),
162
+ new ExpectedDetail (caller , "length in range [" , undefined , ", " , maximum , "]" ),
163
163
new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
164
164
return true ;
165
165
}
0 commit comments