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

Đang mở
#134 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@pathariyashashi đang làm issue này rồi.

Từ ngày 16/10/2026.

  • #162 của @GauravPatil2515 — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
databases

Hướng nghiên cứu

Bắt đầu bằng cách xác định entry point create_row của Python SDK và các định nghĩa schema của bảng mà nó sử dụng. Xác định cách các trường bắt buộc, kiểu dữ liệu và giá trị mặc định được biểu diễn, sau đó định nghĩa hành vi validation và các lỗi native của Python cho những row không hợp lệ, đồng thời vẫn giữ nguyên validation phía server.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

🔖 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?
Ngôn ngữ chính
Python
Star
265
Fork
68
Merge trung bình
5 giờ 2 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của appwrite/sdk-for-python

Tất cả issue của appwrite/sdk-for-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.