Skip to content

Releases: athena-framework/validator

v0.3.4

31 Jul 17:35
v0.3.4
Compare
Choose a tag to compare

Changed

v0.3.3

10 Apr 00:27
v0.3.3
Compare
Choose a tag to compare

Changed

v0.3.2

10 Oct 03:26
v0.3.2
Compare
Choose a tag to compare

Fixed

  • Fix compiler error when using a composite constraint with a single member and no of AVD::Constraint (#292) (@Blacksmoke16)

v0.3.1

18 Feb 17:34
v0.3.1
Compare
Choose a tag to compare

Changed

  • Update some links in preparation for Athena Framework 0.18.0 (#261) (@Blacksmoke16)

Fixed

  • Fix issue when using AVD::Metadata::GetterMetadata with methods that have parameters (#252) (@Blacksmoke16)

v0.3.0

07 Jan 17:01
v0.3.0
Compare
Choose a tag to compare

Changed

  • Breaking: update default AVD::Constraints::Email::Mode to be :html5 (#230) (@Blacksmoke16)
  • Refactor AVD::Constraints::IP to use new dedicated Socket::IPAddress methods (#205) (@Blacksmoke16)
  • Update minimum crystal version to ~> 1.6 (#205) (@Blacksmoke16)

Added

  • Add AVD::Constraints::Collection (#229) (@Blacksmoke16)
  • Add AVD::Constraints::Existence, AVD::Constraints::Required, and AVD::Constraints::Optional for use with the collection constraint (#229) (@Blacksmoke16)
  • Add AVD::Spec::ConstraintValidatorTestCase#expect_validate_value_at to more easily handle validation of nested constraints (#229) (@Blacksmoke16)
  • Add AVD::Constraints::Email::Mode::HTML5_ALLOW_NO_TLD that allows matching HTML input field validation exactly (#231) (@Blacksmoke16)

Removed

Fixed

  • Breaking: fix spelling of AVD::Constraints::ISSN#require_hyphen parameter (#222) (@Blacksmoke16)
  • Fix property path display issue with Enumerable objects (#229) (@Blacksmoke16)
  • Fix AVD::Constraints::Valid constraints incorrectly being allowed within AVD::Constraints::Composite (#229) (@Blacksmoke16)

v0.2.1

05 Sep 17:00
Compare
Choose a tag to compare

Added

  • Add support for exclusive end support to AVD::Constraints::Range (#184) (@Blacksmoke16)

Changed

  • Include allowed MIME types within AVD::Constraints::Image if they were customized (#183) (@Blacksmoke16)
  • Breaking: ensure parameter names defined on interfaces match the implementation (#188) (@Blacksmoke16)

Fixed

  • Fix some file size factorization edge cases in AVD::Constraints::File (#182) (@Blacksmoke16)
  • Fix duplicating constraints due to Crystal generics bug (#192) (@Blacksmoke16)

v0.2.0

14 May 15:21
Compare
Choose a tag to compare

Added

Changed

  • Breaking: make AVD::ConstraintValidator classes (#154) (@Blacksmoke16)
  • Breaking: AVD::ExecutionContext is no longer a generic type (#156) (@Blacksmoke16)
  • Update assert_violation to use a clearer failure message if no violations were found (#153) (@Blacksmoke16)
  • Update AVD::Constraints::ISIN to use the validator off the context versus an ivar (#155) (@Blacksmoke16)
  • Update minimum crystal version to ~> 1.4.0 (#169) (@Blacksmoke16)

Removed

Fixed

  • Fix AVD::Violation::ConstraintViolation not comparing correctly (#153) (@Blacksmoke16)
  • Ensure only Indexable types can be used with AVD::Constraints::Unique (#168) (@Blacksmoke16)

v0.1.7

27 Dec 15:22
Compare
Choose a tag to compare

Fixes

Abstract validatable types

14 Dec 02:02
6fa7f36
Compare
Choose a tag to compare

Fixes

Some fixes

30 Oct 15:41
50aad09
Compare
Choose a tag to compare

Fixes