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

贡献者指南