-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Right now the resolution priority is Override > Env > Secret File > Config File > Initial Values > Default
We should let users chose a different order by programmatically expose a stepped resolution, by splitting each resolution:
const configSchema = schema({ ...someSchema });
const config = configSchema
.loadValues({ ...initialValues })
.loadEnv()
.loadConfig({ configPath })
.override({ ...overrideValues })
.loadSecrets()
.validate();
// in this case secrets > override > configFile > env > initialValues > defaultAlso we should let this order to be configured in the bootstrap with something like:
const service = bootstrap(configSchema, {
resolve: (configSchema) => {
// ...custom resolution...
},
...otherOptions,
},
(config) => {
// ...factory function...
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels