Conversation
Development: - Implemented Pydantic models for API responses. - Added Pydantic models for query parameters. Enhancements to Input and Output Handling: - Added functionality to convert unknown fields from snake_case to camelCase and vice versa when handling extra fields in requests and responses. - Improved handling for related request and response models, including: - Optional parameters support. - Management of unexpected parameters in server responses. - Processing of nested data structures with Pydantic to ensure proper validation - Handling of datetime fields. - Used TypedDict for dictionary-like parameter handling to improve DX Testing: - Developed unit tests for all models. - Created unit tests for API endpoints. Signed-off-by: Jessica Matsuoka <jessica.akemi.matsuoka@sinch.com>
- Refactor models to remove redundancy - Mapping approach for VoiceConfiguration to dynamically select the correct model Signed-off-by: Jessica Matsuoka <jessica.akemi.matsuoka@sinch.com>
DEVEXP-710: Implement Models and Apis for "Available Numbers"
- Implemented the automatic and manual pagination of elements. This iterator allows users to navigate through multiple pages while abstracting away the underlying HTTP requests. Signed-off-by: Jessica Matsuoka <jessica.akemi.matsuoka@sinch.com>
DEVEXP-733: Auto pagination of elements
For the moment, the E2E tests steps have been implemented using the Sync SinchClient. As the Async SinchClient uses another HTTP library and the pagination uses a different implementation, it's necessary to run the E2E tests suite in both ways. Signed-off-by: Jessica Matsuoka <jessica.akemi.matsuoka@sinch.com>
DEVEXP 757: [Python E2E] Run tests with Sync and Async clients
- Update unit tests to validate all credentials - Update README to explain which credentials must be set for each API Signed-off-by: Jessica Matsuoka <jessica.akemi.matsuoka@sinch.com>
DEVEXP-758: SinchClient Configuration
Signed-off-by: Jessica Matsuoka <jessica.akemi.matsuoka@sinch.com>
Co-authored-by: Antoine SEIN <142824551+asein-sinch@users.noreply.github.com>
Code review2 issues found: Issue 1: Missing space in error messagesFile: Python implicit string concatenation produces malformed error messages. The two adjacent string literals have no space between them: # Current (broken):
"Example: SinchClient(..., sms_region='eu')"
"or set it via sinch_client.configuration.sms_region. "
# Produces: "...sms_region='eu')or set it via..."Fix: Add a leading space to the second string: "Example: SinchClient(..., sms_region='eu')"
" or set it via sinch_client.configuration.sms_region. "Same fix needed in Issue 2:
|
No description provided.