node-convict icon indicating copy to clipboard operation
node-convict copied to clipboard

"required" property should be a must-have

Open manudiv opened this issue 3 years ago • 3 comments

manudiv avatar May 19 '21 11:05 manudiv

Agreed. It is rather odd to not be able to specify that "this property must be set from either a file or environment variable - no default is allowable".

AaronTorgerson avatar Jul 06 '22 17:07 AaronTorgerson

I would love this feature.

ath88 avatar Oct 19 '22 11:10 ath88

Additionally, the currently suggested way of setting default: null and format: String properties means that typings infer the values as null | undefined. Thus your build will fail if using Typescript, though on runtime only .validate() will throw an error.

arminrosu avatar Jan 17 '24 15:01 arminrosu