Add type to validation
This commit is contained in:
1 parent
cb4e739cae
commit
e0e73ce520
1 file changed
+1
@@ -206,6 +206,7 @@ const logoImageValidation = joi
|
|||||||
.optional(); // Make entire object optional
|
.optional(); // Make entire object optional
|
||||||
|
|
||||||
const statusPageValidation = joi.object({
|
const statusPageValidation = joi.object({
|
||||||
|
type: joi.string().valid("uptime", "distributed").required(),
|
||||||
isPublished: joi.bool(),
|
isPublished: joi.bool(),
|
||||||
companyName: joi
|
companyName: joi
|
||||||
.string()
|
.string()
|
||||||
|
|||||||
Reference in new issue
Block a user