dashbitco / nimble_options

A tiny library for validating and documenting high-level options. 💽
Apache License 2.0
507 stars 38 forks source link

Validate default values #50

Closed msaraiva closed 4 years ago

msaraiva commented 4 years ago

Currently, default values are not validated so if the user changes the schema and forgets to update related default values accordingly, the resulting options returned by validate will contain invalid options. This PR fixes the issue and also allows addressing #49 more consistently by setting [] as a default value.