diff --git a/src/main/java/org/gcube/informationsystem/serialization/ElementMapper.java b/src/main/java/org/gcube/informationsystem/serialization/ElementMapper.java index 6cfa332..ca37138 100644 --- a/src/main/java/org/gcube/informationsystem/serialization/ElementMapper.java +++ b/src/main/java/org/gcube/informationsystem/serialization/ElementMapper.java @@ -146,6 +146,7 @@ public class ElementMapper { module.setAbstractTypes(resolver); mapper.registerModule(module); + mapper.registerSubtypes(interfaceClz); } public static void registerSubtype(Class clz) {