hapi-swagger
Advanced tools
Comparing version 14.2.3 to 14.2.4
@@ -115,2 +115,13 @@ import { Plugin } from '@hapi/hapi'; | ||
/** | ||
* Lists the required security schemes to execute this operation. The object can have multiple security schemes declared in it which are all required (that is, there is a logical AND between the schemes) | ||
* | ||
* The name used for each property MUST correspond to a security scheme declared in the {@link RegisterOptions.securityDefinitions} | ||
* | ||
* If the security scheme is of `type` "oauth2", then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty | ||
*/ | ||
type SecurityRequirementsType = { | ||
[securityDefinitionName: string]: string[]; | ||
}; | ||
interface LicenseOptions { | ||
@@ -442,3 +453,8 @@ /** | ||
*/ | ||
securityDefinitions?: {[name: string]: SecuritySchemeType} | ||
securityDefinitions?: { [name: string]: SecuritySchemeType }; | ||
/** | ||
* A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements) | ||
*/ | ||
security?: [SecurityRequirementsType]; | ||
} | ||
@@ -445,0 +461,0 @@ } |
{ | ||
"name": "hapi-swagger", | ||
"description": "A swagger documentation UI generator plugin for hapi", | ||
"version": "14.2.3", | ||
"version": "14.2.4", | ||
"author": "Glenn Jones", | ||
@@ -40,3 +40,5 @@ "repository": { | ||
"test:cov:html": "lab -r html -o coverage.html", | ||
"precommit": "yarn test" | ||
"precommit": "npm test", | ||
"postversion": "npm publish", | ||
"postpublish": "git push origin --all; git push origin --tags" | ||
}, | ||
@@ -43,0 +45,0 @@ "license": "MIT", |
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
113775
3108