This PR makes a cleanup to the JSON generation in Vert.x 5 which is based on the vertx-codegen-json module that now holds the json generator.
The @DataObject annotation should actually only declare that a class can actually be considered as a data object with a toJson contract regardless of whether this method delegates to a generated converter.
A new @JsonGen annotation that triggers the generation of a converter and holds the @DataObject configuration.
This PR makes a cleanup to the JSON generation in Vert.x 5 which is based on the
vertx-codegen-json
module that now holds the json generator.The
@DataObject
annotation should actually only declare that a class can actually be considered as a data object with atoJson
contract regardless of whether this method delegates to a generated converter.A new
@JsonGen
annotation that triggers the generation of a converter and holds the@DataObject
configuration.In short:
is replaced by