From 3783bfdfc68720c8e44c774666cb0e616d84a885 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Thu, 17 Oct 2024 16:46:53 +0200 Subject: [PATCH] [Connectors API] Fix advanced snippet value type (#3025) (cherry picked from commit 82461ccded3b202c4c24aed47ef79057bc41c0fc) --- output/openapi/elasticsearch-openapi.json | 5 +---- .../openapi/elasticsearch-serverless-openapi.json | 5 +---- output/schema/schema-serverless.json | 13 +------------ output/schema/schema.json | 13 +------------ output/typescript/types.ts | 2 +- specification/connector/_types/Connector.ts | 2 +- 6 files changed, 6 insertions(+), 34 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index b64f6537f7..9c459fd9d0 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -63693,10 +63693,7 @@ "$ref": "#/components/schemas/_types:DateTime" }, "value": { - "type": "object", - "additionalProperties": { - "type": "object" - } + "type": "object" } }, "required": [ diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 06e988b9bf..75a117bd9e 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -43527,10 +43527,7 @@ "$ref": "#/components/schemas/_types:DateTime" }, "value": { - "type": "object", - "additionalProperties": { - "type": "object" - } + "type": "object" } }, "required": [ diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 3bb3a99ad6..2042295b27 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -115773,18 +115773,7 @@ "name": "value", "required": true, "type": { - "key": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - "kind": "dictionary_of", - "singleKey": false, - "value": { - "kind": "user_defined_value" - } + "kind": "user_defined_value" } } ], diff --git a/output/schema/schema.json b/output/schema/schema.json index b4ce258d26..5a1f375fb6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -112016,18 +112016,7 @@ "name": "value", "required": true, "type": { - "kind": "dictionary_of", - "key": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - "singleKey": false, - "value": { - "kind": "user_defined_value" - } + "kind": "user_defined_value" } } ], diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 4bdce9f791..1f7abf22f9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9732,7 +9732,7 @@ export interface ConnectorFeatureEnabled { export interface ConnectorFilteringAdvancedSnippet { created_at?: DateTime updated_at?: DateTime - value: Record + value: any } export interface ConnectorFilteringConfig { diff --git a/specification/connector/_types/Connector.ts b/specification/connector/_types/Connector.ts index 6bc7cffa65..59c721dc08 100644 --- a/specification/connector/_types/Connector.ts +++ b/specification/connector/_types/Connector.ts @@ -192,7 +192,7 @@ enum FilteringValidationState { export interface FilteringAdvancedSnippet { created_at?: DateTime updated_at?: DateTime - value: Dictionary + value: UserDefinedValue } export interface FilteringRulesValidation {