Skip to content

recursive object results in ValueError: Recursion limit reached #945

@braingram

Description

@braingram

Thanks for working on this library. I've been following it as a possible replacement for the python jsonschema library in https://github.com/asdf-format/asdf One of the features we needed was custom keywords which I was excited to see was added to the python API in the latest release. ASDF uses jsonschemas to validate instances that can often be recursive.

Are there plans to support recursive objects? The following example:

import jsonschema_rs
a = {}
a['a'] = a
jsonschema_rs.validate({"properties": {"a": {"type": "object"}}}, a)

fails with ValueError: Recursion limit reached.

Let me know if more information is helpful of if you have suggestions for work-arounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions