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

fix: request validator logic #173

Merged
merged 9 commits into from
Jul 11, 2022
Merged

fix: request validator logic #173

merged 9 commits into from
Jul 11, 2022

Conversation

claudiachua
Copy link
Contributor

@claudiachua claudiachua commented Jul 8, 2022

Fix #139 #137
Internal Jira Link: DI-1324

@sonarcloud
Copy link

sonarcloud bot commented Jul 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@claudiachua claudiachua changed the base branch from main to 1.0.0-rc July 8, 2022 21:27
@claudiachua claudiachua changed the title fix: request validator params sorting fix: request validator logic Jul 11, 2022
README.md Outdated
)

func main() {
// For this example: TWILIO_AUTH_TOKEN := "12345"
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't see the significance of this comment, should rather change to:
"You can find your Auth Token at twilio.com/console"

Copy link
Contributor Author

@claudiachua claudiachua Jul 11, 2022

Choose a reason for hiding this comment

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

For the validation in line 466/474 to work (to return True) in the given example, the Auth_Token must be 12345. I could add in another line to include where they can find their AuthToken

Copy link
Contributor

@rakatyal rakatyal left a comment

Choose a reason for hiding this comment

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

LGTM!

@claudiachua claudiachua merged commit ab5de51 into 1.0.0-rc Jul 11, 2022
@claudiachua claudiachua deleted the DI-1324 branch July 11, 2022 20:36
rakatyal added a commit that referenced this pull request Sep 28, 2022
* docs: prep for RC release

* [Librarian] Regenerated @ a300182f597e1050bc57f110ad212d20083b58e4

* Release v1.0.0-rc.1

* test: edit regex for rc naming for useragent tests (#169)

* [Librarian] Regenerated @ b1da2810ac9def6e9282b52c1aa794ebefde64e0

* Release v1.0.0-rc.2

* fix: request validator logic (#173)

* [DI-1324] fixed request validation logic

* fix: useragent regrex unit test for RC branch (#175)

 * [DI-2164] modify unit test for RC branch

* [Librarian] Regenerated @ 85d420e85461ff1892d00b72852ff7e138514cbc

* Release v1.0.0-rc.3

* fix: Support older Go version (#176)

* release fix to support older go versions

* [Librarian] Regenerated @ 85d420e85461ff1892d00b72852ff7e138514cbc

* Release v1.0.0-rc.4

* docs: mark latest 'Verify' change as breaking

* [Librarian] Regenerated @ 54f479b2e9ba3ddad939d35c077bf4875093bb86

* Release v1.0.0-rc.5

* fix: correct the docker tag syntax for RCs

* test: add datarace detection for go (#179)

* test: Include a cluster test for Request Validator (#178)

* test: Include a cluster test for Request Validator

* test: fix for linting failures and using the proper PR branch (#180)

* [Librarian] Regenerated @ 9e43c4b1c21f11427158cfc8a409854c419cd158

* Release v1.0.0-rc.6

* test: add test-docker rule (#182)

* test: add test-docker rule

* Adding support for go 1.19 (#185)

* [Librarian] Regenerated @ 9419ae9766a1f3421c32308ef0a457ca0c0248fd

* Release v1.0.0-rc.7

* feat: add twiml support (#186)

Co-authored-by: cchua <cchua@twilio.com>

* chore: Changes to TwiML (#187)

* Change Nouns to InnerElements
* Modify functions to recieve/return both response and error

* [Librarian] Regenerated @ ade563fc57a4dee06c74dd93e9921a155b4c5a44

* Release v1.0.0-rc.8

* test: Added tests for twiml package (#188)

* docs: Add upgrade guide for 1.x.x (#189)

* Renaming openapi to twilioApi in Readme examples (#190)

* docs: update upgrade guide date

Co-authored-by: childish-sambino <sharrison@twilio.com>
Co-authored-by: Twilio <team_interfaces+github@twilio.com>
Co-authored-by: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com>
Co-authored-by: Claudia Chua <43133161+claudiachua@users.noreply.github.com>
Co-authored-by: Bilal Boussayoud <bboussayoud@twilio.com>
Co-authored-by: cchua <cchua@twilio.com>
Co-authored-by: Hunga1 <awhung99@gmail.com>
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.

The request validator key sorting is broken
2 participants