From 30271e3eeced4fa86bde264cdaed661e748b4ea9 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Wed, 10 Apr 2024 10:05:58 +0200 Subject: [PATCH] Add missing param for list request --- .../openapi/elasticsearch-serverless-openapi.json | 10 ++++++++++ output/schema/schema.json | 14 +++++++++++++- output/schema/validation-errors.json | 6 ------ output/typescript/types.ts | 1 + .../connector/list/ConnectorListRequest.ts | 4 ++++ 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 1f0be7470a..e2af6f2db6 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -2159,6 +2159,16 @@ "$ref": "#/components/schemas/_types:Fields" }, "style": "form" + }, + { + "in": "query", + "name": "query", + "description": "A wildcard query string that filters connectors with matching name, description or index name", + "deprecated": false, + "schema": { + "type": "string" + }, + "style": "form" } ], "responses": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 9223514154..23c343fbd4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -107746,9 +107746,21 @@ "namespace": "_types" } } + }, + { + "description": "A wildcard query string that filters connectors with matching name, description or index name", + "name": "query", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } } ], - "specLocation": "connector/list/ConnectorListRequest.ts#L23-L53" + "specLocation": "connector/list/ConnectorListRequest.ts#L23-L57" }, { "body": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 21f1bed1a4..fec223629e 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -494,12 +494,6 @@ "type_alias definition _spec_utils:WithNullValue / union_of / instance_of - No type definition for '_spec_utils:T'" ] }, - "connector.list": { - "request": [ - "Request: missing json spec query parameter 'query'" - ], - "response": [] - }, "create": { "request": [], "response": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b05abbdc91..43824b7070 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9311,6 +9311,7 @@ export interface ConnectorListRequest extends RequestBase { index_name?: Fields connector_name?: Fields service_type?: Fields + query?: string } export interface ConnectorListResponse { diff --git a/specification/connector/list/ConnectorListRequest.ts b/specification/connector/list/ConnectorListRequest.ts index 26f79f74ea..2fbf28176f 100644 --- a/specification/connector/list/ConnectorListRequest.ts +++ b/specification/connector/list/ConnectorListRequest.ts @@ -49,5 +49,9 @@ export interface Request extends RequestBase { * A comma-separated list of connector service types to fetch connector documents for */ service_type?: Fields + /** + * A wildcard query string that filters connectors with matching name, description or index name + */ + query?: string } }