Open TheCycoONE opened 2 years ago
Thanks for raising this @TheCycoONE and being patient! To parse API responses twilio-cli uses generated Open API Spec which is based upon api-definitions. I have cut out a ticket internally to address the case-inconsistency in top level and lower level keys. +1s and Pull Requests will help us move it up in our backlog.
Issue Summary
When the json output mode is used, top level keys are converted from snake case to camel case. Lower level keys are not modified.
Steps to Reproduce
curl https://trusthub.twilio.com/v1/CustomerProfiles/BUba422222159fd9b24ec6ab18f391650d/Evaluations/EL97cbd107e00509fdb56c0bc30fec6991 -u '<redacted>'
twilio api:trusthub:v1:customer-profiles:evaluations:fetch --sid=EL97cbd107e00509fdb56c0bc30fec6991 --customer-profile-sid=BUba422222159fd9b24ec6ab18f391650d -o json --profile=brand-test
Example
From twilio cli
From CURL
Example from twilio cli of nested field:
Technical details: