diff --git a/src/main/java/io/vertx/serviceresolver/kube/KubeResolverOptions.java b/src/main/java/io/vertx/serviceresolver/kube/KubeResolverOptions.java index 75cc9b4..f5212b8 100644 --- a/src/main/java/io/vertx/serviceresolver/kube/KubeResolverOptions.java +++ b/src/main/java/io/vertx/serviceresolver/kube/KubeResolverOptions.java @@ -11,6 +11,7 @@ package io.vertx.serviceresolver.kube; import io.vertx.codegen.annotations.DataObject; +import io.vertx.codegen.json.annotations.JsonGen; import io.vertx.core.buffer.Buffer; import io.vertx.core.http.HttpClientOptions; import io.vertx.core.http.WebSocketClientOptions; @@ -24,7 +25,8 @@ /** * */ -@DataObject(generateConverter = true, publicConverter = false) +@DataObject +@JsonGen(publicConverter = false) public class KubeResolverOptions { private static final String KUBERNETES_SERVICE_HOST = "KUBERNETES_SERVICE_HOST"; diff --git a/src/main/java/io/vertx/serviceresolver/srv/SrvResolverOptions.java b/src/main/java/io/vertx/serviceresolver/srv/SrvResolverOptions.java index 68a8b98..1e600dd 100644 --- a/src/main/java/io/vertx/serviceresolver/srv/SrvResolverOptions.java +++ b/src/main/java/io/vertx/serviceresolver/srv/SrvResolverOptions.java @@ -11,9 +11,11 @@ package io.vertx.serviceresolver.srv; import io.vertx.codegen.annotations.DataObject; +import io.vertx.codegen.json.annotations.JsonGen; import io.vertx.core.json.JsonObject; -@DataObject(generateConverter = true, publicConverter = false) +@DataObject +@JsonGen(publicConverter = false) public class SrvResolverOptions { private String host;