remastr/drf-typescript-generator

Support for recursive serializers

ddahan opened this issue · 0 comments

Could you specify if recursive serializers are supported in the features section? If not, can it be added to the roadmap?

For example, is this python code...

from rest_framework import serializers
from rest_framework_recursive.fields import RecursiveField

class Tree(serializers.Serializer):
    name = serializers.CharField()
    children = serializers.ListField(child=RecursiveField())

...able to generate to this TS code?

export type Tree = {
    name: string;
    children: Tree[];
}