api-schema-builder
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "api-schema-builder", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "build schema with validators for each endpoint", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -17,3 +17,2 @@ 'use strict'; | ||
function buildSchema(swaggerPath, options) { | ||
let updatedOptions = Object.assign({}, DEFAULT_SETTINGS, options); | ||
return Promise.all([ | ||
@@ -23,7 +22,8 @@ SwaggerParser.dereference(swaggerPath), | ||
]).then(function ([dereferenced, referenced]) { | ||
return buildValidations(referenced, dereferenced, updatedOptions); | ||
return buildValidations(referenced, dereferenced, options); | ||
}); | ||
} | ||
function buildValidations(referenced, dereferenced, options) { | ||
function buildValidations(referenced, dereferenced, receivedOptions) { | ||
const options = Object.assign({}, DEFAULT_SETTINGS, receivedOptions); | ||
const { buildRequests, buildResponses } = options; | ||
@@ -30,0 +30,0 @@ const schemas = {}; |
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
49303