api-doc-validator
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -44,3 +44,3 @@ | ||
const ajv = Api.getAjv({type: 'request', endpoint: e, context: this, meta}); | ||
const errorHandler = context.errorHandler || Api.errorHandler; | ||
const {errorHandler, resultHandler} = Api; | ||
@@ -147,2 +147,6 @@ if (e.params) { | ||
if (resultHandler) { | ||
return resultHandler({statusCode, response: body, endpoint: e, context: this, meta}); | ||
} | ||
if (statusCode >= 300) { | ||
@@ -149,0 +153,0 @@ throw res; |
{ | ||
"name": "api-doc-validator", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"description": "api doc and validator", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"@babel/types": "^7.18.10", | ||
"adv-parser": "^2.3.1", | ||
"adv-parser": "^2.4.0", | ||
"commander": "^5.1.0", | ||
@@ -35,0 +35,0 @@ "glob": "^7.2.3", |
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
59161
1657
Updatedadv-parser@^2.4.0