Skip to content

Commit

Permalink
DEC-623: Switch from joi to zod
Browse files Browse the repository at this point in the history
  • Loading branch information
luixo committed Oct 22, 2022
1 parent ba4f89f commit 3ace53a
Show file tree
Hide file tree
Showing 137 changed files with 2,626 additions and 2,711 deletions.
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ This is an RPC-style API. All endpoints are POSTs and all bodies are JSON. This

## Input Validation

All endpoints which accept input (JSON bodies) should validate that input with [Joi](https://joi.dev/). The best way to learn how to do this is to inspect an existing endpoint.
All endpoints which accept input (JSON bodies) should validate that input with [zod](https://github.com/colinhacks/zod). The best way to learn how to do this is to inspect an existing endpoint.

## Authentication

Expand Down
7 changes: 0 additions & 7 deletions backend/modules/template/dto.ts

This file was deleted.

2 changes: 0 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"express": "^4.18.1",
"firebase-admin": "^10.0.0",
"form-data": "^4.0.0",
"joi": "^17.4.2",
"kysely": "^0.20.0",
"luxon": "^3.0.1",
"mailgun.js": "^7.0.2",
Expand All @@ -55,7 +54,6 @@
"@nestjs/testing": "^8.0.0",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.1",
"@types/joi": "^17.2.3",
"@types/luxon": "^3.0.0",
"@types/node": "^16.0.0",
"@types/pg": "^8.6.5",
Expand Down
Loading

0 comments on commit 3ace53a

Please sign in to comment.