brandur / json_schema

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

Doesn't expand references by default #37

Closed nornagon closed 8 years ago

nornagon commented 8 years ago

It took me some digging in the source to discover that you need to call JsonSchema::ReferenceExpander#expand in order for $refs to be expanded. Should probably have JsonSchema.parse! do that automatically, or document this behaviour.