Skip to content

Commit

Permalink
Use gson
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Nov 21, 2024
1 parent 243c20f commit c59c7d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official
kotlin.js.generate.executable.default=false

# versions
fhirCoreVersion= 6.4.2
fhirCoreVersion= 6.4.4-SNAPSHOT

junitVersion=5.7.1
mockk_version=1.10.2
Expand Down
13 changes: 3 additions & 10 deletions src/jvmMain/kotlin/Module.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.SerializationFeature
import io.ktor.serialization.gson.*
import controller.debug.debugModule
import controller.ig.igModule
import controller.terminology.terminologyModule
Expand Down Expand Up @@ -85,14 +84,8 @@ fun Application.setup() {
}

install(ContentNegotiation) {
jackson {
enable(SerializationFeature.INDENT_OUTPUT)

/*
* Right now we need to ignore unknown fields because we take a very simplified version of many of the fhir
* model classes, and map them to classes across JVM/Common/JS.
*/
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
gson {
setPrettyPrinting()
}
}

Expand Down

0 comments on commit c59c7d3

Please sign in to comment.