void () { final List<String> subSchemas = new ArrayList<>(); subSchemas.add(""" {"type": "string", "enum": [ "off", "warn", "error" ]}"""); subSchemas.add("{\"type\": \"integer\"}"); @Language("YAML") final String schema = schema("{\"oneOf\": [" + StringUtil.join(subSchemas, ", ") + "]}"); doTestYaml(schema, "prop: off"); doTestYaml(schema, "prop: 12"); doTestYaml(schema, "prop: <warning descr=\"Schema validation: Value should be one of: \\\"off\\\", \\\"warn\\\", \\\"error\\\"\">wrong</warning>"); }