Skip to content

Commit

Permalink
Remove field validation (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor authored Jan 13, 2025
1 parent f1480f7 commit 28c6718
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/plugin/settings/settings_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,15 @@ static const std::string kCredentialGroupBox = R"json(
R"json(",
"caption": "Access Key ID",
"description": "Cloud bucket access key ID",
"defaultValue": "",
"validationErrorMessage": "Access key ID must be >=16 alphanumeric characters (uppercase or 2-7).",
"validationRegex": "^[A-Z1-9]{16,128}$"
"defaultValue": ""
},
{
"type": "PasswordField",
"name": ")json" + kSecretKeyPasswordFieldId +
R"json(",
"caption": "Secret Key",
"description": "Cloud bucket secret key",
"defaultValue": "",
"validationErrorMessage": "Secret key must be 32 or 40 alphanumeric-plus-slash characters",
"validationRegex": "^[A-Za-z0-9\/+=]{32,128}$"
"defaultValue": ""
}
]
})json";
Expand All @@ -69,20 +65,15 @@ static const std::string kAdvancedGroupBox = R"json(
"caption": "Endpoint URL",
"description": "Set a different endpoint (different region or service)",
"defaultValue": ")json" + kDefaultEndpoint +
R"json(",
"validationErrorMessage": "Endpoint must be a URL (begin with 'http[s]://').",
"validationRegex": "(^$)|(^https?:\/\/.+$)",
"validationRegexFlags": "i"
R"json("
},
{
"type": "TextField",
"name": ")json" + kBucketNameTextFieldId +
R"json(",
"caption": "Bucket Name",
"description": "Specify a bucket name (leave empty to let the system automatically detect your bucket)",
"defaultValue": "",
"validationErrorMessage": "Bucket name can only contain lowercase letters, numbers, dashes, and dots.",
"validationRegex": "^[-.a-z0-9]*$"
"defaultValue": ""
},
{
"type": "SpinBox",
Expand Down

0 comments on commit 28c6718

Please sign in to comment.