with 'DX::Role::Action';
-has target_path => (is => 'ro', required => 1);
+has target_path => (is => 'ro', required => 1, isa => ValuePath);
-has _updates => (is => 'lazy');
+has _updates => (is => 'lazy', isa => ArrayRef[Update]);
requires '_build__updates';
sub dry_run {
my ($self, $hyp) = @_;
- my ($scope, @events) = $hyp->scope->apply_updates($self->_updates);
+ my ($scope, @events) = $hyp->scope->apply_updates(@{$self->_updates});
return (
$hyp->but(
scope => $scope,