-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with List type while using zio-config-yaml along with yaml resource files #783
Comments
@ksarath I will take a look at this one. |
Sorry for the delay. Spotted the issue with RC versions. |
Currently working on |
Another issue that I found in this RC version is lazy evaluation of trees even after memoization. This will be fixed as part of the PR. |
This is ready for review, with an example inspired from the issue itself: |
Also included a reader example, although we are thinking whether to be hesitant about having exposing that in yamlSource. But not a concern of this PR. |
Recommending to use https://github.com/zio/zio-config/releases/tag/v2.0.4. |
Reopening the issue, just to allow users to test the latest RC versions that works with latest zio RC versions. https://github.com/zio/zio-config/releases/tag/v3.0.0-RC5 (along with corresponding 2.x version: https://github.com/zio/zio-config/releases/tag/v2.0.4) |
Hi,
zio-config-yaml
fails to load the configuration properly when there is List type in configuration. We are usingScala 3
,ZIO: 1.0.13
,zio-config: 2.0.0
,zio-config-yaml: 2.0.0
andzio-config-magnolia: 2.0.0
.Here are some examples. The failure happens when we use
fromYamlReader()
and when we use<> (orElse)
operator together withfromYamlFile()
. To illustrate this, I am using two resource filesapplication.yml
andapplication-dev.yml
application.yml
application-dev.yml
YamlConfigSpec.scala
The text was updated successfully, but these errors were encountered: