Skip to content

Commit

Permalink
[data.search] Update routes to not accept query (#154869)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson authored Apr 13, 2023
1 parent d83f1fe commit fb44beb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/plugins/data/server/search/routes/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ export function registerSearchRoute(router: DataPluginRouter): void {
id: schema.maybe(schema.string()),
}),

query: schema.object({}, { unknowns: 'allow' }),

body: schema.object(
{
legacyHitsTotal: schema.maybe(schema.boolean()),
Expand Down Expand Up @@ -78,8 +76,6 @@ export function registerSearchRoute(router: DataPluginRouter): void {
strategy: schema.string(),
id: schema.string(),
}),

query: schema.object({}, { unknowns: 'allow' }),
},
},
async (context, request, res) => {
Expand Down

0 comments on commit fb44beb

Please sign in to comment.