Closed
Description
Hi,
I think I've found a bug in the schema.
Env
- python: 3.12
- githubkit: 0.12.12
Steps to reproduce
from githubkit import GitHub
kit = GitHub()
owner="pandas-dev"
repo="pandas"
page_num = 16
resp = kit.rest.pulls.list(owner=owner, repo=repo, state="all", page=16, per_page=100)
_ = resp.parsed_data
Error
ValidationError: 1 validation error for list[PullRequestSimple]
62.head.repo.owner
Input should be an object [type=model_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.9/v/model_type
Potential solution
PullRequestSimple.head.repo.owner
should probably be of type SimpleUser | None
because the Github API returns owner: None
for some pull requests.
Could you please take a look? Thank you in advance!