mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02: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({
|
export const environmentSchema = joi.object().keys({
|
||||||
name: nameType,
|
name: nameType.allow(':global:'),
|
||||||
displayName: joi.string().optional().allow(''),
|
displayName: joi.string().optional().allow(''),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ export const tagTypeSchema = Joi.object()
|
|||||||
.keys({
|
.keys({
|
||||||
name: customJoi.isUrlFriendly().min(2).max(50).required(),
|
name: customJoi.isUrlFriendly().min(2).max(50).required(),
|
||||||
description: Joi.string().allow(''),
|
description: Joi.string().allow(''),
|
||||||
icon: Joi.string().allow(''),
|
icon: Joi.string().allow(null).allow(''),
|
||||||
})
|
})
|
||||||
.options({
|
.options({
|
||||||
allowUnknown: false,
|
allowUnknown: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user