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_PROCESS_TYPE, TEMPLATE_TYPES
from app.models import TEMPLATE_PROCESS_TYPE, TemplateType
from app.schema_validation.definitions import nullable_uuid, uuid
post_create_template_schema = {
@@ -8,7 +8,7 @@ post_create_template_schema = {
"title": "payload for POST /service/<uuid:service_id>/template",
"properties": {
"name": {"type": "string"},
"template_type": {"enum": TEMPLATE_TYPES},
"template_type": {"enum": [e.value for e in TemplateType]},
"service": uuid,
"process_type": {"enum": TEMPLATE_PROCESS_TYPE},
"content": {"type": "string"},
@@ -29,7 +29,7 @@ post_update_template_schema = {
"properties": {
"id": uuid,
"name": {"type": "string"},
"template_type": {"enum": TEMPLATE_TYPES},
"template_type": {"enum": [e.value for e in TemplateType]},
"service": uuid,
"process_type": {"enum": TEMPLATE_PROCESS_TYPE},
"content": {"type": "string"},