You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A serializer with many=True returns a list of dicts when accessing serializer.errors or serializer.validated_data. If these are empty, however, an empty dict is returned (just as when many=False). I believe that it would be more consistent to return an empty list in this case.
A serializer with
many=True
returns a list of dicts when accessingserializer.errors
orserializer.validated_data
. If these are empty, however, an empty dict is returned (just as whenmany=False
). I believe that it would be more consistent to return an empty list in this case.Example test case: https://github.com/tomchristie/django-rest-framework/compare/tomchristie:master...nip3o:empty-errors?expand=1
The text was updated successfully, but these errors were encountered: