Skip to content

Definition not found in a schema with an URN as $id #66

Closed
@williamdes

Description

@williamdes
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "urn:example:api:response-example",
    "type": "object",
    "additionalProperties": false,
    "required": ["confirmed", "to_pay"],
    "definitions": {
        "example_item": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "_type",
                "count"
            ],
            "properties": {
                "_type": {
                    "$id": "#/definitions/example_item/properties/confirmed/properties/_type",
                    "type": "string",
                    "enum": ["example_item"]
                },
                "count": {
                    "$id": "#/definitions/example_item/properties/confirmed/properties/count",
                    "type": "integer"
                }
            }
        }
    },
    "properties": {
        "confirmed": {
            "$ref": "#/definitions/example_item"
        },
        "to_pay": {
            "$ref": "#/definitions/example_item"
        }
    }
}

The error

file_get_contents(/var/www/ax/ef/../../schemas/xyz/abc/def/../../urn:example:api:response-example): failed to open stream: No such file or directory

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