Skip to content

Add past abilities and stats for pokemon endpoints#46

Merged
mlemesle merged 3 commits intomlemesle:mainfrom
jemarq04:add_past_abilities_and_stats
Feb 6, 2026
Merged

Add past abilities and stats for pokemon endpoints#46
mlemesle merged 3 commits intomlemesle:mainfrom
jemarq04:add_past_abilities_and_stats

Conversation

@jemarq04
Copy link
Contributor

@jemarq04 jemarq04 commented Feb 2, 2026

This PR does the following:

  • Adds past_abilities and past_stats fields to the Pokemon model
  • Creates PokemonAbilityPast and PokemonStatPast structs to hold information for past abilities and stats
  • Modified the ability field for PokemonAbility to be Option<_>, since past_abilities can hold null abilities (i.e. if the ability slot was empty prior to a certain generation).

The static resources was re-created and all examples passed without issue.

@jemarq04
Copy link
Contributor Author

jemarq04 commented Feb 2, 2026

I should note that the hyperlink to the PokemonStatPast documentation won't lead anywhere yet until the PR I linked is approved - this can always wait until then to be sure the link is correct.

@mlemesle mlemesle merged commit d343c03 into mlemesle:main Feb 6, 2026
@jemarq04 jemarq04 deleted the add_past_abilities_and_stats branch February 6, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants