MagicTheGathering/mtg-sdk-java

Card.alternatives is an int [], should be a String[] to support uuid.

Closed this issue · 2 comments

When parsing a json containing an alternative to Card object an exception occurs:
java.lang.NumberFormatException: For input string: "ffa00e95-754e-5484-8e4c-e3b707d4c1d2"
This is because the alternatives field expects and int array. But the alternatives field in the json contains an uuid.

Will try to tackle this tonight. Variations in the api docs does specify multiverseId, so I will try to reach out to the maintainer of that to see if that is changed or if that documentation is just out of date.

Resolved in a20b1c3. Uploading version 0.0.13 now.