Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ lazy val msgpackJackson =
"org.msgpack.jackson.dataformat"
),
libraryDependencies ++= Seq(
"com.fasterxml.jackson.core" % "jackson-databind" % "2.16.2",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.18.2",
junitInterface,
"org.apache.commons" % "commons-math3" % "3.6.1" % "test"
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.introspect.Annotated;
import com.fasterxml.jackson.databind.introspect.AnnotatedClass;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;

import static com.fasterxml.jackson.annotation.JsonFormat.Shape.ARRAY;
Expand Down Expand Up @@ -33,21 +32,4 @@ public JsonFormat.Value findFormat(Annotated ann)

return ARRAY_FORMAT;
}

/**
* Defines that unknown properties will be ignored, and won't fail the un-marshalling process.
* Happens in case of de-serialization of a payload that contains more properties than the actual
* value type
*/
@Override
public Boolean findIgnoreUnknownProperties(AnnotatedClass ac)
{
// If the entity contains JsonIgnoreProperties annotation, give it higher priority.
final Boolean precedenceIgnoreUnknownProperties = super.findIgnoreUnknownProperties(ac);
if (precedenceIgnoreUnknownProperties != null) {
return precedenceIgnoreUnknownProperties;
}

return true;
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.