void () { @Language("JSON") String schema = """ {"type":"object", "oneOf": [ { "properties": { "type": { "type": "string", "oneOf": [ { "pattern": "(good)" }, { "pattern": "(ok)" } ] } } }, { "properties": { "type": { "type": "string", "pattern": "^(fine)" }, "extra": { "type": "string" } }, "required": ["type", "extra"] } ]}"""; doTest(schema, "type: good"); doTest(schema, "type: ok"); doTest(schema, "type: <warning>doog</warning>"); doTest(schema, "type: <warning>ko</warning>"); }