From 75481439fa126fbe9699e1d46e90cd9d1b27014e Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:23:11 +0200 Subject: [PATCH] some non required field in connector config (#2744) --- output/openapi/elasticsearch-openapi.json | 3 --- output/openapi/elasticsearch-serverless-openapi.json | 3 --- output/schema/schema-serverless.json | 6 +++--- output/schema/schema.json | 6 +++--- output/typescript/types.ts | 6 +++--- specification/connector/_types/Connector.ts | 6 +++--- 6 files changed, 12 insertions(+), 18 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 7fa63bc537..867bf076d1 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -78915,9 +78915,6 @@ "options", "required", "sensitive", - "type", - "ui_restrictions", - "validations", "value" ] }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 970e2ac45a..4e998207fa 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -51208,9 +51208,6 @@ "options", "required", "sensitive", - "type", - "ui_restrictions", - "validations", "value" ] }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 7b440ebf2b..458ebc30f5 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -88180,7 +88180,7 @@ }, { "name": "type", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -88191,7 +88191,7 @@ }, { "name": "ui_restrictions", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -88205,7 +88205,7 @@ }, { "name": "validations", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 874cf548e7..6434c9d49d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -107059,7 +107059,7 @@ }, { "name": "type", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -107070,7 +107070,7 @@ }, { "name": "ui_restrictions", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -107084,7 +107084,7 @@ }, { "name": "validations", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 177bbeb240..a47309e29f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9227,9 +9227,9 @@ export interface ConnectorConnectorConfigProperties { required: boolean sensitive: boolean tooltip?: string | null - type: ConnectorConnectorFieldType - ui_restrictions: string[] - validations: ConnectorValidation[] + type?: ConnectorConnectorFieldType + ui_restrictions?: string[] + validations?: ConnectorValidation[] value: any } diff --git a/specification/connector/_types/Connector.ts b/specification/connector/_types/Connector.ts index ba9b639fc5..eb1702583a 100644 --- a/specification/connector/_types/Connector.ts +++ b/specification/connector/_types/Connector.ts @@ -92,9 +92,9 @@ export interface ConnectorConfigProperties { required: boolean sensitive: boolean tooltip?: string | null - type: ConnectorFieldType - ui_restrictions: string[] - validations: Validation[] + type?: ConnectorFieldType + ui_restrictions?: string[] + validations?: Validation[] value: UserDefinedValue }