Skip to content

Breaking change related to depthCounter.structDepth in v5.0.2 #425

@stefanello57

Description

@stefanello57

Version 5.2.0 seems to have a breaking change compared to version 5.1.0:

I'm getting a panic with the error "container nesting too deep" (sig.go, line 51). This is due to depthCounter.structDepth being greater than 32. However, this was not an issue prior to version 5.2.0.

The issue can be reproduced by introspecting a struct with more than 32 properties.

  1. Is this change in behaviour between 5.1.0 and 5.2.0 intentional?
  2. Is the struct depth limitation of 32 an arbitrary number or is there a reason why it it set to 32?
  3. Would it be possible to increase the number in a future release?
  4. Would you consider a merge request that makes the maximum struct depth configurable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions