MagicTheGathering / mtg-sdk-java

Magic: The Gathering SDK - Java
MIT License
69 stars 24 forks source link

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

Closed imooren closed 5 years ago

imooren commented 5 years ago

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.

thechucklingatom commented 5 years ago

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.

thechucklingatom commented 5 years ago

Resolved in a20b1c3. Uploading version 0.0.13 now.