Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

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

Closed

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"`
}

Activity

  1. shwoodard commented on Jul 20, 2015

    @shwoodard
    Contributor

    Looking into this.

  2. shwoodard commented on Jul 20, 2015

    @shwoodard
    Contributor
  3. shwoodard commented on Jul 20, 2015

    @shwoodard
    Contributor

    @chr0n1x Can I get an lgtm?

  4. chr0n1x commented on Jul 21, 2015

    @chr0n1x
    Author

    @shwoodard looks GREAT to me. Thanks for the quick patch & work! :D

  5. added a commit that references this issue on Jan 25, 2018
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