Open Perondas opened 9 months ago
See also for reference the way Spring does it:
Environment variables can also be used when binding to object lists. To bind to a List, the element number should be surrounded with underscores in the variable name.
For example, the configuration property my.service[0].other would use an environment variable named MY_SERVICE_0_OTHER.
That being said, I think that is a less well known feature than Spring's basic env var mapping, so Hoplite could reasonably use a different approach.
I am trying to load an arrayof strings from the environemnt. I cannot however figure out the correct syntax for it.
For example:
with
When I supply the environment variable:
It passes the entire string with the square brackets into the first position of the list.
Does Hoplite support some syntax for passing arrays?