Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.1.0 - Improve Schema Definitions for Messages, Contacts, and Webhook Payloads #9

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

shiningflash
Copy link
Owner

Summary

This pull request updates the schema definitions for messages, contacts, and webhook payloads to align with Pydantic v2.x best practices.

Changes:

  • Updated messages.py schema with enhanced field validation and examples.
  • Refactored contacts.py schema for improved consistency and clarity.
  • Enhanced webhook_payload schema to support datetime fields and better alignment with API payload structure.
  • Update the tests accordingly.

Benefits:

  • Improved maintainability and readability.
  • Better integration with Pydantic v2.x standards.
  • Added comprehensive examples for API documentation.

Improvements: Improve Schema Definitions for Messages, Contacts, and Webhook Payloads
Copy link

github-actions bot commented Dec 2, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/sdk
   __init__.py00100% 
   client.py390100% 
src/sdk/features
   __init__.py00100% 
   contacts.py380100% 
   messages.py3022 93%
src/sdk/schemas
   __init__.py00100% 
   contacts.py2633 88%
   messages.py2722 93%
src/sdk/utils
   __init__.py00100% 
   exceptions.py5299 83%
   logger.py220100% 
   requests.py1544 73%
   retry.py2111 95%
   validators.py6222 97%
src/server
   __init__.py00100% 
   app.py2533 88%
   schemas.py80100% 
TOTAL3652693% 

Tests Skipped Failures Errors Time
56 0 💤 0 ❌ 0 🔥 6.834s ⏱️

@shiningflash shiningflash merged commit 2931583 into main Dec 2, 2024
1 check passed
@shiningflash shiningflash changed the title Release: Improve Schema Definitions for Messages, Contacts, and Webhook Payloads Release v1.1.0 - Improve Schema Definitions for Messages, Contacts, and Webhook Payloads Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant