Skip to content

Conversation

@abhijit1859
Copy link
Contributor

Description

Added server-side request validation middleware using Zod.
Validates incoming requests for user, message, and chatbot endpoints to ensure required fields (name, email, message, userId) are present and properly formatted.
Returns 400 Bad Request with detailed error messages for invalid request

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

#14

List any issues that this pull request closes.

Checklist

Screenshot 2025-10-24 101611

@MD-IRFAN-RAJ
Copy link
Collaborator

@abhijit1859 resolve conflicts

@abhijit1859
Copy link
Contributor Author

done

@MD-IRFAN-RAJ MD-IRFAN-RAJ merged commit 7efb335 into OPCODE-Open-Spring-Fest:main Oct 25, 2025
2 checks passed
@MD-IRFAN-RAJ
Copy link
Collaborator

@all-contributors please add @abhijit1859 @nitingupta95 for code

@allcontributors
Copy link
Contributor

@MD-IRFAN-RAJ

I've put up a pull request to add @abhijit1859! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants