From 3b9950e91c86dec9a3f0ab9c4cb785cdce36dd08 Mon Sep 17 00:00:00 2001 From: Rosen Silva Date: Sun, 22 Sep 2024 21:51:57 +0530 Subject: [PATCH] add media type support to redis HGet --- .connector-store/meta.json | 2 +- pom.xml | 2 +- src/main/resources/hashes/hGet.xml | 46 +++++++++++++++++++++------ src/main/resources/uischema/hGet.json | 16 ++++++++++ 4 files changed, 54 insertions(+), 12 deletions(-) diff --git a/.connector-store/meta.json b/.connector-store/meta.json index 18e03a5..1b6a45d 100644 --- a/.connector-store/meta.json +++ b/.connector-store/meta.json @@ -10,7 +10,7 @@ ], "releases": [ { - "tagName": "v3.1.1", + "tagName": "v3.1.2", "products": [ "MI 1.2.0", "MI 4.x.x" diff --git a/pom.xml b/pom.xml index a3f68b1..6cb7cd6 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ org.wso2.carbon.connector org.wso2.carbon.connector.redis jar - 3.1.2-SNAPSHOT + 3.1.3-SNAPSHOT WSO2 Carbon - Mediation Library Connector For Redis http://wso2.org diff --git a/src/main/resources/hashes/hGet.xml b/src/main/resources/hashes/hGet.xml index 32ece6c..5504225 100644 --- a/src/main/resources/hashes/hGet.xml +++ b/src/main/resources/hashes/hGet.xml @@ -20,16 +20,42 @@ \ No newline at end of file diff --git a/src/main/resources/uischema/hGet.json b/src/main/resources/uischema/hGet.json index 6475df7..8f43342 100644 --- a/src/main/resources/uischema/hGet.json +++ b/src/main/resources/uischema/hGet.json @@ -50,6 +50,22 @@ "required": "true", "helpTip": "Redis Field" } + }, + { + "type": "attribute", + "value": { + "name": "mediaType", + "displayName": "Media Type", + "inputType": "comboOrExpression", + "comboValues": [ + "text", + "json", + "xml" + ], + "defaultValue": "text", + "required": "false", + "helpTip": "Media type of the redis data" + } } ] }