Skip to content

$ref to local definition not working #93

Closed
@nualoy

Description

@nualoy

Given the following reference:

(...)
"children": {
    "type": "array",
    "items": {
        "type": "object",
        "oneOf": [
            { "$ref": "#/definitions/Node" }
        ]
    }
}
(...)

The validator fails with:

Fragment "/definitions/Node" not found in file:///path/to/current/location#/definitions/Node

Expected: The validator looks for the definition of Node inside the same schema file, under the property "definitions".

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