Skip to content

[Schema Inaccuracy] Commit author missing many fields #2416

Open
@yanyongyu

Description

@yanyongyu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions