Skip to content

v0.1.0

Compare
Choose a tag to compare
@solnic solnic released this 25 Oct 08:50
· 73 commits to main since this release
v0.1.0
70b495c
  • 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 type
    • Drops.Types.List - a list if member type
    • Drops.Types.Map - a map with typed keys
    • Drops.Types.Sum - a composition of two types
    • Drops.Types.Cast - a type that defines from-to casting types and caster options
  • Added Drops.Predicates module which provides many common predicate functions like filled?, gt?, size? etc.
  • Added Drops.Casters module which provides common type casting functions that can be used with the built-in types