[Schema Inaccuracy] Artifact.Id is missing `int64` format
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- openapi
- Área
- api
Línea de trabajo
Abre api.github.com.json y localiza la propiedad id del objeto artifact. Añade el formato int64 mostrado en el issue y, después, verifica que el esquema haga que los clientes generados utilicen un deserializador de 64 bits en lugar de un deserializador de enteros.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Schema Inaccuracy
When I use Kiota to generate clients for the GitHub API, I get a deserialization error when retreiving artifacts through the API. The value for the Artifact.Id is simply too large and exceeds an Int32.
Expected
It should not result in deserialization errors.
Problem
In the api.github.com.json file, the Actor.Id is defined as:
"artifact": {
"title": "Artifact",
"description": "An artifact",
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 5
},
This makes Kiota belive that it can use an integer deserializer:
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "archive_download_url", n => { ArchiveDownloadUrl = n.GetStringValue(); } },
{ "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } },
{ "digest", n => { Digest = n.GetStringValue(); } },
{ "expired", n => { Expired = n.GetBoolValue(); } },
{ "expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } },
---> { "id", n => { Id = n.GetIntValue(); } },
{ "name", n => { Name = n.GetStringValue(); } },
{ "node_id", n => { NodeId = n.GetStringValue(); } },
{ "size_in_bytes", n => { SizeInBytes = n.GetIntValue(); } },
{ "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } },
{ "url", n => { Url = n.GetStringValue(); } },
{ "workflow_run", n => { WorkflowRun = n.GetObjectValue<global::GitPackagesManager.ApiClient.Models.Artifact_workflow_run>(global::GitPackagesManager.ApiClient.Models.Artifact_workflow_run.CreateFromDiscriminatorValue); } },
};
}
If the Artifact.Id had been defined as
"artifact": {
"title": "Artifact",
"description": "An artifact",
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 5,
"format": "int64"
},
the 'Id' line in the generated GetFieldDeserializers() method would use n.GetLongValue() instead of n.GetIntValue()
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 1.6k
- Forks
- 345
- Merge medio
- 6 h
- PR fusionados (30 d)
- 82
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/rest-api-description
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/rest-api-description#7246 ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
github/rest-api-description#7220 ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/rest-api-description#7201 ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/rest-api-description#7163 ·
Los mantenedores suelen responder en 1 día
-
Runner deprecations: registration_deprecates_at is declared on the response but never returnedAbiertofeature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
github/rest-api-description#7162 ·
Los mantenedores suelen responder en 1 día
Todos los issues de github/rest-api-description
Issues similares
-
Change output crossing a compactsize boundary leaves the fee slightly below the requested feerateAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bitcoindevkit/bdk_wallet#578 ·
Los mantenedores suelen responder en 8 días
-
Hydraulic gas_pressure omits the reference-density offset, breaking roundtrips and the pressure joinAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ethereum/execution-apis#915 ·
Los mantenedores suelen responder en 1 día
-
enhancement via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
pingdotgg/t3code#14816 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
rename config parameterAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
OpenConext/OpenConext-access#1015 ·
Los mantenedores suelen responder en 1 día