Skip to content

Commit

Permalink
Add missing Jackson module for DevUI backend
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Dec 8, 2023
1 parent 22582a7 commit 7c67463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/vertx-http/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;

import io.quarkus.devui.runtime.jsonrpc.json.JsonMapper;
import io.quarkus.devui.runtime.jsonrpc.json.JsonTypeAdapter;
Expand Down Expand Up @@ -141,6 +142,7 @@ public JsonMapper create(JsonTypeAdapter<?, Map<String, Object>> jsonObjectAdapt
module.addSerializer(ByteArrayInputStream.class, new ByteArrayInputStreamSerializer());
module.addDeserializer(ByteArrayInputStream.class, new ByteArrayInputStreamDeserializer());
mapper.registerModule(module);
mapper.registerModule(new Jdk8Module());

SimpleModule runtimeModule = new SimpleModule("vertx-module-runtime");
addAdapterToObject(runtimeModule, jsonObjectAdapter);
Expand Down

0 comments on commit 7c67463

Please sign in to comment.