From 06c7491ac590c99d37af0ecc26ace9ba052e1875 Mon Sep 17 00:00:00 2001 From: amstee Date: Fri, 26 Jul 2024 17:13:35 +0100 Subject: [PATCH] chore: allow definition of two new fields when schema is registered to keep compatibility with confluent clients --- karapace/schema_registry_apis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karapace/schema_registry_apis.py b/karapace/schema_registry_apis.py index 4ef7b884a..d3b90dac6 100644 --- a/karapace/schema_registry_apis.py +++ b/karapace/schema_registry_apis.py @@ -991,7 +991,7 @@ def _validate_schema_request_body(self, content_type: str, body: dict | Any) -> status=HTTPStatus.BAD_REQUEST, ) for field in body: - if field not in {"schema", "schemaType", "references"}: + if field not in {"schema", "schemaType", "references", "metadata", "ruleSet"}: self.r( body={ "error_code": SchemaErrorCodes.HTTP_UNPROCESSABLE_ENTITY.value,