Skip to content

fix: Add TEL phone integration type #44

@jhoffman-tl

Description

@jhoffman-tl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions