View Source CHANGELOG
v0.2.1 - 2024-07-26
Fixes
in?andnot_in?works as expected when the accepted values are a single-item list (issue #55 fixed via #58)
v0.2.0 - 2024-02-01
Features
Drops.Typemodule that allows you to define custom types (via #36)Drops.Type.Validatorprotocol that allows you to define custom validators for your types- Added built-in
Drops.Types.Numbertype (issue #33) - Added
unionto type definition DSL (issue #37)
Fixes
- Warning about
conformcallback is gone (issue #34)
Changes
- All built-in types have been refactored to use the validator protocol
Drops.Types.Sumwas renamed toDrops.Types.Union
v0.1.1 - 2023-10-27
Fixes
- [
Drops.Contract] Rules are now correctly applied only to the root map (via #32)
v0.1.0 - 2023-10-25
Features
- Added
Drops.Contractmodule for defining validation schemas with additional rules - Added
Drops.Validatormodule for running validation functions against input - Added
Drops.Validator.Messages.DefaultBackendthat's configured by default in contracts - Added
Drops.Typesmodule with the following built-in types:Drops.Types.Type- basic typeDrops.Types.List- a list if member typeDrops.Types.Map- a map with typed keysDrops.Types.Sum- a composition of two typesDrops.Types.Cast- a type that defines from-to casting types and caster options
- Added
Drops.Predicatesmodule which provides many common predicate functions likefilled?,gt?,size?etc. - Added
Drops.Castersmodule which provides common type casting functions that can be used with the built-in types
v0.0.0 - 2023-09-04
Reserving the package name