{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://flowable.com/types.json", "type": "array", "title": "The Design Types Schema", "description": "This is a helper resource, not officially supported", "items": { "minItems": 1, "$ref": "#/definitions/type" }, "definitions": { "type": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "title": "ID", "description": "The id of the function delegate. If not provided it will be computed from the prefix and name" }, "methods": { "type": "array", "items": { "$ref": "#/definitions/method" } }, "fields": { "type": "array", "items": { "$ref": "#/definitions/field" } } } }, "method": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "title": "Name", "description": "The name of the method" }, "label": { "type": "string", "title": "Label", "description": "The label for the method. Used for the UI in Design." }, "description": { "type": "string", "title": "description", "description": "The description for the method. Used for the UI in Design." }, "parameters": { "type": "array", "items": { "$ref": "#/definitions/parameter" } } } }, "parameter": { "type": "object", "properties": { "allowedTypes": { "type": "array", "title": "Allowed types", "description": "The allowed types of the parameter", "minItems": 1, "items": [ { "type": "string", "enum": [ "string", "number", "any", "array", "date", "collection" ] } ] }, "allowedVariableScopes": { "type": "array", "title": "Allowed variable scopes", "description": "The allowed variable scopes of the parameter", "items": [ { "type": "string", "enum": [ "parent", "root" ] } ] }, "varArgs": { "type": "boolean", "title": "Var Args", "description": "Whether the parameter is a varags parameter" } } }, "field": { "type": "object", "required": [ "name", "type" ], "properties": { "name": { "type": "string", "title": "Name", "description": "The name of the field" }, "type": { "type": "string", "title": "Type", "description": "The type of the field. It can also be a reference to another defined type." } } } } }