z0mt3c / node-restify-swagger

Swagger generation for REST-Services built with node-restify and node.js based on validation schemas of node-restify-validation.
MIT License
29 stars 16 forks source link

fix scheme and versioning #3

Closed jessefulton closed 10 years ago

jessefulton commented 10 years ago

Swagger basePath was breaking on https

Also, the version set on the restify server was not being passed through (apparently the property name is servers)

pkg = require './package'

module.exports.server = server = restify.createServer
    name: pkg.name
    version: pkg.version

restifySwagger.configure server # versioning breaks without ,{version: pkg.version}
coveralls commented 10 years ago

Coverage Status

Coverage remained the same when pulling 8505e4e5f1b56aa42aae5299d44592cf82a8760e on jessefulton:fix-version-and-scheme into fbda2bb07d4420afbde031f481df66e49a6bb77e on z0mt3c:master.