mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Use existing postage format for validation
Also adds explicit test for checking of postage
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user