From 85f9ef84fd700d29a5ca259e58b4a2e521e0ff62 Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Sat, 24 May 2025 04:06:45 +0000 Subject: [PATCH] Update rest-api-spec --- output/openapi/elasticsearch-openapi.json | 96 ------------------- .../elasticsearch-serverless-openapi.json | 96 ------------------- output/schema/schema-serverless.json | 84 +++------------- output/schema/schema.json | 84 +++------------- output/typescript/types.ts | 2 - 5 files changed, 30 insertions(+), 332 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index af697ecfc5..73bd5661de 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -52952,30 +52952,6 @@ "lte": { "description": "Less than or equal to.", "type": "object" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "type": "object" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "type": "object" - }, - { - "nullable": true, - "type": "string" - } - ] } } } @@ -53029,30 +53005,6 @@ }, "lte": { "$ref": "#/components/schemas/_types.DateMath" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "$ref": "#/components/schemas/_types.DateMath" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "$ref": "#/components/schemas/_types.DateMath" - }, - { - "nullable": true, - "type": "string" - } - ] } } } @@ -53094,30 +53046,6 @@ "lte": { "description": "Less than or equal to.", "type": "number" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "type": "number" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "type": "number" - }, - { - "nullable": true, - "type": "string" - } - ] } } } @@ -53159,30 +53087,6 @@ "lte": { "description": "Less than or equal to.", "type": "string" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "type": "string" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "type": "string" - }, - { - "nullable": true, - "type": "string" - } - ] } } } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 15fad418e4..0088b5f204 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -32579,30 +32579,6 @@ "lte": { "description": "Less than or equal to.", "type": "object" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "type": "object" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "type": "object" - }, - { - "nullable": true, - "type": "string" - } - ] } } } @@ -32656,30 +32632,6 @@ }, "lte": { "$ref": "#/components/schemas/_types.DateMath" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "$ref": "#/components/schemas/_types.DateMath" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "$ref": "#/components/schemas/_types.DateMath" - }, - { - "nullable": true, - "type": "string" - } - ] } } } @@ -32721,30 +32673,6 @@ "lte": { "description": "Less than or equal to.", "type": "number" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "type": "number" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "type": "number" - }, - { - "nullable": true, - "type": "string" - } - ] } } } @@ -32786,30 +32714,6 @@ "lte": { "description": "Less than or equal to.", "type": "string" - }, - "from": { - "deprecated": true, - "oneOf": [ - { - "type": "string" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "to": { - "deprecated": true, - "oneOf": [ - { - "type": "string" - }, - { - "nullable": true, - "type": "string" - } - ] } } } diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 53634b5edf..45b7618aa9 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -63663,7 +63663,7 @@ "name": "RangeQuery", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L176-L186", + "specLocation": "_types/query_dsl/term.ts#L172-L182", "type": { "items": [ { @@ -63748,7 +63748,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L150-L159" + "specLocation": "_types/query_dsl/term.ts#L146-L155" }, { "generics": [ @@ -63829,63 +63829,9 @@ "namespace": "_types.query_dsl.RangeQueryBase" } } - }, - { - "deprecation": { - "description": "Use gte or gt instead", - "version": "8.16.0" - }, - "name": "from", - "required": false, - "type": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "T", - "namespace": "_types.query_dsl.RangeQueryBase" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ], - "kind": "union_of" - } - }, - { - "deprecation": { - "description": "Use lte or lt instead", - "version": "8.16.0" - }, - "name": "to", - "required": false, - "type": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "T", - "namespace": "_types.query_dsl.RangeQueryBase" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ], - "kind": "union_of" - } } ], - "specLocation": "_types/query_dsl/term.ts#L122-L148" + "specLocation": "_types/query_dsl/term.ts#L122-L144" }, { "kind": "enum", @@ -63907,7 +63853,7 @@ "name": "RangeRelation", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L188-L201" + "specLocation": "_types/query_dsl/term.ts#L184-L197" }, { "docId": "mapping-date-format", @@ -63973,7 +63919,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L161-L170" + "specLocation": "_types/query_dsl/term.ts#L157-L166" }, { "inherits": { @@ -63997,7 +63943,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L172-L172" + "specLocation": "_types/query_dsl/term.ts#L168-L168" }, { "inherits": { @@ -64021,7 +63967,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L174-L174" + "specLocation": "_types/query_dsl/term.ts#L170-L170" }, { "extDocId": "query-dsl-rank-feature-query", @@ -64312,7 +64258,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L203-L236" + "specLocation": "_types/query_dsl/term.ts#L199-L232" }, { "extDocId": "query-dsl-rule-query", @@ -65695,7 +65641,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L238-L255" + "specLocation": "_types/query_dsl/term.ts#L234-L251" }, { "attachedBehaviors": [ @@ -65743,7 +65689,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L257-L263" + "specLocation": "_types/query_dsl/term.ts#L253-L259" }, { "codegenNames": [ @@ -65755,7 +65701,7 @@ "name": "TermsQueryField", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L265-L268", + "specLocation": "_types/query_dsl/term.ts#L261-L264", "type": { "items": [ { @@ -65831,7 +65777,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L270-L275" + "specLocation": "_types/query_dsl/term.ts#L266-L271" }, { "extDocId": "query-dsl-terms-set-query", @@ -65906,7 +65852,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L277-L299" + "specLocation": "_types/query_dsl/term.ts#L273-L295" }, { "extDocId": "query-dsl-text-expansion-query", @@ -66097,7 +66043,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L305-L325" + "specLocation": "_types/query_dsl/term.ts#L301-L321" }, { "extDocId": "query-dsl-wrapper-query", @@ -66154,7 +66100,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L301-L303" + "specLocation": "_types/query_dsl/term.ts#L297-L299" }, { "extDocId": "search-aggregations-bucket-autodatehistogram-aggregation", diff --git a/output/schema/schema.json b/output/schema/schema.json index 5a86516f46..ed770f772c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -83715,7 +83715,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L161-L170" + "specLocation": "_types/query_dsl/term.ts#L157-L166" }, { "kind": "type_alias", @@ -87490,7 +87490,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L172-L172" + "specLocation": "_types/query_dsl/term.ts#L168-L168" }, { "kind": "interface", @@ -89414,7 +89414,7 @@ "name": "RangeQuery", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L176-L186", + "specLocation": "_types/query_dsl/term.ts#L172-L182", "type": { "kind": "union_of", "items": [ @@ -89535,63 +89535,9 @@ "namespace": "_types.query_dsl.RangeQueryBase" } } - }, - { - "deprecation": { - "description": "Use gte or gt instead", - "version": "8.16.0" - }, - "name": "from", - "required": false, - "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "T", - "namespace": "_types.query_dsl.RangeQueryBase" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ] - } - }, - { - "deprecation": { - "description": "Use lte or lt instead", - "version": "8.16.0" - }, - "name": "to", - "required": false, - "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "T", - "namespace": "_types.query_dsl.RangeQueryBase" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ] - } } ], - "specLocation": "_types/query_dsl/term.ts#L122-L148" + "specLocation": "_types/query_dsl/term.ts#L122-L144" }, { "kind": "enum", @@ -89613,7 +89559,7 @@ "name": "RangeRelation", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L188-L201" + "specLocation": "_types/query_dsl/term.ts#L184-L197" }, { "kind": "interface", @@ -89904,7 +89850,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L203-L236" + "specLocation": "_types/query_dsl/term.ts#L199-L232" }, { "kind": "interface", @@ -91232,7 +91178,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L238-L255" + "specLocation": "_types/query_dsl/term.ts#L234-L251" }, { "kind": "interface", @@ -91256,7 +91202,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L174-L174" + "specLocation": "_types/query_dsl/term.ts#L170-L170" }, { "kind": "interface", @@ -91310,7 +91256,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L270-L275" + "specLocation": "_types/query_dsl/term.ts#L266-L271" }, { "kind": "interface", @@ -91358,7 +91304,7 @@ "namespace": "_types.query_dsl" }, "properties": [], - "specLocation": "_types/query_dsl/term.ts#L257-L263" + "specLocation": "_types/query_dsl/term.ts#L253-L259" }, { "kind": "type_alias", @@ -91370,7 +91316,7 @@ "name": "TermsQueryField", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/term.ts#L265-L268", + "specLocation": "_types/query_dsl/term.ts#L261-L264", "type": { "kind": "union_of", "items": [ @@ -91467,7 +91413,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L277-L299" + "specLocation": "_types/query_dsl/term.ts#L273-L295" }, { "kind": "interface", @@ -91640,7 +91586,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L301-L303" + "specLocation": "_types/query_dsl/term.ts#L297-L299" }, { "kind": "interface", @@ -91734,7 +91680,7 @@ } } ], - "specLocation": "_types/query_dsl/term.ts#L150-L159" + "specLocation": "_types/query_dsl/term.ts#L146-L155" }, { "kind": "interface", @@ -91862,7 +91808,7 @@ } ], "shortcutProperty": "value", - "specLocation": "_types/query_dsl/term.ts#L305-L325" + "specLocation": "_types/query_dsl/term.ts#L301-L321" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index cff36d940e..460b8a2d87 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -6557,8 +6557,6 @@ export interface QueryDslRangeQueryBase extends QueryDslQueryBase { gte?: T lt?: T lte?: T - from?: T | null - to?: T | null } export type QueryDslRangeRelation = 'within' | 'contains' | 'intersects'