void () { @Language("JSON") String schema = """ { "if": { "properties": { "a": { "type": "string" } }, "required": ["a"] }, "then": { "properties": { "b": { "type": "number" } }, "required": ["b"] }, "else": { "properties": { "c": { "type": "boolean" } }, "required": ["c"] } }"""; doTest(schema, "c: <warning>5</warning>"); doTest(schema, "c: true"); doTest(schema, "<warning descr=\"Schema validation: Missing required property 'b'\" textAttributesKey=\"WARNING_ATTRIBUTES\">a: a</warning>\nc: true"); doTest(schema, "a: a\nb: <warning>true</warning>"); doTest(schema, "a: a\nb: 5"); }