lib/dry/schema/macros/maybe.rb in dry-schema-1.10.2 vs lib/dry/schema/macros/maybe.rb in dry-schema-1.10.3

- old
+ new

@@ -17,10 +17,12 @@ if args.include?(:nil?) raise ::Dry::Schema::InvalidSchemaError, "Using maybe with nil? predicate is redundant" end - value(*args, **opts, &block) + append_macro(Macros::Value) do |macro| + macro.call(*args, **opts, &block) + end self end # @api private