|
|
@ -2,7 +2,7 @@ package org.openrs2.yaml |
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.Module |
|
|
|
import com.fasterxml.jackson.databind.Module |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper |
|
|
|
import com.fasterxml.jackson.databind.PropertyNamingStrategy |
|
|
|
import com.fasterxml.jackson.databind.PropertyNamingStrategies |
|
|
|
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory |
|
|
|
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory |
|
|
|
import com.fasterxml.jackson.module.kotlin.registerKotlinModule |
|
|
|
import com.fasterxml.jackson.module.kotlin.registerKotlinModule |
|
|
|
import javax.inject.Inject |
|
|
|
import javax.inject.Inject |
|
|
@ -15,6 +15,6 @@ public class ObjectMapperProvider @Inject constructor( |
|
|
|
return ObjectMapper(YAMLFactory()) |
|
|
|
return ObjectMapper(YAMLFactory()) |
|
|
|
.registerKotlinModule() |
|
|
|
.registerKotlinModule() |
|
|
|
.registerModules(modules) |
|
|
|
.registerModules(modules) |
|
|
|
.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE) |
|
|
|
.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|