From 22538cfbc32b74e443904b374262aa115224c2c4 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 30 May 2024 18:17:45 +0200 Subject: [PATCH 1/4] box_plot is actually boxplot --- output/schema/schema.json | 2 +- specification/_types/aggregations/Aggregate.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index c32f8e7219..c7f61fa563 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -52143,7 +52143,7 @@ } ], "specLocation": "_types/aggregations/Aggregate.ts#L706-L722", - "variantName": "box_plot" + "variantName": "boxplot" }, { "inherits": { diff --git a/specification/_types/aggregations/Aggregate.ts b/specification/_types/aggregations/Aggregate.ts index 5aea24174e..fcf533e303 100644 --- a/specification/_types/aggregations/Aggregate.ts +++ b/specification/_types/aggregations/Aggregate.ts @@ -703,7 +703,7 @@ export class StringStatsAggregate extends AggregateBase { avg_length_as_string?: string } -/** @variant name=box_plot */ +/** @variant name=boxplot */ export class BoxPlotAggregate extends AggregateBase { min: double max: double From 7d12984045cc26eb726a087cf6b274c65e4b58f4 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Fri, 31 May 2024 11:15:32 +0200 Subject: [PATCH 2/4] doc_count_error should be doc_count_error_upper_bound --- output/openapi/elasticsearch-serverless-openapi.json | 2 +- output/schema/schema.json | 2 +- output/typescript/types.ts | 2 +- specification/_types/aggregations/Aggregate.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 207943c3f2..cc395d804b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -30689,7 +30689,7 @@ { "type": "object", "properties": { - "doc_count_error": { + "doc_count_error_upper_bound": { "type": "number" } } diff --git a/output/schema/schema.json b/output/schema/schema.json index c7f61fa563..f2c00cf81d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -61722,7 +61722,7 @@ }, "properties": [ { - "name": "doc_count_error", + "name": "doc_count_error_upper_bound", "required": false, "type": { "kind": "instance_of", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index cda90a5fbc..733d55f060 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4164,7 +4164,7 @@ export type AggregationsTermsAggregationCollectMode = 'depth_first' | 'breadth_f export type AggregationsTermsAggregationExecutionHint = 'map' | 'global_ordinals' | 'global_ordinals_hash' | 'global_ordinals_low_cardinality' export interface AggregationsTermsBucketBase extends AggregationsMultiBucketBase { - doc_count_error?: long + doc_count_error_upper_bound?: long } export type AggregationsTermsExclude = string | string[] diff --git a/specification/_types/aggregations/Aggregate.ts b/specification/_types/aggregations/Aggregate.ts index fcf533e303..47a74dffe9 100644 --- a/specification/_types/aggregations/Aggregate.ts +++ b/specification/_types/aggregations/Aggregate.ts @@ -389,7 +389,7 @@ export class TermsAggregateBase< export class StringTermsAggregate extends TermsAggregateBase {} export class TermsBucketBase extends MultiBucketBase { - doc_count_error?: long + doc_count_error_upper_bound?: long } export class StringTermsBucket extends TermsBucketBase { From ab1ee684c8f642c9c77c588fb3bdc735c5550974 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Fri, 31 May 2024 11:31:55 +0200 Subject: [PATCH 3/4] mtermvector operation id optional --- output/openapi/elasticsearch-serverless-openapi.json | 5 +---- output/schema/schema.json | 2 +- output/typescript/types.ts | 2 +- specification/_global/mtermvectors/types.ts | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index cc395d804b..8741137a65 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -59356,10 +59356,7 @@ "version_type": { "$ref": "#/components/schemas/_types:VersionType" } - }, - "required": [ - "_id" - ] + } }, "_global.termvectors:Filter": { "type": "object", diff --git a/output/schema/schema.json b/output/schema/schema.json index f2c00cf81d..492d0d1d6c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -28994,7 +28994,7 @@ { "description": "The ID of the document.", "name": "_id", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 733d55f060..ece407c4b7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -818,7 +818,7 @@ export interface MsearchTemplateTemplateConfig { } export interface MtermvectorsOperation { - _id: Id + _id?: Id _index?: IndexName doc?: any fields?: Fields diff --git a/specification/_global/mtermvectors/types.ts b/specification/_global/mtermvectors/types.ts index ae0353d53d..51d5360c03 100644 --- a/specification/_global/mtermvectors/types.ts +++ b/specification/_global/mtermvectors/types.ts @@ -36,7 +36,7 @@ export class Operation { /** * The ID of the document. */ - _id: Id + _id?: Id /** * The index of the document. */ From 5479c8fcf39a124479521d49c7573ad2ecf46437 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Fri, 31 May 2024 11:52:27 +0200 Subject: [PATCH 4/4] making the nodes (info) endpoint work --- output/schema/schema.json | 6 +++--- output/typescript/types.ts | 6 +++--- specification/nodes/info/types.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 492d0d1d6c..1a0b1281a2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -171922,7 +171922,7 @@ }, { "name": "disable_max_compilations_rate", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -172051,7 +172051,7 @@ }, { "name": "client", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -172740,7 +172740,7 @@ "properties": [ { "name": "host", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ece407c4b7..ef2783964d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16031,7 +16031,7 @@ export interface NodesInfoNodeInfoRepositoriesUrl { export interface NodesInfoNodeInfoScript { allowed_types: string - disable_max_compilations_rate: string + disable_max_compilations_rate?: string } export interface NodesInfoNodeInfoSearch { @@ -16049,7 +16049,7 @@ export interface NodesInfoNodeInfoSettings { repositories?: NodesInfoNodeInfoRepositories discovery?: NodesInfoNodeInfoDiscover action?: NodesInfoNodeInfoAction - client: NodesInfoNodeInfoClient + client?: NodesInfoNodeInfoClient http: NodesInfoNodeInfoSettingsHttp bootstrap?: NodesInfoNodeInfoBootstrap transport: NodesInfoNodeInfoSettingsTransport @@ -16121,7 +16121,7 @@ export interface NodesInfoNodeInfoSettingsIngest { } export interface NodesInfoNodeInfoSettingsNetwork { - host: Host + host?: Host } export interface NodesInfoNodeInfoSettingsNode { diff --git a/specification/nodes/info/types.ts b/specification/nodes/info/types.ts index 844fca75d4..dd0e833180 100644 --- a/specification/nodes/info/types.ts +++ b/specification/nodes/info/types.ts @@ -73,7 +73,7 @@ export class NodeInfoSettings { repositories?: NodeInfoRepositories discovery?: NodeInfoDiscover action?: NodeInfoAction - client: NodeInfoClient + client?: NodeInfoClient http: NodeInfoSettingsHttp bootstrap?: NodeInfoBootstrap transport: NodeInfoSettingsTransport @@ -218,7 +218,7 @@ export class NodeInfoSettingsTransportFeatures { } export class NodeInfoSettingsNetwork { - host: Host + host?: Host } export class NodeInfoIngest { @@ -280,7 +280,7 @@ export class NodeInfoXpackLicenseType { export class NodeInfoScript { allowed_types: string - disable_max_compilations_rate: string + disable_max_compilations_rate?: string } export class NodeInfoSearch {