Skip to content

2.0.0

Choose a tag to compare

@EnrickyHip EnrickyHip released this 10 Aug 00:13
· 18 commits to main since this release
  • Add DataType ArrayOf to be used as a type. Also allowing to define a type for its elements;
  • Add isArray rule to force a field to be an array;
  • Adapt min() and max() methods to validate arrays length;
  • Create method RequestValidator::validateArray() with specific methods to validate arrays (minLength, maxLength);
  • Add notEmpty rule to force a field to not be empty.