Skip to content

Commit 8fb8cd4

Browse files
HCK-1128: add validation of gremlin endpoint
1 parent f5bb04e commit 8fb8cd4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reverse_engineering/connection_settings_modal/connectionSettingsModalConfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
"inputPlaceholder": "wss://*.gremlin.cosmos.azure.com:443/",
2121
"inputTooltip": "Paste Gremlin endpoint",
2222
"defaultValue": "",
23-
"validation": {
24-
"regex": "([^\\s])"
25-
}
23+
"validation": [{
24+
"regex": "^wss://.+\\.gremlin\\.cosmos\\.azure\\.com:443",
25+
"message": "Gremlin endpoint must satisfy the template:\nwss://<account name>.gremlin.cosmos.azure.com:443/"
26+
}]
2627
},
2728
{
2829
"inputLabel": "Account key",

0 commit comments

Comments
 (0)