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