Skip to content

Incorrect handling of prefixed_collapsible_map parameters #107

@maylonpedroso

Description

@maylonpedroso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowNice-to-have; can waitstatus: help wantedrequesting help from the communitytriage queueIssue is in our internal backlog. It's either a bug or a feature enhancement.type: community enhancementfeature request not on Twilio's roadmap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions