diff --git a/src/configurations/destinations/http/ui-config.json b/src/configurations/destinations/http/ui-config.json index 0d6a5506d..c8cfcf114 100644 --- a/src/configurations/destinations/http/ui-config.json +++ b/src/configurations/destinations/http/ui-config.json @@ -526,18 +526,21 @@ "to": "$." } ], - "jsonPathValidation": true, "columns": [ { "type": "textInput", "key": "from", "label": "RudderStack", + "regex": "^\\$((\\.[a-zA-Z_][a-zA-Z0-9_]*)|(\\[\\d+\\])|(\\[\\'.*?\\'\\])|(\\[\\\".*?\\\"\\]))*$\n", + "regexErrorMessage": "Invalid RudderStack parameter", "placeholder": "e.g: $.properties.key1" }, { "type": "textInput", "key": "to", "label": "HTTP", + "regex": "^\\$((\\.[a-zA-Z_][a-zA-Z0-9_]*)|(\\[\\d+\\])|(\\[\\'.*?\\'\\])|(\\[\\\".*?\\\"\\]))*$|^[a-zA-Z_][a-zA-Z0-9_]*$\n", + "regexErrorMessage": "Invalid HTTP parameter", "placeholder": "e.g: $.events.key2" } ] @@ -552,7 +555,6 @@ "label": "Map your query parameters", "configKey": "queryParams", "default": [], - "jsonPathValidation": true, "hideKeysJsonView": true, "columns": [ { @@ -565,6 +567,8 @@ "type": "textInput", "key": "from", "label": "Value", + "regex": "^\\$((\\.[a-zA-Z_][a-zA-Z0-9_]*)|(\\[\\d+\\])|(\\[\\'.*?\\'\\])|(\\[\\\".*?\\\"\\]))*$|^[a-zA-Z_][a-zA-Z0-9_]*$\n", + "regexErrorMessage": "Invalid HTTP parameter", "placeholder": "e.g: $.userId or \"userId\"" } ] @@ -580,7 +584,6 @@ "configKey": "headers", "default": [], "hideKeysJsonView": true, - "jsonPathValidation": true, "columns": [ { "type": "textInput", @@ -592,6 +595,8 @@ "type": "textInput", "key": "from", "label": "Value", + "regex": "^\\$((\\.[a-zA-Z_][a-zA-Z0-9_]*)|(\\[\\d+\\])|(\\[\\'.*?\\'\\])|(\\[\\\".*?\\\"\\]))*$|^[a-zA-Z_][a-zA-Z0-9_]*$\n", + "regexErrorMessage": "Invalid parameter", "placeholder": "e.g. \"application/json\"" } ]