diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 591d26c821..e9d5958840 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -1799,14 +1799,7 @@ "description": "If `true`, return the full node ID. If `false`, return the shortened node ID.", "deprecated": false, "schema": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "string" - } - ] + "type": "boolean" }, "style": "form" }, @@ -141700,14 +141693,7 @@ "description": "Returns overall buckets with overall scores greater than or equal to this\nvalue.", "deprecated": false, "schema": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] + "type": "number" }, "style": "form" }, @@ -147265,14 +147251,7 @@ }, "overall_score": { "description": "Refer to the description for the `overall_score` query parameter.", - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] + "type": "number" }, "start": { "description": "Refer to the description for the `start` query parameter.", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 720a14ea61..3e2d3fd9bc 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -86405,14 +86405,7 @@ "description": "Returns overall buckets with overall scores greater than or equal to this\nvalue.", "deprecated": false, "schema": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] + "type": "number" }, "style": "form" }, @@ -89676,14 +89669,7 @@ }, "overall_score": { "description": "Refer to the description for the `overall_score` query parameter.", - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] + "type": "number" }, "start": { "description": "Refer to the description for the `start` query parameter.", diff --git a/output/schema/schema.json b/output/schema/schema.json index c48ca6497c..0474539de3 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -113355,25 +113355,13 @@ "description": "If `true`, return the full node ID. If `false`, return the shortened node ID.", "name": "full_id", "required": false, - "serverDefault": "false", + "serverDefault": false, "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - }, - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - ] + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } } }, { @@ -208660,23 +208648,11 @@ "name": "overall_score", "required": false, "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "double", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - ] + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" + } } }, { @@ -208816,23 +208792,11 @@ "name": "overall_score", "required": false, "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "double", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - ] + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" + } } }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 1a46d6f8f0..d978bfde72 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8452,7 +8452,7 @@ export interface CatNodesNodesRecord { } export interface CatNodesRequest extends CatCatRequestBase { - full_id?: boolean | string + full_id?: boolean include_unloaded_segments?: boolean h?: CatCatNodeColumns s?: Names @@ -17608,7 +17608,7 @@ export interface MlGetOverallBucketsRequest extends RequestBase { bucket_span?: Duration end?: DateTime exclude_interim?: boolean - overall_score?: double | string + overall_score?: double start?: DateTime top_n?: integer body?: { @@ -17616,7 +17616,7 @@ export interface MlGetOverallBucketsRequest extends RequestBase { bucket_span?: Duration end?: DateTime exclude_interim?: boolean - overall_score?: double | string + overall_score?: double start?: DateTime top_n?: integer } diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index 86a1905270..bddb1053a1 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -44,7 +44,7 @@ export interface Request extends CatRequestBase { * If `true`, return the full node ID. If `false`, return the shortened node ID. * @server_default false */ - full_id?: boolean | string + full_id?: boolean /** * If true, the response includes information from segments that are not loaded into memory. * @server_default false diff --git a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts index 5102e8c841..50bce7a831 100644 --- a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts +++ b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts @@ -105,7 +105,7 @@ export interface Request extends RequestBase { * Returns overall buckets with overall scores greater than or equal to this * value. */ - overall_score?: double | string + overall_score?: double /** * Returns overall buckets with timestamps after this time. */ @@ -139,7 +139,7 @@ export interface Request extends RequestBase { /** * Refer to the description for the `overall_score` query parameter. */ - overall_score?: double | string + overall_score?: double /** * Refer to the description for the `start` query parameter. */