You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Contact.js file defines a Mongoose schema for handling contact form submissions. While it covers basic fields like name, email, and message, there are opportunities for improvement to enhance validation and functionality.
Suggested Improvements:
1. Email Validation:
Enhance the email validation regex to ensure better format checking.
2. Message Length:
Consider adding a character limit for the message field to prevent excessively long submissions.
3. Additional Fields:
Discuss the potential addition of optional fields like subject or phone number for better context in contact messages.
4. Error Handling:
Ensure proper error handling is implemented in the route/controller that utilizes this schema.
I'm expecting a gssoc-ext with level labels!@PriyaGhosal
The text was updated successfully, but these errors were encountered:
Thank you for creating this issue! 🎉 Your issue will soon be reviewed by either the PA or a mentor. Please note that Level 1 is temporary and can be changed during the review. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊
You can also check our CONTRIBUTING.md for guidelines on contributing to this project.
The current Contact.js file defines a Mongoose schema for handling contact form submissions. While it covers basic fields like name, email, and message, there are opportunities for improvement to enhance validation and functionality.
Suggested Improvements:
1. Email Validation:
2. Message Length:
3. Additional Fields:
4. Error Handling:
I'm expecting a gssoc-ext with level labels! @PriyaGhosal
The text was updated successfully, but these errors were encountered: