Testing Module — API Contract

Your API Never Drifts
From Its Contract

Real API responses validated field-by-field against your OpenAPI spec — status codes, body schemas, and type mismatches caught automatically.

sentinelflux run --product myapp --domain contract --spec openapi.yaml
validating
OpenAPI Spec (expected)
Actual Response
Validation Results

Catch contract breaks before consumers do

One spec. Every API tested against it on every CI run.

OpenAPI 3.0 Support

Point SentinelFlux at your openapi.yaml. It validates every endpoint's status code, content type, and response body schema automatically.

  • OpenAPI 3.0 + Swagger 2.0
  • Nested schema validation
  • Required field enforcement

Breaking Change Detection

Removed fields, type changes, new required properties — all caught before they reach dependent consumers downstream.

  • Field removal detection
  • Type mismatch (string → int)
  • Unexpected status codes

CI-Ready Output

pytest-compatible output with clear failure messages. Plug into your pipeline — exits non-zero on any schema violation.

  • Runs in any CI pipeline
  • HTML + JSON reports
  • Dashboard violation history

Never ship a broken API contract

Validate every endpoint against your spec on every deploy. Breaking changes caught before consumers.