void () { @Language("JSON") final String schema = """ {"properties": { "not_type": { "pattern": "^[a-z]*[0-5]*$", "not": { "pattern": "^[a-z]{1}[0-5]$" } } }}"""; doTest(schema, "{\"not_type\": \"va4\"}"); doTest(schema, "{\"not_type\": <warning descr=\"Validates against 'not' schema\">\"a4\"</warning>}"); doTest(schema, "{\"not_type\": <warning descr=\"String violates the pattern: '^[a-z]*[0-5]*$'\">\"4a4\"</warning>}"); }