🚀 Feature: Python SDK does not validate row data against table schema before insertion
維護者通常 1 天內回覆
評估
研究方向
先找出 Python SDK 的 create_row 入口點,以及它所使用的資料表結構定義。確認必要欄位、資料型別和預設值是如何表示的,接著定義無效資料列的驗證行為和 Python 原生錯誤,同時保留伺服器端驗證。
由索引模型根據 Issue 內容生成。
描述
🔖 Feature description
The Python SDK allows defining table schemas (required fields, data types, defaults), but create_row does not perform any client-side validation against this schema.
As a result, issues like missing required fields or incorrect data types are only caught server-side after the API request, leading to delayed and less clear errors.
🎤 Pitch
The Python SDK already has full knowledge of the table schema at creation time (required fields, data types, defaults), but this information is not used when inserting rows. This leads to avoidable runtime errors that are only discovered after a network request.
-
Adding optional client-side validation would:
-
Catch simple mistakes (missing required fields, wrong data types) immediately
-
Provide clearer, Python-native error messages
-
Reduce unnecessary API calls and debugging time
-
Improve onboarding and overall developer experience
This does not replace server-side validation, but complements it by shifting basic checks closer to the developer.
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
- 主要語言
- Python
- 星號
- 265
- 分支
- 68
- 平均合併
- 5 小時 2 分鐘
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
appwrite/sdk-for-python 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 35/100
appwrite/sdk-for-python#174 ·
維護者通常 1 天內回覆
-
Idea: Make SDK asynchronous.可能重新可做 @stnguyen90 於 1299 天前認領,目前沒有進行中的 PR。 未關閉
appwrite/sdk-for-python#26 · 16 則留言 · 5 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 appwrite/sdk-for-python 的全部 Issue
相似的 Issue
-
breaking change
難度 1/5 1 小時以內 新手友好度 84/100
it-at-m/lhm_actions#441 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
TigreGotico/euskaphone#68 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
-
bug triage
難度 2/5 1-3 小時 新手友好度 78/100
ultralytics/ultralytics#27258 ·
維護者通常 1 天內回覆