Skip to content

Commit

Permalink
Upgrade jackson
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Sep 29, 2024
1 parent 0ff8bd0 commit 5f9aa5c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 72 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ java {
withSourcesJar()
}

def jacksonVersion = "2.17.2"
def jacksonVersion = "2.18.0"
def junitVersion = "5.11.1"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ static synchronized ObjectMapper getInstance() {
instance =
JsonMapper.builder()
.addModule(new Jdk8Module())
// https://stackoverflow.com/questions/68394911/why-record-class-cant-be-properly-deserialized-with-jackson/68998917#68998917
.addModule(new RecordNamingStrategyPatchModule())
.addModule(openAIModule)
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.serializationInclusion(JsonInclude.Include.NON_ABSENT)
Expand Down

This file was deleted.

0 comments on commit 5f9aa5c

Please sign in to comment.