Skip to content

Commit

Permalink
Don't encode nullable to the json (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ authored Oct 20, 2023
1 parent dddbea7 commit aaeea2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object Config {

const val major = 0
const val minor = 6
const val patch = 0
const val patch = 1
const val versionName = "$major.$minor.$patch"

const val maven_group = "ch.srg.data.provider"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package ch.srg.dataProvider.integrationlayer.data

import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json

@OptIn(ExperimentalSerializationApi::class)
val DataProviderJson = Json {
ignoreUnknownKeys = true
encodeDefaults = true
isLenient = true
explicitNulls = false
}

0 comments on commit aaeea2c

Please sign in to comment.