Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #356 from seanpk/master
Browse files Browse the repository at this point in the history
#355 Set failedValidation in initializeMiddleware call
  • Loading branch information
whitlockjc committed Feb 24, 2016
2 parents 3099acc + b804583 commit 9e7badb
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 9e7badb

Please sign in to comment.