Implement Boundary Validation for API Contracts
Description
Validate both inbound requests and outbound response shapes to prevent drift and hidden contract regressions.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/request-response-validation
- Implement changes
- Write backend code: schema guards for input/output
- Write comprehensive tests: schema mismatch detection cases
- Add documentation:
README.md
- Include JSDoc-style comments
- Validate security assumptions
Test and commit
- Run tests
- Cover edge cases
- Include test output and security notes
Example commit message
feat(api): enforce request and response schema validation
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Implement Boundary Validation for API Contracts
Description
Validate both inbound requests and outbound response shapes to prevent drift and hidden contract regressions.
Requirements and context
Suggested execution
git checkout -b feature/request-response-validationREADME.mdTest and commit
Example commit message
feat(api): enforce request and response schema validationGuidelines