You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need everything in kebab case except for the barBarBar field that was explicitly marked with the @name annotation in my case class. It seems like the @name annotation does not work as expected as it's overridden by .mapKey(toKebabCase) and I get the exception:
zio.Config$Error$MissingData: (Missing data at bar.b-ar-ba-r-bar: Expected barb-ar-ba-r-bar to be set in properties)
Probably, the @name annotation should have a higher priority even when mixed with .mapKey(toKebabCase) since a manual field name definition is almost always more important than an automatic one?
The text was updated successfully, but these errors were encountered:
GeorgeII
changed the title
@name annotation should beused if there's a naming collision
@name annotation should be used if there's a naming style collision
Mar 2, 2024
Hi!
Let's say I have a config where everything is in kebab case except for one substructure (
bar
in the example below):I wrote case classes to describe these entities:
I need everything in kebab case except for the
barBarBar
field that was explicitly marked with the@name
annotation in my case class. It seems like the@name
annotation does not work as expected as it's overridden by.mapKey(toKebabCase)
and I get the exception:Probably, the
@name
annotation should have a higher priority even when mixed with.mapKey(toKebabCase)
since a manual field name definition is almost always more important than an automatic one?The text was updated successfully, but these errors were encountered: