-
Notifications
You must be signed in to change notification settings - Fork 18
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
Default value for List type #61
Comments
Thanks @crixal for your input. Correct, default value for list is not really implemented, in good part because of limitations arising from using Lightbend Config itself to parse the given spec, see #51 . To reiterate from there, no limitations in the Config library itself, but by the way we try to leverage it for parsing the spec input. (BTW, while quickly playing with the potential syntax |
It's not available to create spec contains List type with default value.
For example, spec
intParams = [int]
generate list of integers.But default value for list will be ignored
intParams = [int] | [1,2,3]
. As workaroundoptional
annotation can be used with default value in the code.The text was updated successfully, but these errors were encountered: