Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Second release

Compare
Choose a tag to compare
@mattkingshott mattkingshott released this 02 Apr 12:17
· 142 commits to master since this release

This release adds support for error messages. See the readme for more details.

IMPORTANT: The introduction of error message support resulted in a breaking change. When performing a multiple rule check, Iodine previously returned the rule name without the parameter when validation failed e.g. 'minimum'. Iodine now returns the full rule and parameter string e.g. 'minimum:7', thus allowing you to easily pass the result into the getErrorMessage method.

You should adjust your code to handle this change when updating to version 2.

A bug was also fixed so that comma-separated strings can be supplied to isIn and isNotIn e.g.

Iodine.isIn('a', 'a,b,c');
Iodine.is('a', 'in:a,b,c');