Skip to content

Commit 0cd9f2f

Browse files
swallezgithub-actions[bot]
authored andcommitted
Fix optional/missing fields reported via Java client issues (#1823)
1 parent 4316fc1 commit 0cd9f2f

File tree

13 files changed

+208
-123
lines changed

13 files changed

+208
-123
lines changed

output/schema/schema.json

Lines changed: 150 additions & 89 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: 21 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/msearch/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import { RuntimeFields } from '@_types/mapping/RuntimeFields'
4343
import { ScriptField } from '@_types/Scripting'
4444
import { SlicedScroll } from '@_types/SlicedScroll'
4545
import { KnnQuery } from '@_types/Knn'
46+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
4647

4748
/**
4849
* @codegen_names header, body
@@ -80,6 +81,10 @@ export class MultisearchBody {
8081
* @server_default false
8182
*/
8283
explain?: boolean
84+
/**
85+
* Configuration of search extensions defined by Elasticsearch plugins.
86+
*/
87+
ext?: Dictionary<string, UserDefinedValue>
8388
/**
8489
* List of stored fields to return as part of a hit. If no fields are specified,
8590
* no stored fields are included in the response. If this field is specified, the _source

specification/_global/search/SearchRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import { TrackHits } from '@global/search/_types/hits'
4747
import { Operator } from '@_types/query_dsl/Operator'
4848
import { Sort, SortResults } from '@_types/sort'
4949
import { KnnQuery } from '@_types/Knn'
50+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
5051

5152
/**
5253
* @rest_spec_name search
@@ -118,6 +119,10 @@ export interface Request extends RequestBase {
118119
* @server_default false
119120
*/
120121
explain?: boolean
122+
/**
123+
* Configuration of search extensions defined by Elasticsearch plugins.
124+
*/
125+
ext?: Dictionary<string, UserDefinedValue>
121126
/**
122127
* Starting document offset. By default, you cannot page through more than 10,000
123128
* hits using the from and size parameters. To page through more hits, use the

specification/_types/Errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class ErrorCause
3636
/**
3737
* A human-readable explanation of the error, in english
3838
*/
39-
reason: string
39+
reason?: string
4040
/**
4141
* The server stack trace. Present only if the `error_trace=true` parameter was sent with the request.
4242
*/

specification/_types/aggregations/Aggregate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class ExtendedStatsBucketAggregate extends ExtendedStatsAggregate {}
289289

290290
/** @variant name=geo_bounds */
291291
export class GeoBoundsAggregate extends AggregateBase {
292-
bounds: GeoBounds
292+
bounds?: GeoBounds
293293
}
294294

295295
/** @variant name=geo_centroid */

specification/_types/analysis/icu-plugin.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,18 @@ export class IcuFoldingTokenFilter extends TokenFilterBase {
5050

5151
export class IcuCollationTokenFilter extends TokenFilterBase {
5252
type: 'icu_collation'
53-
alternate: IcuCollationAlternate
54-
caseFirst: IcuCollationCaseFirst
55-
caseLevel: boolean
56-
country: string
57-
decomposition: IcuCollationDecomposition
58-
hiraganaQuaternaryMode: boolean
59-
language: string
60-
numeric: boolean
61-
strength: IcuCollationStrength
53+
alternate?: IcuCollationAlternate
54+
caseFirst?: IcuCollationCaseFirst
55+
caseLevel?: boolean
56+
country?: string
57+
decomposition?: IcuCollationDecomposition
58+
hiraganaQuaternaryMode?: boolean
59+
language?: string
60+
numeric?: boolean
61+
rules?: string
62+
strength?: IcuCollationStrength
6263
variableTop?: string
63-
variant: string
64+
variant?: string
6465
}
6566

6667
export class IcuAnalyzer {

specification/_types/mapping/RuntimeFields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { Dictionary } from '@spec_utils/Dictionary'
2121
import { Field } from '@_types/common'
2222
import { Script } from '@_types/Scripting'
2323

24-
export type RuntimeFields = Dictionary<Field, RuntimeField | RuntimeField[]>
24+
export type RuntimeFields = Dictionary<Field, RuntimeField>
2525

2626
export class RuntimeField {
2727
format?: string

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import { Suggester } from '@global/search/_types/suggester'
5050
import { TrackHits } from '@global/search/_types/hits'
5151
import { Operator } from '@_types/query_dsl/Operator'
5252
import { KnnQuery } from '@_types/Knn'
53+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
5354

5455
/**
5556
* @rest_spec_name async_search.submit
@@ -128,6 +129,10 @@ export interface Request extends RequestBase {
128129
* @server_default false
129130
*/
130131
explain?: boolean
132+
/**
133+
* Configuration of search extensions defined by Elasticsearch plugins.
134+
*/
135+
ext?: Dictionary<string, UserDefinedValue>
131136
/**
132137
* Starting document offset. By default, you cannot page through more than 10,000
133138
* hits using the from and size parameters. To page through more hits, use the

specification/cluster/_types/ComponentTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class ComponentTemplateSummary {
3939
/** @doc_id mapping-meta-field */
4040
_meta?: Metadata
4141
version?: VersionNumber
42-
settings: Dictionary<IndexName, IndexSettings>
42+
settings?: Dictionary<IndexName, IndexSettings>
4343
mappings?: TypeMapping
4444
aliases?: Dictionary<string, AliasDefinition>
4545
}

specification/fleet/search/SearchRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import { SlicedScroll } from '@_types/SlicedScroll'
5050
import { Sort, SortResults } from '@_types/sort'
5151
import { Duration } from '@_types/Time'
5252
import { Checkpoint } from '../_types/Checkpoints'
53+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
5354

5455
/**
5556
* The purpose of the fleet search api is to provide a search api where the search will only be executed
@@ -138,6 +139,10 @@ export interface Request extends RequestBase {
138139
* @server_default false
139140
*/
140141
explain?: boolean
142+
/**
143+
* Configuration of search extensions defined by Elasticsearch plugins.
144+
*/
145+
ext?: Dictionary<string, UserDefinedValue>
141146
/**
142147
* Starting document offset. By default, you cannot page through more than 10,000
143148
* hits using the from and size parameters. To page through more hits, use the

specification/indices/_types/IndexSettings.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ export enum IndexCheckOnStartup {
260260
}
261261

262262
export class IndexVersioning {
263-
created: VersionString
264-
created_string?: VersionString
263+
created?: VersionString
265264
}
266265

267266
export class IndexSettingsLifecycle {

specification/security/get_token/GetUserAccessTokenResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Response {
2626
expires_in: long
2727
scope?: string
2828
type: string
29-
refresh_token: string
29+
refresh_token?: string
3030
kerberos_authentication_response_token?: string
3131
authentication: AuthenticatedUser
3232
}

0 commit comments

Comments
 (0)