Following are the changes in this release
- Improvement in type inference by removing path dependent
Descriptor
to improve custom derivation #493
Before 1.0.1 (unusual imports)
val customDerivation = new DeriveConfigDescriptor {
import Descriptor.SealedTraitStrategy._
def sealedTraitStrategy: Descriptor.SealedTraitStrategy =
ignoreSealedTraitName && labelSubClassName("type")
}
customDerivation.descriptor[MyConfig]
Now (usual imports)
import zio.config.magnolia._, Descriptor.SealedTraitStrategy._
val customDerivation = new DeriveConfigDescriptor {
def sealedTraitStrategy: SealedTraitStrategy =
ignoreSealedTraitName && labelSubClassName("type")
}
customDerivation.descriptor[MyConfig]
- Updated zio dependency to 1.0.5