api icon indicating copy to clipboard operation
api copied to clipboard

[Bug][Refactor] unify keys drops/items

Open devagja opened this issue 2 years ago • 1 comments

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 },
  ]
 }
]

devagja avatar Feb 24 '23 14:02 devagja

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

image

Didn't check other APIs yet. I would love to open a PR to fix this, though. :wink:

niktekusho avatar Feb 24 '23 16:02 niktekusho