You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 workaround optional annotation can be used with default value in the code.
The text was updated successfully, but these errors were encountered:
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 intParams = [int] | [1,2,3], I ended up discovering and reporting lightbend/config#685 .
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: