Reduced the title length in the list links validation

This commit is contained in:
2023-01-08 02:58:03 +01:00
parent 2423e6ee4e
commit 11c26dd893

View File

@ -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()
});
});