zio / zio-config

Easily use and document any config from anywhere in ZIO apps
https://zio.dev/zio-config
Apache License 2.0
233 stars 113 forks source link

Switch to use ZIO Schema for derivation #665

Open jdegoes opened 3 years ago

jdegoes commented 3 years ago

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] = ???
afsalthaj commented 3 years ago

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