Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
allow unknown properties in requests for better backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
hatsuyuki15 committed Dec 6, 2017
1 parent e78bfee commit 6b532b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/hatsuyuki/proxy/Json.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package org.hatsuyuki.proxy;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
Expand All @@ -12,7 +15,8 @@
* Wrapper for Jackson library to make it behave like play.lib.json
*/
class Json {
private static ObjectMapper mapper = new ObjectMapper();
private static ObjectMapper mapper = new ObjectMapper()
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);


public static ArrayNode newArray() {
Expand Down

0 comments on commit 6b532b5

Please sign in to comment.