josdejong/jsoneditor

oneOf issue

オープン

#1,548 opened on 2023/09/13

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (2,078 件のフォーク)batch import
featurehelp wanted

Repository metrics

Stars
 (12,263 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド