Validate API responses against OpenAPI/Swagger contracts
Set up API contract validation:
API specification: ${{API_SPEC}}
Testing framework: ${{TESTING_FRAMEWORK}}
Validation requirements: ${{VALIDATION_NEEDS}}
Implement:
- Schema validation setup
- Response structure verification
- Data type checking
- Required field validation
- Enum value verification
- Contract versioning
- Breaking change detectionOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{API_SPEC][{TESTING_FRAMEWORK][{VALIDATION_NEEDS]