josdejong/jsoneditor

Autocompletion: supporting self references

Open

#1.450 geöffnet am 7. Juli 2022

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (10.781 Stars) (2.034 Forks)batch import
bughelp wanted

Beschreibung

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