Skip to content
Snippets Groups Projects
Commit 0e1ab54d authored by yvesn's avatar yvesn
Browse files

SSDM-5463: increasing v3 JSON api version compatibility - clients can now send...

SSDM-5463: increasing v3 JSON api version compatibility - clients can now send unknown fields and the server will not fail

SVN: 38732
parent 4e079c4e
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package ch.ethz.sis.openbis.generic.server.sharedapi.v3.json; package ch.ethz.sis.openbis.generic.server.sharedapi.v3.json;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.deser.DefaultDeserializationContext; import com.fasterxml.jackson.databind.deser.DefaultDeserializationContext;
...@@ -42,6 +43,7 @@ public class GenericObjectMapper extends ObjectMapper ...@@ -42,6 +43,7 @@ public class GenericObjectMapper extends ObjectMapper
setSubtypeResolver(new JsonReflectionsSubTypeResolver( setSubtypeResolver(new JsonReflectionsSubTypeResolver(
new JsonBaseTypeToSubTypesMapping())); new JsonBaseTypeToSubTypesMapping()));
setSerializerFactory(new JsonSerializerFactory()); setSerializerFactory(new JsonSerializerFactory());
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment