api
api copied to clipboard
[Bug][Refactor] unify keys drops/items
there are different keys for the same data type, It can be unified?
https://api.genshin.dev/domains/domain-of-guyun rewards -> details ->
[
{...
drops: [
{ name: 'Lucky Dog', rarity: '2/3', drop_min: 0, drop_max: 1 },
]
},
{...
items: [
{ name: 'Lucky Dog', rarity: 3, drop_min: 0, drop_max: 1 },
]
}
]
Another inconsistency could be found in the character API with how some properties are serialized to JSON (camel-case vs. snake-case). From: https://api.genshin.dev/characters/yelan
Didn't check other APIs yet. I would love to open a PR to fix this, though. :wink: