Can anyone explain to me what the (undocumented) `...
# hoplite
s
Can anyone explain to me what the (undocumented)
prefix
parameter of the
loadConfig()
functions does? When loading e.g. from a YAML file, does it allow to limited loading to a nested key of that name?
Yeah, this was confirmed here. Thanks @rocketraman 🙂
👍 1
r
I did forget to mention that
ConfigBinder
can also be used (via
loader.configBinder()
to parse the configuration just once, and then decode different prefixes into independent data classes. I'll update the GH comments for future searchers.
@Sebastian Schuberth @sam Documentation added here: https://github.com/sksamuel/hoplite/pull/490
🙏🏻 1
s
👍🏻