loopback-connector-swagger icon indicating copy to clipboard operation
loopback-connector-swagger copied to clipboard

Support relative paths for 'Spec' in datasource.json

Open gunjpan opened this issue 10 years ago • 2 comments

Result of the discussion in a PR: https://github.com/strongloop/loopback-connector-swagger/pull/2#discussion_r62342520. Task list, if opted for Option B:

  • [ ] Define a new application setting, e.g. rootDir which should be set via app.set('rootDir', __dirname).
  • [ ] Modify loopback-boot to set this value, it already knows the value of rootDir.
  • [ ] When creating a data-source via app.dataSource(name, settings), pass the value of rootDir through juggler down to the connector, so that it can use it when resolving relative path.
  • [ ] In all connectors that work with file paths, use the provided rootDir value wherever appropriate.

cc/ @bajtos, @ritch, @raymondfeng

gunjpan avatar May 12 '16 16:05 gunjpan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 22 '17 18:08 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Sep 05 '17 18:09 stale[bot]