api: add zod validation errors
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago
bc168d7e060a2c29253458e0d6def78404533a0e Browse filesParents
e942921Changed files
2
Additions
+16
Deletions
-2
api/package-lock.json
1 1
{
2 2
"name": "orbit-api",
3 3
"version": "0.0.0",
4 4
"lockfileVersion": 3,
5 5
"requires": true,
28 28
"multer-s3": "^3.0.1",
29 29
"pg": "^8.20.0",
30 30
"pino": "^10.3.1",
31 31
"pino-http": "^11.0.0",
32 32
"resend": "^6.12.3",
33 -
"zod": "^4.4.3"
33 +
"zod": "^4.4.3",
34 +
"zod-validation-error": "^5.0.0"
34 35
},
35 36
"devDependencies": {
36 37
"@ava/typescript": "^6.0.0",
37 38
"@types/better-sqlite3": "^7.6.13",
38 39
"@types/express": "^5.0.6",
9526 9527
"resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
9527 9528
"integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
9528 9529
"license": "MIT",
9529 9530
"funding": {
9530 9531
"url": "https://github.com/sponsors/colinhacks"
9532 +
}
9533 +
},
9534 +
"node_modules/zod-validation-error": {
9535 +
"version": "5.0.0",
9536 +
"resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-5.0.0.tgz",
9537 +
"integrity": "sha512-hmk+pkyKq7Q71PiWVSDUc3VfpzpvcRHZ3QPw9yEMVvmtCekaMeOHnbr3WbxfrgEnQTv6haGP4cmv0Ojmihzsxw==",
9538 +
"license": "MIT",
9539 +
"engines": {
9540 +
"node": ">=18.0.0"
9541 +
},
9542 +
"peerDependencies": {
9543 +
"zod": "^3.25.0 || ^4.0.0"
9531 9544
}
9532 9545
}
9533 9546
}
9534 9547
}
api/package.json
1 1
{
2 2
"name": "orbit-api",
3 3
"version": "0.0.0",
4 4
"description": "",
5 5
"license": "ISC",
38 38
"multer-s3": "^3.0.1",
39 39
"pg": "^8.20.0",
40 40
"pino": "^10.3.1",
41 41
"pino-http": "^11.0.0",
42 42
"resend": "^6.12.3",
43 -
"zod": "^4.4.3"
43 +
"zod": "^4.4.3",
44 +
"zod-validation-error": "^5.0.0"
44 45
},
45 46
"devDependencies": {
46 47
"@ava/typescript": "^6.0.0",
47 48
"@types/better-sqlite3": "^7.6.13",
48 49
"@types/express": "^5.0.6",
61 62
"tsconfig-paths": "^4.2.0",
62 63
"tsx": "^4.21.0",
63 64
"typescript": "^6.0.2"
64 65
}
65 66
}