Skip to content

Use of deprecated method for specification of types for JSONSchema #269

@max-moser

Description

@max-moser

Package version (if known): 1.4.0

Describe the bug

Invenio-Records uses a type-specification feature for JSONSchema validators which has been removed in version 4.0 of the jsonschema package.
This causes errors when trying to validate JSONSchemas with jsonschema>=4.0, e.g. in this PR for Invenio-OAIServer: inveniosoftware/invenio-oaiserver#203

Additional context

The offending line is in ext.py: https://github.com/inveniosoftware/invenio-records/blob/master/invenio_records/ext.py#L61

Related links in the jsonschema package:
Issue: python-jsonschema/jsonschema#681
Commit: python-jsonschema/jsonschema@d9f6384

Note: jsonschema has been pinned (>=3.0,<4) in some 1.5.0 pre-release, but the PR uses invenio-records 1.4.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions