Skip to content

Commit f47c2da

Browse files
committed
deref node kinda recursively
1 parent 1473207 commit f47c2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scorpio/json/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def deref
5757

5858
match = content['$ref'].match(/\A#/)
5959
if match
60-
return self.class.new_by_type(document, Hana::Pointer.parse(match.post_match))
60+
return self.class.new_by_type(document, Hana::Pointer.parse(match.post_match)).deref
6161
end
6262

6363
#raise(NotImplementedError, "cannot dereference #{content['$ref']}") # TODO

0 commit comments

Comments
 (0)