From 57e6ddb71b3a015c28bf9414f8ffd7b6e8e31ff2 Mon Sep 17 00:00:00 2001 From: Ben Pope Date: Mon, 29 Jul 2024 14:31:55 +0100 Subject: [PATCH] [CORE-3148] schema_registry: Fix Swagger for POST /compatibility/subjects Signed-off-by: Ben Pope (cherry picked from commit 40a704af1c79a93c83a10c0f6ed6a1c3cda51cc3) --- src/v/pandaproxy/api/api-doc/schema_registry.json | 7 +------ .../api/api-doc/schema_registry_definitions.def.json | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/v/pandaproxy/api/api-doc/schema_registry.json b/src/v/pandaproxy/api/api-doc/schema_registry.json index e999015929b7..eb6f4cd9358c 100644 --- a/src/v/pandaproxy/api/api-doc/schema_registry.json +++ b/src/v/pandaproxy/api/api-doc/schema_registry.json @@ -1146,12 +1146,7 @@ "200": { "description": "OK", "schema": { - "type": "object", - "properties": { - "id": { - "type": "integer" - } - } + "$ref": "#/definitions/is_compatibile" } }, "409": { diff --git a/src/v/pandaproxy/api/api-doc/schema_registry_definitions.def.json b/src/v/pandaproxy/api/api-doc/schema_registry_definitions.def.json index ac3ce8de8d38..698d744a9e3e 100644 --- a/src/v/pandaproxy/api/api-doc/schema_registry_definitions.def.json +++ b/src/v/pandaproxy/api/api-doc/schema_registry_definitions.def.json @@ -102,4 +102,12 @@ ] }, } + }, + "is_compatibile": { + "type": "object", + "properties": { + "is_compatible": { + "type": "boolean" + } + } } \ No newline at end of file