void () { final List<String> subSchemas = new ArrayList<>(); subSchemas.add("{\"type\": \"string\"}"); subSchemas.add("{\"type\": \"boolean\"}"); @Language("JSON") final String schema = schema("{\"oneOf\": [" + StringUtil.join(subSchemas, ", ") + "]}"); doTest(schema, "{\"prop\": \"abc\"}"); doTest(schema, "{\"prop\": true}"); doTest(schema, "{\"prop\": <warning descr=\"Incompatible types.\n Required one of: boolean, string. Actual: integer.\">11</warning>}"); }