mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Update the template_schema to include a parent_folder_id.
When creating the Tempalte from_json, the folder is passed in. Since some validation should done, as in the folder exists and is for the same service, the folder is passed through to the Tempalte.from_json method. When the template is persisted so is the relationship to folders. TODO: If the folder is invalid a specific message should be returned.
This commit is contained in:
@@ -16,7 +16,8 @@ post_create_template_schema = {
|
||||
"process_type": {"emun": TEMPLATE_PROCESS_TYPE},
|
||||
"content": {"type": "string"},
|
||||
"subject": {"type": "string"},
|
||||
"created_by": uuid
|
||||
"created_by": uuid,
|
||||
"parent_folder_id": uuid
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user