RequiredForUpgrade has two data types
akassharjun opened this issue · 1 comments
akassharjun commented
Issue Report:
- Did you encounter this recently, or has this bug always been there?
Recently - Expected behaviour:
Not sure on what I should put here - Console logs (if applicable):
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "Maxed"
- Screenshots (if applicable):
Use the player tag of a player who has at least one max level card.
The attribute requiredForUpgrade
inside the card object of a "Max Level" card will say "Maxed" while the rest of the cards will have an integer amount.
The attribute cannot be both integer & string.
Request Details:
GET
https://api.royaleapi.com/player/82RJJG902
Response Details:
I only get a throwable, which says `"com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "Maxed""`
selfish commented
Read the docs. :)
This value is either a numeric amount, or a string "Maxed".