Module: WaterDrop::Contractable
- Defined in:
- lib/waterdrop/contractable.rb,
lib/waterdrop/contractable/rule.rb,
lib/waterdrop/contractable/result.rb,
lib/waterdrop/contractable/contract.rb
Overview
Note:
It is thread-safe to run but validations definitions should happen before threads are used.
Contract layer for WaterDrop and Karafka It aims to be “dry-validation” like but smaller and easier to handle + without dependencies
It allows for nested validations, etc