kernelci / kernelci/kernelci-api

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

オープン
#276 コメント 0 件 リアクション 0 件 担当者 1 名 @JenySadadia が担当を希望しています GitHub で見る
主要言語
Python
スター
10
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。