Turn form errors into error collection
Turn form errors into error collection

Form validation errors are returned as a collection: {"errors": []}

Field validation errors are returned as a resource with "member" and
"detail" members mapping, respectively, to the field and the error
message:

{"member": "deadline", "detail": "This field is required."}

Non-field errors do not have a "member" member.

{"detail": "Start and end date combination is incorrect."}

roam/machete