X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDX%2FAction%2FBindValue.pm;h=57b36d8602c2825ed5bdfa97601ad5bac60027ee;hb=2548ce615db02d9ebd44d15359c1220aaf06798f;hp=c8f43d163e7017287fe55fe080dff1818e69ac33;hpb=f69aaaffa3d5d090440794721e00cf8fc212ee88;p=scpubgit%2FDX.git diff --git a/lib/DX/Action/BindValue.pm b/lib/DX/Action/BindValue.pm index c8f43d1..57b36d8 100644 --- a/lib/DX/Action/BindValue.pm +++ b/lib/DX/Action/BindValue.pm @@ -6,7 +6,7 @@ use DX::Class; with 'DX::Role::SimpleAction'; -has new_value => (is => 'ro', required => 1); +has new_value => (is => 'ro', required => 1, isa => Value); sub for_deparse { my ($self) = @_; @@ -22,10 +22,12 @@ sub for_deparse { sub _build__updates { my ($self) = @_; - DX::Update::SetValue->new( - target_path => $self->target_path, - new_value => $self->new_value, - ); + [ + DX::Update::SetValue->new( + target_path => $self->target_path, + new_value => $self->new_value, + ) + ] } 1;