Sam Jaffe 6 년 전
부모
커밋
7e1a2be824
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/main/lombok/org/leumasjaffe/json/schema/factory/SchemaV6Factory.java

+ 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;
 						}
 					}