TechIsHiring / techishiring-website

A space where great Engineers and great jobs can find each other! We're on Twitter and LinkedIn and have a newsletter on Substack!
https://www.techishiring.com
MIT License
52 stars 34 forks source link

144 process-email type validation with zod #157

Closed Sadaf-A closed 1 year ago

Sadaf-A commented 1 year ago

Description

implementing type validation for the process-email API such that the Email object has three properties. name: string, email: string, which is an email, message: string

Resolves:

144

Motivation and Context

144

How Has This Been Tested?

Sent a successful request which was well-formatted and no errors occurred. Sent an invalid email and an error occurred. Send an invalid datatype and an error occurred

ran the server on local environment and used postman to hit the API

Screenshots (if appropriate):

valid request: valid

invalid email: invlaid email

invalid datatype: invalid datatype

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @TechIsHiring on Vercel.

@TechIsHiring first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
techishiring-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2023 5:25pm