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:
parent
c65f7c27ee
commit
24347adbfb
@ -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 });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user