From e13cc5b47e39f02a51fb4ba9322855effefe5c16 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 9 May 2020 19:53:18 +0100 Subject: [PATCH] Convert YAML property names to snake case Signed-off-by: Graham --- yaml/src/main/java/dev/openrs2/yaml/ObjectMapperProvider.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yaml/src/main/java/dev/openrs2/yaml/ObjectMapperProvider.kt b/yaml/src/main/java/dev/openrs2/yaml/ObjectMapperProvider.kt index 519459f7f6..4e41c7971c 100644 --- a/yaml/src/main/java/dev/openrs2/yaml/ObjectMapperProvider.kt +++ b/yaml/src/main/java/dev/openrs2/yaml/ObjectMapperProvider.kt @@ -2,6 +2,7 @@ package dev.openrs2.yaml import com.fasterxml.jackson.databind.Module import com.fasterxml.jackson.databind.ObjectMapper +import com.fasterxml.jackson.databind.PropertyNamingStrategy import com.fasterxml.jackson.dataformat.yaml.YAMLFactory import com.fasterxml.jackson.module.kotlin.registerKotlinModule import javax.inject.Inject @@ -14,5 +15,6 @@ class ObjectMapperProvider @Inject constructor( return ObjectMapper(YAMLFactory()) .registerKotlinModule() .registerModules(modules) + .setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE) } }