Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update mapping component regex for HTTP destination #1820

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/configurations/destinations/http/ui-config.json
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -526,18 +526,21 @@
"to": "$."
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
}
],
"jsonPathValidation": true,
"columns": [
{
"type": "textInput",
"key": "from",
"label": "RudderStack",
"regex": "^\\$((\\.[a-zA-Z_][a-zA-Z0-9_]*)|(\\[\\d+\\])|(\\[\\'.*?\\'\\])|(\\[\\\".*?\\\"\\]))*$\n",
"regexErrorMessage": "Invalid RudderStack parameter",
sandeepdsvs marked this conversation as resolved.
Show resolved Hide resolved
"placeholder": "e.g: $.properties.key1"
},
{
"type": "textInput",
"key": "to",
"label": "HTTP",
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
"regex": "^\\$((\\.[a-zA-Z_][a-zA-Z0-9_]*)|(\\[\\d+\\])|(\\[\\'.*?\\'\\])|(\\[\\\".*?\\\"\\]))*$|^[a-zA-Z_][a-zA-Z0-9_]*$\n",
"regexErrorMessage": "Invalid HTTP parameter",
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
"placeholder": "e.g: $.events.key2"
}
]
Expand All @@ -552,7 +555,6 @@
"label": "Map your query parameters",
"configKey": "queryParams",
"default": [],
"jsonPathValidation": true,
"hideKeysJsonView": true,
"columns": [
{
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
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",
sandeepdsvs marked this conversation as resolved.
Show resolved Hide resolved
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
"placeholder": "e.g: $.userId or \"userId\""
}
]
Expand All @@ -580,7 +584,6 @@
"configKey": "headers",
"default": [],
"hideKeysJsonView": true,
"jsonPathValidation": true,
"columns": [
{
"type": "textInput",
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
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",
sandeepdsvs marked this conversation as resolved.
Show resolved Hide resolved
"placeholder": "e.g. \"application/json\""
}
]
Expand Down
Loading