CommunityPro / CommunityPro/ecommerce-api

Validate and Sanitize requests with Zod/Valibot

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Validate all requests (query, params, body) with [zod](https://zod.dev/) or [valibot](https://valibot.dev/) and throw custom error if validation fails.

Also sanitize requests after validation to prevent malicious attacks such as SQL injection and cross-site scripting (XSS).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.