josdejong / josdejong/jsoneditor

Display missing JSON schema fields

Open
#446 3 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
12.3k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

At the moment, if you have a schema containing more fields than the json object has, the missing fields do not appear in the tree view. You get a validation error on the root but the missing field itself does not appear.
![image](https://user-images.githubusercontent.com/6222281/29093685-8e66c74c-7c82-11e7-8560-42c7296e45fc.png)

![image](https://user-images.githubusercontent.com/6222281/29093663-7785107e-7c82-11e7-9405-830639f9deda.png)

It would be a great feature to be able to display all missing fields. In this case the value of such a field could be empty, which would show a placeholder value.
Diffing/merging the json and the schema could be outside of jsoneditor, but it would be a useful feature to have in jsoneditor.

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.