56 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "$id": "https://stella-ops.org/schemas/notify/notify-template@1.json",
 | 
						|
  "$schema": "http://json-schema.org/draft-07/schema#",
 | 
						|
  "title": "Notify Template",
 | 
						|
  "type": "object",
 | 
						|
  "required": [
 | 
						|
    "schemaVersion",
 | 
						|
    "templateId",
 | 
						|
    "tenantId",
 | 
						|
    "channelType",
 | 
						|
    "key",
 | 
						|
    "locale",
 | 
						|
    "body",
 | 
						|
    "renderMode",
 | 
						|
    "format",
 | 
						|
    "createdAt",
 | 
						|
    "updatedAt"
 | 
						|
  ],
 | 
						|
  "properties": {
 | 
						|
    "schemaVersion": {"type": "string", "const": "notify.template@1"},
 | 
						|
    "templateId": {"type": "string"},
 | 
						|
    "tenantId": {"type": "string"},
 | 
						|
    "channelType": {
 | 
						|
      "type": "string",
 | 
						|
      "enum": ["slack", "teams", "email", "webhook", "custom"]
 | 
						|
    },
 | 
						|
    "key": {"type": "string"},
 | 
						|
    "locale": {"type": "string"},
 | 
						|
    "body": {"type": "string"},
 | 
						|
    "description": {"type": "string"},
 | 
						|
    "renderMode": {
 | 
						|
      "type": "string",
 | 
						|
      "enum": ["markdown", "html", "adaptiveCard", "plainText", "json"]
 | 
						|
    },
 | 
						|
    "format": {
 | 
						|
      "type": "string",
 | 
						|
      "enum": ["slack", "teams", "email", "webhook", "json"]
 | 
						|
    },
 | 
						|
    "metadata": {"$ref": "#/$defs/stringMap"},
 | 
						|
    "createdBy": {"type": "string"},
 | 
						|
    "createdAt": {"type": "string", "format": "date-time"},
 | 
						|
    "updatedBy": {"type": "string"},
 | 
						|
    "updatedAt": {"type": "string", "format": "date-time"}
 | 
						|
  },
 | 
						|
  "additionalProperties": false,
 | 
						|
  "$defs": {
 | 
						|
    "stringMap": {
 | 
						|
      "type": "object",
 | 
						|
      "patternProperties": {
 | 
						|
        ".*": {"type": "string"}
 | 
						|
      },
 | 
						|
      "additionalProperties": false
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 |