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
[...]
"latitude": {
"description": "The latitude of this phone number's location",
"nullable": true,
"type": "number"
},
[...]
"longitude": {
"description": "The longitude of this phone number's location",
"nullable": true,
"type": "number"
},
[...]
I think this might be what's causing errors in the Go SDK, e.g. in twilio-go:
json: cannot unmarshal string into Go struct field ApiV2010AvailablePhoneNumberLocal.available_phone_numbers.latitude of type float32
Ahoy! Thank you for opening your first issue here! If this request is regarding troubleshooting your application, please reach out to the support team via https://support.twilio.com.
Hi @dansimau! Thanks for bringing this to our attention! This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. Internal Reference
According to the docs here:
https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource
The latitude and longitude fields are strings, e.g.:
However, the OpenAPI spec specifies them as type
number
:https://raw.githubusercontent.com/twilio/twilio-oai/main/spec/json/twilio_api_v2010.json
I think this might be what's causing errors in the Go SDK, e.g. in twilio-go:
See: twilio/twilio-go#120
The text was updated successfully, but these errors were encountered: