Alias compatibilityLevel to compatibility
for compatibility.
@@ -49,8 +49,15 @@ public class CompatibilityLevelDto {
}
@JsonProperty("compatibility")
+ // Alias for compatilbility with Confluent client libraries:
+ //. https://docs.confluent.io/current/schema-registry/develop/api.html#get--config-(string-%20subject)
private Level compatibilityLevel;
+ @JsonProperty("compatibilityLevel")
+ private Level getLevel() {
+ return compatibilityLevel;
+ }
+
public enum Level {
BACKWARD("BACKWARD"),
BACKWARD_TRANSITIVE("BACKWARD_TRANSITIVE"),
