Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 23, 2024
1 parent b4deb7e commit 6bc6d01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ function find_ref(
path::String,
parent_dir::String,
)
if path == "" || path == "#" # This path refers to the root schema.
if haskey(id_map, path)
return id_map[path] # An exact path exists. Get it.
elseif path == "" || path == "#" # This path refers to the root schema.
return id_map[string(uri)]
elseif startswith(path, "#/") # This path is a JPointer.
return get_element(id_map[string(uri)], path[3:end])
Expand Down

0 comments on commit 6bc6d01

Please sign in to comment.