pokeapi icon indicating copy to clipboard operation
pokeapi copied to clipboard

Types Should be Removed from Pokémon Forms

Open SamuelAppleby opened this issue 2 months ago • 4 comments

Describe the Bug

Altered Pokémon Types are stored in pokemon-form//types. Any Pokémon that has a new mechanical change is guaranteed to have an entry in pokemon/. As pokemon-form are visual only, we should not store types here.

Steps to Reproduce

Query a Pokémon form pokemon-form/. There is a types field, which should not be there; the new entry in pokemon/ will store the types.

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.

SamuelAppleby avatar Sep 25 '26 12:09 SamuelAppleby

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.

Skycoder42 avatar Sep 26 '26 14:09 Skycoder42

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!

SamuelAppleby avatar Sep 28 '26 09:09 SamuelAppleby

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

FallenDeity avatar Nov 09 '26 07:11 FallenDeity

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.

jemarq04 avatar Nov 11 '26 19:11 jemarq04