API Contract Testing Tool: Schema Checks in CI, Breaking Changes Held for Approval
Shift-Left API is an API contract testing tool that treats your OpenAPI or WSDL spec as the contract. Generated tests assert status codes, field types, required fields and enums, and run in CI through GitHub Actions, Jenkins, Azure DevOps or a REST API. Re-imported specs are diffed, with breaking changes held for approval. Cloud or self-hosted.
How contract drift causes production failures
Schema drift
The API implementation slowly diverges from the documented spec. New fields appear, types change, required fields become optional.
Consumer breakage
Frontend apps and mobile clients break because the API returned a different response shape than the spec promises.
Undetected breaking changes
A developer changes a response field name. Functional tests still pass because they don't validate the contract.
No spec enforcement
The OpenAPI spec is documentation — nobody validates that the actual API matches it.
Manual contract review
Teams manually review API changes in pull requests. Subtle type changes and optional-to-required shifts get missed.
Late discovery
Contract violations are found in integration testing or production — not at the API level where they originate.
Why functional tests aren't enough
Functional tests verify behavior. Contract tests verify the shape. You need both.
How contract testing works in Shift-Left API
Import your OpenAPI spec as the contract
Your OpenAPI specification is the source of truth. Every endpoint, schema, required field, and type constraint becomes a contract rule.
AI generates contract-aware tests
Generated tests assert the response status codes, field types, required fields and enum values your spec declares.
Run tests to detect drift
Failure analysis flags drift on every analysed run: a missing required field, a wrong primitive type, an enum value outside the spec or an undocumented status code.
Gate the pipeline, approve spec changes
A failed field, type or status-code assertion fails its test, and the CI quality gate fails the build on pass rate or test errors. When the spec itself changes, re-import diffs it and holds breaking changes (a new required parameter, a removed response, a narrowed enum, a type change) for approval.
Analysed runs
Drift flagged by failure analysis
Schema-level
Field types, required, enums
Automatic
No separate contract setup
CI/CD gate
Pass rate and test errors
Spec-driven contract testing vs consumer-driven (Pact)
| Feature | Shift-Left API | Consumer-driven (Pact) |
|---|---|---|
| Where the contract comes from | Your provider OpenAPI or WSDL spec | Expectations written in consumer tests |
| Setup | Import the spec; tests are generated | Consumer tests, pact files, provider verification |
| Extra infrastructure | None beyond the platform | Usually a Pact Broker |
| Breaking-change detection | Spec diff at import, breaking changes held for approval | Provider verification against published pacts |
| Consumer-specific expectations | No, one contract per spec | Yes, per consumer |
| Runs in CI | GitHub Actions, Jenkins, Azure DevOps, or REST API | Language libraries in your test code |
Learn contract testing, then extend the suite
For the method itself, read what API contract testing is and how it works, and for service-to-service contracts see contract testing for microservices. Check how test-ready your spec is first with the free OpenAPI scorer.
The same spec-driven tests feed two paid add-ons, both in the 15-day trial: API security testing for OWASP-mapped authorization and injection checks, and API load testing to see whether the contract still holds under load.
When consumer-driven contract testing is the better fit
- -Many internal consumers each depend on a different slice of the response
- -There is no maintained provider spec, and consumers own the expectations
- -Your teams already run a Pact Broker and can-i-deploy checks
Enterprise readiness
Contract testing is most valuable when it produces evidence the rest of the change-control process can rely on.
Role-based access
Contract approvals (intentional breaking changes, version bumps) gated per role with audit-log capture of who approved what.
Audit-ready evidence
Spec changes are listed for approval, and the audit log records who approved what.
On-prem self-hosting
AI features can run against your self-hosted model (Trial and Enterprise), so no spec leaves your perimeter for AI. Licence validation and updates contact Total Shift Left; ask us about offline licensing for air-gapped installs.
Multi-protocol contracts
OpenAPI 3.0 / 3.1, Swagger 2.0, and WSDL all first-class. Realistic for enterprises whose stack still includes SOAP behind ESBs and core middleware.
Quality gate enforcement
The CI/CD quality gate fails the build when the pass rate falls below your threshold or a test errors, and you choose whether a missed gate fails or warns.
Regulated industries fit
Self-hosting, per-project roles and the audit log support the controls regulated teams review. This is not a certification. See the regulated-industries pages for sector-specific framing.
For deployment topology see the deployment page; for the data-flow and access-control posture see platform security.
Frequently asked questions
What does the contract testing tool check?
Generated tests check that responses carry the status codes, fields, types, required fields and enum values your spec declares, and reports drift between the spec and the implementation.
How is this different from consumer-driven contract testing (Pact)?
Pact requires consumers to define their expectations. Shift-Left API derives the contract from your OpenAPI spec — which already defines the expected behavior. No separate contract setup, no consumer-side configuration.
Do I need to set up contracts separately?
No. If you have an OpenAPI or Swagger spec, you already have a contract. Shift-Left API uses your existing spec as the contract definition and validates responses against it automatically.
What types of contract violations are detected?
Failure analysis flags a missing required field, a wrong primitive type, an enum value outside the spec and an undocumented status code, on analysed runs. It does not check nested objects or SOAP responses.
Can I use this with microservices?
Yes. Each microservice has its own OpenAPI spec and its own contract validation. The platform tracks contract compliance across all services independently.
How do I enforce contracts in CI/CD?
Run the contract tests in a pack from the GitHub Action, Jenkins plugin, Azure DevOps task or the REST API. A failed field, type or status-code assertion fails its test, and the quality gate fails the build on pass rate or test errors. Drift that failure analysis flags on a passing run is a review item; it does not fail the build on its own.
How is it priced?
Contract testing is part of the core platform: a free single-user developer licence renewed free every 6 months, a 15-day trial, and annual Professional and Enterprise licences on a custom quote.
Generate your first API test suite in minutes
Import your OpenAPI spec. Get CI-ready tests. Track coverage. No code, no credit card, 15-day free trial.