Skip to content

Commit 99bc05b

Browse files
committed
Removed comment put line
1 parent 37d6870 commit 99bc05b

File tree

2 files changed

+7
-32
lines changed

2 files changed

+7
-32
lines changed

src/main/java/com/networknt/schema/ItemsValidator.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -76,31 +76,6 @@ public Set<ValidationMessage> validate(JsonNode node, JsonNode rootNode, String
7676
} else {
7777
doValidate(errors, 0, node, rootNode, at);
7878
}
79-
// int i = 0;
80-
// for (JsonNode n : node) {
81-
// if (schema != null) {
82-
// // validate with item schema (the whole array has the same item
83-
// // schema)
84-
// errors.addAll(schema.validate(n, rootNode, at + "[" + i + "]"));
85-
// }
86-
//
87-
// if (tupleSchema != null) {
88-
// if (i < tupleSchema.size()) {
89-
// // validate against tuple schema
90-
// errors.addAll(tupleSchema.get(i).validate(n, rootNode, at + "[" + i + "]"));
91-
// } else {
92-
// if (additionalSchema != null) {
93-
// // validate against additional item schema
94-
// errors.addAll(additionalSchema.validate(n, rootNode, at + "[" + i + "]"));
95-
// } else if (!additionalItems) {
96-
// // no additional item allowed, return error
97-
// errors.add(buildValidationMessage(at, "" + i));
98-
// }
99-
// }
100-
// }
101-
//
102-
// i++;
103-
// }
10479
return Collections.unmodifiableSet(errors);
10580
}
10681

src/test/resources/tests/type.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,43 +220,43 @@
220220
"valid": false
221221
},
222222
{
223-
"description": "an integer is not an array",
223+
"description": "an typeLoose integer is an array",
224224
"data": 1,
225225
"isTypeLoose": true,
226226
"valid": true
227227
},
228228
{
229-
"description": "a float is not an array",
229+
"description": "a typeLoose float is an array",
230230
"data": 1.1,
231231
"isTypeLoose": true,
232232
"valid": true
233233
},
234234
{
235-
"description": "a string is not an array",
235+
"description": "a typeLoose string is an array",
236236
"data": "foo",
237237
"isTypeLoose": true,
238238
"valid": true
239239
},
240240
{
241-
"description": "an object is not an array",
241+
"description": "an typeLoose object is an array",
242242
"data": {},
243243
"isTypeLoose": true,
244244
"valid": true
245245
},
246246
{
247-
"description": "an array is an array",
247+
"description": "an typeLoose array is an array",
248248
"data": [],
249249
"isTypeLoose": true,
250250
"valid": true
251251
},
252252
{
253-
"description": "a boolean is not an array",
253+
"description": "a typeLoose boolean is an array",
254254
"data": true,
255255
"isTypeLoose": true,
256256
"valid": true
257257
},
258258
{
259-
"description": "null is not an array",
259+
"description": "typeLoose null is an array",
260260
"data": null,
261261
"isTypeLoose": true,
262262
"valid": true

0 commit comments

Comments
 (0)