Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Version does not get set correctly

Abierto
#682 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
ruby

Línea de trabajo

Start in lib/grape-swagger.rb at lines 58–60 and reproduce the documented add_swagger_documentation version: '1.2.3' call. Inspect the JSON returned by /swagger_doc and verify that the configured version appears there when the fix is complete.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

According to the documentation I should be able to call the add_swagger_documentation method with a version like so:

add_swagger_documentation version: '1.2.3'

However, when I do this, my version is not set in the JSON response for /swagger_doc. I believe the offending line is here: https://github.com/ruby-grape/grape-swagger/blob/master/lib/grape-swagger.rb#L58-L60

Basically, it's check if version is set but that is wrong because it will never set the options key for it. Sort of odd I think.

Lenguaje dominante
Ruby
Estrellas
1.1k
Forks
478
Merge medio
7 h 25 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby-grape/grape-swagger

Todos los issues de ruby-grape/grape-swagger

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.