lib/datacaster/definition_dsl.rb in datacaster-3.0.0 vs lib/datacaster/definition_dsl.rb in datacaster-3.1.0
- old
+ new
@@ -2,10 +2,9 @@
require 'date'
module Datacaster
class DefinitionDSL
include Datacaster::Predefined
- include Dry::Monads[:result]
# Translates hashes like {a: <IntegerChecker>} to <HashSchema {a: <IntegerChecker>}>
# and arrays like [<IntegerChecker>] to <ArraySchema <IntegerChecker>>
def self.expand(definition)
case definition