-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate the schema to require defaults #254
Comments
This just bit us, when doing |
On
The error I get is..
Which is neither correct ( |
Convict understands : {
"something": {
"format": {
"format": "function"
},
"env": {
"default": "SOMETHING",
"format": "string"
}
}
} |
We can't do that because : Lines 241 to 245 in d263763
Or we should disable the magic normalizer when we use the strict mode. |
Default values are required for every config key.
If a default value is not set, convict does not throw a validation error.
If there are any missing
default
keys,config.validate()
should throw a validation error.The text was updated successfully, but these errors were encountered: