mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 15:52:21 -05:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
from app.schema_validation.definitions import nullable_uuid, uuid
|
|
|
|
post_create_template_folder_schema = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "POST schema for getting template_folder",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": "string", "minLength": 1},
|
|
"parent_id": nullable_uuid,
|
|
"created_by_id": uuid,
|
|
},
|
|
"required": ["name", "parent_id"],
|
|
}
|
|
|
|
post_update_template_folder_schema = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "POST schema for updating template_folder",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": "string", "minLength": 1},
|
|
"users_with_permission": {"type": "array", "items": uuid},
|
|
},
|
|
"required": ["name"],
|
|
}
|
|
|
|
post_move_template_folder_schema = {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "POST schema for renaming template_folder",
|
|
"type": "object",
|
|
"properties": {
|
|
"templates": {"type": "array", "items": uuid},
|
|
"folders": {"type": "array", "items": uuid},
|
|
},
|
|
"required": ["templates", "folders"],
|
|
}
|