MagicTheGathering / mtg-sdk-go

Magic: The Gathering SDK - Go
MIT License
25 stars 17 forks source link

Problem unmarshal cards #8

Open josofm opened 3 years ago

josofm commented 3 years ago

When I try query some cards, by id or by name I receive this error: json: cannot unmarshal string into Go struct field Card.cards.multiverseid of type mtg.MultiverseId

    q := mtg.NewQuery()
    cards, err := q.Where(mtg.CardName, name).All()
    if err != nil {
        return cards, err
    }
    return cards, nil
}

Any idea?

Ion-manden commented 2 years ago

Should be fixed by #11