Skip to content

Commit

Permalink
Added support for reporting user errors with validation
Browse files Browse the repository at this point in the history
  • Loading branch information
VShingala committed May 9, 2023
1 parent 4428f77 commit 2e656c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/common/generateValidationError.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ function generateError (definition, definitionVersion, error) {
validate,
valid = true;

// Log original error for better obseravibility in case of User errors
console.error(error);

addFormats(ajv);

if (definitionVersion === openapi3Utils.version) {
Expand Down

0 comments on commit 2e656c7

Please sign in to comment.