Skip to content

Commit

Permalink
Fix apparent bug that was causing test tdi05 to fail (w3c/json-ld-api…
Browse files Browse the repository at this point in the history
  • Loading branch information
kasei committed Dec 19, 2019
1 parent f606f41 commit bd59469
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/JSONLD.pm
Expand Up @@ -829,9 +829,10 @@ package JSONLD {
}
}

my @keys = grep { not m/^[@](id|reverse|container|context|language|nest|prefix|type)$/ } keys %$value;
# https://github.com/w3c/json-ld-api/issues/261
my @keys = grep { not m/^[@](id|reverse|container|context|language|nest|prefix|type|direction)$/ } keys %$value;
if (scalar(@keys)) {
println "28" if $debug;
println "28 " . Data::Dumper->Dump([\@keys, $value], ['invalid_keys', 'value']) if $debug;
die 'invalid term definition'; # 28
}

Expand Down

0 comments on commit bd59469

Please sign in to comment.