PokeAPI / PokeAPI/pokeapi

Missing OpenAPI nullable annotation for `Location.region`

Open Beginner friendly
#1,398 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
5.4k
Forks
1.2k
Avg merge
2d 5h
Merged PRs (30d)
21

Description

Steps to Reproduce:

  1. See OpenAPI definition to ensure that Location.region is not marked as nullable.
  2. Access https://pokeapi.co/api/v2/location/kanto
  3. region is null.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in openapi.yml at the Location.region definition around lines 5257-5258, then compare it with the response from /api/v2/location/kanto. Mark the field as nullable so the OpenAPI definition matches the observed null response.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.