Skip to content

marshmallow-to-swagger RecursionError if schema has self references  #264

Description

@AutodeskAbe

I am getting a RecursionError trying to generate swagger with this schema:

class ZipStructureRowSchema(Schema):
    name = fields.String(required=True)
    sub_rows = fields.List(
        fields.Nested("ZipStructureRowSchema"), load_from="subRows", dump_to="subRows"
    )


class ZipPreviewResponseSchema(Schema):
    preview = fields.List(fields.Nested(ZipStructureRowSchema))

As far as I can tell, this is valid according to Marshmallow. Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions