Skip to content

Type Exception Handling for mail/send API call (fix for #510)#518

Closed
aleien wants to merge 2 commits intosendgrid:mainfrom
aleien:master
Closed

Type Exception Handling for mail/send API call (fix for #510)#518
aleien wants to merge 2 commits intosendgrid:mainfrom
aleien:master

Conversation

@aleien
Copy link
Copy Markdown

@aleien aleien commented Oct 28, 2018

Fixes

Resolves #510

Checklist

  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the [Contribution Guide] and my PR follows them.
  • I updated my branch with the master branch.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation about the functionality in the appropriate .md file
  • I have added in line documentation to the code I modified

Short description of what this PR does:

  • Added runtime check for requests sent to mail/send endpoint. If field value type is incorrect or missing while required user will get appropriate error and it's path. I.e., if user sends send_at in personalizations param as string instead of error, he will see message:
    Field: personalizations.send_at contents must be of type Integer
  • Added tests for covering checks

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Oct 28, 2018
@aleien aleien force-pushed the master branch 2 times, most recently from 2240678 to 4c7fe98 Compare October 28, 2018 21:50
@thinkingserious thinkingserious changed the base branch from master to main July 28, 2020 14:33
@eshanholtz
Copy link
Copy Markdown
Contributor

Hi @aleien, thanks for the contribution! Some of this repo has been refactored since this PR was opened. Specifically, much of the logic in SendGrid.java has been moved to BaseInterface.java. Will you resolve merge conflict with main?

@eshanholtz eshanholtz added status: waiting for feedback waiting for feedback from the submitter and removed status: code review request requesting a community code review or review from Twilio status: hacktoberfest approved labels Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

difficulty: hard fix is hard in difficulty status: waiting for feedback waiting for feedback from the submitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type Exception Handling for the Mail Helper

4 participants