More cleanup.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-10 09:48:32 -05:00
parent df10c4693c
commit 908d695b54
9 changed files with 23 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
from app.models import TEMPLATE_TYPES
from app.models import TemplateType
from app.schema_validation.definitions import personalisation, uuid
get_template_by_id_request = {
@@ -17,7 +17,7 @@ get_template_by_id_response = {
"title": "reponse v2/template",
"properties": {
"id": uuid,
"type": {"enum": TEMPLATE_TYPES},
"type": {"enum": [e.value for e in TemplateType]},
"created_at": {
"format": "date-time",
"type": "string",
@@ -62,7 +62,7 @@ post_template_preview_response = {
"title": "reponse v2/template/{id}/preview",
"properties": {
"id": uuid,
"type": {"enum": TEMPLATE_TYPES},
"type": {"enum": [e.value for e in TemplateType]},
"version": {"type": "integer"},
"body": {"type": "string"},
"subject": {"type": ["string", "null"]},