mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Allow for scheduled_for to be null in schema
This commit is contained in:
@@ -113,7 +113,7 @@ post_sms_request = {
|
||||
"phone_number": {"type": "string", "format": "phone_number"},
|
||||
"template_id": uuid,
|
||||
"personalisation": personalisation,
|
||||
"scheduled_for": {"type": "string", "format": "datetime"}
|
||||
"scheduled_for": {"type": ["string", "null"], "format": "datetime"}
|
||||
},
|
||||
"required": ["phone_number", "template_id"]
|
||||
}
|
||||
@@ -141,7 +141,7 @@ post_sms_response = {
|
||||
"content": sms_content,
|
||||
"uri": {"type": "string", "format": "uri"},
|
||||
"template": template,
|
||||
"scheduled_for": {"type": "string"}
|
||||
"scheduled_for": {"type": ["string", "null"]}
|
||||
},
|
||||
"required": ["id", "content", "uri", "template"]
|
||||
}
|
||||
@@ -157,7 +157,7 @@ post_email_request = {
|
||||
"email_address": {"type": "string", "format": "email_address"},
|
||||
"template_id": uuid,
|
||||
"personalisation": personalisation,
|
||||
"scheduled_for": {"type": "string", "format": "datetime"}
|
||||
"scheduled_for": {"type": ["string", "null"], "format": "datetime"}
|
||||
},
|
||||
"required": ["email_address", "template_id"]
|
||||
}
|
||||
@@ -186,7 +186,7 @@ post_email_response = {
|
||||
"content": email_content,
|
||||
"uri": {"type": "string", "format": "uri"},
|
||||
"template": template,
|
||||
"scheduled_for": {"type": "string"}
|
||||
"scheduled_for": {"type": ["string", "null"]}
|
||||
},
|
||||
"required": ["id", "content", "uri", "template"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user