Skip to content

ExpandFlattenDescriptor can't differentiate ComplexObject and ComplexArrayObject #76

@magodo

Description

@magodo

When a ExpandFlattenDescriptor is constructed for ComplexObject or ComplexArrayObject sdk fields, the @func_name is deduced from the go_type_name of those fields.

Since go_type_name has ambiguous meanings when applied to ComplexObject (which indicates the type of this complex object, i.e. struct type) and ComplexArrayObject (which indicates the type of element type). In some case, these go_type_name(s) might be same. However since their properties are different, magic module will generate expand/flatten function for both of them, with same name. This will introduce redeclaration error in generated code.

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