void () { final List<String> subSchemas = new ArrayList<>(); subSchemas.add("{\"type\": \"integer\", \"multipleOf\": 2}"); subSchemas.add("{\"enum\": [1,2,3]}"); @Language("JSON") final String schema = schema("{\"allOf\": [" + StringUtil.join(subSchemas, ", ") + "]}"); doTest(schema, "{\"prop\": <warning descr=\"Is not multiple of 2\">1</warning>}"); doTest(schema, "{\"prop\": <warning descr=\"Value should be one of: 1, 2, 3\">4</warning>}"); doTest(schema, "{\"prop\": 2}"); }