diff --git a/x-pack/plugins/ml/server/routes/schemas/modules.ts b/x-pack/plugins/ml/server/routes/schemas/modules.ts index 50fe45b653e42..8cb6bfdc96fd8 100644 --- a/x-pack/plugins/ml/server/routes/schemas/modules.ts +++ b/x-pack/plugins/ml/server/routes/schemas/modules.ts @@ -138,11 +138,11 @@ const moduleSchema = schema.object({ type: schema.string(), logo: schema.maybe(schema.any()), logoFile: schema.maybe(schema.string()), - defaultIndexPattern: schema.string(), - query: schema.any(), + defaultIndexPattern: schema.maybe(schema.string()), + query: schema.maybe(schema.any()), jobs: schema.arrayOf(schema.any()), datafeeds: schema.arrayOf(schema.any()), - kibana: schema.any(), + kibana: schema.maybe(schema.any()), tags: schema.maybe(schema.arrayOf(schema.string())), }); @@ -157,7 +157,7 @@ export const dataRecognizerConfigResponse = () => schema.object({ datafeeds: schema.arrayOf(schema.any()), jobs: schema.arrayOf(schema.any()), - kibana: schema.any(), + kibana: schema.maybe(schema.any()), }); export const jobExistsResponse = () =>