api-contract-validator
Installation
SKILL.md
API Contract Validator
Ensure API compatibility and prevent breaking changes through contract testing
Quick Commands
# Validate OpenAPI spec
npx @apidevtools/swagger-cli validate api-spec.yml
# Run contract tests
npm run test:contracts
# Check breaking changes
npx oasdiff breaking api-v1.yml api-v2.yml
# Generate types from spec
npx openapi-typescript api-spec.yml --output types.ts