Skip to content

Commit

Permalink
jackson 2.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 7, 2024
1 parent 961cd28 commit fe93a0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ private static <T> T fromJSON(ObjectMapper mapper, String json, Class<T> expecte
}
}

private static ObjectMapper createMapper() {
Config config = ConfigFactory.load().getConfig("pekko.http.jackson");
static ObjectMapper createMapper(final Config config) {
StreamReadConstraints streamReadConstraints =
StreamReadConstraints.builder()
.maxNestingDepth(config.getInt("read.max-nesting-depth"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

pekko.http.jackson {
read {
# see https://www.javadoc.io/static/com.fasterxml.jackson.core/jackson-core/2.16.0/com/fasterxml/jackson/core/StreamReadConstraints.html
# see https://www.javadoc.io/static/com.fasterxml.jackson.core/jackson-core/2.16.1/com/fasterxml/jackson/core/StreamReadConstraints.html
# these defaults are the same as the defaults in `StreamReadConstraints`
max-nesting-depth = 1000
max-number-length = 1000
Expand All @@ -19,7 +19,7 @@ pekko.http.jackson {
max-document-length = -1
}
write {
# see https://www.javadoc.io/static/com.fasterxml.jackson.core/jackson-core/2.16.0/com/fasterxml/jackson/core/StreamWriteConstraints.html
# see https://www.javadoc.io/static/com.fasterxml.jackson.core/jackson-core/2.16.1/com/fasterxml/jackson/core/StreamWriteConstraints.html
# these defaults are the same as the defaults in `StreamWriteConstraints`
max-nesting-depth = 1000
}
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import scala.language.implicitConversions
object Dependencies {
import DependencyHelpers._

val jacksonDatabindVersion = "2.16.0"
val jacksonDatabindVersion = "2.16.1"
val jacksonXmlVersion = jacksonDatabindVersion
val junitVersion = "4.13.2"
val h2specVersion = "2.6.0"
Expand Down

0 comments on commit fe93a0c

Please sign in to comment.