Skip to content

Commit

Permalink
Fix a few watcher.put_watcher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Nov 27, 2024
1 parent 1e473d9 commit 7206d25
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 27 deletions.
16 changes: 12 additions & 4 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 55 additions & 16 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions specification/watcher/_types/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
import {
Id,
IndexName,
Expand All @@ -28,7 +29,7 @@ import {
Username
} from '@_types/common'
import { Host } from '@_types/Networking'
import { uint } from '@_types/Numeric'
import { integer, uint } from '@_types/Numeric'
import { QueryContainer } from '@_types/query_dsl/abstractions'
import { Duration } from '@_types/Time'

Expand Down Expand Up @@ -145,7 +146,18 @@ export class SearchTemplateRequestBody {
}

export class SearchInputRequestBody {
query: QueryContainer
query?: QueryContainer
/**
* Defines the aggregations that are run as part of the search request.
* @aliases aggs */ // ES uses "aggregations" in serialization
aggregations?: Dictionary<string, AggregationContainer>
/**
* The number of hits to return.
* By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.
* To page through more hits, use the `search_after` parameter.
* @server_default 10
*/
size?: integer
}

export class SimpleInput {
Expand Down

0 comments on commit 7206d25

Please sign in to comment.