mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-03 06:50:46 -05:00
23 lines
685 B
Python
23 lines
685 B
Python
|
|
from app.schema_validation.definitions import nullable_uuid
|
||
|
|
|
||
|
|
post_create_template_folder_schema = {
|
||
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||
|
|
"description": "POST schema for getting template_folder",
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"name": {"type": "string", "minLength": 1},
|
||
|
|
"parent_id": nullable_uuid
|
||
|
|
},
|
||
|
|
"required": ["name", "parent_id"]
|
||
|
|
}
|
||
|
|
|
||
|
|
post_rename_template_folder_schema = {
|
||
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||
|
|
"description": "POST schema for renaming template_folder",
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"name": {"type": "string", "minLength": 1},
|
||
|
|
},
|
||
|
|
"required": ["name"]
|
||
|
|
}
|