json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Empty array #766

Closed snoosmoomrik closed 8 years ago

snoosmoomrik commented 8 years ago

I tried to add an empty array in my model

Expected behaviour

I expected that array type schema form will not contain any items

Actual behaviour

It actually pushed one object in my array and showed it in from

Jsfiddle

Empty array

@json-schema-form/angular-schema-form-lead

saltwalwei commented 8 years ago

You can start with an empty array, just add "startEmpty": true to the form definition

Anthropic commented 8 years ago

Please re-open if you do not feel the question has been answered sufficiently.