Skip to content

Support internal non-pointer references #26

@madbence

Description

@madbence

According to 8.3.2, $ref might not be a JSON pointer, eg:

   {
       "$id": "http://example.net/root.json",
       "items": {
           "type": "array",
           "items": { "$ref": "#item" }
       },
       "definitions": {
           "single": {
               "$id": "#item",
               "type": "object",
               "additionalProperties": { "$ref": "other.json" }
           }
       }
   }

Currently, the schema viewer errors with Invalid JSON pointer. (it's trying to resolve #item as a JSON pointer, while in fact it's just an internal reference, pointing to http://example.net/root.json#item)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions