Types Should be Removed from Pokémon Forms
Describe the Bug
Altered Pokémon Types are stored in pokemon-form/
Steps to Reproduce
Query a Pokémon form pokemon-form/
e..g, pokemon-form/castform-sunny stores fire, but this is already obtainable from the types field in pokemon/castform-sunny.
Resolving the Bug
Anyone is open to making a PR for this issue.
I think there are actual exceptions to that rule. For example, https://pokeapi.co/api/v2/pokemon/arceus has only a single pokemon resource, but multiple forms, one for each plate.
I think there are actual exceptions to that rule. For example, https://pokeapi.co/api/v2/pokemon/arceus has only a single pokemon resource, but multiple forms, one for each plate.
Hmmmm, yes the arceus forms appear to be an error. I've confirmed with some of the major contributors about what dictates a form vs pokemon. Any mechanical change (stat, type, move etc.) necessitates a new pokemon resource, while a form is solely visual.
So, we need arceus entries rather than forms, which are not purely visual. Can you confirm @FallenDeity ? Thanks!
looks like this was a decision from veekun days it seems we have a dedicated file which holds only arceus and silvally for pokemon forms with type differences https://github.com/PokeAPI/pokeapi/blob/master/data/v2/csv/pokemon_form_types.csv
i think the idea behind this decision might have been due to the fact that for these the only thing that changes across these mons is type and base stat total, move pool remains the same which is not a case with stuff like rotom, castform etc so perhaps they opted to just make this as form level type difference
we later added type to our form model down the line for this https://github.com/PokeAPI/pokeapi/pull/571
but yeah its only these 2 that are an outlier
potentially we could bump them upto pokemon entries first for consistency and keep the type field in forms for now and deprecate it later down the line
cc: @jemarq04
I think the reason these were kept as just forms is because they're battle only, right? If we feel that these are exceptions to the rule we can always promote them to pokemon entries instead, I'm not opposed.