Skip to content

Commit

Permalink
Add addAbstractTypeMapping for objectMapper (#2999)
Browse files Browse the repository at this point in the history
* for markdown files for multi module description
  • Loading branch information
eunwoo-park-nhn committed Jul 5, 2023
1 parent d9c8c6c commit 9c9f6cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/kotlin/utilities/json.kt
Expand Up @@ -13,6 +13,7 @@ import com.fasterxml.jackson.core.type.TypeReference as JacksonTypeReference
private val objectMapper = run {
val module = SimpleModule().apply {
addSerializer(FileSerializer)
addAbstractTypeMapping(Set::class.java, LinkedHashSet::class.java)
}
jacksonObjectMapper()
.registerModule(module)
Expand Down

0 comments on commit 9c9f6cd

Please sign in to comment.