django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

Support for nested serializers

Open silviogutierrez opened this issue 9 years ago • 1 comments

Hi there,

Great tool! Are there any plans to support nested serializers? Like say:

class FooSerializer(serializers.Serializer):
    spam = serializers.CharField()    

class BarSerializer(serializers.Serializer):
    foo = FooSerializer()

The endpoint for BarSerializer would list all the fields inside FooSerializer.

If you point me in the right direction, I can also take a look myself. Thanks again for making this tool.

Best,

Silvio

silviogutierrez avatar May 02 '16 15:05 silviogutierrez

#104

This pull requests fixes the problem :+1:

Ivaylo-Bachvarov avatar Jun 23 '16 12:06 Ivaylo-Bachvarov