Skip to content

Commit 7206d25

Browse files
committed
Fix a few watcher.put_watcher tests
1 parent 1e473d9 commit 7206d25

File tree

5 files changed

+89
-27
lines changed

5 files changed

+89
-27
lines changed

output/openapi/elasticsearch-openapi.json

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

output/schema/schema-serverless.json

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

output/schema/schema.json

Lines changed: 55 additions & 16 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: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/watcher/_types/Input.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary'
2121
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
22+
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
2223
import {
2324
Id,
2425
IndexName,
@@ -28,7 +29,7 @@ import {
2829
Username
2930
} from '@_types/common'
3031
import { Host } from '@_types/Networking'
31-
import { uint } from '@_types/Numeric'
32+
import { integer, uint } from '@_types/Numeric'
3233
import { QueryContainer } from '@_types/query_dsl/abstractions'
3334
import { Duration } from '@_types/Time'
3435

@@ -145,7 +146,18 @@ export class SearchTemplateRequestBody {
145146
}
146147

147148
export class SearchInputRequestBody {
148-
query: QueryContainer
149+
query?: QueryContainer
150+
/**
151+
* Defines the aggregations that are run as part of the search request.
152+
* @aliases aggs */ // ES uses "aggregations" in serialization
153+
aggregations?: Dictionary<string, AggregationContainer>
154+
/**
155+
* The number of hits to return.
156+
* By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.
157+
* To page through more hits, use the `search_after` parameter.
158+
* @server_default 10
159+
*/
160+
size?: integer
149161
}
150162

151163
export class SimpleInput {

0 commit comments

Comments
 (0)