From bf6f0ba532db07c5a5e6b32e859542b8b6be2cd8 Mon Sep 17 00:00:00 2001 From: Avishka-Shamendra Date: Thu, 2 Nov 2023 11:08:39 +0530 Subject: [PATCH] Update tenant-config-schema with workflows config --- .../tenant/tenant-config-schema.json | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/resources/tenant/tenant-config-schema.json b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/resources/tenant/tenant-config-schema.json index 15a16d8cb013..dacf39c66230 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/resources/tenant/tenant-config-schema.json +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/resources/tenant/tenant-config-schema.json @@ -1337,10 +1337,42 @@ } } }, - "required": ["States"] + "required": [ + "States" + ] + }, + "Workflows": { + "type": "object", + "default": {}, + "title": "Configure different workflows using this configuration.", + "additionalProperties": { + "$ref": "#/definitions/workflow" + } }, "LinterCustomRules": { - "required": ["rules"] + "required": [ + "rules" + ] + } + }, + "definitions": { + "workflow": { + "type": "object", + "title": "Define the corresponding workflow configuration", + "properties": { + "Enabled": { + "type": "boolean", + "title": "Set this as true to enable the approval/custom workflow" + }, + "Class": { + "type": "string", + "title": "For a custom flow, define the full class path here" + }, + "Properties": { + "type": "object", + "title": "Define any class-specific properties here" + } + } } }, "additionalProperties": true