fastify-swagger
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -27,2 +27,3 @@ 'use strict' | ||
const securityDefinitions = opts.swagger.securityDefinitions || null | ||
const security = opts.swagger.security || null | ||
@@ -74,2 +75,5 @@ if (opts.exposeRoute === true) { | ||
} | ||
if (security) { | ||
swaggerObject.security = security | ||
} | ||
@@ -76,0 +80,0 @@ swaggerObject.paths = {} |
{ | ||
"name": "fastify-swagger", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Generate Swagger files automatically for Fastify.", | ||
@@ -26,7 +26,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"fastify": "^1.1.1", | ||
"fastify": "^1.2.1", | ||
"fs-extra": "^5.0.0", | ||
"standard": "^11.0.0", | ||
"swagger-parser": "^4.0.2", | ||
"swagger-ui-dist": "3.13.0", | ||
"swagger-ui-dist": "3.13.2", | ||
"tap": "^11.1.3" | ||
@@ -33,0 +33,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19490664
10186