chore: switch to zod for schema validation

This commit is contained in:
Riccardo
2023-08-30 21:18:34 +02:00
parent a36daaaec3
commit ce84aa497f
3 changed files with 26 additions and 20 deletions

View File

@@ -13,7 +13,7 @@
"lint": "eslint --ext .ts . --fix",
"typecheck": "tsc --noEmit",
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"test": "jest --runInBand",
"test": "jest --runInBand --detectOpenHandles",
"prepare": "husky install",
"db:generate": "prisma generate",
"db:migrate": "prisma migrate deploy",
@@ -33,10 +33,11 @@
"cors": "^2.8.5",
"express": "^4.18.2",
"helmet": "^7.0.0",
"jsonschema": "^1.4.1",
"prisma": "^5.1.1",
"winston": "^3.10.0",
"winston-daily-rotate-file": "^4.7.1"
"winston-daily-rotate-file": "^4.7.1",
"zod": "^3.22.2",
"zod-validation-error": "^1.5.0"
},
"devDependencies": {
"@commitlint/cli": "^17.6.6",