josdejong / josdejong/jsoneditor

JSON Editor doesn't create Dropdowns for Arrays

Open
#1,473 3 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
12.3k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

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

image

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.

image

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.