pervasive type constraints
[scpubgit/DX.git] / lib / DX / Role / Update.pm
index f7cfcb5..97ee6c5 100644 (file)
@@ -2,7 +2,7 @@ package DX::Role::Update;
 
 use DX::Role;
 
-has target_path => (is => 'ro', required => 1);
+has target_path => (is => 'ro', required => 1, isa => ValuePath);
 
 sub _with_value_at_path {
   my ($self, $scope, $final_value, @path) = @_;