Skip to content

Commit cc29426

Browse files
[Backport 8.1] Use search ResponseBody in Scroll response (#1497)
Co-authored-by: Tomas Della Vedova <[email protected]>
1 parent d0f26a7 commit cc29426

File tree

5 files changed

+32
-24
lines changed

5 files changed

+32
-24
lines changed

output/schema/schema.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/scroll/ScrollResponse.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { ResponseBody as SearchResponse } from '@global/search/SearchResponse'
20+
import { ResponseBody } from '@global/search/SearchResponse'
2121

22-
export class Response<TDocument> extends SearchResponse<TDocument> {}
22+
export class Response<TDocument> {
23+
body: ResponseBody<TDocument>
24+
}

specification/_global/search/SearchResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Suggest } from './_types/suggester'
3030
// Keep changes in sync with:
3131
// - search
3232
// - fleet.search
33+
// - scroll
3334
export class Response<TDocument> {
3435
body: ResponseBody<TDocument>
3536
}

0 commit comments

Comments
 (0)