Open gitFurious opened 6 years ago
Also the endpoint doesn't follow the maxtop value. For the few things I tried what it returns is something like submitted "maxtop+3", so if you want top 5 you have to submit maxtop=2.
Plus the mentioned statid values aren't included in the docs (or an enum provided if there is one). I know from using it that you can use the stat names as strings, but you can only give one (not a comma separated list):
lbSingleGameKills lbPrecisionKills lbAssists lbDeaths lbKills lbObjectivesCompleted lbSingleGameScore lbMostPrecisionKills lbLongestKillSpree lbLongestKillDistance lbFastestCompletionMs lbLongestSingleLife
But for others it would be nice if they were in the docs.
Even further to this; the response type is different between the two OpenAPI generated files.
Destiny.HistoricalStats.DestinyLeaderboardResults. Appears to be incorrect.
A standard base response including Destiny.HistoricalStats.DestinyLeaderboard as the response property. Appears to be correct.
to add what @vpzed mentioned with maxtop. The request fails if the maxtop is greater than 24
Looking at the Destiny2.GetClanLeaderboards in the documentation it's not clear what Type the Response property is.
Chasing it down in the generated openapi.json file show's the response property is of Destiny.HistoricalStats.DestinyLeaderboardResults which itself has issues displaying some (?) of the properties.