Create own implementation
Requirements for an implementation:
- It supports all validation rules described in the specification.
- It supports rules aliasing.
- It returns the error codes described in the specification.
- It is easy to add your own rules.
- It passes the test suite.
Tips
- Look at the JavaScript implementation: it is the reference implementation, and its rules are small, self-contained functions.
- Copy the
test_suitedirectory into your repository, or add this repository as a git submodule, and run it in your CI. - Follow the conventions of your language for the API (
registerAliasedRulein JavaScript,register_aliased_rulein Perl, and so on), but keep the rules format and the error codes exactly as in the specification.
Publish it
When your implementation passes the test suite, add it to the implementations list. If you add a runner to the conformance/ directory, the site will show your test suite results too.