Closed arniu closed 5 years ago
It's not legal to use a data object without toJson()
as return type (in this case async return type): https://github.com/vert-x3/vertx-codegen#data-objects
Optionally a data object can define a public io.vertx.core.json.JsonObject toJson() method: such method makes the data object convertible to JsonObject, the data object can then be used as an Api return type.
A
DataObject
withouttoJson
:Fail to run
./gradlew build
:While with
toJson
, it's OK: