team-formalist / formalist-rb

Flexible form builder
MIT License
22 stars 4 forks source link

Collect any errors not associated to particular fields and pass them as a group in the AST #44

Open timriley opened 8 years ago

timriley commented 8 years ago

For complex forms, it's likely we'll have validation schemas with rules that don't necessarily correspond to a single field. In cases like these, we should ensure those error messages still have a place to be displayed on the form. I propose we take any "unclaimed" error messages and pass them as a group in the AST so the renderers can display them together up the top of the form or something.