For the post_sms_response and post_email_response the reference property is always present but the value can be null.

Added a test for an empty reference.
Remove datetime format on the created_at attribute of a notification, it is not needed.
This commit is contained in:
Rebecca Law
2016-11-21 17:32:36 +00:00
parent 1345c94f4b
commit 46beece158
4 changed files with 17 additions and 13 deletions

View File

@@ -47,7 +47,7 @@ post_sms_response = {
"title": "response v2/notifications/sms",
"properties": {
"id": uuid,
"reference": {"type": "string"},
"reference": {"type": ["string", "null"]},
"content": sms_content,
"uri": {"type": "string"},
"template": template
@@ -90,7 +90,7 @@ post_email_response = {
"title": "response v2/notifications/email",
"properties": {
"id": uuid,
"reference": {"type": "string"},
"reference": {"type": ["string", "null"]},
"content": email_content,
"uri": {"type": "string"},
"template": template