@@ -36,7 +36,7 @@ public boolean length(JString target, JInteger length) {
3636 var rLength = target .length ();
3737 if (rLength != length .getValue ()) return fail (new JsonSchemaException (
3838 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 ),
4040 new ActualDetail (target , "found " , rLength , " which does not match" )));
4141 return true ;
4242 }
@@ -45,7 +45,7 @@ public boolean length(JArray target, JInteger length) {
4545 var rLength = target .getElements ().size ();
4646 if (rLength != length .getValue ()) return fail (new JsonSchemaException (
4747 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 ),
4949 new ActualDetail (target , "found " , rLength , " which does not match" )));
5050 return true ;
5151 }
@@ -54,7 +54,7 @@ public boolean length(JObject target, JInteger length) {
5454 var rLength = target .getProperties ().size ();
5555 if (rLength != length .getValue ()) return fail (new JsonSchemaException (
5656 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 ),
5858 new ActualDetail (target , "found " , rLength , " which does not match" )));
5959 return true ;
6060 }
@@ -64,12 +64,12 @@ public boolean length(JString target, JInteger minimum, JInteger maximum) {
6464 if (length < minimum .getValue ())
6565 return fail (new JsonSchemaException (new ErrorDetail (SLEN02 ,
6666 "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 , "]" ),
6868 new ActualDetail (target , "found " , length , " that is less than " , minimum )));
6969 if (length > maximum .getValue ())
7070 return fail (new JsonSchemaException (new ErrorDetail (SLEN03 ,
7171 "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 , "]" ),
7373 new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
7474 return true ;
7575 }
@@ -79,7 +79,7 @@ public boolean length(JString target, JInteger minimum, JUndefined undefined) {
7979 if (length < minimum .getValue ())
8080 return fail (new JsonSchemaException (new ErrorDetail (SLEN04 ,
8181 "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 , "]" ),
8383 new ActualDetail (target , "found " , length , " that is less than " , minimum )));
8484 return true ;
8585 }
@@ -89,7 +89,7 @@ public boolean length(JString target, JUndefined undefined, JInteger maximum) {
8989 if (length > maximum .getValue ())
9090 return fail (new JsonSchemaException (new ErrorDetail (SLEN05 ,
9191 "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 , "]" ),
9393 new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
9494 return true ;
9595 }
@@ -99,12 +99,12 @@ public boolean length(JArray target, JInteger minimum, JInteger maximum) {
9999 if (length < minimum .getValue ())
100100 return fail (new JsonSchemaException (new ErrorDetail (ALEN02 ,
101101 "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 , "]" ),
103103 new ActualDetail (target , "found " , length , " that is less than " , minimum )));
104104 if (length > maximum .getValue ())
105105 return fail (new JsonSchemaException (new ErrorDetail (ALEN03 ,
106106 "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 , "]" ),
108108 new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
109109 return true ;
110110 }
@@ -114,7 +114,7 @@ public boolean length(JArray target, JInteger minimum, JUndefined undefined) {
114114 if (length < minimum .getValue ())
115115 return fail (new JsonSchemaException (new ErrorDetail (ALEN04 ,
116116 "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 , "]" ),
118118 new ActualDetail (target , "found " , length , " that is less than " , minimum )));
119119 return true ;
120120 }
@@ -124,7 +124,7 @@ public boolean length(JArray target, JUndefined undefined, JInteger maximum) {
124124 if (length > maximum .getValue ())
125125 return fail (new JsonSchemaException (new ErrorDetail (ALEN05 ,
126126 "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 , "]" ),
128128 new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
129129 return true ;
130130 }
@@ -134,12 +134,12 @@ public boolean length(JObject target, JInteger minimum, JInteger maximum) {
134134 if (length < minimum .getValue ())
135135 return fail (new JsonSchemaException (new ErrorDetail (OLEN02 ,
136136 "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 , "]" ),
138138 new ActualDetail (target , "found " , length , " that is less than " , minimum )));
139139 if (length > maximum .getValue ())
140140 return fail (new JsonSchemaException (new ErrorDetail (OLEN03 ,
141141 "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 , "]" ),
143143 new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
144144 return true ;
145145 }
@@ -149,7 +149,7 @@ public boolean length(JObject target, JInteger minimum, JUndefined undefined) {
149149 if (length < minimum .getValue ())
150150 return fail (new JsonSchemaException (new ErrorDetail (OLEN04 ,
151151 "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 , "]" ),
153153 new ActualDetail (target , "found " , length , " that is less than " , minimum )));
154154 return true ;
155155 }
@@ -159,7 +159,7 @@ public boolean length(JObject target, JUndefined undefined, JInteger maximum) {
159159 if (length > maximum .getValue ())
160160 return fail (new JsonSchemaException (new ErrorDetail (OLEN05 ,
161161 "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 , "]" ),
163163 new ActualDetail (target , "found " , length , " that is greater than " , maximum )));
164164 return true ;
165165 }
0 commit comments