-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Current behaviour:
The resource validation is being applied whether the config value is set to 'true' or 'false'
Expected behaviour
Setting the validation.enabled value to 'false' should disable the resource validation
Bug solution
https://github.com/jembi/hearth/blob/master/lib/server.js#L70
hearth/lib/plugins/validator.js
Line 38 in 15fe33c
| if (!config.getConf('validation:enabled')) { |
The places where this config is being checked needs to be updated to check the string value coming back from the config. At the moment, the conditions are assuming these are Booleans and evaluate to true for both string values ('true' / 'false')
Metadata
Metadata
Assignees
Labels
No labels