Build a comprehensive data validation and sanitization layer for [FRAMEWORK]. Implement: input validation schemas (Zod/Joi/Yup) for all API endpoints, custom validators for domain-specific rules, sanitization functions (HTML, SQL, XSS prevention), file upload validation, error message formatting (user-friendly + developer-friendly), middleware integration, client-side mirroring of server validation, and testing suite for edge cases.
Copy the prompt above and paste it into ChatGPT, Claude, Gemini, or any AI assistant. Replace the bracketed placeholders with your specific details.
Tried this prompt? Let us know how it worked — your reviews help other users find the best prompts.