josdejong/jsoneditor

oneOf issue

Open

#1 548 ouverte le 13 sept. 2023

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (10 781 stars) (2 034 forks)batch import
featurehelp wanted

Description

Hi.

Take a look on the example https://sgurin.github.io/jsoneditor/examples/26_autocomplete_by_schema.html

When I am trying to set profession -> level there is only one option available

image

but schema contains 3 refs

  "profession": {
    "oneOf": [
      {
        "$ref": "junior"
      },
      {
        "$ref": "experienced"
      },
      {
        "$ref": "senior"
      },
    ]
  },

Looks like refs don't work

Guide contributeur