LIVR: Language Independent Validation Rules
livr-spec.org
livr-spec.org
From the LIVR docs:
"Rules should be able to change results output"
My opinion is that if you're going to use a declarative validation engine like this then it should not be able to modify the data entity being validated.
It seems to be missing the "step" constraint from HTML5 Form Validations and nullability constraints from SQL (though there is overlap with 'required').
What about having a common description of the supported behaviours then compile these to each supported language? Like AWS generates its language bindings
API descriptions: https://github.com/aws/aws-sdk-js/tree/master/apis
https://awsfeed.com/whats-new/open-source/generate-python-ja...
For example, there could be a tool that takes LIVR spec as input and generates nicely typed Go could that returns properly validated input?
(It's not something I've spent a lot of time looking at)