[Schema Inaccuracy] Repository Advisory's author and publisher fields
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- openapi
- Área
- api
Línea de trabajo
Comienza localizando el esquema #/components/schemas/repository-advisory en la descripción de OpenAPI e inspeccionando los campos author y publisher. Comprueba cómo interpretan las convenciones de esquemas del proyecto y las herramientas relevantes de OpenAPI sus declaraciones allOf y type nullable. La tarea estará terminada cuando ambos campos tengan una representación inequívoca y válida que admita el caso de uso de generación de clientes descrito.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Schema Inaccuracy
Currently, the #/components/schemas/repository-advisory schema has two fields with interesting types:
author:
readOnly: true
description: The author of the advisory.
allOf:
- "$ref": "#/components/schemas/simple-user"
type:
- 'null'
publisher:
readOnly: true
description: The publisher of the advisory.
allOf:
- "$ref": "#/components/schemas/simple-user"
type:
- 'null'
This appears to be somewhat contradictory, though it's always possible I'm misunderstanding the intent and the spec. The impact is that I'm currently unable to generate client code using a custom code generator (which, of course, might be wrong).
Expected
I believe the contents of the allOf property should be part of type, creating a nullable union:
author:
readOnly: true
description: The author of the advisory.
type:
- "$ref": "#/components/schemas/simple-user"
- 'null'
publisher:
readOnly: true
description: The publisher of the advisory.
type:
- "$ref": "#/components/schemas/simple-user"
- 'null'
Reproduction Steps
This issue arose while generating code from the description, so no API endpoint calls are involved. The code generator is language-specific, so it's unlikely to be useful during reproduction.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 1.6k
- Forks
- 342
- Merge medio
- 2 h 23 min
- PR fusionados (30 d)
- 57
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 85/100
github/rest-api-description#7220 ·
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/rest-api-description#7201 ·
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/rest-api-description#7163 ·
-
Runner deprecations: registration_deprecates_at is declared on the response but never returned Abiertofeature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
github/rest-api-description#7162 ·
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
github/rest-api-description#7135 ·
Todos los issues de github/rest-api-description
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
speaches-ai/speaches#678 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Abiertobug ecr
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
conda-forge/spacy-feedstock#177 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100