josdejong/jsoneditor

Autocompletion: supporting self references

Aperta

#1450 aperta il 7 lug 2022

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (2078 fork)batch import
bughelp wanted

Metriche repository

Star
 (12.263 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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
    }

Guida contributor