lib/json-schema/validator.rb in json-schema-0.9.4 vs lib/json-schema/validator.rb in json-schema-0.9.5
- old
+ new
@@ -132,11 +132,11 @@
end
if path && path[0,1] == '/'
uri.path = Pathname.new(path).cleanpath.to_s
else
- uri.path = (Pathname.new(parent_schema.uri.path) + path).cleanpath.to_s
+ uri = parent_schema.uri.merge(path)
end
uri.fragment = ''
end
if Validator.schemas[uri.to_s].nil?
@@ -384,6 +384,6 @@
end
data
end
end
-end
\ No newline at end of file
+end