Throw error if postage parameter for precompiled POST request incorrect

This commit is contained in:
Pea Tyczynska
2019-01-10 16:04:06 +00:00
parent 56bae2b077
commit 5a1094b6fd
3 changed files with 28 additions and 1 deletions

View File

@@ -240,7 +240,7 @@ post_precompiled_letter_request = {
"properties": {
"reference": {"type": "string"},
"content": {"type": "string"},
"postage": {"type": "string"}
"postage": {"type": "string", "format": "postage"}
},
"required": ["reference", "content"],
"additionalProperties": False