kernelci / kernelci/kernelci-api
Investigate `fastapi-pagination` package for getting response without alias
- Ngôn ngữ chính
- Python
- Star
- 10
- Fork
- 21
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.