get-focus / deprecated-focus-graph

Tools based on Redux to easily integrate forms, validate and manipulate data.
http://getfocus.io/focus-documentation/
MIT License
4 stars 3 forks source link

[__fake_focus_core_validation_function__] error validation #134

Closed GuenoleK closed 7 years ago

GuenoleK commented 7 years ago

Behaviour

An error is set with lodash _.isEmpty function when the checkbox is used (it returns true or false). It's not the wanted behaviour : https://lodash.com/docs/4.16.4#isEmpty

https://github.com/get-focus/focus-graph/blob/dda69ce42a0ea9cc02be4690e867a164da6b83f9/src/middlewares/validations.js#L35

The test here is always false when a checkbox send true/false value.