[Schema Inaccuracy] Add `format: int64` to organization `private_repos`
@nickfloyd ci sta già lavorando.
Dal 6/11/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
}
}
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 1.6k
- Fork
- 342
- Merge medio
- 2h 23m
- PR unite (30g)
- 57
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/rest-api-description
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
github/rest-api-description#7220 ·
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
github/rest-api-description#7201 ·
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/rest-api-description#7163 ·
-
Runner deprecations: registration_deprecates_at is declared on the response but never returned Apertafeature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
github/rest-api-description#7162 ·
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
github/rest-api-description#7135 ·