zio-config icon indicating copy to clipboard operation
zio-config copied to clipboard

Switch to use ZIO Schema for derivation

Open jdegoes opened this issue 3 years ago • 1 comments

Rather than use Magnolia or custom macros, we can switch to ZIO Schema, which will soon feature derivation for Scala 2.x and Scala 3.x, which also supports annotations.

Once we have ZIO schema, we can provide some helper methods which do not require or refer to ConfigDescriptor, e.g.:

def loadConfig[A](implicit schema: Schema[A]): ZIO[Has[ConfigSource], Throwable, A] = ???

jdegoes avatar Nov 02 '21 18:11 jdegoes

Is this going to replace zio-config-magnolia or add as another module (and in future deprecate zio-config-magnolia) ?

afsalthaj avatar Nov 06 '21 13:11 afsalthaj