danutc / form-builder

form builder for mozilla-services/react-jsonschema-form
Apache License 2.0
2 stars 1 forks source link

the validation methods doesn't work properly the when the formData contain array #21

Closed knilink closed 8 years ago

knilink commented 8 years ago

It happen sometimes this schema will break the validation '{ "type": "object", "properties": { "array": { "type": "array", "title": "Validate", "items": { "type": "object", "properties": {} } } } }'

knilink commented 8 years ago

The bug was cause by the schema and the formData didn't match. When passing an object to an array validator, the validator try to call forEach which was not existed in the object.

This fix one of the issues mentioned in #9