Made enums.py for all the enums to avoid cyclic imports.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-10 12:32:25 -05:00
parent ac9591ec7c
commit 3982f061b6
31 changed files with 149 additions and 155 deletions

View File

@@ -1,4 +1,4 @@
from app.models import NotificationType
from app.enums import NotificationType
add_service_data_retention_request = {
"$schema": "http://json-schema.org/draft-07/schema#",
@@ -7,7 +7,9 @@ add_service_data_retention_request = {
"type": "object",
"properties": {
"days_of_retention": {"type": "integer"},
"notification_type": {"enum": [NotificationType.SMS.value, NotificationType.EMAIL.value]},
"notification_type": {
"enum": [NotificationType.SMS.value, NotificationType.EMAIL.value]
},
},
"required": ["days_of_retention", "notification_type"],
}