QuiltMC / quilt-config

Quilt Config (aka "haven king's metadata of madness") is a library designed to facilitate the creation and management of config files.
Apache License 2.0
21 stars 8 forks source link

Add serialized naming scheme annotation #29

Closed anonymous123-code closed 6 months ago

anonymous123-code commented 7 months ago

Currently, if you want to use another naming scheme in config files than in the java source code, you need to specify and separately update an @SerialzedName annotation. In order to fix this, I suggest a naming scheme annotation which allows to specify a serialized naming scheme for the given config value, section, or config.

It should work similar to #4 's NameConvention annotation, however SerializedNameConvention is a better match imo Ideally, it accepts a NamingScheme enum value, or a custom class, which implements the NamingScheme interface