[Schema Inaccuracy] Add `format: int64` to organization `private_repos`
@nickfloyd がすでに取り組んでいます。
2025年11月6日 から。
評価
この issue はまだ評価されていません。
説明
Schema Inaccuracy
The organization-full -> plan -> private_repos key is defined as type: integer, which is interpreted by many codegen tools as int32. However, if you have an enterprise plan (or at least in our case) the # of private repos returned from the API is 999999999999, which causes a runtime error.
com.fasterxml.jackson.databind.JsonMappingException: Numeric value (999999999999) out of range of int (-2147483648 - 2147483647)
Schema
organization-full:
title: Organization Full
description: Organization Full
type: object
properties:
plan:
type: object
properties:
private_repos:
type: integer
Expected
The schema includes a [format: int64 type definition] https://swagger.io/docs/specification/data-models/data-types/#numbers).
Reproduction Steps
From an Enterprise plan on GitHub Enterprise Server 3.1.12:
$ curl --request GET \
--url https://gh-enterprise.com/api/v3/orgs/ORG_NAME \
--header 'Accept: application/vnd.github.v3+json'
{
// other properties
"plan": {
"name": "enterprise",
"space": 123456789,
"private_repos": 999999999999,
"filled_seats": 18,
"seats": 0
}
}
- 主要言語
- 言語のデータがありません
- スター
- 1.6k
- フォーク
- 342
- 平均マージ
- 3時間 33分
- マージ済み PR(30日)
- 51
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/rest-api-description のほかの issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
github/rest-api-description#7201 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/rest-api-description#7163 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/rest-api-description#7162 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/rest-api-description#7135 ·
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
github/rest-api-description#7111 · コメント 1 件 ·