Skip to content

Commit

Permalink
fix: Added try/catch for pass through
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinshahfws committed Jul 8, 2024
1 parent 6216c25 commit 6cb1c10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/validate/validator/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ export const validatePasshtroughs = (json) => {
delete source.examples
}

console.log('source ** ', JSON.stringify(source))
console.log('destination ** ', JSON.stringify(destination))

if (!schemasMatch(source, destination)) {
const properties = getPropertiesInSchema(destination, json)

Expand Down Expand Up @@ -264,6 +267,7 @@ export const validatePasshtroughs = (json) => {
}
}
})
console.log('result ** ', JSON.stringify(result))
if (result.errors.length) {
result.valid = false
result.errors.forEach(error => addPrettyPath(error, json))
Expand Down

0 comments on commit 6cb1c10

Please sign in to comment.