in?
andnot_in?
works as expected when the accepted values are a single-item list (issue #55 fixed via #58)
Drops.Type
module that allows you to define custom types (via #36)Drops.Type.Validator
protocol that allows you to define custom validators for your types- Added built-in
Drops.Types.Number
type (issue #33) - Added
union
to type definition DSL (issue #37)
- Warning about
conform
callback is gone (issue #34)
- All built-in types have been refactored to use the validator protocol
Drops.Types.Sum
was renamed toDrops.Types.Union
- [
Drops.Contract
] Rules are now correctly applied only to the root map (via #32)
- Added
Drops.Contract
module for defining validation schemas with additional rules - Added
Drops.Validator
module for running validation functions against input - Added
Drops.Validator.Messages.DefaultBackend
that's configured by default in contracts - Added
Drops.Types
module 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.Predicates
module which provides many common predicate functions likefilled?
,gt?
,size?
etc. - Added
Drops.Casters
module which provides common type casting functions that can be used with the built-in types
Reserving the package name