Investigate `fastapi-pagination` package for getting response without alias
@JenySadadia 已經在處理了。
開始於 2023年6月20日。
評估
這個 Issue 還沒有評估資料。
描述
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.
- 主要語言
- Python
- 星號
- 10
- 分支
- 21
- 平均合併
- 22 分鐘
- 30 天內合併 PR
- 1
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
kernelci/kernelci-api 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 45/100
kernelci/kernelci-api#706 ·
-
Components/Maestro/API/Local instance says GET /latest/ should return some JSON, but it doesn't可能重新可做 關聯的 PR 已關閉且未合併。 未關閉documentation
難度 3/5 1-2 天 新手友好度 35/100
kernelci/kernelci-api#632 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 20/100
kernelci/kernelci-api#629 ·
-
難度 4/5 3-5 天 新手友好度 35/100
kernelci/kernelci-api#608 ·
-
難度 3/5 1-2 天 新手友好度 35/100
kernelci/kernelci-api#597 · 2 則留言 ·
查看 kernelci/kernelci-api 的全部 Issue
相似的 Issue
-
documentation
難度 1/5 1 小時以內 新手友好度 65/100
ansys/pydpf-core#3547 ·
維護者通常 1 天內回覆
-
core
難度 2/5 1-3 小時 新手友好度 70/100
vectorize-io/hindsight#5457 ·
維護者通常 1 天內回覆
-
[Bug]: LangChain drops OpenAI Responses text blocks from session recording可能已有人在做 @ktz03 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
volcengine/OpenViking#5806 ·
維護者通常 1 天內回覆
-
HTML: <template> content is extracted as document text可能已有人在做 @ryanmeowy 今天認領。 未關閉bug html
難度 1/5 1 小時以內 新手友好度 82/100
docling-project/docling#4714 · 2 則留言 ·
維護者通常 1 天內回覆
-
APIv2 event data accepts a non-string reply and a NaN upper_bound可能已有人在做 @awss1i 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
freedomofpress/securedrop#7946 · 1 則留言 ·
維護者通常 2 天內回覆