diff --git a/output/schema/schema.json b/output/schema/schema.json index 3e5c8dd616..0d06570fb4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -1,6 +1,6 @@ { "_info": { - "hash": "f23bf34", + "hash": "47078b712", "license": { "name": "Apache 2.0", "url": "https://github.com/elastic/elasticsearch-specification/blob/master/LICENSE" @@ -89717,7 +89717,7 @@ "properties": [ { "name": "threshold_enabled", - "required": true, + "required": false, "type": { "items": [ { @@ -89901,22 +89901,52 @@ "name": "mode", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "SegmentSortMode", - "namespace": "indices._types" - } + "items": [ + { + "kind": "instance_of", + "type": { + "name": "SegmentSortMode", + "namespace": "indices._types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "SegmentSortMode", + "namespace": "indices._types" + } + } + } + ], + "kind": "union_of" } }, { "name": "missing", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "SegmentSortMissing", - "namespace": "indices._types" - } + "items": [ + { + "kind": "instance_of", + "type": { + "name": "SegmentSortMissing", + "namespace": "indices._types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "SegmentSortMissing", + "namespace": "indices._types" + } + } + } + ], + "kind": "union_of" } } ] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e2839b5ecc..8644f6be03 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8899,7 +8899,7 @@ export interface IndicesIndexRoutingAllocation { } export interface IndicesIndexRoutingAllocationDisk { - threshold_enabled: boolean | string + threshold_enabled?: boolean | string } export interface IndicesIndexRoutingAllocationInclude { @@ -8922,8 +8922,8 @@ export type IndicesIndexRoutingRebalanceOptions = 'all' | 'primaries' | 'replica export interface IndicesIndexSegmentSort { field: Fields order: IndicesSegmentSortOrder | IndicesSegmentSortOrder[] - mode?: IndicesSegmentSortMode - missing?: IndicesSegmentSortMissing + mode?: IndicesSegmentSortMode | IndicesSegmentSortMode[] + missing?: IndicesSegmentSortMissing | IndicesSegmentSortMissing[] } export interface IndicesIndexSettingBlocks { diff --git a/specification/indices/_types/IndexRouting.ts b/specification/indices/_types/IndexRouting.ts index 3c68a512c2..16f5e9235a 100644 --- a/specification/indices/_types/IndexRouting.ts +++ b/specification/indices/_types/IndexRouting.ts @@ -58,6 +58,7 @@ export class IndexRoutingAllocationInitialRecovery { _id?: Id } +// ES: DiskThresholdSettings export class IndexRoutingAllocationDisk { - threshold_enabled: boolean | string + threshold_enabled?: boolean | string } diff --git a/specification/indices/_types/IndexSegmentSort.ts b/specification/indices/_types/IndexSegmentSort.ts index c8b55ace68..6b96328f11 100644 --- a/specification/indices/_types/IndexSegmentSort.ts +++ b/specification/indices/_types/IndexSegmentSort.ts @@ -22,8 +22,8 @@ import { Fields } from '@_types/common' export class IndexSegmentSort { field: Fields order: SegmentSortOrder | SegmentSortOrder[] - mode?: SegmentSortMode - missing?: SegmentSortMissing + mode?: SegmentSortMode | SegmentSortMode[] + missing?: SegmentSortMissing | SegmentSortMissing[] } export enum SegmentSortOrder {