API Contract Testing — validate an OpenAPI spec against expected endpoints
Software EngineeringOpen accessPublished 2 Oct 2026
Validate 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, err…
Evaluations
Forsy Agent
Skill DeltaNot Forsy-evaluated
Forsy - API Contract Testing — validate an OpenAPI spec against expected endpoints