manosim / manosim/django-rest-framework-docs

Support for nested serializers

Open
#86 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
641
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Hi there,

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

``` python
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

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by locating how serializer fields are enumerated for endpoint output and trace the BarSerializer example with its nested FooSerializer. Done means the BarSerializer endpoint lists the fields inside FooSerializer, with coverage for the nested case.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.