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:
parent
56cd0d6912
commit
14857b01c8
@ -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(''),
|
||||
});
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user