4 ms·
Very cool idea. Something I would enjoy using is a shorthand syntax for validation rule object declarations eg: new Validator = ({ age: 'int 22-48' }); If m
by LiterallyDoge 8y ago
Very cool idea. Something I would enjoy using is a shorthand syntax for validation rule object declarations eg:
new Validator = ({
age: 'int 22-48'
});
If memory serves you can parse that type of string in the Validator constructor and insert the Rule structures you already have in place of it.
- forg_js 8y agoI can't make this possible becacuse if there are nested objects forgjs cant make the diference between a rule and a value