Getting NotificationStatus implemented everywhere.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-18 10:28:15 -05:00
parent a177042e77
commit 69a9accfca
16 changed files with 179 additions and 285 deletions

View File

@@ -1,5 +1,4 @@
from app.enums import TemplateType
from app.models import NOTIFICATION_STATUS_TYPES
from app.enums import TemplateType, NotificationStatus
from app.schema_validation.definitions import personalisation, uuid
template = {
@@ -81,7 +80,7 @@ get_notifications_request = {
"type": "object",
"properties": {
"reference": {"type": "string"},
"status": {"type": "array", "items": {"enum": NOTIFICATION_STATUS_TYPES}},
"status": {"type": "array", "items": {"enum": [e.value for e in NotificationStatus]}},
"template_type": {
"type": "array",
"items": {"enum": [e.value for e in TemplateType]},