I want to give a list of strings in postman, for example:
['string1', 'string2', 'string3', 'string4', 'string5']
But when it reaches serializer.is_valid() it gives me:
"non_field_errors": [
"Invalid data. Expected a dictionary, but got str."
]
This is my serializer:
class URLRequestedSerializer(serializers.Serializer):
urls = serializers.ListField(child=serializers.CharField())
How can I make the serializer to except a list of strings?