From d841c93ede0ba1a196efa67fe4ec2d2d59dd7619 Mon Sep 17 00:00:00 2001 From: Julia Bardi <90178898+juliaElastic@users.noreply.github.com> Date: Tue, 21 Feb 2023 08:15:13 +0100 Subject: [PATCH] [Fleet] added missing content type application/gzip to openapi (#151566) ## Summary Related to https://github.com/elastic/kibana/issues/148599 Added missing `application/gzip` content type to openapi for packages upload API. --- x-pack/plugins/fleet/common/openapi/bundled.json | 6 ++++++ x-pack/plugins/fleet/common/openapi/bundled.yaml | 4 ++++ x-pack/plugins/fleet/common/openapi/paths/epm@packages.yaml | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/x-pack/plugins/fleet/common/openapi/bundled.json b/x-pack/plugins/fleet/common/openapi/bundled.json index f535bad37c6c27..93d0673faa6ba9 100644 --- a/x-pack/plugins/fleet/common/openapi/bundled.json +++ b/x-pack/plugins/fleet/common/openapi/bundled.json @@ -435,6 +435,12 @@ "type": "string", "format": "binary" } + }, + "application/gzip": { + "schema": { + "type": "string", + "format": "binary" + } } } } diff --git a/x-pack/plugins/fleet/common/openapi/bundled.yaml b/x-pack/plugins/fleet/common/openapi/bundled.yaml index 7dcc4ba9610d23..2ce0a08ef81589 100644 --- a/x-pack/plugins/fleet/common/openapi/bundled.yaml +++ b/x-pack/plugins/fleet/common/openapi/bundled.yaml @@ -281,6 +281,10 @@ paths: schema: type: string format: binary + application/gzip: + schema: + type: string + format: binary /epm/packages/_bulk: post: summary: Packages - Bulk install diff --git a/x-pack/plugins/fleet/common/openapi/paths/epm@packages.yaml b/x-pack/plugins/fleet/common/openapi/paths/epm@packages.yaml index d3ef2a279494e0..b44ab7e9b81688 100644 --- a/x-pack/plugins/fleet/common/openapi/paths/epm@packages.yaml +++ b/x-pack/plugins/fleet/common/openapi/paths/epm@packages.yaml @@ -80,6 +80,10 @@ post: requestBody: content: application/zip: + schema: + type: string + format: binary + application/gzip: schema: type: string format: binary \ No newline at end of file