Language Independent Validation Rules (v2.0)
Star
Validator meets the following requirements:
- Rules are declarative and language independent
- Any number of rules for each field
- Validator should return together errors for all fields
- Exclude all fields that do not have validation rules described
- Possibility to validate complex hierarchical structures
- Easy to describe and understand validation
- Returns understandable error codes (neither error messages nor numeric codes)
- Easy to implement own rules (usually you will have several in every project)
- Rules should be able to change results output ("trim", "nested_object", for example)
- Multipurpose (user input validation, configs validation, contracts programming etc)
- Unicode support
Try online
Existing implemenations
Documentation
Posts and talks about LIVR
- "LIVR - Data Validation Without Any Issues" from LIVR creator
- "Language Independent Validation Rules (LIVR) for Perl6"
- Talk on LIVR 2.0 at the OSDN-UA 2017 conference (Russian)
- Article on LIVR & Perl implementation in the PragmaticPerl magazine (Russian)