0

This is how I am getting the error messages. By default, I am getting serializer.errors as dictionary of list. enter image description here

And I want them in list of dictionary format. https://i.stack.imgur.com/bZ7jO.png

How can I get API error response in desired format?

Jin Lee
  • 3,194
  • 12
  • 46
  • 86

1 Answers1

0

You can change the error format of Rest framework. For more information and a way for doing it (for example change the list type to dictionary (object type)) please check the answer of this question.

Roham
  • 1,970
  • 2
  • 6
  • 16