Seeking Method to Convert Between `Schema` and `Config` Without Redundancy
Is there an easy way to convert between a
I've seen
Perhaps there's a way to convert
Schema and a Config? Context is I have a service that is normally configured by HTTP requests (validated with existing schemas), and I would like the ability to set up an initial configuration using environment variables, so I thought I'd reach for Config.I've seen
Config.validate and Config.withDescription; however, I'd like to avoid double-defining if possible.Perhaps there's a way to convert
CONFIG_OPTION -> configOption in @effect/schema that I haven't seen yet?