1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

fix: context legalValues should be at max 100 chars

This commit is contained in:
Ivar Conradi Østhus 2020-10-04 20:36:40 +02:00
parent c65f7c27ee
commit 24347adbfb

View File

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