Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert boolean request parameter values to strings #30

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

childish-sambino
Copy link
Contributor

No description provided.

});

expect(response).to.eql({ verified: 'true' });
expect(httpClient.lastRequest.formData).to.eql({ EmergencyEnabled: 'true' });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should EmergencyEnabled be emergencyEnabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it gets PascalCased by the API client, which is what the API endpoint is expecting: https://www.twilio.com/docs/usage/api/address#create-an-address-resource

@childish-sambino childish-sambino merged commit 17a0da2 into master Jul 9, 2019
@childish-sambino childish-sambino deleted the bool-params branch July 9, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants