lib/dry/schema/extensions/struct.rb in dry-schema-1.8.0 vs lib/dry/schema/extensions/struct.rb in dry-schema-1.9.0
- old
+ new
@@ -16,10 +16,10 @@
raise ArgumentError, "blocks are not supported when using "\
"a struct class (#{name.inspect} => #{args[0]})"
end
super(args[0].schema, *args.drop(1))
- type(schema_dsl.types[name].constructor(args[0]))
+ type(schema_dsl.types[name].constructor(args[0].schema))
else
super
end
end
})