Issue Summary
API only allows strings for substitution values. This library will allow substitutions of non-strings and will fail on send attempt.
Steps to Reproduce
message = Mail()
personalization = Personalization()
personalization.add_to(Email('test@email.com'))
personalization.add_substitution(Substitution('-test-, 1))
message.add_personalization(personalization)
sg.client.mail.send.post(request_body=message.get()) 400 returned because of int in substitution json
Should an error be thrown when attempting to create a non-string substitution?
Issue Summary
API only allows strings for substitution values. This library will allow substitutions of non-strings and will fail on send attempt.
Steps to Reproduce
message = Mail()personalization = Personalization()personalization.add_to(Email('test@email.com'))personalization.add_substitution(Substitution('-test-, 1))message.add_personalization(personalization)sg.client.mail.send.post(request_body=message.get())400 returned because of int in substitution jsonShould an error be thrown when attempting to create a non-string substitution?