From 5091f287f2d9da0a9bc5f5cb6be589266a484c45 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Tue, 4 May 2021 21:42:42 +0200 Subject: [PATCH] fix: set name type to be min 1 character (#833) --- src/lib/routes/admin-api/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/routes/admin-api/util.js b/src/lib/routes/admin-api/util.js index 3f84a1d4f0..f2cce1f962 100644 --- a/src/lib/routes/admin-api/util.js +++ b/src/lib/routes/admin-api/util.js @@ -20,7 +20,7 @@ const customJoi = joi.extend(j => ({ const nameType = customJoi .isUrlFriendly() - .min(2) + .min(1) .max(100) .required();