Skip to content

Commit

Permalink
Fix jsonReferenceLoader for custom filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored Nov 23, 2016
1 parent e18f006 commit 6bfc183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsonLoader.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (l *jsonReferenceLoader) JsonReference() (gojsonreference.JsonReference, er
}

func (l *jsonReferenceLoader) LoaderFactory() JSONLoaderFactory {
return &DefaultJSONLoaderFactory{}
return &FileSystemJSONLoaderFactory{
fs: l.fs,
}
}

// NewReferenceLoader returns a JSON reference loader using the given source and the local OS file system.
Expand Down

0 comments on commit 6bfc183

Please sign in to comment.