josdejong/jsoneditor

JSON Editor doesn't create Dropdowns for Arrays

Open

#1,473 创建于 2022年10月4日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (2,034 fork)batch import
bughelp wanted

仓库指标

Star
 (10,781 star)
PR 合并指标
 (平均合并 15小时 36分钟) (30 天内合并 3 个 PR)

描述

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.

贡献者指南