brandur / json_schema

A JSON Schema V4 and Hyperschema V4 parser and validator.
MIT License
230 stars 45 forks source link

Fix nil exception when trying to expand relative reference #68

Closed brandur closed 8 years ago

brandur commented 8 years ago

When trying to expand relative references we can encounter a nil error when we try to examine the URI of the current schema and it doesn't have one. This patches the issue by just returning a nil in that situation so that a standard unresolvable reference error occurs.

Replaces #66.

brandur commented 8 years ago

Released as 0.13.3.