From ed31df64711dfd58b06b2eb307a0b0c4597f3c24 Mon Sep 17 00:00:00 2001 From: Quynh Nguyen Date: Tue, 26 Oct 2021 10:23:04 -0500 Subject: [PATCH] [ML] Remove validation because es should handle the validation already --- x-pack/plugins/transform/common/api_schemas/transforms.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/x-pack/plugins/transform/common/api_schemas/transforms.ts b/x-pack/plugins/transform/common/api_schemas/transforms.ts index 59165199fe7d3..55ea326069f0d 100644 --- a/x-pack/plugins/transform/common/api_schemas/transforms.ts +++ b/x-pack/plugins/transform/common/api_schemas/transforms.ts @@ -98,12 +98,6 @@ export const _metaSchema = schema.object( {}, { unknowns: 'allow', - validate: (v: object) => { - // Values should all be objects - if (Object.values(v).some((arg) => arg === undefined || arg === null)) { - return 'Invalid _meta request'; - } - }, } );