Sam Jaffe 6 éve
szülő
commit
7e1a2be824

+ 2 - 1
src/main/lombok/org/leumasjaffe/json/schema/factory/SchemaV6Factory.java

@@ -50,9 +50,10 @@ class SchemaV6Factory extends SchemaFactory {
 		case "items": 
 			if (value.isArray()) {
 				return j -> {
+					List<Tester> tests = createArray(value);
 					List<JsonNode> data = JsonHelper.toArray(j);
 					for (int i = 0; i < Math.min(value.size(), data.size()); ++i) {
-						if (!create(value.get(i)).accepts(data.get(i))) {
+						if (!tests.get(i).accepts(data.get(i))) {
 							return false;
 						}
 					}