josdejong / josdejong/jsoneditor
Feature request: add options menu to items with enum in schema
Open
feature
- Dominant language
- JavaScript
- Stars
- 12.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
I have a feature request: I would like to have an options menu for items with an enum in the schema.
So if this is (part of) the schema:
```
"color": {
"type": "string",
"minLength": 1,
"enum": [
"black", "red", "green", "orange"
]
},
```
It would be really nice to have an options menu for this item (like you have the checkbox for booleans).
I was wondering how the fields and values are linked with the schema (tried to do this myself), but I didn't find out yet. Or do I have to iterate over the items in the schema for every value?
Contributor guide
Assessment
This issue has not been assessed yet.