void () { @Language("JSON") final String schema = """ { "properties": { "withPattern": { "pattern": "^[]$" } } }"""; final String text = """ {"withPattern": <warning descr="Cannot check the string by pattern because of an error: Unclosed character class near index 3 ^[]$ ^">"(124)555-4216"</warning>}"""; doTest(schema, text); }