Updating from major version 3.x.x to 4.x.x Breaks Data Contracts #960
Labels
status: waiting for feedback
waiting for feedback from the submitter
type: question
question directed at the library
When upgrading from twilio v3.64.0 to twilio v4.13.0, our team encountered what may have been an API-breaking change introduced by a change in generator usage. What we observed is a change in how the properties on the
ParticipantListInstanceCreateOptions
data contract are represented. In v3.64.0, these properties were represented using nested dot notation, whereas in v4.13.0, these properties are represented in bracket notation. In particular, themessageBinding
property contains nested properties - these were fundamentally changed between these two library versions. See below for the declaration details ofParticipantListInstanceCreateOptions
from the untared packages:In twilio@3.64.0 /lib/rest/converstaions/v1/conversation/participant.d.ts
In twilio@4.64.0 /lib/rest/converstaions/v1/conversation/participant.d.ts
We heavily use Twilio's SDKs and services to create, manage, and store chat and communication data between one or more participants in our application. This change came as a surprise, as it was not represented (to the best of our knowledge) in 3.x to 4.x upgrade guide. Are there any other locations with similar changes that we should know of?
Exception/Log
Unless one is directly importing
ParticipantListInstanceCreateOptions
from the twilio library, one will receive the following errorTechnical details:
The text was updated successfully, but these errors were encountered: