Prior to this commit, Vapor did not support nested keys or structures,
which meant that all the configs would have to be specified at the top
level. For example:
If, for example, we're interested in the database port and we have the
configuration both in the file and the corresponding environment
variable of "APP_DATABASE_PORT", we can access the appropriate value
using ["database", "port"].
Prior to this commit, Vapor did not support nested keys or structures, which meant that all the configs would have to be specified at the top level. For example:
This commit allows for nested configurations coming in and will flatten then to a key-path list. The above example can now be specified as:
If, for example, we're interested in the database port and we have the configuration both in the file and the corresponding environment variable of "APP_DATABASE_PORT", we can access the appropriate value using
["database", "port"]
.Closes #14.