Files
notifications-api/app/service/service_callback_api_schema.py
Kenneth Kehl 1ecb747c6d reformat
2023-08-29 14:54:30 -07:00

28 lines
919 B
Python

from app.schema_validation.definitions import https_url, uuid
create_service_callback_api_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST service callback/inbound api schema",
"type": "object",
"title": "Create service callback/inbound api",
"properties": {
"url": https_url,
"bearer_token": {"type": "string", "minLength": 10},
"updated_by_id": uuid,
},
"required": ["url", "bearer_token", "updated_by_id"],
}
update_service_callback_api_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST service callback/inbound api schema",
"type": "object",
"title": "Create service callback/inbound api",
"properties": {
"url": https_url,
"bearer_token": {"type": "string", "minLength": 10},
"updated_by_id": uuid,
},
"required": ["updated_by_id"],
}