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

Investigate `fastapi-pagination` package for getting response without alias

Abierto
#276 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@JenySadadia ya está trabajando en esto.

Desde el 20/6/2023.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

In case we use pagination for getting objects (e.g. nodes or regressions) from API, we need to manually serialize the response model to not have alias at the moment.
Please see the detailed issue here: https://github.com/kernelci/kernelci-api/issues/246

FastAPI provides response_model_by_alias flag and we can set it to False in the endpoint handler to fix this issue.
However, this won't work in the case of paginated response.
So, We have fixed this issue in API. PR for the reference: https://github.com/kernelci/kernelci-api/pull/254

Investigate if we can fix the fastapi-pagination package for it to eliminate the requirement to serialize the response manually.

Lenguaje dominante
Python
Estrellas
10
Forks
21
Merge medio
22 min
PR fusionados (30 d)
1

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 kernelci/kernelci-api

Todos los issues de kernelci/kernelci-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.