You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice how number_type is snake_case whereas phoneNumberPrices is camelCase, this is incorrect as the SDK expects camelCase property names as shown below.
Please either update to correctly camelCase all property names, or update PricingV1PhoneNumberPhoneNumberCountryInstancePhoneNumberPrices to correctly reflect the snake_case response to allow for correct property access in Typescript.
e.g. response.phoneNumberPrices[0].numberType <-- this is currently not possible with the current typings
The text was updated successfully, but these errors were encountered:
When using the Twilio pricing api the response returns
snake_case
properties.However when using the Twilio Node SDK (v1) endpoint as such
A mixed casing response is received, properties as shown below.
Notice how
number_type
is snake_case whereasphoneNumberPrices
is camelCase, this is incorrect as the SDK expects camelCase property names as shown below.twilio-node/src/rest/pricing/v1/phoneNumber/country.ts
Lines 23 to 27 in a23ee16
Please either update to correctly camelCase all property names, or update
PricingV1PhoneNumberPhoneNumberCountryInstancePhoneNumberPrices
to correctly reflect the snake_case response to allow for correct property access in Typescript.e.g.
response.phoneNumberPrices[0].numberType
<-- this is currently not possible with the current typingsThe text was updated successfully, but these errors were encountered: