Issue Summary
Incorrect handling of PREFIXED_COLLAPSIBLE_MAP. The CLI is not decomposing the parameter value in the expected parameters to send in the request.
Steps to Reproduce
Running:
twilio api:lookups:v1:phone-numbers:fetch \
--phone-number +16502530000 \
--add-ons payfone_tcpa_compliance \
--add-ons-data "{\"payfone_tcpa_compliance.RightPartyContactedDate\": \"20160101\"}"
Should make a GET request to:
https://lookups.twilio.com/v1/PhoneNumbers/+16502530000?AddOns=payfone_tcpa_compliance&AddOns.payfone_tcpa_compliance.RightPartyContactedDate=20160101
but is doing:
https://lookups.twilio.com/v1/PhoneNumbers/+16502530000?AddOns=payfone_tcpa_compliance&AddOnsData={%22payfone_tcpa_compliance.RightPartyContactedDate%22:%2220160101%22}
Technical details:
- twilio-cli Version: 1.4.1 linux-x64
- Node.js Version: v8.13.0
Issue Summary
Incorrect handling of
PREFIXED_COLLAPSIBLE_MAP. The CLI is not decomposing the parameter value in the expected parameters to send in the request.Steps to Reproduce
Running:
Should make a GET request to:
but is doing:
Technical details: