From 14857b01c84fdf1245e46da3e99799f20dce6295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Thu, 26 Aug 2021 22:42:06 +0200 Subject: [PATCH] fix: import schema needs to understand :global: env --- src/lib/services/state-schema.ts | 2 +- src/lib/services/tag-type-schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/services/state-schema.ts b/src/lib/services/state-schema.ts index 51bdeae7bb..15a03372c7 100644 --- a/src/lib/services/state-schema.ts +++ b/src/lib/services/state-schema.ts @@ -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(''), }); diff --git a/src/lib/services/tag-type-schema.ts b/src/lib/services/tag-type-schema.ts index 1fecdd4b63..8770390cb2 100644 --- a/src/lib/services/tag-type-schema.ts +++ b/src/lib/services/tag-type-schema.ts @@ -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,