Skip to content

Commit

Permalink
Allow unknown config properties
Browse files Browse the repository at this point in the history
  • Loading branch information
maxammann committed Aug 7, 2024
1 parent 91ad182 commit b285ff3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package app.ehrenamtskarte.backend.config

import app.ehrenamtskarte.backend.stores.importer.ImportConfig
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
Expand Down Expand Up @@ -65,6 +66,8 @@ data class BackendConfiguration(
.registerModule(
KotlinModule.Builder().build()
).registerModule(JavaTimeModule())
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)

private val logger = LoggerFactory.getLogger(BackendConfiguration::class.java)

fun load(configFile: URL?): BackendConfiguration {
Expand Down

0 comments on commit b285ff3

Please sign in to comment.