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
I want my app to have a single config.json file - but in this file there may be other properties that the enduser can customise (ie I have no idea what they may be called, and may be added outside of the application)
Can I use convict in this manner ? The conf.load() seems to load the json file without errors, but if I try and get a property that is not in the schema, it fails with the message "Error: cannot find configuration param "
thanks
The text was updated successfully, but these errors were encountered:
@jmls: that's the way convict has been designed. When in non-strict mode convict allows properties undefined in the schema to be present, but not to manipulate them, because manipulation is done through the schema. If you sometimes want to access custom properties without convict doing its job, you can read the config.json file through another mean.
I want my app to have a single config.json file - but in this file there may be other properties that the enduser can customise (ie I have no idea what they may be called, and may be added outside of the application)
Can I use convict in this manner ? The conf.load() seems to load the json file without errors, but if I try and get a property that is not in the schema, it fails with the message "Error: cannot find configuration param "
thanks
The text was updated successfully, but these errors were encountered: