diff --git a/src/plugins/visualizations/common/content_management/v1/cm_services.ts b/src/plugins/visualizations/common/content_management/v1/cm_services.ts index 62ae0afc97830..4b1165d357203 100644 --- a/src/plugins/visualizations/common/content_management/v1/cm_services.ts +++ b/src/plugins/visualizations/common/content_management/v1/cm_services.ts @@ -29,7 +29,7 @@ const referencesSchema = schema.arrayOf(referenceSchema); const visualizeAttributesSchema = schema.object( { title: schema.string(), - description: schema.maybe(schema.string()), + description: schema.maybe(schema.nullable(schema.string())), version: schema.maybe(schema.number()), kibanaSavedObjectMeta: schema.maybe(schema.object({ searchSourceJSON: schema.string() })), uiStateJSON: schema.maybe(schema.string()), diff --git a/x-pack/plugins/lens/common/content_management/v1/cm_services.ts b/x-pack/plugins/lens/common/content_management/v1/cm_services.ts index c0e09f5041110..22e1af6272978 100644 --- a/x-pack/plugins/lens/common/content_management/v1/cm_services.ts +++ b/x-pack/plugins/lens/common/content_management/v1/cm_services.ts @@ -28,7 +28,7 @@ const referencesSchema = schema.arrayOf(referenceSchema); const lensAttributesSchema = schema.object( { title: schema.string(), - description: schema.maybe(schema.string()), + description: schema.maybe(schema.nullable(schema.string())), visualizationType: schema.maybe(schema.string()), state: schema.maybe(schema.any()), uiStateJSON: schema.maybe(schema.string()),