HypixelDev / PublicAPI

Official Java implementation of the Hypixel Public API.
https://api.hypixel.net
MIT License
535 stars 152 forks source link

Duplicate keys only in differenct cases #481

Closed comblock closed 2 years ago

comblock commented 2 years ago

I'm using the api with golang and when converting the player data json to a golang struct I found that there are quite some 'duplicate' keys, for example, the MCGO stat 'grenade_kills' also has a duplicate 'grenadeKills', they also don't have the same values. I'm assuming this is a bug because I cannot think of any reason why there would be duplicate keys.

ConnorLinfoot commented 2 years ago

This isn't necessarily a bug, as the API provides what is in the database. You'll likely find cases like this in multiple games/fields, unfortunately, I can't say if these will ever be updated and removed. Since overall it's not an issue internally and not worth the development time to migrate (where needed) and remove old fields.