void () { final List<String> subSchemas = new ArrayList<>(); subSchemas.add("{\"type\": \"string\", \"enum\": [\"a\", \"b\"]}"); subSchemas.add("{\"type\": \"string\", \"enum\": [\"a\", \"c\"]}"); @Language("YAML") final String schema = schema("{\"oneOf\": [" + StringUtil.join(subSchemas, ", ") + "]}"); doTestYaml(schema, "prop: b"); doTestYaml(schema, "prop: c"); doTestYaml(schema, "prop: <warning descr=\"Schema validation: Validates to more than one variant\">a</warning>"); }