Skip to content

Commit 34121ce

Browse files
resource keys can never contain anchors now
1 parent 88fc808 commit 34121ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/JSON/Schema/Modern/Document.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ sub BUILD ($self, $args) {
177177
$self->_add_resource($key => $value);
178178

179179
# we're adding a non-anchor entry for the document root
180-
++$seen_root if $value->{path} eq '' and $key !~ /#./
180+
++$seen_root if $value->{path} eq '';
181181
}
182182

183183
$self->_add_resource($original_uri.'' => {

0 commit comments

Comments
 (0)