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,