Add validation for port to FE

This commit is contained in:
Alex Holliday committed 2024-12-27 11:16:25 -08:00
1 parent 004184b0f4
commit d27c44d498
1 file changed
+1
+1
View File
@@ -109,6 +109,7 @@ const monitorValidation = joi.object({
"string.uri": "The URL you provided is not valid.",
"string.invalidUrl": "Please enter a valid URL with optional port",
}),
port: joi.number(),
name: joi.string().trim().max(50).allow("").messages({
"string.max": "This field should not exceed the 50 characters limit.",
}),