From b956a122e7b1b470c4e06d81c2cf5d37499f158d Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Thu, 13 Feb 2020 14:59:37 -0500 Subject: [PATCH] update catFieldExamples api schema --- .../ml/server/new_platform/job_service_schema.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/x-pack/legacy/plugins/ml/server/new_platform/job_service_schema.ts b/x-pack/legacy/plugins/ml/server/new_platform/job_service_schema.ts index 3adc330234531..b37fcba737802 100644 --- a/x-pack/legacy/plugins/ml/server/new_platform/job_service_schema.ts +++ b/x-pack/legacy/plugins/ml/server/new_platform/job_service_schema.ts @@ -8,11 +8,13 @@ import { schema } from '@kbn/config-schema'; const analyzerSchema = { tokenizer: schema.string(), - filter: schema.arrayOf( - schema.object({ - type: schema.string(), - stopwords: schema.arrayOf(schema.maybe(schema.string())), - }) + filter: schema.maybe( + schema.arrayOf( + schema.object({ + type: schema.string(), + stopwords: schema.arrayOf(schema.maybe(schema.string())), + }) + ) ), };