Closed sberryman closed 9 years ago
SwaggerSpecConverter.prototype.convert() is not taking into account the basePath for a resourceListing.
SwaggerSpecConverter.prototype.convert()
in /lib/client.js (https://github.com/swagger-api/swagger-js/blob/master/lib/client.js#L182-L183) you are passing in self.url which I'm sure is fine for almost everyone but not for hapi-swagger's output.
/lib/client.js
I did a simple test of setting the docLocation by adding the following AFTER line 34: https://github.com/swagger-api/swagger-js/blob/master/lib/spec-converter.js#L34
// basePath if (obj.basePath) { this.setDocumentationLocation(obj.basePath); }
Once this was added, everything worked like a charm.
hmm could you send a PR and we can test?
done
SwaggerSpecConverter.prototype.convert()
is not taking into account the basePath for a resourceListing.in
/lib/client.js
(https://github.com/swagger-api/swagger-js/blob/master/lib/client.js#L182-L183) you are passing in self.url which I'm sure is fine for almost everyone but not for hapi-swagger's output.I did a simple test of setting the docLocation by adding the following AFTER line 34: https://github.com/swagger-api/swagger-js/blob/master/lib/spec-converter.js#L34
Once this was added, everything worked like a charm.