From 82461ccded3b202c4c24aed47ef79057bc41c0fc 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) --- 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 9811e1815b..6a8fc58e20 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -63729,10 +63729,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 db9c562a25..cf6a85e3b5 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -43506,10 +43506,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 ddf998c7f6..547bcd2fc0 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -115737,18 +115737,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 f812c6455a..4cde7b6104 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -112107,18 +112107,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 dbe8960e71..331bf98a45 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9738,7 +9738,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 {