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