Skip to content

Commit

Permalink
[jsonb] Change JsonB JsonType to also extends JsonMapper.Type
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Feb 10, 2025
1 parent 31b5c50 commit 1326f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion json-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module io.avaje.json {

exports io.avaje.json;
exports io.avaje.json.simple;
exports io.avaje.json.stream;
exports io.avaje.json.view;
exports io.avaje.json.core to io.avaje.jsonb, io.avaje.json.node;
Expand Down
3 changes: 2 additions & 1 deletion jsonb/src/main/java/io/avaje/jsonb/JsonType.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.avaje.jsonb;

import io.avaje.json.JsonReader;
import io.avaje.json.mapper.JsonMapper;

import java.io.InputStream;
import java.io.Reader;
Expand Down Expand Up @@ -43,7 +44,7 @@
* Moshi note: JsonType does not exist in Moshi and has been added to provide a
* slightly nicer API to use than JsonAdapter.
*/
public interface JsonType<T> extends JsonView<T> {
public interface JsonType<T> extends JsonView<T>, JsonMapper.Type<T> {

/**
* Build and return the view given the DSL that specifies the properties to include.
Expand Down

0 comments on commit 1326f74

Please sign in to comment.