Skip to content

Commit

Permalink
feat: update mapping component regex for HTTP destination
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepdsvs committed Nov 27, 2024
1 parent 0e55f6a commit 4d6a795
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/configurations/destinations/http/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand All @@ -552,7 +555,6 @@
"label": "Map your query parameters",
"configKey": "queryParams",
"default": [],
"jsonPathValidation": true,
"hideKeysJsonView": true,
"columns": [
{
Expand All @@ -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\""
}
]
Expand All @@ -580,7 +584,6 @@
"configKey": "headers",
"default": [],
"hideKeysJsonView": true,
"jsonPathValidation": true,
"columns": [
{
"type": "textInput",
Expand All @@ -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\""
}
]
Expand Down

0 comments on commit 4d6a795

Please sign in to comment.