Skip to content

Commit

Permalink
Tweak StructureValidator to deal with Rakudo change that broke Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
japhb committed Feb 13, 2024
1 parent 16b8d6b commit 6b81f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MUGS/Util/StructureValidator.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub validate-structure($type, $data, $schema, $path = 'root') is export {
else {
X::MUGS::InvalidStructure.new(:$type, :path(path), :data(data),
:error("must be {schema.raku}")).throw
unless data ~~ schema;
unless schema.ACCEPTS(data);
}
}

Expand Down

0 comments on commit 6b81f33

Please sign in to comment.