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

[Schema Inaccuracy] pull request id documented as int but missing format int64 #4564

Open
baywet opened this issue Feb 27, 2025 · 3 comments
Assignees

Comments

@baywet
Copy link

baywet commented Feb 27, 2025

Schema Inaccuracy

Pull request simple id field is documented as a int but should be a string string this is what the API returns

Expected

See inacurracy

Reproduction Steps

# or any repo really
gh pr list -R baywet/demo --json id
[
  {
    "id": "PR_kwDOIJ9Ix86M10xO"
  },
  {
    "id": "PR_kwDOIJ9Ix86M10mq"
  }
]
@bearcherian
Copy link
Contributor

Thanks for opening this issue @baywet !

Looking at the CLI code here, the method used to retrieve the list of PRs is GraphQL, so the fields would correspond to the GraphQL Schema of PullRequests object. The id field here is the Node ID, but if you need the numeric database ID you can use fullDatabaseId instead.

@bearcherian bearcherian self-assigned this Feb 27, 2025
@baywet
Copy link
Author

baywet commented Feb 27, 2025

I used the CLI to demonstrate the issue because it's the simplest way for me to make an authenticated call to the API.

But the issue actually originated from the REST API, and the description. I have generated a client using Kiota and the description provided here, and deserialization is failing because of this.

@baywet
Copy link
Author

baywet commented Feb 28, 2025

It's actually a bit different than what I originally thought it would be. I've also updated the title.

The description documents returning an int for the field. But the API actually returns longs.

That results in being out of bounds, so the description should add a format to the field schema "format" : "int64"

See in the example below:

  • PR id is 2,362,920,014
  • dotnet int max value is 2,147,483,647

Here is a curl repro

curl -X GET https://api.github.com/repos/baywet/demo/pulls -H "Authorization: bearer $token"
[
  {
    "url": "https://api.github.com/repos/baywet/demo/pulls/28",
    "id": 2362920014,
    "node_id": "PR_kwDOIJ9Ix86M10xO",
    "html_url": "https://github.com/baywet/demo/pull/28",
    "diff_url": "https://github.com/baywet/demo/pull/28.diff",
    "patch_url": "https://github.com/baywet/demo/pull/28.patch",
    "issue_url": "https://api.github.com/repos/baywet/demo/issues/28",
    "number": 28,
    "state": "open",
    "locked": false,
    "title": "awesome documentation update",
    "user": {
      "login": "baywet",
      "id": 7905502,
      "node_id": "MDQ6VXNlcjc5MDU1MDI=",
      "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/baywet",
      "html_url": "https://github.com/baywet",
      "followers_url": "https://api.github.com/users/baywet/followers",
      "following_url": "https://api.github.com/users/baywet/following{/other_user}",
      "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
      "organizations_url": "https://api.github.com/users/baywet/orgs",
      "repos_url": "https://api.github.com/users/baywet/repos",
      "events_url": "https://api.github.com/users/baywet/events{/privacy}",
      "received_events_url": "https://api.github.com/users/baywet/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "body": null,
    "created_at": "2025-02-27T18:42:18Z",
    "updated_at": "2025-02-27T18:42:18Z",
    "closed_at": null,
    "merged_at": null,
    "merge_commit_sha": "b15d65f26b9c208492b8cf0da9b3bed331960c1f",
    "assignee": null,
    "assignees": [

    ],
    "requested_reviewers": [

    ],
    "requested_teams": [

    ],
    "labels": [

    ],
    "milestone": null,
    "draft": false,
    "commits_url": "https://api.github.com/repos/baywet/demo/pulls/28/commits",
    "review_comments_url": "https://api.github.com/repos/baywet/demo/pulls/28/comments",
    "review_comment_url": "https://api.github.com/repos/baywet/demo/pulls/comments{/number}",
    "comments_url": "https://api.github.com/repos/baywet/demo/issues/28/comments",
    "statuses_url": "https://api.github.com/repos/baywet/demo/statuses/d7d1c9823338faaa890e53b53a44f4af90620fd9",
    "head": {
      "label": "baywet:baywet-patch-2",
      "ref": "baywet-patch-2",
      "sha": "d7d1c9823338faaa890e53b53a44f4af90620fd9",
      "user": {
        "login": "baywet",
        "id": 7905502,
        "node_id": "MDQ6VXNlcjc5MDU1MDI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/baywet",
        "html_url": "https://github.com/baywet",
        "followers_url": "https://api.github.com/users/baywet/followers",
        "following_url": "https://api.github.com/users/baywet/following{/other_user}",
        "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
        "organizations_url": "https://api.github.com/users/baywet/orgs",
        "repos_url": "https://api.github.com/users/baywet/repos",
        "events_url": "https://api.github.com/users/baywet/events{/privacy}",
        "received_events_url": "https://api.github.com/users/baywet/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "repo": {
        "id": 547309767,
        "node_id": "R_kgDOIJ9Ixw",
        "name": "demo",
        "full_name": "baywet/demo",
        "private": true,
        "owner": {
          "login": "baywet",
          "id": 7905502,
          "node_id": "MDQ6VXNlcjc5MDU1MDI=",
          "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/baywet",
          "html_url": "https://github.com/baywet",
          "followers_url": "https://api.github.com/users/baywet/followers",
          "following_url": "https://api.github.com/users/baywet/following{/other_user}",
          "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
          "organizations_url": "https://api.github.com/users/baywet/orgs",
          "repos_url": "https://api.github.com/users/baywet/repos",
          "events_url": "https://api.github.com/users/baywet/events{/privacy}",
          "received_events_url": "https://api.github.com/users/baywet/received_events",
          "type": "User",
          "user_view_type": "public",
          "site_admin": false
        },
        "html_url": "https://github.com/baywet/demo",
        "description": "demo repo with pull requests",
        "fork": false,
        "url": "https://api.github.com/repos/baywet/demo",
        "forks_url": "https://api.github.com/repos/baywet/demo/forks",
        "keys_url": "https://api.github.com/repos/baywet/demo/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/baywet/demo/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/baywet/demo/teams",
        "hooks_url": "https://api.github.com/repos/baywet/demo/hooks",
        "issue_events_url": "https://api.github.com/repos/baywet/demo/issues/events{/number}",
        "events_url": "https://api.github.com/repos/baywet/demo/events",
        "assignees_url": "https://api.github.com/repos/baywet/demo/assignees{/user}",
        "branches_url": "https://api.github.com/repos/baywet/demo/branches{/branch}",
        "tags_url": "https://api.github.com/repos/baywet/demo/tags",
        "blobs_url": "https://api.github.com/repos/baywet/demo/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/baywet/demo/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/baywet/demo/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/baywet/demo/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/baywet/demo/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/baywet/demo/languages",
        "stargazers_url": "https://api.github.com/repos/baywet/demo/stargazers",
        "contributors_url": "https://api.github.com/repos/baywet/demo/contributors",
        "subscribers_url": "https://api.github.com/repos/baywet/demo/subscribers",
        "subscription_url": "https://api.github.com/repos/baywet/demo/subscription",
        "commits_url": "https://api.github.com/repos/baywet/demo/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/baywet/demo/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/baywet/demo/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/baywet/demo/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/baywet/demo/contents/{+path}",
        "compare_url": "https://api.github.com/repos/baywet/demo/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/baywet/demo/merges",
        "archive_url": "https://api.github.com/repos/baywet/demo/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/baywet/demo/downloads",
        "issues_url": "https://api.github.com/repos/baywet/demo/issues{/number}",
        "pulls_url": "https://api.github.com/repos/baywet/demo/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/baywet/demo/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/baywet/demo/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/baywet/demo/labels{/name}",
        "releases_url": "https://api.github.com/repos/baywet/demo/releases{/id}",
        "deployments_url": "https://api.github.com/repos/baywet/demo/deployments",
        "created_at": "2022-10-07T13:24:14Z",
        "updated_at": "2022-10-07T13:24:14Z",
        "pushed_at": "2023-11-16T15:13:08Z",
        "git_url": "git://github.com/baywet/demo.git",
        "ssh_url": "git@github.com:baywet/demo.git",
        "clone_url": "https://github.com/baywet/demo.git",
        "svn_url": "https://github.com/baywet/demo",
        "homepage": null,
        "size": 6,
        "stargazers_count": 0,
        "watchers_count": 0,
        "language": null,
        "has_issues": true,
        "has_projects": true,
        "has_downloads": true,
        "has_wiki": false,
        "has_pages": false,
        "has_discussions": false,
        "forks_count": 0,
        "mirror_url": null,
        "archived": false,
        "disabled": false,
        "open_issues_count": 2,
        "license": {
          "key": "mit",
          "name": "MIT License",
          "spdx_id": "MIT",
          "url": "https://api.github.com/licenses/mit",
          "node_id": "MDc6TGljZW5zZTEz"
        },
        "allow_forking": true,
        "is_template": false,
        "web_commit_signoff_required": false,
        "topics": [

        ],
        "visibility": "private",
        "forks": 0,
        "open_issues": 2,
        "watchers": 0,
        "default_branch": "main"
      }
    },
    "base": {
      "label": "baywet:main",
      "ref": "main",
      "sha": "f7d7a4819612e805634b95cda6fcaeaccecfe910",
      "user": {
        "login": "baywet",
        "id": 7905502,
        "node_id": "MDQ6VXNlcjc5MDU1MDI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/baywet",
        "html_url": "https://github.com/baywet",
        "followers_url": "https://api.github.com/users/baywet/followers",
        "following_url": "https://api.github.com/users/baywet/following{/other_user}",
        "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
        "organizations_url": "https://api.github.com/users/baywet/orgs",
        "repos_url": "https://api.github.com/users/baywet/repos",
        "events_url": "https://api.github.com/users/baywet/events{/privacy}",
        "received_events_url": "https://api.github.com/users/baywet/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "repo": {
        "id": 547309767,
        "node_id": "R_kgDOIJ9Ixw",
        "name": "demo",
        "full_name": "baywet/demo",
        "private": true,
        "owner": {
          "login": "baywet",
          "id": 7905502,
          "node_id": "MDQ6VXNlcjc5MDU1MDI=",
          "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/baywet",
          "html_url": "https://github.com/baywet",
          "followers_url": "https://api.github.com/users/baywet/followers",
          "following_url": "https://api.github.com/users/baywet/following{/other_user}",
          "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
          "organizations_url": "https://api.github.com/users/baywet/orgs",
          "repos_url": "https://api.github.com/users/baywet/repos",
          "events_url": "https://api.github.com/users/baywet/events{/privacy}",
          "received_events_url": "https://api.github.com/users/baywet/received_events",
          "type": "User",
          "user_view_type": "public",
          "site_admin": false
        },
        "html_url": "https://github.com/baywet/demo",
        "description": "demo repo with pull requests",
        "fork": false,
        "url": "https://api.github.com/repos/baywet/demo",
        "forks_url": "https://api.github.com/repos/baywet/demo/forks",
        "keys_url": "https://api.github.com/repos/baywet/demo/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/baywet/demo/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/baywet/demo/teams",
        "hooks_url": "https://api.github.com/repos/baywet/demo/hooks",
        "issue_events_url": "https://api.github.com/repos/baywet/demo/issues/events{/number}",
        "events_url": "https://api.github.com/repos/baywet/demo/events",
        "assignees_url": "https://api.github.com/repos/baywet/demo/assignees{/user}",
        "branches_url": "https://api.github.com/repos/baywet/demo/branches{/branch}",
        "tags_url": "https://api.github.com/repos/baywet/demo/tags",
        "blobs_url": "https://api.github.com/repos/baywet/demo/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/baywet/demo/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/baywet/demo/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/baywet/demo/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/baywet/demo/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/baywet/demo/languages",
        "stargazers_url": "https://api.github.com/repos/baywet/demo/stargazers",
        "contributors_url": "https://api.github.com/repos/baywet/demo/contributors",
        "subscribers_url": "https://api.github.com/repos/baywet/demo/subscribers",
        "subscription_url": "https://api.github.com/repos/baywet/demo/subscription",
        "commits_url": "https://api.github.com/repos/baywet/demo/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/baywet/demo/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/baywet/demo/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/baywet/demo/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/baywet/demo/contents/{+path}",
        "compare_url": "https://api.github.com/repos/baywet/demo/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/baywet/demo/merges",
        "archive_url": "https://api.github.com/repos/baywet/demo/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/baywet/demo/downloads",
        "issues_url": "https://api.github.com/repos/baywet/demo/issues{/number}",
        "pulls_url": "https://api.github.com/repos/baywet/demo/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/baywet/demo/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/baywet/demo/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/baywet/demo/labels{/name}",
        "releases_url": "https://api.github.com/repos/baywet/demo/releases{/id}",
        "deployments_url": "https://api.github.com/repos/baywet/demo/deployments",
        "created_at": "2022-10-07T13:24:14Z",
        "updated_at": "2022-10-07T13:24:14Z",
        "pushed_at": "2023-11-16T15:13:08Z",
        "git_url": "git://github.com/baywet/demo.git",
        "ssh_url": "git@github.com:baywet/demo.git",
        "clone_url": "https://github.com/baywet/demo.git",
        "svn_url": "https://github.com/baywet/demo",
        "homepage": null,
        "size": 6,
        "stargazers_count": 0,
        "watchers_count": 0,
        "language": null,
        "has_issues": true,
        "has_projects": true,
        "has_downloads": true,
        "has_wiki": false,
        "has_pages": false,
        "has_discussions": false,
        "forks_count": 0,
        "mirror_url": null,
        "archived": false,
        "disabled": false,
        "open_issues_count": 2,
        "license": {
          "key": "mit",
          "name": "MIT License",
          "spdx_id": "MIT",
          "url": "https://api.github.com/licenses/mit",
          "node_id": "MDc6TGljZW5zZTEz"
        },
        "allow_forking": true,
        "is_template": false,
        "web_commit_signoff_required": false,
        "topics": [

        ],
        "visibility": "private",
        "forks": 0,
        "open_issues": 2,
        "watchers": 0,
        "default_branch": "main"
      }
    },
    "_links": {
      "self": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/28"
      },
      "html": {
        "href": "https://github.com/baywet/demo/pull/28"
      },
      "issue": {
        "href": "https://api.github.com/repos/baywet/demo/issues/28"
      },
      "comments": {
        "href": "https://api.github.com/repos/baywet/demo/issues/28/comments"
      },
      "review_comments": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/28/comments"
      },
      "review_comment": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/comments{/number}"
      },
      "commits": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/28/commits"
      },
      "statuses": {
        "href": "https://api.github.com/repos/baywet/demo/statuses/d7d1c9823338faaa890e53b53a44f4af90620fd9"
      }
    },
    "author_association": "OWNER",
    "auto_merge": null,
    "active_lock_reason": null
  },
  {
    "url": "https://api.github.com/repos/baywet/demo/pulls/27",
    "id": 2362919338,
    "node_id": "PR_kwDOIJ9Ix86M10mq",
    "html_url": "https://github.com/baywet/demo/pull/27",
    "diff_url": "https://github.com/baywet/demo/pull/27.diff",
    "patch_url": "https://github.com/baywet/demo/pull/27.patch",
    "issue_url": "https://api.github.com/repos/baywet/demo/issues/27",
    "number": 27,
    "state": "open",
    "locked": false,
    "title": "super duper doc update",
    "user": {
      "login": "baywet",
      "id": 7905502,
      "node_id": "MDQ6VXNlcjc5MDU1MDI=",
      "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/baywet",
      "html_url": "https://github.com/baywet",
      "followers_url": "https://api.github.com/users/baywet/followers",
      "following_url": "https://api.github.com/users/baywet/following{/other_user}",
      "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
      "organizations_url": "https://api.github.com/users/baywet/orgs",
      "repos_url": "https://api.github.com/users/baywet/repos",
      "events_url": "https://api.github.com/users/baywet/events{/privacy}",
      "received_events_url": "https://api.github.com/users/baywet/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "body": null,
    "created_at": "2025-02-27T18:42:00Z",
    "updated_at": "2025-02-27T18:42:00Z",
    "closed_at": null,
    "merged_at": null,
    "merge_commit_sha": "6a530a351df78c04a4cf585caeb5b2e140c7ffc1",
    "assignee": null,
    "assignees": [

    ],
    "requested_reviewers": [

    ],
    "requested_teams": [

    ],
    "labels": [

    ],
    "milestone": null,
    "draft": false,
    "commits_url": "https://api.github.com/repos/baywet/demo/pulls/27/commits",
    "review_comments_url": "https://api.github.com/repos/baywet/demo/pulls/27/comments",
    "review_comment_url": "https://api.github.com/repos/baywet/demo/pulls/comments{/number}",
    "comments_url": "https://api.github.com/repos/baywet/demo/issues/27/comments",
    "statuses_url": "https://api.github.com/repos/baywet/demo/statuses/f56fa5be336d736c210b685d6880bbbf3bcbd086",
    "head": {
      "label": "baywet:baywet-patch-1",
      "ref": "baywet-patch-1",
      "sha": "f56fa5be336d736c210b685d6880bbbf3bcbd086",
      "user": {
        "login": "baywet",
        "id": 7905502,
        "node_id": "MDQ6VXNlcjc5MDU1MDI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/baywet",
        "html_url": "https://github.com/baywet",
        "followers_url": "https://api.github.com/users/baywet/followers",
        "following_url": "https://api.github.com/users/baywet/following{/other_user}",
        "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
        "organizations_url": "https://api.github.com/users/baywet/orgs",
        "repos_url": "https://api.github.com/users/baywet/repos",
        "events_url": "https://api.github.com/users/baywet/events{/privacy}",
        "received_events_url": "https://api.github.com/users/baywet/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "repo": {
        "id": 547309767,
        "node_id": "R_kgDOIJ9Ixw",
        "name": "demo",
        "full_name": "baywet/demo",
        "private": true,
        "owner": {
          "login": "baywet",
          "id": 7905502,
          "node_id": "MDQ6VXNlcjc5MDU1MDI=",
          "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/baywet",
          "html_url": "https://github.com/baywet",
          "followers_url": "https://api.github.com/users/baywet/followers",
          "following_url": "https://api.github.com/users/baywet/following{/other_user}",
          "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
          "organizations_url": "https://api.github.com/users/baywet/orgs",
          "repos_url": "https://api.github.com/users/baywet/repos",
          "events_url": "https://api.github.com/users/baywet/events{/privacy}",
          "received_events_url": "https://api.github.com/users/baywet/received_events",
          "type": "User",
          "user_view_type": "public",
          "site_admin": false
        },
        "html_url": "https://github.com/baywet/demo",
        "description": "demo repo with pull requests",
        "fork": false,
        "url": "https://api.github.com/repos/baywet/demo",
        "forks_url": "https://api.github.com/repos/baywet/demo/forks",
        "keys_url": "https://api.github.com/repos/baywet/demo/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/baywet/demo/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/baywet/demo/teams",
        "hooks_url": "https://api.github.com/repos/baywet/demo/hooks",
        "issue_events_url": "https://api.github.com/repos/baywet/demo/issues/events{/number}",
        "events_url": "https://api.github.com/repos/baywet/demo/events",
        "assignees_url": "https://api.github.com/repos/baywet/demo/assignees{/user}",
        "branches_url": "https://api.github.com/repos/baywet/demo/branches{/branch}",
        "tags_url": "https://api.github.com/repos/baywet/demo/tags",
        "blobs_url": "https://api.github.com/repos/baywet/demo/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/baywet/demo/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/baywet/demo/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/baywet/demo/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/baywet/demo/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/baywet/demo/languages",
        "stargazers_url": "https://api.github.com/repos/baywet/demo/stargazers",
        "contributors_url": "https://api.github.com/repos/baywet/demo/contributors",
        "subscribers_url": "https://api.github.com/repos/baywet/demo/subscribers",
        "subscription_url": "https://api.github.com/repos/baywet/demo/subscription",
        "commits_url": "https://api.github.com/repos/baywet/demo/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/baywet/demo/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/baywet/demo/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/baywet/demo/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/baywet/demo/contents/{+path}",
        "compare_url": "https://api.github.com/repos/baywet/demo/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/baywet/demo/merges",
        "archive_url": "https://api.github.com/repos/baywet/demo/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/baywet/demo/downloads",
        "issues_url": "https://api.github.com/repos/baywet/demo/issues{/number}",
        "pulls_url": "https://api.github.com/repos/baywet/demo/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/baywet/demo/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/baywet/demo/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/baywet/demo/labels{/name}",
        "releases_url": "https://api.github.com/repos/baywet/demo/releases{/id}",
        "deployments_url": "https://api.github.com/repos/baywet/demo/deployments",
        "created_at": "2022-10-07T13:24:14Z",
        "updated_at": "2022-10-07T13:24:14Z",
        "pushed_at": "2023-11-16T15:13:08Z",
        "git_url": "git://github.com/baywet/demo.git",
        "ssh_url": "git@github.com:baywet/demo.git",
        "clone_url": "https://github.com/baywet/demo.git",
        "svn_url": "https://github.com/baywet/demo",
        "homepage": null,
        "size": 6,
        "stargazers_count": 0,
        "watchers_count": 0,
        "language": null,
        "has_issues": true,
        "has_projects": true,
        "has_downloads": true,
        "has_wiki": false,
        "has_pages": false,
        "has_discussions": false,
        "forks_count": 0,
        "mirror_url": null,
        "archived": false,
        "disabled": false,
        "open_issues_count": 2,
        "license": {
          "key": "mit",
          "name": "MIT License",
          "spdx_id": "MIT",
          "url": "https://api.github.com/licenses/mit",
          "node_id": "MDc6TGljZW5zZTEz"
        },
        "allow_forking": true,
        "is_template": false,
        "web_commit_signoff_required": false,
        "topics": [

        ],
        "visibility": "private",
        "forks": 0,
        "open_issues": 2,
        "watchers": 0,
        "default_branch": "main"
      }
    },
    "base": {
      "label": "baywet:main",
      "ref": "main",
      "sha": "f7d7a4819612e805634b95cda6fcaeaccecfe910",
      "user": {
        "login": "baywet",
        "id": 7905502,
        "node_id": "MDQ6VXNlcjc5MDU1MDI=",
        "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/baywet",
        "html_url": "https://github.com/baywet",
        "followers_url": "https://api.github.com/users/baywet/followers",
        "following_url": "https://api.github.com/users/baywet/following{/other_user}",
        "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
        "organizations_url": "https://api.github.com/users/baywet/orgs",
        "repos_url": "https://api.github.com/users/baywet/repos",
        "events_url": "https://api.github.com/users/baywet/events{/privacy}",
        "received_events_url": "https://api.github.com/users/baywet/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "repo": {
        "id": 547309767,
        "node_id": "R_kgDOIJ9Ixw",
        "name": "demo",
        "full_name": "baywet/demo",
        "private": true,
        "owner": {
          "login": "baywet",
          "id": 7905502,
          "node_id": "MDQ6VXNlcjc5MDU1MDI=",
          "avatar_url": "https://avatars.githubusercontent.com/u/7905502?v=4",
          "gravatar_id": "",
          "url": "https://api.github.com/users/baywet",
          "html_url": "https://github.com/baywet",
          "followers_url": "https://api.github.com/users/baywet/followers",
          "following_url": "https://api.github.com/users/baywet/following{/other_user}",
          "gists_url": "https://api.github.com/users/baywet/gists{/gist_id}",
          "starred_url": "https://api.github.com/users/baywet/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/baywet/subscriptions",
          "organizations_url": "https://api.github.com/users/baywet/orgs",
          "repos_url": "https://api.github.com/users/baywet/repos",
          "events_url": "https://api.github.com/users/baywet/events{/privacy}",
          "received_events_url": "https://api.github.com/users/baywet/received_events",
          "type": "User",
          "user_view_type": "public",
          "site_admin": false
        },
        "html_url": "https://github.com/baywet/demo",
        "description": "demo repo with pull requests",
        "fork": false,
        "url": "https://api.github.com/repos/baywet/demo",
        "forks_url": "https://api.github.com/repos/baywet/demo/forks",
        "keys_url": "https://api.github.com/repos/baywet/demo/keys{/key_id}",
        "collaborators_url": "https://api.github.com/repos/baywet/demo/collaborators{/collaborator}",
        "teams_url": "https://api.github.com/repos/baywet/demo/teams",
        "hooks_url": "https://api.github.com/repos/baywet/demo/hooks",
        "issue_events_url": "https://api.github.com/repos/baywet/demo/issues/events{/number}",
        "events_url": "https://api.github.com/repos/baywet/demo/events",
        "assignees_url": "https://api.github.com/repos/baywet/demo/assignees{/user}",
        "branches_url": "https://api.github.com/repos/baywet/demo/branches{/branch}",
        "tags_url": "https://api.github.com/repos/baywet/demo/tags",
        "blobs_url": "https://api.github.com/repos/baywet/demo/git/blobs{/sha}",
        "git_tags_url": "https://api.github.com/repos/baywet/demo/git/tags{/sha}",
        "git_refs_url": "https://api.github.com/repos/baywet/demo/git/refs{/sha}",
        "trees_url": "https://api.github.com/repos/baywet/demo/git/trees{/sha}",
        "statuses_url": "https://api.github.com/repos/baywet/demo/statuses/{sha}",
        "languages_url": "https://api.github.com/repos/baywet/demo/languages",
        "stargazers_url": "https://api.github.com/repos/baywet/demo/stargazers",
        "contributors_url": "https://api.github.com/repos/baywet/demo/contributors",
        "subscribers_url": "https://api.github.com/repos/baywet/demo/subscribers",
        "subscription_url": "https://api.github.com/repos/baywet/demo/subscription",
        "commits_url": "https://api.github.com/repos/baywet/demo/commits{/sha}",
        "git_commits_url": "https://api.github.com/repos/baywet/demo/git/commits{/sha}",
        "comments_url": "https://api.github.com/repos/baywet/demo/comments{/number}",
        "issue_comment_url": "https://api.github.com/repos/baywet/demo/issues/comments{/number}",
        "contents_url": "https://api.github.com/repos/baywet/demo/contents/{+path}",
        "compare_url": "https://api.github.com/repos/baywet/demo/compare/{base}...{head}",
        "merges_url": "https://api.github.com/repos/baywet/demo/merges",
        "archive_url": "https://api.github.com/repos/baywet/demo/{archive_format}{/ref}",
        "downloads_url": "https://api.github.com/repos/baywet/demo/downloads",
        "issues_url": "https://api.github.com/repos/baywet/demo/issues{/number}",
        "pulls_url": "https://api.github.com/repos/baywet/demo/pulls{/number}",
        "milestones_url": "https://api.github.com/repos/baywet/demo/milestones{/number}",
        "notifications_url": "https://api.github.com/repos/baywet/demo/notifications{?since,all,participating}",
        "labels_url": "https://api.github.com/repos/baywet/demo/labels{/name}",
        "releases_url": "https://api.github.com/repos/baywet/demo/releases{/id}",
        "deployments_url": "https://api.github.com/repos/baywet/demo/deployments",
        "created_at": "2022-10-07T13:24:14Z",
        "updated_at": "2022-10-07T13:24:14Z",
        "pushed_at": "2023-11-16T15:13:08Z",
        "git_url": "git://github.com/baywet/demo.git",
        "ssh_url": "git@github.com:baywet/demo.git",
        "clone_url": "https://github.com/baywet/demo.git",
        "svn_url": "https://github.com/baywet/demo",
        "homepage": null,
        "size": 6,
        "stargazers_count": 0,
        "watchers_count": 0,
        "language": null,
        "has_issues": true,
        "has_projects": true,
        "has_downloads": true,
        "has_wiki": false,
        "has_pages": false,
        "has_discussions": false,
        "forks_count": 0,
        "mirror_url": null,
        "archived": false,
        "disabled": false,
        "open_issues_count": 2,
        "license": {
          "key": "mit",
          "name": "MIT License",
          "spdx_id": "MIT",
          "url": "https://api.github.com/licenses/mit",
          "node_id": "MDc6TGljZW5zZTEz"
        },
        "allow_forking": true,
        "is_template": false,
        "web_commit_signoff_required": false,
        "topics": [

        ],
        "visibility": "private",
        "forks": 0,
        "open_issues": 2,
        "watchers": 0,
        "default_branch": "main"
      }
    },
    "_links": {
      "self": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/27"
      },
      "html": {
        "href": "https://github.com/baywet/demo/pull/27"
      },
      "issue": {
        "href": "https://api.github.com/repos/baywet/demo/issues/27"
      },
      "comments": {
        "href": "https://api.github.com/repos/baywet/demo/issues/27/comments"
      },
      "review_comments": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/27/comments"
      },
      "review_comment": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/comments{/number}"
      },
      "commits": {
        "href": "https://api.github.com/repos/baywet/demo/pulls/27/commits"
      },
      "statuses": {
        "href": "https://api.github.com/repos/baywet/demo/statuses/f56fa5be336d736c210b685d6880bbbf3bcbd086"
      }
    },
    "author_association": "OWNER",
    "auto_merge": null,
    "active_lock_reason": null
  }
]

@baywet baywet changed the title [Schema Inaccuracy] pull request id documented as int but is string [Schema Inaccuracy] pull request id documented as int but missing format int64 Feb 28, 2025
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