Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

$ref not working #95

@ecentinela

Description

@ecentinela

This is my documents.json file content:

{
    "$schema": "http://json-schema.org/draft-04/schema",
    "type": "array",
    "required": true,
    "items": {
        "$ref": "document.json",
        "required": true
    }
}

And this is my document.json file content:

{
    "$schema": "http://json-schema.org/draft-04/schema",
    "type": "object",
    "required": true,
    "additionalProperties": false,
    "properties": {
        "id": {
            "type": "string",
            "required": true
        },
        "inexistent_property": {
            "type": "string",
            "required": true
        }
    }
}

When I pass this json response:

[
{
    "id": "an_id"
}
]

It passes the tests.

I'm doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions