Releases: athena-framework/validator
Releases · athena-framework/validator
v0.4.1
Immutable
release. Only release title and notes can be modified.
Changed
- Leverage
mimecomponent for more robustAVD::Constraints::FileMIME type validation (#545) (@Blacksmoke16)
Added
- Add
AVD::Spec::CompoundConstraintTestCaseto make testingAVD::Constraints::Compoundeasier (#540) (@Blacksmoke16) - Add support for
ATH::UploadedFiletoAVD::Constraints::FileandAVD::Constraints::Image(#559) (@Blacksmoke16)
Fixed
- Fix equality between
AVD::Constraintinstances (#540) (@Blacksmoke16)
v0.4.0
Changed
- Breaking: Normalize exception types (#428) (@Blacksmoke16)
Added
- Breaking: Add and make
require_tld: truethe default forAVD::Constraints::URL(#492) (@Blacksmoke16) - Add example usages to
AVD::Constraints::*docs (#483, #493) (@tamdaz, @Blacksmoke16)
v0.3.4
Changed
- Update minimum
crystalversion to~> 1.13.0(#433) (@Blacksmoke16)
v0.3.3
Changed
- Integrate website into monorepo (#365) (@Blacksmoke16)
v0.3.2
Fixed
- Fix compiler error when using a composite constraint with a single member and no
of AVD::Constraint(#292) (@Blacksmoke16)
v0.3.1
Changed
- Update some links in preparation for Athena Framework
0.18.0(#261) (@Blacksmoke16)
Fixed
- Fix issue when using
AVD::Metadata::GetterMetadatawith methods that have parameters (#252) (@Blacksmoke16)
v0.3.0
Changed
- Breaking: update default
AVD::Constraints::Email::Modeto be:html5(#230) (@Blacksmoke16) - Refactor
AVD::Constraints::IPto use new dedicatedSocket::IPAddressmethods (#205) (@Blacksmoke16) - Update minimum
crystalversion to~> 1.6(#205) (@Blacksmoke16)
Added
- Add
AVD::Constraints::Collection(#229) (@Blacksmoke16) - Add
AVD::Constraints::Existence,AVD::Constraints::Required, andAVD::Constraints::Optionalfor use with the collection constraint (#229) (@Blacksmoke16) - Add
AVD::Spec::ConstraintValidatorTestCase#expect_validate_value_atto more easily handle validation of nested constraints (#229) (@Blacksmoke16) - Add
AVD::Constraints::Email::Mode::HTML5_ALLOW_NO_TLDthat allows matchingHTMLinput field validation exactly (#231) (@Blacksmoke16)
Removed
- Breaking: remove
AVD::Constraints::Email::Mode::Loose(#230) (@Blacksmoke16)
Fixed
- Breaking: fix spelling of
AVD::Constraints::ISSN#require_hyphenparameter (#222) (@Blacksmoke16) - Fix property path display issue with
Enumerableobjects (#229) (@Blacksmoke16) - Fix
AVD::Constraints::Validconstraints incorrectly being allowed withinAVD::Constraints::Composite(#229) (@Blacksmoke16)
v0.2.1
Added
- Add support for exclusive end support to
AVD::Constraints::Range(#184) (@Blacksmoke16)
Changed
- Include allowed MIME types within
AVD::Constraints::Imageif 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
Added
- Add the AVD::Constraints::File constraint (#153) (@Blacksmoke16)
- Allow
AVD::Spec::MockValidatorto dynamically configure returned violations (#155, #157) (@Blacksmoke16) - Add the AVD::Constraints::Image constraint (#153) (@Blacksmoke16)
- Add getting started documentation to API docs (#172) (@Blacksmoke16)
Changed
- Breaking: make
AVD::ConstraintValidatorclasses (#154) (@Blacksmoke16) - Breaking:
AVD::ExecutionContextis no longer a generic type (#156) (@Blacksmoke16) - Update
assert_violationto use a clearer failure message if no violations were found (#153) (@Blacksmoke16) - Update
AVD::Constraints::ISINto use the validator off the context versus an ivar (#155) (@Blacksmoke16) - Update minimum
crystalversion to~> 1.4.0(#169) (@Blacksmoke16)
Removed
- Breaking: removed
AVD::Spec::MockValidator#violations=(#155) (@Blacksmoke16)
Fixed
- Fix
AVD::Violation::ConstraintViolationnot comparing correctly (#153) (@Blacksmoke16) - Ensure only
Indexabletypes can be used withAVD::Constraints::Unique(#168) (@Blacksmoke16)
v0.1.7
Fixes
- Ensure callback constraint methods are not added as getters by @Blacksmoke16 in athena-framework/athena#132