← ClaudeAtlas

api-contract-testinglisted

Tools and patterns for API contract testing using OpenAPI, JSON Schema, and contract-first development
pfangueiro/claude-code-agents · ★ 6 · Testing & QA · score 76
Install: claude install-skill pfangueiro/claude-code-agents
# API Contract Testing Skill Provides tools and patterns for API contract testing using OpenAPI, JSON Schema, and contract-first development. ## Purpose This skill provides: - OpenAPI specification validation - JSON Schema contract enforcement - API versioning strategies - Consumer-driven contract testing (PACT) - Mock server generation - Contract regression testing ## When to Use - "Validate API against OpenAPI spec" - "Create API contract tests" - "Generate mock server from OpenAPI" - "Test API versioning compatibility" - "Implement consumer-driven contracts" ## OpenAPI Validation ### OpenAPI 3.0 Specification Example ```yaml openapi: 3.0.0 info: title: User API version: 1.0.0 description: User management API servers: - url: https://api.example.com/v1 description: Production server - url: https://staging-api.example.com/v1 description: Staging server paths: /users: get: summary: List all users operationId: listUsers parameters: - name: limit in: query schema: type: integer minimum: 1 maximum: 100 default: 20 responses: '200': description: Successful response content: application/json: schema: type: object properties: users: type: array items: $ref: '#/components/schemas/User'