Skip to content

[Schema Inaccuracy] Commit author missing many fields #2416

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

Open
yanyongyu opened this issue Apr 4, 2023 · 0 comments
Open

[Schema Inaccuracy] Commit author missing many fields #2416

yanyongyu opened this issue Apr 4, 2023 · 0 comments

Comments

@yanyongyu
Copy link

Schema Inaccuracy

When i try to get the commit details for twitter/the-algorithm@ec83d01, validation failed on the author and committer field of the response. Validator shows the response missing many fields.

As described in the schema, both fields are type of simple-user and simple-user requires following fields:

- avatar_url
- events_url
- followers_url
- following_url
- gists_url
- gravatar_id
- html_url
- id
- node_id
- login
- organizations_url
- received_events_url
- repos_url
- site_admin
- starred_url
- subscriptions_url
- type
- url

but the committer is not a github user actually

Expected

the author and the committer may not be a github user

Reproduction Steps

gh api \
    -H "Accept: application/vnd.github+json" \
    -H "X-GitHub-Api-Version: 2022-11-28" \
    /repos/twitter/the-algorithm/git/commits/ec83d01dcaebf369444d75ed04b3625a0a645eb9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants