Skip to content

opt in nested serializers automatically #71

@davidszotten

Description

@davidszotten

should nested serializers be automatically added in instead of treated as any?

e.g.

# no decorator
class Foo(serializers.Serializer):
    field = serializers.CharField()


@ts_interface("nested")
class Bar(serializers.Serializer):
    foo = Foo()

generates

export interface Bar {
    foo: any;
}

at the moment. is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions