ccompat API - compatibility vs compatibilityLevel
See original GitHub issueHi first off thanks for this great project.
We encountered some issue, when trying to communicate with the ccompat API (via AKHQ). It seems that there has been some change in the CompatibilityLevelDto.
When the GET config API’s are called, see Conluent API-Doc get–config and
get–config-subject,
the returned Json must contain the key compatibilityLevel
but in fact it contains compatibility
instead.
The CompatibilityLevelDto
seems a bit undecided, because the attribute and getter-method annotations, which specify the actual Json key-attribute, differ.
So this seems to be a bug.
But be aware, the confluent API (PUT) for changing the actual compatibility Level expects the key to be compatibility
see API doc
I hope, I have read the APIs and the code correctly and am looking forward to your feedback.
Thanks and best regards Rob
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top GitHub Comments
OK thanks - I’ll take a look and get this fixed.
Hi @EricWittmann , I fear that the change in #867 tackled the problem not quite right. When you take a look at the changes in the lines 51 and 56 of the CompatibilityLevelDto, you can see that the json representation (jackson annotations) is contradicting within the class. For the mentioned confluent API methods
compatibilityLevel
should be returned, which it isn’t. I also tried using thelatest-snapshot
build from dockerhub and it didn’t work. Our current solution is that we build the image ourselves with the corrected annotation.