Update get_template_by_id_response & post_template_preview_response schemas

To check the format of postage. Neither of these two schemas are used
for validating - they seem to be added for reference.
This commit is contained in:
Katie Smith
2020-06-10 16:57:19 +01:00
parent 72be10c681
commit 98a69684c5
2 changed files with 4 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ get_template_by_id_response = {
"body": {"type": "string"},
"subject": {"type": ["string", "null"]},
"name": {"type": "string"},
"postage": {"type": "string"}
"postage": {"type": "string", "format": "postage"}
},
"required": ["id", "type", "created_at", "updated_at", "version", "created_by", "body", "name"],
}
@@ -65,7 +65,7 @@ post_template_preview_response = {
"version": {"type": "integer"},
"body": {"type": "string"},
"subject": {"type": ["string", "null"]},
"postage": {"type": "string"},
"postage": {"type": "string", "format": "postage"},
"html": {"type": ["string", "null"]},
},
"required": ["id", "type", "version", "body"],