Skip to content

panics when struct that shadows another struct is passed in #1

Closed
@chr0n1x

Description

@chr0n1x

Panics @ line 126 of response.go (out of index error on modelValue.Field(i))

Example code:

type A struct {
    AString string `jsonapi:"attr,aString"`
}

type B struct {
    A
    BString string `jsonapi:"attr,bString"`
}

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