feat: Python SDK update for version 25.0.0 by ChiragAgg5k · Pull Request #159 · appwrite/sdk-for-python · GitHub
Skip to content

feat: Python SDK update for version 25.0.0 - #159

Closed
ChiragAgg5k wants to merge 2 commits into
mainfrom
dev
Closed

ChiragAgg5k wants to merge 2 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

This PR contains updates to the Python SDK for version 25.0.0.

@hansi-codes

hansi-codes Bot commented Oct 12, 2026

Copy link
Copy Markdown

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Tier A · See the inline comments. Summary

if 'migrationId' not in data and 'migrationid' not in data:
data['migrationId'] = ''
if 'options' not in data:
data['options'] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use mapping defaults for dict-valued fields

When options is missing, this validator inserts [] even though the field is now Dict[str, Any], so Pydantic raises a validation error instead of filling the missing field. The same list default is used for dict-valued fields such as Message.data, Provider.credentials, Project.onboarding, PasskeyChallenge.publicKey, InsightCTA.params, and WAF rule config.

Prompt To Fix With AI
This is a comment left during a code review.
Path: appwrite/models/backup_restoration.py
Line: 71

Comment:
**Use mapping defaults for dict-valued fields**

When `options` is missing, this validator inserts `[]` even though the field is now `Dict[str, Any]`, so Pydantic raises a validation error instead of filling the missing field. The same list default is used for dict-valued fields such as `Message.data`, `Provider.credentials`, `Project.onboarding`, `PasskeyChallenge.publicKey`, `InsightCTA.params`, and WAF rule `config`.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟡 Minor · bug · Reply if this doesn't apply.

@ChiragAgg5k

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant