josdejong/jsoneditor

JSON Editor doesn't create Dropdowns for Arrays

オープン

#1,473 opened on 2022/10/04

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

Repository metrics

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

説明

JSON Editor won't create Dropdowns for Object Property, if the objects are in an array.

So I've been using JSON Schema enum's to make the app's stakeholders life easier (and validate the input), but I've noticed a weird bug when using array of objects. Basically, a Popover dialog will be shown for the property that says "should be equal to A, B, or C", but dropdown won't be displayed.

I've tried using enum on a object property (object not in an array), and Dropdowns are being rendered as defined.

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