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

And I want them in list of dictionary format.

How can I get API error response in desired format?
This is how I am getting the error messages. By default, I am getting serializer.errors as dictionary of list.

And I want them in list of dictionary format.

How can I get API error response in desired format?