Reduced the title length in the list links validation
This commit is contained in:
@ -3,7 +3,7 @@ const Joi = require('joi');
|
||||
module.exports.listLinksValidation = Joi.object({
|
||||
creator: Joi.string().min(5).max(25),
|
||||
tags: Joi.string().max(50),
|
||||
title: Joi.string().min(3).max(25),
|
||||
title: Joi.string().min(1).max(25),
|
||||
limit: Joi.number().min(1).max(5000)
|
||||
});
|
||||
|
||||
@ -25,4 +25,4 @@ module.exports.editLinkValidation = Joi.object({
|
||||
type: Joi.string().max(25),
|
||||
tags: Joi.array().max(5),
|
||||
meta: Joi.object()
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user