Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: is_default Field Incorrect for Pokémon Form 10441 #1178

Open
Ferlow opened this issue Dec 25, 2024 · 1 comment
Open

Title: is_default Field Incorrect for Pokémon Form 10441 #1178

Ferlow opened this issue Dec 25, 2024 · 1 comment

Comments

@Ferlow
Copy link

Ferlow commented Dec 25, 2024

is_default Field Incorrect for Pokémon Form 10441

Description

The is_default field in the /api/v2/pokemon-form/10441/ endpoint is incorrectly set to false, despite being the only form associated with Pokémon 10272 (ursaluna-bloodmoon).

According to the documentation for Pokémon forms, the is_default field should be true for exactly one form per Pokémon. Since this Pokémon has only one form, it should logically be marked as the default form.


Steps to Reproduce

  1. Fetch the Pokémon data from /api/v2/pokemon/10272/:
    {
      "forms": [
        {
          "name": "ursaluna-bloodmoon",
          "url": "https://pokeapi.co/api/v2/pokemon-form/10441/"
        }
      ]
    }
  2. Fetch the form data from /api/v2/pokemon-form/10441/:
    {
      "id": 10441,
      "is_battle_only": false,
      "is_default": false
    }
  3. Observe that the is_default field is set to false.

Expected Behavior

Since form 10441 is the only form for Pokémon 10272, the is_default field should be true to align with the documentation.


Observed Behavior

The is_default field is incorrectly set to false.


Suggestion

Update the is_default field for /api/v2/pokemon-form/10441/ to true to reflect the correct behavior for the only form of this Pokémon.

@Naramsim
Copy link
Member

Hi! Thanks! Could you try updating the data and submitting a PR?

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

No branches or pull requests

2 participants