josdejong/jsoneditor

Autocompletion: supporting self references

Open

#1,450 opened on Jul 7, 2022

 (1 comment) (0 reactions) (0 assignees)JavaScript (2,078 forks)batch import
bughelp wanted

Repository metrics

Stars
 (12,263 stars)
PR merge metrics
 (PR metrics pending)

Description

Hi,

Look like self references are not supported by the schema autocompletion feature. For example, on self key in the example below:

   {
        "type": "object",
        "properties": {
            "self": {
                "$ref": "#"
            },
            "bar": {
                "type": "string",
                "enum": [
                    "A",
                    "B"
                ]
            }
        },
        "additionalProperties": false
    }

Contributor guide