Skip to content
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

Environment variable overrides for ConfigList do not parse #99

Open
neko-kai opened this issue Dec 17, 2019 · 0 comments
Open

Environment variable overrides for ConfigList do not parse #99

neko-kai opened this issue Dec 17, 2019 · 0 comments

Comments

@neko-kai
Copy link

neko-kai commented Dec 17, 2019

Array overrides with environment variables, such as:

-Dsettings.list.0.elem="value"

Do not get parsed properly by circe config, this produces an error:

  C[A]: DownField(list)

Internally this structure gets printed as:

{"list":{"0":{"elem":"value"}}}

So it probably gets converted to an object with "0" as a key, not to a JsonArray. This would need either smart detection of objects with numeric keys or some kind of delaying of Json conversion as discussed here: #12 (comment)

See description of the syntax: lightbend/config#86 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant