Skip to content

0.0.5

Choose a tag to compare

@lsafer-meemer lsafer-meemer released this 28 Sep 13:37
· 41 commits to master since this release

Better validator with arrowkt raise and structured errors

  • added FormError, FormMapError, FormListError and FormSetError
  • added ValidatorScope (replaces ValidateScope)
  • added Validator
  • added utils for Validator and ValidatorScope

FIXES:

  • validation always reports last rule
  • onValidate block doesn't return after rule mismatch
  • value passed on validation of collection fields does not follow collection equals policy

BREAKING:

  • Changed type of FormField.error and FormField.errors
  • Changed name and type of validator parameters for field*(...) functions
  • Removed ValidateScope

Full Changelog: 0.0.4...0.0.5