1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: import schema needs to understand :global: env

This commit is contained in:
Ivar Conradi Østhus 2021-08-26 22:42:06 +02:00
parent 56cd0d6912
commit 14857b01c8
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export const featureEnvironmentsSchema = joi.object().keys({
});
export const environmentSchema = joi.object().keys({
name: nameType,
name: nameType.allow(':global:'),
displayName: joi.string().optional().allow(''),
});

View File

@ -5,7 +5,7 @@ export const tagTypeSchema = Joi.object()
.keys({
name: customJoi.isUrlFriendly().min(2).max(50).required(),
description: Joi.string().allow(''),
icon: Joi.string().allow(''),
icon: Joi.string().allow(null).allow(''),
})
.options({
allowUnknown: false,