Hi,<br><br>We've got a Moose class with this attribute:<br><br><br>has 'dataset' => (<br>    is => 'rw',<br>    isa => 'AG::Dataset',<br>    required => 0,<br>);<br><br clear="all">It's not required so you can happily create objects without supplying a value for it, but once you've done so, you can't then remove/clear it via "$object->dataset(undef)" :<br>
<br>    Attribute (dataset) does not pass the type constraint because: Validation failed for 'AG::Dataset' failed with value undef (not isa AG::Dataset)<br><br>Given that it's legal to have undefs in there initially it seems funny not to be allowed to revert to that state. Am I missing another property which will allow this? I'd rather not have to remove the validation or do it manually, seems like a backward step.<br>
<br>Thanks,<br>-- <br>Ian Macdonald<br><br>