Skip to content

Commit

Permalink
increase the string limit from 5 million to 10 million
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed May 2, 2023
1 parent 537e72d commit cc463eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/no/nav/syfo/Bootstrap.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.syfo

import com.fasterxml.jackson.core.StreamReadConstraints
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
Expand Down Expand Up @@ -55,6 +56,7 @@ val objectMapper: ObjectMapper = ObjectMapper().apply {
registerModule(JavaTimeModule())
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
factory.setStreamReadConstraints(StreamReadConstraints.builder().maxStringLength(10_000_000).build())
}

val log: Logger = LoggerFactory.getLogger("no.nav.no.nav.syfo.pale2sak")
Expand Down

0 comments on commit cc463eb

Please sign in to comment.