Skip to content

Commit

Permalink
Use @JsonGen annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Nov 30, 2023
1 parent 5e996e9 commit 36a97c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36a97c8

Please sign in to comment.