@@ -51,7 +51,7 @@ alwaysApply: true
5151### File and Function Organization - Node.js/TypeScript Structure
5252- **Services**: Keep services focused and under 200 lines
5353- **Controllers**: Keep controllers thin - only routing and validation
54- - **DTOs**: Use class-validator for all input validation
54+ - **DTOs**: Use JSONSchema7 for all input validation
5555- **Integrations**: Follow `src/api/integrations/` structure for new integrations
5656- **Utils**: Extract common functionality into well-named utilities
5757- **Types**: Define clear TypeScript interfaces and types
@@ -78,7 +78,7 @@ alwaysApply: true
7878- **Graceful Degradation**: Handle service failures gracefully
7979
8080### Security Standards
81- - **Input Validation**: Validate all inputs with class-validator
81+ - **Input Validation**: Validate all inputs with JSONSchema7
8282- **Authentication**: Use API keys and JWT tokens
8383- **Rate Limiting**: Implement rate limiting for APIs
8484- **Data Sanitization**: Sanitize sensitive data in logs
@@ -117,6 +117,29 @@ alwaysApply: true
117117- **Security Review**: Check for security vulnerabilities
118118- **Performance Review**: Check for performance issues
119119
120+ ### Commit Standards (Conventional Commits)
121+ - **Format**: `type(scope): subject` (max 100 characters)
122+ - **Types**:
123+ - `feat` - New feature
124+ - `fix` - Bug fix
125+ - `docs` - Documentation changes
126+ - `style` - Code style changes (formatting, etc)
127+ - `refactor` - Code refactoring
128+ - `perf` - Performance improvements
129+ - `test` - Adding or updating tests
130+ - `chore` - Maintenance tasks
131+ - `ci` - CI/CD changes
132+ - `build` - Build system changes
133+ - `revert` - Reverting changes
134+ - `security` - Security fixes
135+ - **Examples**:
136+ - `feat(api): add WhatsApp message status endpoint`
137+ - `fix(baileys): resolve connection timeout issue`
138+ - `docs(readme): update installation instructions`
139+ - `refactor(service): extract common message validation logic`
140+ - **Tools**: Use `npm run commit` (Commitizen) for guided commits
141+ - **Validation**: Enforced by commitlint on commit-msg hook
142+
120143## Evolution API Specific Patterns
121144
122145### WhatsApp Integration Patterns
0 commit comments