josdejong/jsoneditor

oneOf issue

Open

#1,548 建立於 2023年9月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (10,781 star) (2,034 fork)batch import
featurehelp wanted

描述

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

貢獻者指南