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({ module.exports.listLinksValidation = Joi.object({
creator: Joi.string().min(5).max(25), creator: Joi.string().min(5).max(25),
tags: Joi.string().max(50), 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) limit: Joi.number().min(1).max(5000)
}); });