pervasive type constraints
[scpubgit/DX.git] / lib / DX / Value / String.pm
index 33b110a..c50bd3c 100644 (file)
@@ -4,7 +4,7 @@ use DX::Class;
 
 with 'DX::Role::Value';
 
-has string_value => (is => 'ro', required => 1);
+has string_value => (is => 'ro', required => 1, isa => Str);
 
 sub for_deparse { [ string => $_[0]->string_value ] }