mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
28 lines
916 B
Python
28 lines
916 B
Python
from app.enums import NotificationType
|
|
|
|
add_service_data_retention_request = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "POST service data retention schema",
|
|
"title": "Add service data retention for notification type api",
|
|
"type": "object",
|
|
"properties": {
|
|
"days_of_retention": {"type": "integer"},
|
|
"notification_type": {
|
|
"enum": [NotificationType.SMS.value, NotificationType.EMAIL.value]
|
|
},
|
|
},
|
|
"required": ["days_of_retention", "notification_type"],
|
|
}
|
|
|
|
|
|
update_service_data_retention_request = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "POST service data retention schema",
|
|
"title": "Update service data retention for notification type api",
|
|
"type": "object",
|
|
"properties": {
|
|
"days_of_retention": {"type": "integer"},
|
|
},
|
|
"required": ["days_of_retention"],
|
|
}
|