developer-relations icon indicating copy to clipboard operation
developer-relations copied to clipboard

[BUG] Incorrect documentation for bountyGold in match-v5 ChallengesDto

Open ckousik opened this issue 2 years ago • 5 comments

Bug Description
Error in Match-v5 ChallengesDto documentation

Problem Description
bountyGold is documented as an integer but it can be a float.

Expected Result
Documentation is out of date/inconsistent.

Actual Result
bountyGold should be documented as a float.

Developer Impact
Type deserializers generated from the API spec will fail, especially for strongly typed languages.

Repro Steps
Query match-v5 endpoint for LA1_1568057368. bountyGold for one of the Participant structs is a float.

ckousik avatar Oct 29 '24 15:10 ckousik

Is related to https://github.com/RiotGames/developer-relations/issues/982

ckousik avatar Oct 29 '24 15:10 ckousik

Seems like the data is bugged, why would gold bounty ever be fractional? Did they change how bounty gold works?

(docs should be updated regardless, with note perhaps)

MingweiSamuel avatar Nov 04 '24 06:11 MingweiSamuel

Totally agree, it actually affect few other fields in some really specific games.

noahkohrs avatar Nov 06 '24 19:11 noahkohrs

Seems like the data is wrong, why would gold bounty ever be fractional? Did they change how bounty gold works?

I double checked this. In LA1_1568057368, please see the Participant data for player with game name "Zelt" and tagline "GGZ". Their bountyGold is 17.56436538696289

ckousik avatar Nov 06 '24 19:11 ckousik

@noahkohrs What are the match IDs?

MingweiSamuel avatar Nov 06 '24 19:11 MingweiSamuel