Description
The members list endpoint fails with a validation error when a member has phoneIntegrationType set to 'TEL':
pydantic_core._pydantic_core.ValidationError: 1 validation error for Member
phoneIntegrationType
Input should be 'TAPI', 'SKYPE' or 'NONE' [type=literal_error, input_value='TEL', input_type=str]
Root Cause:
The Member model's phoneIntegrationType field only allows 'TAPI', 'SKYPE', and 'NONE', but the API returns 'TEL' as a valid value.
Fix
Add 'TEL' to the allowed Literal values for phoneIntegrationType:
|
phone_integration_type: Annotated[ |
|
Literal["TAPI", "SKYPE", "NONE"] | None, Field(alias="phoneIntegrationType") |
|
phone_integration_type: Annotated[ |
|
Literal["TAPI", "SKYPE", "NONE"] | None, Field(alias="phoneIntegrationType") |
Note: I actively use this project and would like to contribute fixes like this one. Could I be added as a contributor to the repository?
Description
The members list endpoint fails with a validation error when a member has phoneIntegrationType set to 'TEL':
Fix
Add 'TEL' to the allowed Literal values for phoneIntegrationType:
pyconnectwise/src/pyconnectwise/models/manage/__init__.py
Lines 9944 to 9945 in 5ea14c1
pyconnectwise/src/pyconnectwise/models/manage/__init__.py
Lines 10347 to 10348 in 5ea14c1
Note: I actively use this project and would like to contribute fixes like this one. Could I be added as a contributor to the repository?