1

Closed

Rating parsing errors

description

in CharacterStats.cs:

Ratings are set as ints in the code, but can be non-integers.

For example, expertise ratings can be 7.5, which will error out on the parsing.

Suggestion: change int->double

file attachments

Closed Feb 18, 2013 at 4:47 PM by KaelumYodi
Release v2.2a has been released and contains the fix for this issue.

comments

KaelumYodi wrote Feb 17, 2013 at 8:28 PM

Do you have an example of this? I need a character and realm to see if I can replicate the issue. In the mean time, I have reported the possible bug in the API forums and am waiting for a response:

BUG?: Character Stats: expertiseRating

If it is indeed supposed to be a floating-point number, I will update the library to reflect that.

Daegan wrote Feb 17, 2013 at 9:09 PM

Use Caul // Blackrock US

Daegan wrote Feb 17, 2013 at 9:16 PM

Sorry,

It's OffhandExpertise, which you have as an int. Caul's offhand is precisely 7.5.
RangedExpertise also is listed as an int.

Daegan wrote Feb 17, 2013 at 9:18 PM

misspoke: OffhandExpertise is the only one listed as an int when it should be a double.

Daegan wrote Feb 17, 2013 at 9:20 PM

Attaching Caul's JSON response for you.

KaelumYodi wrote Feb 18, 2013 at 4:29 PM

This has been fixed and a new bud fix release will be ready shortly.