From 24347adbfb0297fa1200330811140122288f8b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Sun, 4 Oct 2020 20:36:40 +0200 Subject: [PATCH] fix: context legalValues should be at max 100 chars --- lib/routes/admin-api/context-schema.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/admin-api/context-schema.js b/lib/routes/admin-api/context-schema.js index e3b8fc16bc..9b89aaa603 100644 --- a/lib/routes/admin-api/context-schema.js +++ b/lib/routes/admin-api/context-schema.js @@ -11,6 +11,7 @@ const contextSchema = joi name: nameType, description: joi .string() + .max(250) .allow('') .allow(null) .optional(), @@ -19,7 +20,7 @@ const contextSchema = joi .allow(null) .unique() .optional() - .items(joi.string()), + .items(joi.string().max(100)), }) .options({ allowUnknown: false, stripUnknown: true });