rodikh/angular-json-editor

Schema Issue with Array

Closed this issue · 2 comments

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:
screen shot 2015-11-23 at 9 08 06 pm

Any idea how to fix it?

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.

Thanks very much, it works fine now.