Skip to content

Commit

Permalink
[ML] Edits to filters route following review
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson committed Feb 14, 2020
1 parent 02dc48f commit 8cd2ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/ml/server/routes/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function filtersRoutes({ xpackMainPlugin, router }: RouteInitialization)
{
path: '/api/ml/filters',
validate: {
body: schema.object({ ...createFilterSchema }),
body: schema.object(createFilterSchema),
},
},
licensePreRoutingFactory(xpackMainPlugin, async (context, request, response) => {
Expand Down Expand Up @@ -148,7 +148,7 @@ export function filtersRoutes({ xpackMainPlugin, router }: RouteInitialization)
path: '/api/ml/filters/{filterId}',
validate: {
params: schema.object({ filterId: schema.string() }),
body: schema.object({ ...updateFilterSchema }),
body: schema.object(updateFilterSchema),
},
},
licensePreRoutingFactory(xpackMainPlugin, async (context, request, response) => {
Expand Down

0 comments on commit 8cd2ec8

Please sign in to comment.