Skip to content

Relative links in schemas break (some) schema parsers #654

@mbaudis

Description

@mbaudis

When referencing the JSON Schema versions some parsers fail at relative references. At least json_ref_dict:

$ref: https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Variation

fails to follow "$ref": "/ga4gh/schema/vrs/2.0.1/json/Adjacency" in that document:

json_ref_dict.exceptions.DocumentParseError: Failed to load base document of /ga4gh/schema/vrs/2.0.1/json/Adjacency#/.

And when jumping to the next level:

$ref: https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Adjacency

... same for "$ref": "/ga4gh/schema/gks-core/1.0.0/json/Extension"

json_ref_dict.exceptions.DocumentParseError: Failed to load base document of /ga4gh/schema/gks-core/1.0.0/json/Extension#/.

... etc.

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