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) = @_;
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;