void () { @Language("JSON") final String schema = """ { "properties": { "withPattern": { "pattern": "p[0-9]" } } }"""; final String correctText = "withPattern: p1"; final String wrongText = "withPattern: <warning descr=\"Schema validation: String violates the pattern: 'p[0-9]'\">wrong</warning>"; doTest(schema, correctText); doTest(schema, wrongText); }