Skip to content

Validation conflict for "id" property #177

Closed
@vearutop

Description

@vearutop

According to spec https://github.com/json-schema-org/json-schema-spec/blob/master/archive/draft-04/schema.json#L32

        "id": {
            "type": "string",
            "format": "uri"
        },

Format uri is invalid for local references (https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/master/tests/draft4/optional/format.json#L44):

            {
                "description": "an invalid URI though valid URI reference",
                "data": "abc",
                "valid": false
            }

Which makes test data invalid for id property here https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/master/tests/draft4/refRemote.json#L57

            "items": {
                "id": "folder/",
                "items": {"$ref": "folderInteger.json"}
            }

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