Skip to content

Very slow validation after dynamicRef implementation, even with schemas which do not use dynamicRef other than in their metaschema #941

@mriedem

Description

@mriedem

We just started noticing that some tooling which is using this code hangs in 4.5.0:

import jsonschema
import ruamel.yaml

YAML = ruamel.yaml.YAML()
...
        with open(fname, "r") as f:
            self.config = YAML.load(f)
        jsonschema.validate(
            self.config, SCHEMA,
            format_checker=jsonschema.draft7_format_checker)

That seems to hang and there are no warnings or errors. When we drop back to jsonschema<4.5.0 (so 4.4.0) it works. I'm not sure what might be going on here or how to debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething doesn't work the way it should.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions