remove showurl validation

This commit is contained in:
Alex Holliday committed 2025-05-26 16:22:54 -07:00
1 parent ad30bf6ee8
commit 7ff8299e6b
1 file changed
+3 -4
+3 -4
View File
@@ -23,7 +23,8 @@ const lastnameSchema = joi
.messages({ .messages({
"string.empty": "Surname is required", "string.empty": "Surname is required",
"string.max": "Surname must be less than 50 characters", "string.max": "Surname must be less than 50 characters",
"string.pattern.base": "Surname must contain only letters, spaces, apostrophes, or hyphens" "string.pattern.base":
"Surname must contain only letters, spaces, apostrophes, or hyphens",
}); });
const passwordSchema = joi const passwordSchema = joi
@@ -103,8 +104,7 @@ const credentials = joi.object({
}); });
const monitorValidation = joi.object({ const monitorValidation = joi.object({
url: joi url: joi.when("type", {
.when("type", {
is: "docker", is: "docker",
then: joi then: joi
.string() .string()
@@ -277,7 +277,6 @@ const settingsValidation = joi.object({
}), }),
pagespeedApiKey: joi.string().allow("").optional(), pagespeedApiKey: joi.string().allow("").optional(),
language: joi.string().required(), language: joi.string().required(),
showURL: joi.bool().required(),
systemEmailHost: joi.string().allow(""), systemEmailHost: joi.string().allow(""),
systemEmailPort: joi.number().allow(null, ""), systemEmailPort: joi.number().allow(null, ""),
systemEmailAddress: joi.string().allow(""), systemEmailAddress: joi.string().allow(""),