The main idea is to simplify the validation process on the client-side by flattening errors output. To achieve such
a goal, the whole validation process have be rewritten (and luckily for us, much simplified). This will be a breaking change and will be released as 1.0.
The DetailedValidationError should be implemented which inherits from ValidationError and can keep position in lists nested forms. The form will return a linear list of errors instead of a nested dictionary.
This issue has been inspired by Problem Details for HTTP APIs - RFC7807 and blog post Structuring validation errors in REST APIs written by @k3nn7.
The main idea is to simplify the validation process on the client-side by flattening errors output. To achieve such a goal, the whole validation process have be rewritten (and luckily for us, much simplified). This will be a breaking change and will be released as 1.0.
The
DetailedValidationError
should be implemented which inherits fromValidationError
and can keep position in lists nested forms. The form will return a linear list of errors instead of a nested dictionary.Example request
Example validation error structure