2020-03-12 13:53:57 +00:00
|
|
|
from app.schema_validation.definitions import uuid
|
|
|
|
|
|
|
|
|
|
create_service_contact_list_schema = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2020-03-12 13:53:57 +00:00
|
|
|
"description": "POST create service contact list schema",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Create service contact list",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": uuid,
|
|
|
|
|
"original_file_name": {"type": "string"},
|
|
|
|
|
"row_count": {"type": "integer"},
|
|
|
|
|
"template_type": {"enum": ['email', 'sms']},
|
|
|
|
|
"created_by": uuid
|
|
|
|
|
},
|
|
|
|
|
"required": ["id", "original_file_name", "row_count", "template_type", "created_by"]
|
|
|
|
|
}
|