loopback-connector-swagger
loopback-connector-swagger copied to clipboard
Support relative paths for 'Spec' in datasource.json
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
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.
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.