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
It should be possible to state the valid values for a config option and check that either the default value is used or that the option supplied is valid.
This would avoid issues such as the one seen here chef/chef#1509 where cookbook_path was set to nil leading to odd errors.
The text was updated successfully, but these errors were encountered:
Would it also be useful to be able to specify whether a config option is required? I'm picturing a similar system as how attributes are defined in a Chef cookbook LWRP:
require'mixlib/config'classValidatedConfig# something like this?configurable('string').required.is_a(String)end
It should be possible to state the valid values for a config option and check that either the default value is used or that the option supplied is valid.
This would avoid issues such as the one seen here chef/chef#1509 where cookbook_path was set to nil leading to odd errors.
The text was updated successfully, but these errors were encountered: