diff --git a/lib/swagger.js b/lib/swagger.js index b879a18..23fbff0 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -23,6 +23,9 @@ var cors = require('cors'); * @param {Object} opts Options. */ function Swagger(loopbackApplication, swaggerApp, opts) { + if (opts && opts.swaggerVersion) + console.warn('loopback-explorer\'s options.swaggerVersion is deprecated.'); + opts = _defaults(opts || {}, { swaggerVersion: '1.2', basePath: loopbackApplication.get('restApiRoot') || '/api',