PureConfig v0.5.0 Release Notes
Release Date: 2017-01-03 // over 7 years ago-
- ๐ New features
- Sealed families are now converted to and from configs unambiguously by using an extra
type
field (customizable) in their config representation; - New
CoproductHint
trait which allows customization of the derivedConfigConvert
for sealed families;
- Sealed families are now converted to and from configs unambiguously by using an extra
- ๐ฅ Breaking changes
- The default config representation for sealed families has changed:
- By default pureconfig now expects to find a
type
field containing the lowercase simple class name of the type to be read. For example, for a family includingDogConf
andCatConf
, pureconfig expects to find atype: "dogconf"
field in the config file; - The old behavior can be restored by putting an implicit instance of
FirstSuccessCoproductHint
in scope (the migration to the new format is strongly recommended though, as the previous one may lead to ambiguous behavior); - More information about the default representation and on how to customize it can be seen in the documentation.
- ๐ Bug fixes
0
is accepted again as a validDuration
in configs.
- ๐ New features