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,
|
name: nameType,
|
||||||
description: joi
|
description: joi
|
||||||
.string()
|
.string()
|
||||||
|
.max(250)
|
||||||
.allow('')
|
.allow('')
|
||||||
.allow(null)
|
.allow(null)
|
||||||
.optional(),
|
.optional(),
|
||||||
@ -19,7 +20,7 @@ const contextSchema = joi
|
|||||||
.allow(null)
|
.allow(null)
|
||||||
.unique()
|
.unique()
|
||||||
.optional()
|
.optional()
|
||||||
.items(joi.string()),
|
.items(joi.string().max(100)),
|
||||||
})
|
})
|
||||||
.options({ allowUnknown: false, stripUnknown: true });
|
.options({ allowUnknown: false, stripUnknown: true });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user