@axa/bautajs-fastify
Advanced tools
Comparing version
@@ -23,2 +23,10 @@ "use strict"; | ||
if (request.validationError) { | ||
// This error is intentionally logged as trace because for most of the errors is an expected error | ||
request.log.trace({ | ||
error: { | ||
name: request.validationError.name, | ||
message: request.validationError.message, | ||
stack: request.validationError.stack | ||
} | ||
}, `Fastify schema validation error found on the request`); | ||
reply.status(400); | ||
@@ -25,0 +33,0 @@ throw new bautajs_core_1.ValidationError('The request was not valid', mapFsValidationToLocationErrors(request.validationError) || [], 400); |
{ | ||
"name": "@axa/bautajs-fastify", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "A bautaJS fastify plugin. Allows auto exposing the bautaJS operations.", | ||
@@ -36,3 +36,3 @@ "main": "dist", | ||
"dependencies": { | ||
"@axa/bautajs-core": "^3.0.1", | ||
"@axa/bautajs-core": "^3.1.0", | ||
"@fastify/swagger": "^7.6.1", | ||
@@ -43,6 +43,6 @@ "fastify": "^4.15.0", | ||
"devDependencies": { | ||
"@axa/bautajs-datasource-rest": "^3.0.1", | ||
"@axa/bautajs-datasource-rest": "^3.1.0", | ||
"@axa/bautajs-dev-config": "^3.0.1" | ||
}, | ||
"gitHead": "2a4f575cd9b7849b5f79f75ee61a8f076a7e542f" | ||
"gitHead": "eb7d503d86feb87a58428ad97bd9ca74ba0d8460" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42481
1.57%463
1.76%0
-100%Updated