mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Validate content length on broadcast API
The maximum content count of a broadcast varies depending on its encoding, so we can’t simply validate it against a schema. This commit moves to using the validation from `notifications-utils`, and raising a custom error response.
This commit is contained in:
@@ -40,7 +40,6 @@ post_broadcast_schema = {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 1395,
|
||||
},
|
||||
"web": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user