Skip to content

Releases: bdurand/soft_validator

Release list

v1.0.1

Choose a tag to compare

@bdurand bdurand released this 14 Jul 04:54
Immutable release. Only release title and notes can be modified.
5cd8e52

Fixed

  • Soft validation errors are now removed by object identity instead of by matching attribute, type, and options. Previously a soft validation could delete errors added by hard validations of the same type on the same attribute, and a soft error identical to an existing hard error would be left on the record as a duplicate.
  • Setting enforced: false on a soft validation now overrides the global SoftValidator.enforced setting.
  • The :allow_nil, :allow_blank, :strict, and :prepend options can now be used on a soft validation without raising an unknown validator error.
  • Wrapped validators with falsy options (e.g. soft: {presence: false}) are now skipped, matching the behavior of validates.
  • The :enforced option is now evaluated once per attribute validation instead of once per wrapped validator, so a Proc value (e.g. a feature flag) cannot produce inconsistent enforcement within a single validation pass.

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@bdurand bdurand released this 29 Mar 06:05

Added

  • Initial release