Skip to content

schemafile was not valid: is not a regex #521

@misery

Description

@misery

Hi there,

since 0.31.0 our regex isn't accepted anymore. I don't see a problem in the regex.

Error: schemafile was not valid

SchemaError: "^[\\säÄöÖüÜßẞ\\w\\_\\'\\/\\-\\+\\*\\&\\<\\>\\(\\)\\,\\:\\.\\?\\!]+$" is not a 'regex'

Failed validating 'format' in metaschema['properties']['definitions']['additionalProperties']['$dynamicRef']['allOf'][1]['properties']['properties']['additionalProperties']['$dynamicRef']['allOf'][3]['properties']['pattern']:
    {'type': 'string', 'format': 'regex'}

On schema['definitions']['languageString']['properties']['']['pattern']:
    "^[\\säÄöÖüÜßẞ\\w\\_\\'\\/\\-\\+\\*\\&\\<\\>\\(\\)\\,\\:\\.\\?\\!]+$"
  in "/tmp/bla/lib/python3.13/site-packages/check_jsonschema/checker.py", line 56
  >>> return self._schema_loader.get_validator(

0.30.0 works without problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedregular-expressionsRelated to the regex engines and modes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions