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
|
||||
|
||||
const statusPageValidation = joi.object({
|
||||
type: joi.string().valid("uptime", "distributed").required(),
|
||||
isPublished: joi.bool(),
|
||||
companyName: joi
|
||||
.string()
|
||||
|
||||
Reference in new issue
Block a user