API Contract Testing Checklist Cheat Sheet

Spec management and verification

Last Updated: November 21, 2025

Focus Areas

Focus
Produce OpenAPI/AsyncAPI specs for each API
Verify consumer expectations through automated compatibility checks

Commands & Queries

pact-broker publish ./contracts --consumer-versions ${VERSION}
Publish contract
pact-broker can-i-deploy --pacticipant consumer --to prod
Check compatibility
openapi lint api.yaml
Lint the OpenAPI spec

Summary

Automate contract publication, compatibility checks, and linting.

💡 Pro Tip: Publish versioned contracts and verify compatibility before merges.
← Back to Developer Tools | Browse all categories | View all cheat sheets