Skip to content

Commit

Permalink
[ML] Remove validation because es should handle the validation already
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Oct 26, 2021
1 parent ebfa1e6 commit ed31df6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions x-pack/plugins/transform/common/api_schemas/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
},
}
);

Expand Down

0 comments on commit ed31df6

Please sign in to comment.