🚀 Feature: Python SDK does not validate row data against table schema before insertion

未關閉
#134 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@pathariyashashi 已經在處理了。

開始於 2026年10月16日。

  • #162 來自 @GauravPatil2515 —— 已關閉,未合併

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
databases

研究方向

先找出 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?
主要語言
Python
星號
265
分支
68
平均合併
5 小時 2 分鐘
30 天內合併 PR
8

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

appwrite/sdk-for-python 的其他 Issue

查看 appwrite/sdk-for-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。