Skip to content

Commit

Permalink
apigee-127#355 Set failedValidation in initializeMiddleware call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Kennedy committed Feb 24, 2016
1 parent 3099acc commit b804583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var initializeMiddleware = function initializeMiddleware (rlOrSO, resources, cal
return count += (apiDeclaration ? apiDeclaration.errors.length : 0);
}, 0) > 0) {
err = new Error('Swagger document(s) failed validation so the server cannot start');

err.failedValidation = true;
err.results = results;
}

Expand Down

0 comments on commit b804583

Please sign in to comment.