{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "endpoint-schema-export", "title": "Exported Endpoint Triggers Schema", "description": "Schema for an exported Endpoint Trigger", "type": "object", "additionalProperties": false, "required": [ "name", "type", "enabled", "actionType", "actionId", "verb", "routeName" ], "properties": { "_id": { "$ref": "common-ops-schema#/definitions/ObjectId" }, "created": { "$ref": "common-ops-schema#/definitions/ISODate" }, "createdBy": { "type": "string" }, "lastUpdated": { "$ref": "common-ops-schema#/definitions/ISODate" }, "lastUpdatedBy": { "type": "string" }, "name": { "$ref": "common-ops-schema#/definitions/name" }, "enabled": { "$ref": "common-ops-schema#/definitions/enabled" }, "actionType": { "$ref": "common-ops-schema#/definitions/actionType" }, "actionId": { "$ref": "common-ops-schema#/definitions/ObjectId" }, "type": { "const": "endpoint" }, "verb": { "description": "http verb in uppercase", "type": "string", "enum": [ "POST" ] }, "routeName": { "description": "the user defined route name", "type": "string", "pattern": "^([a-zA-Z0-9_-]+)$" }, "schema": { "oneOf": [ { "$ref": "http://json-schema.org/draft-07/schema#" }, { "type": "null" } ] }, "jst": { "type": [ "object", "null" ] } } }