express-zod-safe 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ By default, the `validate` middleware will send a 400 Bad Request response with
|
|
|
74
74
|
// ... extending the previous example
|
|
75
75
|
|
|
76
76
|
const handler = (errors, req, res, next) => {
|
|
77
|
-
|
|
77
|
+
res.status(400).json({
|
|
78
78
|
message: 'Invalid request data',
|
|
79
79
|
errors: errors.map((error) => error.message),
|
|
80
80
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-zod-safe",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "TypeScript-friendly middleware designed for Express applications, leveraging the robustness of Zod schemas to validate incoming request bodies, parameters, and queries.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|