twilio / twilio-node

Node.js helper library
MIT License
1.37k stars 495 forks source link

fix: corrected options.validate to default true #1022

Closed tiwarishubham635 closed 1 month ago

tiwarishubham635 commented 1 month ago

Fixes #1021

Earlier if options is not passed in webhooks, it used to create options = {validate: true} but if options is passed and validate flag is missing (which expects that it will be taken true as it is the default value mentioned in the comments above), then it did not validate. Made a fix for the same.

Checklist

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud