docs consolidation work
This commit is contained in:
22
docs/modules/notify/schemas/template.schema.json
Normal file
22
docs/modules/notify/schemas/template.schema.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://stella-ops.org/notify/schemas/template.schema.json",
|
||||
"title": "Notify Template",
|
||||
"type": "object",
|
||||
"required": ["schema_version", "tenant_id", "template_id", "channel", "locale", "body"],
|
||||
"properties": {
|
||||
"schema_version": { "type": "string", "pattern": "^v[0-9]+\\.[0-9]+$" },
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"template_id": { "type": "string", "pattern": "^[A-Z0-9_-]{4,64}$" },
|
||||
"channel": { "type": "string", "enum": ["email", "slack", "teams", "webhook", "sms"] },
|
||||
"locale": { "type": "string", "pattern": "^[a-z]{2}(-[A-Z]{2})?$" },
|
||||
"subject": { "type": "string" },
|
||||
"body": { "type": "string" },
|
||||
"helpers": { "type": "object", "additionalProperties": { "type": "string" } },
|
||||
"merge_fields": { "type": "array", "items": { "type": "string" } },
|
||||
"preview_hash": { "type": "string" },
|
||||
"created_at": { "type": "string", "format": "date-time" },
|
||||
"updated_at": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user