Re: How can I change error messages format in DRF?

2017-08-28 Thread Marlysson Silva
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

How can I change error messages format in DRF?

2017-08-25 Thread Serge Efremov
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: