Catching the serializer.errors and format your own error container don't
work?
Em sexta-feira, 25 de agosto de 2017 13:19:11 UTC-3, Serge Efremov escreveu:
>
> This is what I do. I have a Serializer-level validator that checks the
> validity of a number of fields. If they a missing or incorrect
This is what I do. I have a Serializer-level validator that checks the
validity of a number of fields. If they a missing or incorrect I want to
display a specific error message. Which basically looks like this.
{
'errors': {
'__all__': ['missing_security_fields'],
},
'errors: