Skip to content

Commit

Permalink
Allow trailing commas in config file & lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj-hrivnak committed Dec 22, 2024
1 parent 19b9034 commit 4c49779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commonMain/kotlin/teksturepako/pakku/api/data/Json.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package teksturepako.pakku.api.data

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

@OptIn(ExperimentalSerializationApi::class)
val json = Json {
prettyPrint = true
isLenient = true
ignoreUnknownKeys = true
classDiscriminator = "_internal"
explicitNulls = false
allowTrailingComma = true
}

val jsonEncodeDefaults = Json {
Expand Down

0 comments on commit 4c49779

Please sign in to comment.