lib/json_matchers/matcher.rb in json_matchers-0.10.0 vs lib/json_matchers/matcher.rb in json_matchers-0.11.0

- old
+ new

@@ -32,10 +32,11 @@ document_store = JsonSchema::DocumentStore.new Dir.glob("#{JsonMatchers.schema_root}/**/*.json"). map { |path| Pathname.new(path) }. map { |schema_path| Parser.new(schema_path).parse }. - each { |schema| document_store.add_schema(schema) } + map { |schema| document_store.add_schema(schema) }. + each { |schema| schema.expand_references!(store: document_store) } document_store end end end