api-contract-testing
SolidValidate an API contract against an OpenAPI 3.x specification (JSON or YAML) and an optional manifest of expected endpoints. Script api_contract.py enumerates operations (paths + webhooks), checks spec internal consistency (unresolved $refs, duplicates, missing responses), compares the manifest against the spec offline, and in live mode probes each manifest endpoint over HTTP and compares the actual status with the expected one. Pure Python 3 stdlib (argparse, json, pathlib, sys, urllib.request) with a built-in minimal YAML subset parser — no PyYAML, no requests. Emits a machine-readable JSON report (endpoints_count, missing_from_spec, contract_violations, conformant, errors) and uses exit codes 0/1/2. Closes the loop for api-doc-generator and test-generator.
Install
Quality Score: 80/100
Skill Content
Details
- Author
- bestdeejay-design
- Repository
- bestdeejay-design/agent-skills
- Created
- 1 weeks ago
- Last Updated
- yesterday
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
api-contract-testing
Tools and patterns for API contract testing using OpenAPI, JSON Schema, and contract-first development
api-contract-testing
Validate REST and HTTP APIs against OpenAPI contracts, authorization rules, data invariants, malformed inputs, error responses, pagination, concurrency, and backward compatibility. Use for API audits, automated contract tests, and pre-release verification.
api-qa
Plans and executes API validation across contracts, authentication, authorisation, data integrity, errors, pagination, rate limits, idempotency, concurrency, and compatibility.