Skip to content

Commit

Permalink
chore: allow definition of two new fields when schema is registered t…
Browse files Browse the repository at this point in the history
…o keep compatibility with confluent clients
  • Loading branch information
amstee committed Jul 26, 2024
1 parent 8c50eb0 commit 06c7491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karapace/schema_registry_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 06c7491

Please sign in to comment.