Skip to content

Commit

Permalink
Merge pull request xeipuuv#131 from emosbaugh/loader-custom-filesystem
Browse files Browse the repository at this point in the history
Fix jsonReferenceLoader for custom filesystems
  • Loading branch information
xeipuuv authored Dec 31, 2016
2 parents 5760b62 + 6bfc183 commit f06f290
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 f06f290

Please sign in to comment.