From 0617ddf86e0526f577416f65836957eb3e16d13b Mon Sep 17 00:00:00 2001 From: Avishka-Shamendra Date: Wed, 8 Nov 2023 12:56:45 +0530 Subject: [PATCH] Update allowed workflows in tenant-config-schema --- .../tenant/tenant-config-schema.json | 46 +++++++++---------- 1 file changed, 22 insertions(+), 24 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 dacf39c66230..9e1597002e93 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 @@ -1344,10 +1344,28 @@ "Workflows": { "type": "object", "default": {}, - "title": "Configure different workflows using this configuration.", - "additionalProperties": { - "$ref": "#/definitions/workflow" - } + "title": "Configure different workflows using this configuration", + "patternProperties": { + "^(ApplicationCreation|ApplicationDeletion|ProductionApplicationRegistration|SandboxApplicationRegistration|SubscriptionCreation|SubscriptionUpdate|SubscriptionDeletion|UserSignUp|APIStateChange|APIProductStateChange)$": { + "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": false }, "LinterCustomRules": { "required": [ @@ -1355,25 +1373,5 @@ ] } }, - "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 } \ No newline at end of file