Schema Issue with Array
Closed this issue · 2 comments
elijah3wo commented
Hello,
I have this schema:
http://pastebin.com/W1Yf3f7m
When I try to parse it at original JSON Editor sandbox, no problem at all. I can see the original properties plus the Images and Images2 sub-levels with array and add button:
Ref.: Example at JSON Editor Sandbox
But, when I try it at Angular JSON Editor (latest version), the Images and Images2 are not displayed:
Any idea how to fix it?
rodikh commented
Hey,
Did you remember to add the empty arrays to startVal, like so:
{
"name": "",
"description": "",
"shortdescription": "",
"images2": [],
"images": []
}
Non-required properties with undefined startVal will not be displayed in the form by default. This is by design of the original json-editor plugin.
elijah3wo commented
Thanks very much, it works fine now.