Hi everyone,
I did some experiments with Quarkus and the Vert.x extension today. Nice work, I was able to inject the Vert.x instance in a JAX-RS resource and use the Vert.x Web Client.
Many Vert.x clients return Vert.x JsonArray or JsonObject results. As a user, if you use this in your web resource response you'll get a "Could not find MessageBodyWriter for response object of type: io.vertx.core.json.JsonObject of media type: application/json" exception.
Implementing custom body writers is pretty straightforward (both JsonArray and JsonObject have toBuffer() methods). How about providing such writers in the Vert.x extension?
I added the body writers to the Vert.x runtime module and, in the deployment module, updated the VertxProcessor#registerBean method so that they get analyzed.
Yet my test still fails with NoMessageBodyWriterFoundFailure. Could you help me understand what's missing?
Thank you,
Thomas