Make email_from and subject required attributes of the email_content schema.

Update the format_checkers to raise the specific exception that why the validator can handle multiple messages.
Which led to a refactor of build_error_message.
This commit is contained in:
Rebecca Law
2016-11-16 17:25:00 +00:00
parent 68537d960a
commit df62be421f
3 changed files with 36 additions and 18 deletions

View File

@@ -80,7 +80,7 @@ email_content = {
"body": {"type": "string"},
"subject": {"type": "string"}
},
"required": ["body"]
"required": ["body", "from_email", "subject"]
}
post_email_response = {