Skip to content

Commit

Permalink
bugfix: should pass enum and not the wrapped value
Browse files Browse the repository at this point in the history
  • Loading branch information
Augusto F. Hack committed Mar 15, 2021
1 parent 65dddde commit 27b217c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karapace/schema_registry_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _get_compatibility_mode(self, subject, content_type) -> CompatibilityModes:
"message": f"Unknown compatibility mode {compatibility}",
},
content_type=content_type,
status=HTTPStatus.INTERNAL_SERVER_ERROR.value,
status=HTTPStatus.INTERNAL_SERVER_ERROR,
)
return compatibility_mode

Expand Down Expand Up @@ -547,7 +547,7 @@ def _validate_schema_key(self, content_type, body) -> None:
"message": "Internal Server Error",
},
content_type=content_type,
status=HTTPStatus.INTERNAL_SERVER_ERROR.value,
status=HTTPStatus.INTERNAL_SERVER_ERROR,
)

async def subjects_schema_post(self, content_type, *, subject, request):
Expand Down

0 comments on commit 27b217c

Please sign in to comment.