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

オープン
#134 コメント 2 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appwrite/sdk-for-python のほかの issue

appwrite/sdk-for-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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