koorchik / LIVR

Language Independent Validation Rules Specification
http://livr-spec.org
289 stars 22 forks source link

Describe correct behavior for not registered rules #36

Open DanielHreben opened 8 years ago

DanielHreben commented 8 years ago

Mb add some tests also

Inconsistent behavior sample (erlang @Prots): http://livr-multi-playground.webbylab.com/#%7B%22rules%22%3A%22%7B%5Cn%20%20%20%20product_ids%3A%20'trololo'%5Cn%7D%22%2C%22input%22%3A%22%7B%5Cn%20%20%20%20product_ids%3A%201%5Cn%7D%22%7D

koorchik commented 8 years ago

Every implementation can decide but its own how report about syntax errors in validation rules.

koorchik commented 8 years ago

But, I agree that erlang implementation behavior is unexpected. It should be some sort of exception (or code error). But maybe it is ok for Erlang ideology