josdejong/jsoneditor

oneOf issue

Open

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

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

倉庫指標

Star
 (10,781 star)
PR 合併指標
 (平均合併 15小時 36分鐘) (30 天內合併 3 個 PR)

描述

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

貢獻者指南