Use existing postage format for validation

Also adds explicit test for checking of postage
This commit is contained in:
David McDonald
2019-10-25 16:13:22 +01:00
parent d1195dfd5a
commit 714c349efd
2 changed files with 23 additions and 10 deletions

View File

@@ -4,11 +4,10 @@ send_pdf_letter_request = {
"type": "object",
"title": "Send an uploaded pdf letter",
"properties": {
"postage": {"enum": ["first", "second"]},
"postage": {"type": "string", "format": "postage"},
"filename": {"type": "string"},
"created_by": {"type": "string"},
"file_id": {"type": "string"},
},
"required": ["postage", "filename", "created_by", "file_id"]
}