<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Deepak Satyam</title>
    <description>The latest articles on DEV Community by Deepak Satyam (@deepaksatyam).</description>
    <link>https://dev.to/deepaksatyam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3873472%2F44a11f85-e938-4451-91ab-7b5f3b7c398f.png</url>
      <title>DEV Community: Deepak Satyam</title>
      <link>https://dev.to/deepaksatyam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deepaksatyam"/>
    <language>en</language>
    <item>
      <title>StackHawk vs ZAP vs Schemathesis (2026): which API security testing tool finds what</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:58:40 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/stackhawk-vs-zap-vs-schemathesis-2026-which-api-security-testing-tool-finds-what-4dlf</link>
      <guid>https://dev.to/deepaksatyam/stackhawk-vs-zap-vs-schemathesis-2026-which-api-security-testing-tool-finds-what-4dlf</guid>
      <description>&lt;p&gt;If you want automated security testing for an API in CI, three names come up first: &lt;strong&gt;ZAP&lt;/strong&gt;, the free and open-source scanner; &lt;strong&gt;StackHawk&lt;/strong&gt;, the commercial developer-focused scanner that grew out of ZAP; and &lt;strong&gt;Schemathesis&lt;/strong&gt;, an open-source tool that generates tests from your API schema.&lt;/p&gt;

&lt;p&gt;They overlap less than it seems. This post explains what each one actually tests, what it costs, and which fits which team. All facts are from each project's own docs, repositories and pricing pages as of November 2026, linked inline.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Disclosure and scope: I build SpecShield, which does **static&lt;/em&gt;* API security checks — it reads specs and logs and never sends requests. It isn't a competitor to these three; it does a different job, which I cover briefly at the end. I haven't run StackHawk for this post, so its section is based on its documentation rather than my own tests.)*&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;ZAP&lt;/th&gt;
&lt;th&gt;StackHawk&lt;/th&gt;
&lt;th&gt;Schemathesis&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What it is&lt;/td&gt;
&lt;td&gt;General DAST scanner (web apps + APIs)&lt;/td&gt;
&lt;td&gt;Commercial DAST for developers and CI&lt;/td&gt;
&lt;td&gt;Property-based API testing from the schema&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finds&lt;/td&gt;
&lt;td&gt;Injection, misconfiguration, known vulnerability classes&lt;/td&gt;
&lt;td&gt;Same classes, plus multi-user authorization testing&lt;/td&gt;
&lt;td&gt;Server errors, spec violations, auth bypass, object-level authorization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API inputs&lt;/td&gt;
&lt;td&gt;OpenAPI, SOAP, GraphQL&lt;/td&gt;
&lt;td&gt;OpenAPI, GraphQL, gRPC, JSON-RPC, SOAP&lt;/td&gt;
&lt;td&gt;OpenAPI, GraphQL, gRPC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authorization (BOLA) testing&lt;/td&gt;
&lt;td&gt;Manual setup&lt;/td&gt;
&lt;td&gt;Yes ("Business Logic Testing", 2+ user profiles)&lt;/td&gt;
&lt;td&gt;Yes (&lt;code&gt;object_level_authorization&lt;/code&gt;, 2+ peers)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;License / price&lt;/td&gt;
&lt;td&gt;Apache-2.0, free&lt;/td&gt;
&lt;td&gt;Wingman $10/user/mo (14-day trial); Scale custom&lt;/td&gt;
&lt;td&gt;MIT, free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runs as&lt;/td&gt;
&lt;td&gt;Docker scripts, desktop app, daemon&lt;/td&gt;
&lt;td&gt;CLI in CI&lt;/td&gt;
&lt;td&gt;Python CLI, pytest plugin&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  ZAP: the free, broad scanner
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/zaproxy/zaproxy" rel="noopener noreferrer"&gt;ZAP&lt;/a&gt; is one of the most widely used DAST tools in the world: Apache-2.0, around 16,000 GitHub stars, latest stable release v2.17.0. It started as an OWASP project; since September 2024 it's &lt;a href="https://www.zaproxy.org/blog/2024-09-24-zap-has-joined-forces-with-checkmarx/" rel="noopener noreferrer"&gt;&lt;em&gt;ZAP by Checkmarx&lt;/em&gt;&lt;/a&gt;. Its project leads joined Checkmarx, and it continues as a community project under the same license.&lt;/p&gt;

&lt;p&gt;For APIs, the relevant piece is the &lt;a href="https://www.zaproxy.org/docs/docker/api-scan/" rel="noopener noreferrer"&gt;API scan&lt;/a&gt;, a script in ZAP's Docker images:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run -t zaproxy/zap-stable zap-api-scan.py \
  -t https://staging.example.com/openapi.json -f openapi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It imports an OpenAPI, SOAP or GraphQL definition and runs an active scan &lt;strong&gt;tuned for APIs&lt;/strong&gt;: it skips checks that don't apply (like XSS) and adds alerts for server errors and for responses with content types unusual for an API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strengths:&lt;/strong&gt; free, mature, huge rule set for classic vulnerability classes (injection, misconfiguration, information leaks), and an active community.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weaknesses for API teams:&lt;/strong&gt; it was built as a web-app proxy and scanner, and that shows. Authenticated scanning requires a context file with users defined in it, and testing whether user A can read user B's objects needs manual setup rather than a built-in check. Results are alerts by vulnerability class, not by API operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  StackHawk: ZAP's lineage, packaged for CI
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.stackhawk.com" rel="noopener noreferrer"&gt;StackHawk&lt;/a&gt; was originally built on ZAP. In June 2024 it &lt;a href="https://www.stackhawk.com/blog/stackhawk-announces-hawkscan-test-engine/" rel="noopener noreferrer"&gt;announced&lt;/a&gt; its own engine, HSTE, which it describes as an internal fork of ZAP that lets it "rework, remove and replace ZAP's internals." StackHawk also funds ZAP contributions through its ZAP Fund.&lt;/p&gt;

&lt;p&gt;What you pay for is mostly the developer workflow around the scanner:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configuration in a YAML file in your repo, with a CLI (HawkScan) that runs locally or in CI.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.stackhawk.com/" rel="noopener noreferrer"&gt;API inputs&lt;/a&gt; including OpenAPI, GraphQL, gRPC, JSON-RPC and SOAP.&lt;/li&gt;
&lt;li&gt;Authenticated scanning: form login, HTTP auth and third-party OAuth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://docs.stackhawk.com/hawkscan/business-logic-testing/" rel="noopener noreferrer"&gt;Business Logic Testing&lt;/a&gt;&lt;/strong&gt; (launched December 2025): you configure two or more user profiles, and it tests horizontal access (user A reading user B's data — BOLA) and vertical access (a member calling admin functions — BFLA).&lt;/li&gt;
&lt;li&gt;Findings triaged in a dashboard, with fix guidance aimed at developers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.stackhawk.com/pricing/" rel="noopener noreferrer"&gt;Pricing&lt;/a&gt;:&lt;/strong&gt; &lt;em&gt;Wingman&lt;/em&gt; is $10 per user per month with unlimited apps and 50 scans per user per month, and a 14-day trial with no card required. &lt;em&gt;Scale&lt;/em&gt; (org-wide, SSO, attack-surface discovery, sensitive-data detection, unlimited scans) is quoted by sales.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strengths:&lt;/strong&gt; the CI experience, authorization testing that's configured rather than scripted, and support.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weaknesses:&lt;/strong&gt; it's a paid product with a per-user model, and like any DAST it needs a running environment with test users and data. The authorization testing is only as good as the user profiles and data you give it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Schemathesis: tests generated from your schema
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/schemathesis/schemathesis" rel="noopener noreferrer"&gt;Schemathesis&lt;/a&gt; (MIT, ~3,800 stars, v4.33.4 released 12 November 2026) comes from a different tradition. It isn't a vulnerability scanner. It's a &lt;strong&gt;property-based testing&lt;/strong&gt; tool built on Hypothesis: it reads your schema, generates valid, edge-case and invalid inputs, chains operations into stateful workflows, and checks every response.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;schemathesis run https://staging.example.com/openapi.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Its &lt;a href="https://schemathesis.readthedocs.io/en/stable/reference/checks/" rel="noopener noreferrer"&gt;built-in checks&lt;/a&gt; are on by default. The security-relevant ones:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;What it catches&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ignored_auth&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A protected operation accepts requests with missing or invalid credentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;object_level_authorization&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;One user can read another user's object (OWASP API1). Needs two or more configured peers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;use_after_free&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A deleted resource is still accessible (stateful mode)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;negative_data_rejection&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The API accepts input the schema says is invalid&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;unsupported_method&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;An undeclared HTTP method doesn't return 405&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;not_a_server_error&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A 5xx — often the first sign of an unhandled injection or parsing bug&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Plus conformance checks: status codes, content types, headers and response bodies must match the schema.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strengths:&lt;/strong&gt; it finds the bugs that come from &lt;em&gt;your&lt;/em&gt; API's shape — validation bypasses, crashes on edge cases, auth that isn't enforced, broken object-level authorization — and it doubles as contract testing, because every response is checked against the spec.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weaknesses:&lt;/strong&gt; it doesn't carry a library of attack payloads for classic vulnerability classes the way ZAP does, and it's only as good as your schema. An endpoint that isn't in the spec never gets tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which finds what
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;ZAP&lt;/th&gt;
&lt;th&gt;StackHawk&lt;/th&gt;
&lt;th&gt;Schemathesis&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SQL / command injection&lt;/td&gt;
&lt;td&gt;✅ attack payloads&lt;/td&gt;
&lt;td&gt;✅ attack payloads&lt;/td&gt;
&lt;td&gt;Partial (5xx on generated input)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security headers, misconfiguration&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auth not enforced&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅ &lt;code&gt;ignored_auth&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BOLA (user A reads user B's data)&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;✅ 2+ profiles&lt;/td&gt;
&lt;td&gt;✅ 2+ peers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BFLA (member calls admin function)&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌ no dedicated check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid input accepted&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Response doesn't match the spec&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Endpoints missing from the spec&lt;/td&gt;
&lt;td&gt;Only if crawled&lt;/td&gt;
&lt;td&gt;Only if discovered&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How I'd choose
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No budget, want broad vulnerability coverage:&lt;/strong&gt; ZAP's API scan in CI against staging. Expect to spend time tuning rules and setting up authentication.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No budget, want API-specific bugs and authorization checks:&lt;/strong&gt; Schemathesis. Configure two users for the object-level authorization check; that one check is worth the setup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Many services and teams, want authorization testing without scripting, budget for tooling:&lt;/strong&gt; StackHawk. Use the 14-day trial on one service with two real test users before deciding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best free combination:&lt;/strong&gt; Schemathesis &lt;em&gt;and&lt;/em&gt; ZAP. They find mostly different things, and both are free.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The part none of them cover
&lt;/h2&gt;

&lt;p&gt;All three are &lt;strong&gt;dynamic&lt;/strong&gt;: they send requests to a running environment. That leaves two gaps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Changes before they deploy.&lt;/strong&gt; A PR that removes &lt;code&gt;security&lt;/code&gt; from an endpoint or adds &lt;code&gt;client_secret&lt;/code&gt; to a response is visible in the spec diff before anything runs. A DAST only finds it after deployment to staging, and only if the scan covers that endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Endpoints that aren't in the spec.&lt;/strong&gt; Every tool above is driven by the spec or by crawling. An old &lt;code&gt;/v1&lt;/code&gt; route still serving traffic, or &lt;code&gt;/actuator/env&lt;/code&gt; answering 200, can sit outside both.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the gap SpecShield covers, statically. &lt;code&gt;specshield gate --security&lt;/code&gt; blocks the PR that weakens auth. &lt;code&gt;specshield audit --logs&lt;/code&gt; compares your access logs with the spec to find undocumented endpoints, old versions still answering, and exposed files like &lt;code&gt;/.env&lt;/code&gt;. It sends no requests, so it can't confirm a vulnerability the way a DAST can. It complements these tools; it doesn't replace them.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Running one of these in CI? I'd like to know which findings were real and which were noise — especially for BOLA testing, which is where these tools differ the most.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>security</category>
      <category>devops</category>
      <category>testing</category>
    </item>
    <item>
      <title>Pact vs schema-based contract testing (2026): six failures, and which approach catches each</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:56:47 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/pact-vs-schema-based-contract-testing-2026-six-failures-and-which-approach-catches-each-1h99</link>
      <guid>https://dev.to/deepaksatyam/pact-vs-schema-based-contract-testing-2026-six-failures-and-which-approach-catches-each-1h99</guid>
      <description>&lt;p&gt;"Should we use Pact, or just test against the OpenAPI spec?" comes up in almost every team that starts on contract testing. The two approaches get described as rivals, but they answer different questions, and each one is blind to something the other sees.&lt;/p&gt;

&lt;p&gt;This post compares them through concrete failures: what each approach catches, what it misses, and what it costs to run. Where I quote limitations, they come from the tools' own documentation.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Disclosure: I build SpecShield, which does schema-based and bi-directional contract testing. I've tried to keep this useful whichever way you go — and for some teams the right answer is Pact.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The two approaches in one minute
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Consumer-driven contract testing (Pact).&lt;/strong&gt; Each consumer writes tests against a Pact mock. Those tests record exactly what the consumer sends and which response fields it reads. That recording — the &lt;em&gt;pact&lt;/em&gt; — is published to a broker and then &lt;strong&gt;replayed against the real provider&lt;/strong&gt; in the provider's CI. The contract is "what consumers actually use," and it's verified against running code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schema-based contract testing.&lt;/strong&gt; The OpenAPI spec &lt;em&gt;is&lt;/em&gt; the contract. You check that changes to the spec don't break it (a spec diff), and separately that the implementation matches the spec (conformance testing). The contract is "what the provider says it offers."&lt;/p&gt;

&lt;p&gt;There's also a middle path, &lt;strong&gt;bi-directional contract testing&lt;/strong&gt;, which I'll cover after the comparison.&lt;/p&gt;

&lt;h2&gt;
  
  
  Six failures, and which approach catches them
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. The provider removes a response field that a consumer reads.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Pact:&lt;/em&gt; caught. The pact says the consumer reads that field, and provider verification fails.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Schema diff:&lt;/em&gt; caught. Removing a response field is a breaking change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both work. This is the case every demo shows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The provider removes a response field that nobody reads.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Pact:&lt;/em&gt; passes, correctly. No pact mentions the field.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Schema diff:&lt;/em&gt; fails. It can't know nobody reads it, so every removal looks breaking.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is Pact's real advantage, and it's bigger than it sounds: a schema-only gate that cries wolf on every removal is how teams end up turning the gate off. (Schema-based tools can close part of this gap with traffic data — more on that below.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The spec says a field exists, but the implementation stopped returning it.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Pact:&lt;/em&gt; caught. Verification runs against the real provider.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Schema diff:&lt;/em&gt; missed. The spec didn't change, so there's nothing to diff.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Conformance testing&lt;/em&gt; (running requests against the provider and checking responses against the spec) is what catches this on the schema side. Without it, schema-based contract testing is only as good as the spec's accuracy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;4. The consumer is a third party you've never met.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Pact:&lt;/em&gt; can't help. Pact's own docs list public APIs under what it is &lt;strong&gt;not&lt;/strong&gt; good for: consumers can't be identified, and provider states would have to be set up through the API under test.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Schema-based:&lt;/em&gt; works. The spec is the promise to everyone, known or not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;5. The response has the right shape but the wrong data&lt;/strong&gt; (the order total ignores the discount).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Neither catches it.&lt;/em&gt; Pact checks the request and response format, and its docs say functional testing of the provider belongs in the provider's own tests. PactFlow's own comparison table rates both consumer-driven and bi-directional testing poorly on "testing data semantics."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;6. An edge-case input makes the provider return a 500.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Pact:&lt;/em&gt; only if a consumer test happens to send that input.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Schema-based:&lt;/em&gt; only with a test generator. Tools like &lt;a href="https://github.com/schemathesis/schemathesis" rel="noopener noreferrer"&gt;Schemathesis&lt;/a&gt; generate inputs from the spec, including edge cases and invalid ones, and report server errors and responses that don't match the schema.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Failure&lt;/th&gt;
&lt;th&gt;Pact&lt;/th&gt;
&lt;th&gt;Spec diff&lt;/th&gt;
&lt;th&gt;Spec diff + conformance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Removed field a consumer reads&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Removed field nobody reads&lt;/td&gt;
&lt;td&gt;✅ passes&lt;/td&gt;
&lt;td&gt;❌ false alarm&lt;/td&gt;
&lt;td&gt;❌ false alarm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Implementation drifts from spec&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Unknown / third-party consumers&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Wrong data, right shape&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6. 500 on edge-case input&lt;/td&gt;
&lt;td&gt;rarely&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅ with a generator&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What each one costs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Pact asks a lot of both sides.&lt;/strong&gt; Every consumer team writes Pact tests in its own language. Every provider team sets up &lt;em&gt;provider states&lt;/em&gt; (the data each interaction needs) and runs verification in CI. You need a broker: the open-source Pact Broker you host, or PactFlow. And Pact's docs are explicit that it fits best where you control both sides, with a small number of consumers per provider — and that it's a poor fit when the other team won't also use Pact.&lt;/p&gt;

&lt;p&gt;When that holds — internal microservices, teams that will all adopt it — Pact gives the strongest guarantees of anything here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schema-based testing asks for a spec you trust.&lt;/strong&gt; If the spec is generated from code or kept honest by conformance tests, it's cheap: one file, no consumer-side work, and tools that run in a single CI step. If the spec is hand-written and nobody checks it against the implementation, failure 3 will eventually hurt you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The middle path: bi-directional contract testing
&lt;/h2&gt;

&lt;p&gt;PactFlow introduced bi-directional contract testing (BDCT) for teams where full Pact is a poor fit:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;provider&lt;/strong&gt; publishes its OpenAPI spec, plus evidence that the implementation matches it: results from the provider's own verification tool (Postman, Dredd, Schemathesis, SmartBear's Drift…), uploaded with &lt;code&gt;--verification-results&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consumers&lt;/strong&gt; publish what they use, either as a pact generated from their existing mocks or as an OpenAPI subset.&lt;/li&gt;
&lt;li&gt;The broker checks &lt;strong&gt;statically&lt;/strong&gt; that every consumer expectation is satisfied by the provider spec.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The consumer contract is never replayed against the provider's code, which is what makes it cheaper. PactFlow is candid about the trade-off. Its comparison table rates BDCT &lt;strong&gt;weaker on guarantees&lt;/strong&gt; than consumer-driven testing (&lt;code&gt;+&lt;/code&gt; vs &lt;code&gt;+++&lt;/code&gt;) and better on team decoupling (&lt;code&gt;+++&lt;/code&gt; vs &lt;code&gt;+&lt;/code&gt;), and its summary is "weaker guarantees than CDC but decouples teams and can be used with third parties/unknown consumers." The docs also say BDCT isn't meant to replace Pact, but to be an alternative where Pact isn't suitable.&lt;/p&gt;

&lt;p&gt;In terms of the six failures above, BDCT behaves like a schema diff that knows which fields each consumer uses. It gets failure 2 right, and failure 3 is only as good as the provider's conformance evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools, briefly
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;License / cost&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="https://pact.io" rel="noopener noreferrer"&gt;Pact&lt;/a&gt; + Pact Broker&lt;/td&gt;
&lt;td&gt;Consumer-driven&lt;/td&gt;
&lt;td&gt;Open source (self-hosted broker)&lt;/td&gt;
&lt;td&gt;Libraries for most languages; spec v4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://pactflow.io" rel="noopener noreferrer"&gt;PactFlow&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Consumer-driven + bi-directional&lt;/td&gt;
&lt;td&gt;Free Starter; Team ~$115–127/mo&lt;/td&gt;
&lt;td&gt;SmartBear; hosted broker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;oasdiff&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Spec diff&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;Deepest breaking-change catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/schemathesis/schemathesis" rel="noopener noreferrer"&gt;Schemathesis&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Conformance + generated tests&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;Property-based (Hypothesis); OpenAPI, GraphQL, gRPC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/specmatic/specmatic" rel="noopener noreferrer"&gt;Specmatic&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Spec as executable contract + stubs&lt;/td&gt;
&lt;td&gt;MIT core&lt;/td&gt;
&lt;td&gt;OpenAPI, AsyncAPI, GraphQL, gRPC, WSDL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/stoplightio/prism" rel="noopener noreferrer"&gt;Prism&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Mock server + validation proxy&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;Validate live traffic against the spec&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dredd&lt;/td&gt;
&lt;td&gt;Conformance&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Archived&lt;/strong&gt; — don't start new projects on it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SpecShield (mine)&lt;/td&gt;
&lt;td&gt;Spec diff + bi-directional&lt;/td&gt;
&lt;td&gt;Free tier; Team $89/mo&lt;/td&gt;
&lt;td&gt;Consumer contracts from OpenAPI, Pact JSON or a HAR capture&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Closing the "nobody reads it" gap without Pact
&lt;/h2&gt;

&lt;p&gt;Failure 2 is the main reason teams pick Pact over a spec diff. There's another way to learn which fields and endpoints are actually used: your &lt;strong&gt;access logs&lt;/strong&gt; already record who calls what.&lt;/p&gt;

&lt;p&gt;That's the approach I took in SpecShield: import the logs you already have, and a breaking change on an endpoint no client has called in the window stops failing the build, while the rest show which clients they'd break. It's weaker than a pact in one important way — logs show which endpoints and query parameters are used, not which response &lt;em&gt;fields&lt;/em&gt; a client reads — so it narrows false alarms rather than removing them. If you need field-level certainty, that's what Pact is for.&lt;/p&gt;

&lt;p&gt;For consumers who won't write Pact tests, SpecShield can also turn a HAR capture from tests they already run (Playwright, Cypress, a browser) into a consumer contract, which is then checked bi-directionally. Same trade-off as any BDCT: lighter to adopt, weaker than replaying against the real provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I'd choose
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Internal microservices, a handful of consumers per provider, and every team willing to write consumer tests:&lt;/strong&gt; Pact. Strongest guarantees, and the cost is justified.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public or partner API, or consumers you can't make write tests:&lt;/strong&gt; schema-based. A spec diff in CI, plus conformance testing (Schemathesis or similar) so the spec stays true.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Somewhere in between, or Pact adoption stalled after one team:&lt;/strong&gt; bi-directional. PactFlow is the mature option; SpecShield is a lighter, OpenAPI-native one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In every case:&lt;/strong&gt; add a conformance check. A lot of "contract" failures are really failure 3: a spec everyone trusts that no longer matches the code.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Which failure has actually bitten your team? I'd like to know whether failure 2 (false alarms) or failure 3 (spec drift) is the bigger problem in practice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>testing</category>
      <category>microservices</category>
      <category>openapi</category>
    </item>
    <item>
      <title>Spectral vs vacuum (2026): I benchmarked both OpenAPI linters on Stripe and GitHub's specs</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:54:32 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/spectral-vs-vacuum-2026-i-benchmarked-both-openapi-linters-on-stripe-and-githubs-specs-48je</link>
      <guid>https://dev.to/deepaksatyam/spectral-vs-vacuum-2026-i-benchmarked-both-openapi-linters-on-stripe-and-githubs-specs-48je</guid>
      <description>&lt;p&gt;Spectral and vacuum are the two OpenAPI linters most teams choose between. vacuum's pitch is that it's a much faster drop-in for Spectral that reads the same rulesets. I wanted to know how true that is on real specs, so I ran both on the same files with the same rulesets and compared the timings, the memory use and the actual findings.&lt;/p&gt;

&lt;p&gt;Short version: &lt;strong&gt;vacuum is usually much faster but uses more memory, and "same ruleset" does not mean "same results."&lt;/strong&gt; Details below. Every number here is from my own runs, and the ruleset is included so you can reproduce them.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Disclosure: I build SpecShield, an API gate that accepts Spectral-format rulesets. I don't sell a linter, and both of these tools are free.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The two tools in one paragraph each
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/stoplightio/spectral" rel="noopener noreferrer"&gt;Spectral&lt;/a&gt;&lt;/strong&gt; (Apache-2.0, TypeScript, ~3,260 stars) is the original. Stoplight built it, and SmartBear acquired Stoplight in 2023. It's still actively released (v6.17.1, 6 November 2026) and it's what Stoplight, Swagger and a lot of API platforms embed. Rulesets are YAML, JSON or JS/TS; custom functions are JavaScript or TypeScript running in Node. It lints OpenAPI 2, 3.0, 3.1 and 3.2, AsyncAPI and Arazzo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/daveshanley/vacuum" rel="noopener noreferrer"&gt;vacuum&lt;/a&gt;&lt;/strong&gt; (MIT, Go, ~1,150 stars) began as a faster Spectral and has grown into a toolkit: linting plus autofix, an interactive terminal dashboard, an HTML report, a language server, docs generation, bundling, overlays, and change detection between two specs. It's released very frequently (v0.41.0, 14 November 2026), and most of the work comes from one maintainer, Dave Shanley.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Machine: Apple M4 Pro, 48 GB, Node 22.17&lt;/li&gt;
&lt;li&gt;Spectral CLI 6.17.1, vacuum 0.41.0 (both from npm)&lt;/li&gt;
&lt;li&gt;Specs, all public:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Petstore&lt;/strong&gt; (OAI example, tiny)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stripe&lt;/strong&gt; (&lt;code&gt;spec3.json&lt;/code&gt;, 8.3 MB: 612 operations, 1,538 schemas)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub REST&lt;/strong&gt; (&lt;code&gt;api.github.com.json&lt;/code&gt;, 14.3 MB: 1,281 operations, 1,016 schemas)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Each run twice; timings were stable to within a few percent, so I've shown one.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Watch out on npm:&lt;/strong&gt; a plain &lt;code&gt;npm i @quobix/vacuum&lt;/code&gt; installed &lt;strong&gt;0.27.0&lt;/strong&gt; for me, fourteen minor versions behind the current release. Pin the version (&lt;code&gt;@quobix/vacuum@0.41.0&lt;/code&gt;) or use Homebrew.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Test 1: the built-in OAS ruleset
&lt;/h2&gt;

&lt;p&gt;Both tools were given the same &lt;code&gt;.spectral.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;extends&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"spectral:oas"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Spec&lt;/th&gt;
&lt;th&gt;Spectral time&lt;/th&gt;
&lt;th&gt;vacuum time&lt;/th&gt;
&lt;th&gt;Spectral peak RAM&lt;/th&gt;
&lt;th&gt;vacuum peak RAM&lt;/th&gt;
&lt;th&gt;Spectral findings&lt;/th&gt;
&lt;th&gt;vacuum findings&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Petstore&lt;/td&gt;
&lt;td&gt;0.28 s&lt;/td&gt;
&lt;td&gt;0.04 s&lt;/td&gt;
&lt;td&gt;128 MB&lt;/td&gt;
&lt;td&gt;49 MB&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;8.2 s&lt;/td&gt;
&lt;td&gt;0.81 s&lt;/td&gt;
&lt;td&gt;440 MB&lt;/td&gt;
&lt;td&gt;~980 MB&lt;/td&gt;
&lt;td&gt;618&lt;/td&gt;
&lt;td&gt;23,989&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;19.8 s&lt;/td&gt;
&lt;td&gt;2.66 s&lt;/td&gt;
&lt;td&gt;~2.7 GB&lt;/td&gt;
&lt;td&gt;~2.6 GB&lt;/td&gt;
&lt;td&gt;856&lt;/td&gt;
&lt;td&gt;37,232&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On speed, vacuum wins clearly: about 10× on Stripe and 7.5× on GitHub.&lt;/p&gt;

&lt;p&gt;The findings column is what I didn't expect. vacuum reads &lt;code&gt;spectral:oas&lt;/code&gt; as &lt;strong&gt;its own recommended ruleset&lt;/strong&gt;, which has rules that &lt;code&gt;spectral:oas&lt;/code&gt; doesn't. On Stripe, most of vacuum's 23,989 findings come from rules Spectral never ran:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;Spectral&lt;/th&gt;
&lt;th&gt;vacuum&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;camel-case-properties&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;8,834&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;description-duplication&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;7,364&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;oas3-missing-example&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;3,614&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;component-description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1,237&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;operation-description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;617&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;operation-tags&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;612&lt;/td&gt;
&lt;td&gt;612&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Even rules with the same name don't always behave the same way (&lt;code&gt;operation-description&lt;/code&gt;: 5 vs 617). On GitHub it goes the other way for examples: Spectral reported 774 &lt;code&gt;oas3-valid-media-example&lt;/code&gt; findings, and vacuum reported none under that name.&lt;/p&gt;

&lt;p&gt;So switching from Spectral to vacuum with "the same" config can turn a passing CI job into one with tens of thousands of findings. That isn't a bug in either tool — vacuum's recommended set is deliberately stricter — but it's not a drop-in in the sense most people mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test 2: an identical custom ruleset
&lt;/h2&gt;

&lt;p&gt;To compare like with like, I wrote five rules that use only core functions (&lt;code&gt;truthy&lt;/code&gt;, &lt;code&gt;pattern&lt;/code&gt;, &lt;code&gt;casing&lt;/code&gt;, &lt;code&gt;length&lt;/code&gt;) and no &lt;code&gt;extends&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;op-id-required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;severity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;error&lt;/span&gt;
    &lt;span class="na"&gt;given&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"$.paths[*][get,put,post,delete,patch]"&lt;/span&gt;
    &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;field:&lt;/span&gt; &lt;span class="s"&gt;operationId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;function:&lt;/span&gt; &lt;span class="s"&gt;truthy&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;op-summary-required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;severity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;warn&lt;/span&gt;
    &lt;span class="na"&gt;given&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"$.paths[*][get,put,post,delete,patch]"&lt;/span&gt;
    &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;field:&lt;/span&gt; &lt;span class="s"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;function:&lt;/span&gt; &lt;span class="s"&gt;truthy&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;path-no-trailing-slash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;severity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;warn&lt;/span&gt;
    &lt;span class="na"&gt;given&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"$.paths"&lt;/span&gt;
    &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;field:&lt;/span&gt; &lt;span class="s2"&gt;"@key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;function:&lt;/span&gt; &lt;span class="s"&gt;pattern&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;functionOptions:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;notMatch:&lt;/span&gt; &lt;span class="s2"&gt;".+/$"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;property-snake-case&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;severity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;info&lt;/span&gt;
    &lt;span class="na"&gt;given&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"$.components.schemas[*].properties"&lt;/span&gt;
    &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;field:&lt;/span&gt; &lt;span class="s2"&gt;"@key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;function:&lt;/span&gt; &lt;span class="s"&gt;casing&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;functionOptions:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;type:&lt;/span&gt; &lt;span class="s"&gt;snake&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;description-max-length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;severity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;hint&lt;/span&gt;
    &lt;span class="na"&gt;given&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"$.paths[*][*].description"&lt;/span&gt;
    &lt;span class="na"&gt;then&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;function:&lt;/span&gt; &lt;span class="s"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;functionOptions:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;max:&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Spec&lt;/th&gt;
&lt;th&gt;Spectral time&lt;/th&gt;
&lt;th&gt;vacuum time&lt;/th&gt;
&lt;th&gt;Spectral peak RAM&lt;/th&gt;
&lt;th&gt;vacuum peak RAM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Petstore&lt;/td&gt;
&lt;td&gt;0.27 s&lt;/td&gt;
&lt;td&gt;0.04 s&lt;/td&gt;
&lt;td&gt;126 MB&lt;/td&gt;
&lt;td&gt;44 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;3.97 s&lt;/td&gt;
&lt;td&gt;0.65 s&lt;/td&gt;
&lt;td&gt;423 MB&lt;/td&gt;
&lt;td&gt;860 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;2.12 s&lt;/td&gt;
&lt;td&gt;2.23 s&lt;/td&gt;
&lt;td&gt;624 MB&lt;/td&gt;
&lt;td&gt;1,461 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two things stand out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The speed gap depends on the spec.&lt;/strong&gt; vacuum was 6× faster on Stripe and slightly &lt;em&gt;slower&lt;/em&gt; on GitHub. With a small ruleset, a lot of the time goes into parsing and resolving the document, not running rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;vacuum used about twice the memory on both large specs.&lt;/strong&gt; If you lint big specs on small CI runners, that matters more than the seconds.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The findings still didn't match
&lt;/h3&gt;

&lt;p&gt;On Stripe, the rules I wrote agreed exactly (16 missing summaries, 1 long description). vacuum also added 24 &lt;code&gt;circular-references&lt;/code&gt; and 2 &lt;code&gt;resolving-references&lt;/code&gt; findings that aren't in my ruleset; it runs some document checks no matter what ruleset you give it.&lt;/p&gt;

&lt;p&gt;On GitHub, &lt;code&gt;property-snake-case&lt;/code&gt; gave &lt;strong&gt;35 findings in Spectral and 17 in vacuum, with no paths in common&lt;/strong&gt;. Two reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;They report the same problem at different places.&lt;/strong&gt; For &lt;code&gt;scimType&lt;/code&gt;, &lt;code&gt;timePeriod&lt;/code&gt;, &lt;code&gt;usageItems&lt;/code&gt; and &lt;code&gt;+1&lt;/code&gt;, Spectral reports the schema where the property is defined (&lt;code&gt;components.schemas.scim-error.properties.scimType&lt;/code&gt;). vacuum reports where that schema is used (&lt;code&gt;components.responses.bad_request.content…properties.scimType&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;They disagree on what snake_case is.&lt;/strong&gt; Spectral flags &lt;code&gt;_links&lt;/code&gt; (a leading underscore). vacuum accepts it, so 18 &lt;code&gt;_links&lt;/code&gt; findings appear only in Spectral. The other 17 are the same properties in both tools, just at different paths.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first point has a practical consequence: &lt;strong&gt;anything keyed on the finding's path won't carry over.&lt;/strong&gt; That includes ignore files, baselines of "known" findings, and dashboards that de-duplicate by location. If you migrate, expect to rebuild those.&lt;/p&gt;

&lt;h2&gt;
  
  
  Custom functions
&lt;/h2&gt;

&lt;p&gt;Both support custom JavaScript functions, but they aren't directly interchangeable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spectral&lt;/strong&gt; runs them in Node, and they can be written in TypeScript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;vacuum&lt;/strong&gt; runs JavaScript in &lt;a href="https://github.com/dop251/goja" rel="noopener noreferrer"&gt;goja&lt;/a&gt;, an embedded engine. It's &lt;em&gt;not&lt;/em&gt; V8, has limited Node APIs and no TypeScript. Its docs say each function must export both &lt;code&gt;getSchema()&lt;/code&gt; and &lt;code&gt;runRule()&lt;/code&gt;, and that rulesets refer to the name &lt;code&gt;getSchema()&lt;/code&gt; returns, not the file name. vacuum also supports custom functions written in Go.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your ruleset leans on custom functions (Box's public ruleset is a good example of one that does), budget time to port them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond linting
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Spectral&lt;/th&gt;
&lt;th&gt;vacuum&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Output formats&lt;/td&gt;
&lt;td&gt;json, stylish, junit, html, text, teamcity, pretty, github-actions, sarif, code-climate, gitlab, markdown&lt;/td&gt;
&lt;td&gt;The same 12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OWASP rules&lt;/td&gt;
&lt;td&gt;Separate package &lt;a href="https://www.npmjs.com/package/@stoplight/spectral-owasp-ruleset" rel="noopener noreferrer"&gt;&lt;code&gt;@stoplight/spectral-owasp-ruleset&lt;/code&gt;&lt;/a&gt; (2.0.1, last published March 2024)&lt;/td&gt;
&lt;td&gt;Built in but off by default; &lt;code&gt;--hard-mode&lt;/code&gt; turns on every rule, OWASP included&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quality score / threshold&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes (&lt;code&gt;--min-score&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Autofix&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes (&lt;code&gt;--fix&lt;/code&gt;, or save fixes as an overlay)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Editor support&lt;/td&gt;
&lt;td&gt;VS Code extension, JetBrains plugin&lt;/td&gt;
&lt;td&gt;Language server (any LSP editor)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Interactive report&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Terminal dashboard, HTML report&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compare two specs&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;--original&lt;/code&gt; + &lt;code&gt;--error-on-breaking&lt;/code&gt; (uses the openapi-changes engine)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ecosystem&lt;/td&gt;
&lt;td&gt;Embedded in Stoplight/Swagger; many public company rulesets (Adidas, Azure, DigitalOcean, Zalando)&lt;/td&gt;
&lt;td&gt;Smaller, growing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Telemetry&lt;/td&gt;
&lt;td&gt;Docker image sends an anonymous startup ping (opt out with &lt;code&gt;DO_NOT_TRACK=1&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Optional update check (&lt;code&gt;--no-update-check&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Which should you use?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Big specs, CI time matters, you're starting fresh:&lt;/strong&gt; vacuum. Start with its recommended ruleset on purpose, not by accident, and give the runner enough memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You already have a tuned Spectral ruleset, custom TypeScript functions, or an ignore baseline:&lt;/strong&gt; stay on Spectral, or budget a real migration. Run both side by side for a week and compare the findings by rule before you switch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your platform already embeds Spectral&lt;/strong&gt; (Stoplight, SwaggerHub, many API gateways): keep Spectral, so local results match what the platform shows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want autofix, a score threshold or a dashboard without adding another tool:&lt;/strong&gt; vacuum.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whichever you pick, the lesson from Test 2 applies: &lt;strong&gt;"Spectral-compatible" is about whether the ruleset &lt;em&gt;loads&lt;/em&gt;, not whether it gives the same &lt;em&gt;answers&lt;/em&gt;.&lt;/strong&gt; If you write your own rules, stick to core functions and avoid engine-specific extensions, so moving between linters later stays cheap.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(That's also why SpecShield's &lt;code&gt;govern --ruleset&lt;/code&gt; accepts Spectral-format YAML and rejects engine-specific constructs. It's a small portability check, not a replacement for either linter.)&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If you've migrated a large ruleset between the two, I'd like to hear what broke. And if you run these benchmarks on Linux CI runners and get different ratios, post them — mine are from one Mac.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>openapi</category>
      <category>devops</category>
      <category>webdev</category>
    </item>
    <item>
      <title>oasdiff vs SpecShield (2026): which OpenAPI breaking-change tool should you use?</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:48:59 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/oasdiff-vs-specshield-2026-which-openapi-breaking-change-tool-should-you-use-30nm</link>
      <guid>https://dev.to/deepaksatyam/oasdiff-vs-specshield-2026-which-openapi-breaking-change-tool-should-you-use-30nm</guid>
      <description>&lt;p&gt;&lt;strong&gt;Disclosure first:&lt;/strong&gt; I build SpecShield. This is a comparison written by the author of one of the two tools, so read it with that in mind. I've tried to make it the post I'd want to find if I were choosing — including the parts where oasdiff is simply better. Every oasdiff claim below links to or comes from its own docs and pricing page, as of November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You want to know whether a PR breaks the spec:&lt;/strong&gt; use &lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;oasdiff&lt;/a&gt;. It's free, Apache-2.0, and the most thorough OpenAPI diff engine there is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want the CI check that decides whether the PR merges&lt;/strong&gt; — with expiring waivers, usage data from real traffic, and security regressions blocked too — that's the part SpecShield is built for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Many teams should run both.&lt;/strong&gt; They don't conflict.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;oasdiff&lt;/th&gt;
&lt;th&gt;SpecShield&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;License / price&lt;/td&gt;
&lt;td&gt;Apache-2.0 CLI, free. Hosted Pro $100/mo (5 reviewers, 5 repos)&lt;/td&gt;
&lt;td&gt;Free CLI tier. Team $89/mo (up to 10 users)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Breaking-change catalog&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;784 kinds of change&lt;/strong&gt; (359 breaking, 23 warning, 402 info)&lt;/td&gt;
&lt;td&gt;Smaller. Nullability, constraint and enum checks run only on the hosted engine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec versions&lt;/td&gt;
&lt;td&gt;OpenAPI 3.0, plus 3.1 and 3.2 (&lt;a href="https://github.com/oasdiff/oasdiff/blob/main/docs/OPENAPI-31.md" rel="noopener noreferrer"&gt;what's supported&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;OpenAPI 3.0, 3.1 and Swagger 2.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compare against a git ref&lt;/td&gt;
&lt;td&gt;Yes (&lt;code&gt;base&lt;/code&gt; can be a branch, tag or commit)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gate&lt;/code&gt; picks the merge base automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multi-file / gateway specs&lt;/td&gt;
&lt;td&gt;Composed mode&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Accepting a known break&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;--err-ignore&lt;/code&gt; / &lt;code&gt;--warn-ignore&lt;/code&gt; text files&lt;/td&gt;
&lt;td&gt;Waivers with an owner, reason and &lt;strong&gt;expiry&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approval in the PR&lt;/td&gt;
&lt;td&gt;Pro: approve/reject per change in a PR comment&lt;/td&gt;
&lt;td&gt;GitHub App check run + PR comment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Who does this break?"&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, from your access logs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security regressions&lt;/td&gt;
&lt;td&gt;Detected, but graded by &lt;em&gt;client&lt;/em&gt; compatibility (see below)&lt;/td&gt;
&lt;td&gt;Graded by &lt;em&gt;risk&lt;/em&gt;; blocks auth removal, dropped scopes, leaked secrets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Proof / fix&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;prove&lt;/code&gt; (the request that breaks), &lt;code&gt;fix&lt;/code&gt; (non-breaking rewrite)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embed in Go / MCP server&lt;/td&gt;
&lt;td&gt;Yes / yes&lt;/td&gt;
&lt;td&gt;No / yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The rest of the post explains the rows that matter.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where oasdiff wins
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Depth of the diff.&lt;/strong&gt; oasdiff's &lt;a href="https://www.oasdiff.com/docs/breaking-changes" rel="noopener noreferrer"&gt;published catalog&lt;/a&gt; lists 784 kinds of API change, each with a level: 359 breaking, 23 warning, 402 informational. It handles the hard cases most diff tools quietly get wrong: &lt;code&gt;allOf&lt;/code&gt; flattening, the three equivalent ways of writing &lt;code&gt;nullable&lt;/code&gt;, renamed path parameters, path prefixes that moved, header-name casing.&lt;/p&gt;

&lt;p&gt;SpecShield's local engine covers the common breaking changes (removed endpoints and fields, new required inputs, type changes), but some checks — nullability, constraints and enum additions — only run on the hosted engine. If raw diff coverage is your requirement, oasdiff is ahead and I don't expect that to change soon.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ecosystem and maturity.&lt;/strong&gt; Go library you can embed, Docker image, Homebrew, pre-commit hook, a git diff driver so &lt;code&gt;git log -p&lt;/code&gt; shows an API changelog, stability levels (draft/alpha/beta/stable), a &lt;code&gt;--fail-on MISSING-VERSION-BUMP&lt;/code&gt; check, changelog templates, and localization. Around 1,450 GitHub stars and a release (v1.38.0) on 14 November 2026. It's actively maintained.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost.&lt;/strong&gt; The CLI, the GitHub Action and the shareable review page are free with no account. You only pay ($100/month) for the hosted approval workflow.&lt;/p&gt;

&lt;p&gt;If your question is "did this PR break the contract?", stop here and install oasdiff:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;oasdiff breaking --fail-on ERR base.yaml revision.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Where they differ: "breaking" isn't the same as "dangerous"
&lt;/h2&gt;

&lt;p&gt;This is the most useful thing I learned building the security side of SpecShield, and it applies even if you never use it.&lt;/p&gt;

&lt;p&gt;oasdiff classifies every change from the point of view of &lt;strong&gt;existing clients&lt;/strong&gt;: will a client that worked yesterday still work today? That's exactly the right question for breaking changes. But look at what it means for security changes, straight from oasdiff's own catalog:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;oasdiff check&lt;/th&gt;
&lt;th&gt;Level&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;api-security-anonymous-access-added&lt;/code&gt; — &lt;em&gt;endpoint now accepts unauthenticated requests&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Info&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;api-security-scope-removed&lt;/code&gt; — &lt;em&gt;scope deleted from an endpoint's security scheme&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Info&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;api-security-scope-added&lt;/code&gt; — &lt;em&gt;scope added to an endpoint's security scheme&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;Breaking&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's correct for compatibility. If an endpoint stops requiring a token, every existing client keeps working, so it's not breaking. Adding a scope locks some clients out, so it is.&lt;/p&gt;

&lt;p&gt;It's also the exact inverse of what a security reviewer cares about. The change that opens your API to anonymous callers is the &lt;em&gt;info&lt;/em&gt; one.&lt;/p&gt;

&lt;p&gt;Here's a small PR against a two-endpoint spec. It makes &lt;code&gt;GET /orders/{orderId}&lt;/code&gt; public, drops the &lt;code&gt;admin&lt;/code&gt; scope from &lt;code&gt;POST /refunds&lt;/code&gt;, adds a &lt;code&gt;client_secret&lt;/code&gt; field to the order response, and adds a public &lt;code&gt;GET /exports&lt;/code&gt;. A breaking-change diff (SpecShield's &lt;code&gt;compare&lt;/code&gt;) sees nothing wrong:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  0 breaking  2 additions  0 modifications  0 warnings

  + Field "responses.200.client_secret" was added to GET /orders/{orderId}
  + GET /exports was added
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same PR through the gate with &lt;code&gt;--security&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ specshield gate openapi.yaml --security

  ✖ 3 security regressions block this change

  ● Security: GET /orders/{orderId} no longer requires authentication (was bearer) — anyone can call it
  ● Security: new field "client_secret" in a public response looks like a credential
  ● Security: POST /refunds no longer requires scope admin on oauth

  Security review (1, not blocking)
  ▲ Security: new endpoint GET /exports is public (security: [])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(That's real output, trimmed of the waiver hints. I didn't run oasdiff on this example, so I won't claim exactly which of its checks fire; the levels above are from its catalog.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To be fair to oasdiff:&lt;/strong&gt; you can promote those checks yourself. Its &lt;code&gt;--severity-levels&lt;/code&gt; file lets you set &lt;code&gt;api-security-anonymous-access-added err&lt;/code&gt;, and then a public endpoint fails the build. If you only use oasdiff, I'd strongly recommend doing that today. What it won't do is look at response fields for credentials or personal data, or rank a downgrade from bearer to an API key in the query string as a weakening rather than a change.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where they differ: who does it break?
&lt;/h2&gt;

&lt;p&gt;A diff tells you &lt;em&gt;what&lt;/em&gt; changed. It can't tell you whether anyone uses it.&lt;/p&gt;

&lt;p&gt;SpecShield reads the access logs you already have (nginx, ALB, JSON, Kubernetes audit logs) and turns them into a usage summary — counts per endpoint and client, nothing more; raw logs never leave the machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield usage import /var/log/nginx/access.log* --spec openapi.yaml
specshield gate openapi.yaml --usage usage.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then each breaking change says who it breaks, and a removal no client has called in the window stops failing the build:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ● DELETE /orders/{orderId}/receipt method was removed
    ↳ impact: 1 client · 134 calls · last seen 72 min ago
        MyShop-iOS/5.2  100% of calls  134 · last seen 72 min ago

  ✔  BREAKING BUT UNUSED — safe to ship
  ○ GET /legacy-report was removed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;oasdiff has nothing like this; it's not what oasdiff is for. If you don't have access logs, this row doesn't matter to you.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where they differ: accepting a break
&lt;/h2&gt;

&lt;p&gt;Both tools let you accept a known break. The difference is what happens six months later.&lt;/p&gt;

&lt;p&gt;oasdiff uses ignore files — one line per accepted change, passed with &lt;code&gt;--err-ignore&lt;/code&gt; / &lt;code&gt;--warn-ignore&lt;/code&gt;. Simple, and it works.&lt;/p&gt;

&lt;p&gt;SpecShield waivers need an owner, a reason and an expiry (90 days at most by default), and they live in the repo next to the change they accept:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield waivers add response-field-removed --operation &lt;span class="s2"&gt;"GET /pets/{id}"&lt;/span&gt; --field legacy_id \
  --owner @alice --reason &lt;span class="s2"&gt;"Mobile 4.2+ stopped reading it"&lt;/span&gt; --days 30
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When it expires, the change blocks again and the output says whose waiver lapsed. The point is that a gate with permanent ignores slowly stops being a gate.&lt;/p&gt;

&lt;p&gt;oasdiff's paid Pro tier solves a related problem differently: every change gets approve/reject in a PR comment, with an audit trail of who approved what. If per-change human approval is what your team wants, that's a good model.&lt;/p&gt;




&lt;h2&gt;
  
  
  Things only SpecShield does (and their limits)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;prove&lt;/code&gt;&lt;/strong&gt; — for every breaking change, generates the request that worked against the old spec and fails against the new one, checked against both specs. With &lt;code&gt;--against &amp;lt;url&amp;gt;&lt;/code&gt; it sends it to a running build. Useful when someone asks "is that &lt;em&gt;actually&lt;/em&gt; breaking?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;fix&lt;/code&gt;&lt;/strong&gt; — rewrites the new spec into a non-breaking version (expand-and-contract), and verifies each edit with the diff engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;audit&lt;/code&gt;&lt;/strong&gt; — checks the spec against the OWASP API Security Top 10, and compares access logs with the spec to find shadow endpoints, old &lt;code&gt;/v1&lt;/code&gt; routes still answering, and files like &lt;code&gt;/.env&lt;/code&gt; returning 200.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is runtime security testing. SpecShield reads what the spec declares and what your logs recorded. It doesn't attack a running service.&lt;/p&gt;




&lt;h2&gt;
  
  
  Pricing, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;oasdiff&lt;/th&gt;
&lt;th&gt;SpecShield&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;CLI, GitHub Action, shareable review page, no account&lt;/td&gt;
&lt;td&gt;CLI (&lt;code&gt;compare&lt;/code&gt;, &lt;code&gt;gate&lt;/code&gt;, &lt;code&gt;audit&lt;/code&gt;, &lt;code&gt;usage&lt;/code&gt;), 1 GitHub App PR check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paid&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Pro $100/mo&lt;/strong&gt; — approval workflow, audit trail, merge gate; 5 reviewers, 5 repos&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Team $89/mo&lt;/strong&gt; ($75/mo annual) — up to 10 users; consumer registry, &lt;code&gt;can-i-deploy&lt;/code&gt;, governance gate, dashboard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;Custom; specs never uploaded&lt;/td&gt;
&lt;td&gt;Custom; SSO, on-prem on request&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Prices from &lt;a href="https://www.oasdiff.com/pricing" rel="noopener noreferrer"&gt;oasdiff.com/pricing&lt;/a&gt; and &lt;a href="https://specshield.io/pricing" rel="noopener noreferrer"&gt;specshield.io/pricing&lt;/a&gt;, November 2026.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd recommend
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Solo dev or small team, one spec:&lt;/strong&gt; oasdiff, free. Add &lt;code&gt;--severity-levels&lt;/code&gt; to promote the anonymous-access check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Several teams, a gate that has to stay on:&lt;/strong&gt; SpecShield's gate, for the expiring waivers and shadow mode before you turn on blocking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You have access logs and keep arguing about whether a removal is safe:&lt;/strong&gt; SpecShield with &lt;code&gt;--usage&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want security changes blocked in the same PR check:&lt;/strong&gt; &lt;code&gt;specshield gate --security&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Already happy with oasdiff?&lt;/strong&gt; Keep it. Add &lt;code&gt;npx specshield gate openapi.yaml --security --shadow&lt;/code&gt; next to it for two weeks and see whether it finds anything oasdiff didn't. If it doesn't, you've lost nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CLI: &lt;code&gt;npm i -g specshield&lt;/code&gt; · &lt;a href="https://www.npmjs.com/package/specshield" rel="noopener noreferrer"&gt;npm&lt;/a&gt; · &lt;a href="https://specshield.io" rel="noopener noreferrer"&gt;specshield.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you've hit a case where oasdiff and SpecShield disagree on whether something is breaking, I'd genuinely like to see it — post it in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>openapi</category>
      <category>devops</category>
      <category>security</category>
    </item>
    <item>
      <title>We scanned 1,939 repositories. 95% of projects publishing an OpenAPI spec have no compatibility gate.</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Sat, 19 Sep 2026 13:28:26 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/we-scanned-1939-repositories-95-of-projects-publishing-an-openapi-spec-have-no-compatibility-51of</link>
      <guid>https://dev.to/deepaksatyam/we-scanned-1939-repositories-95-of-projects-publishing-an-openapi-spec-have-no-compatibility-51of</guid>
      <description>&lt;p&gt;We went looking for projects that publish an OpenAPI specification and then let anything through CI unchecked. We expected a niche. We found the default.&lt;/p&gt;

&lt;p&gt;Of &lt;strong&gt;85 repositories with a genuine first-party OpenAPI spec&lt;/strong&gt;, exactly &lt;strong&gt;four&lt;/strong&gt; run any breaking-change detection at all. That is &lt;strong&gt;95.3% with no compatibility gate&lt;/strong&gt; — and one of the four is oasdiff's own repository, so among projects that merely &lt;em&gt;use&lt;/em&gt; such a tool rather than build one, it is three.&lt;/p&gt;

&lt;p&gt;Then we did the part nobody had done: we ran a differ across each project's own release history to see what they had actually shipped. That produced a second finding that undercuts the first, and we think it is the more useful one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The funnel
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 · Harvest&lt;/td&gt;
&lt;td&gt;GitHub issue-search queries run over several rounds — &lt;code&gt;breaking api change in:title&lt;/code&gt;, &lt;code&gt;backwards incompatible api in:title&lt;/code&gt;, &lt;code&gt;undocumented breaking change in:title&lt;/code&gt;, &lt;code&gt;broke our integration in:title&lt;/code&gt;, and others&lt;/td&gt;
&lt;td&gt;~2,800 raw hits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 · De-noise&lt;/td&gt;
&lt;td&gt;Require ≥2 comments on the issue, removing a large block of auto-generated issue spam&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;1,939&lt;/strong&gt; repos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 · Product fit&lt;/td&gt;
&lt;td&gt;Full git tree per repo; require a first-party OpenAPI/Swagger spec, excluding &lt;code&gt;vendor/&lt;/code&gt;, &lt;code&gt;node_modules/&lt;/code&gt;, &lt;code&gt;testdata/&lt;/code&gt;, fixtures, &lt;code&gt;.github/&lt;/code&gt;, &lt;code&gt;examples/&lt;/code&gt;, &lt;code&gt;third_party/&lt;/code&gt;, &lt;code&gt;generated/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;85&lt;/strong&gt; repos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 · Tooling check&lt;/td&gt;
&lt;td&gt;Read every workflow file for oasdiff, optic, openapi-diff, pactflow, pact-broker, can-i-deploy, bump-cli, openapi-changes&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;4&lt;/strong&gt; had any&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Of those 85, three more run OpenAPI &lt;em&gt;linting&lt;/em&gt; — Spectral or Redocly — but linting checks whether a spec is well-formed, not whether it broke someone. A spec can be immaculate and still delete the endpoint your customers call.&lt;/p&gt;

&lt;p&gt;The four with real detection all use &lt;strong&gt;oasdiff&lt;/strong&gt;. Not one used anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then we looked at what they actually shipped
&lt;/h2&gt;

&lt;p&gt;An absence of tooling is only interesting if it has consequences. So for each project we fetched its spec at up to ten consecutive releases and diffed each pair, classifying every change by whether a consumer's code would actually break.&lt;/p&gt;

&lt;p&gt;Across the 60 repositories with usable release history: &lt;strong&gt;2,118 breaking changes, 631 of them consumer-visible&lt;/strong&gt; — removed endpoints, removed parameters, enum values dropped, request fields made mandatory.&lt;/p&gt;

&lt;p&gt;The largest single case was a project that renamed its entire core resource — every &lt;code&gt;/v1/items*&lt;/code&gt; route replaced by &lt;code&gt;/v1/entities*&lt;/code&gt; — in one release. Fourteen paths removed, twenty-three added. Any integration calling the old routes gets a 404.&lt;/p&gt;

&lt;h2&gt;
  
  
  The counter-finding, which matters more
&lt;/h2&gt;

&lt;p&gt;Here is where our own thesis took a hit.&lt;/p&gt;

&lt;p&gt;Of the &lt;strong&gt;18 repositories that shipped a consumer-visible breaking change&lt;/strong&gt;, &lt;strong&gt;12 disclosed every one of them&lt;/strong&gt; — 67%.&lt;/p&gt;

&lt;p&gt;And they disclosed &lt;em&gt;well&lt;/em&gt;. The project that renamed &lt;code&gt;/v1/items&lt;/code&gt; to &lt;code&gt;/v1/entities&lt;/code&gt; put this in its release notes, in a callout, addressed to exactly the right people:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;[!IMPORTANT]&lt;/strong&gt;&lt;br&gt;
If you are an integration/software developer, the &lt;code&gt;/v1/items*&lt;/code&gt; and &lt;code&gt;/v1/locations*&lt;/code&gt; endpoints have been &lt;strong&gt;entirely replaced&lt;/strong&gt; by &lt;code&gt;/v1/entities*&lt;/code&gt;. Please review our entity merge documentation for the API changes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A linked migration guide. A backup warning. Better practice than most commercial API vendors manage.&lt;/p&gt;

&lt;p&gt;So the story we set out to tell — &lt;em&gt;"projects with no tooling are silently breaking their consumers"&lt;/em&gt; — is not what the data says. Most of them are breaking consumers &lt;strong&gt;loudly&lt;/strong&gt;, in the changelog, on purpose. The tooling gap is real. The silence we assumed would accompany it mostly isn't there.&lt;/p&gt;

&lt;p&gt;Fourteen releases across the whole set shipped a consumer-visible break with written notes that never mentioned it. Fourteen, across 1,939 repositories scanned. That is a real problem and a much smaller one than the headline implies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four ways we were wrong before we were right
&lt;/h2&gt;

&lt;p&gt;We are publishing the corrections because a statistic whose author never shows their errors is a statistic you cannot check. Every one of these inflated our numbers in our own favour, and we found them by reading output instead of trusting counts.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Version order is not time order
&lt;/h3&gt;

&lt;p&gt;Projects backport. A monorepo tags several components in parallel — &lt;code&gt;core/v1.7.14&lt;/code&gt; and &lt;code&gt;ent-v1.5.13-base&lt;/code&gt; on the same day. Sorting releases by date walks versions &lt;em&gt;backwards&lt;/em&gt;, and every addition is then reported as a removal.&lt;/p&gt;

&lt;p&gt;One project appeared to have shipped 577 breaking changes. Restricting the comparison to a single coherent release line, ordered by version, brought it to 249. Across the whole set, fixing the ordering took the total from &lt;strong&gt;4,285 to 2,606&lt;/strong&gt; breaking changes, and consumer-visible ones from &lt;strong&gt;1,614 to 813&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Roughly half of our original headline was a sorting bug.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Parallel maintenance lines
&lt;/h3&gt;

&lt;p&gt;Even within one tag prefix, version order lies. One project ships &lt;code&gt;v0.38.26&lt;/code&gt; in 2026, long after &lt;code&gt;v1.0.0&lt;/code&gt; in 2024, because 0.38 is a maintained LTS line. Diffing &lt;code&gt;v0.40.0&lt;/code&gt; against &lt;code&gt;v1.0.0&lt;/code&gt; compares two branches, not an upgrade anyone travelled.&lt;/p&gt;

&lt;p&gt;We now discard any pair whose "newer" release predates the older one. That removed 17 comparisons and, in one case, &lt;strong&gt;100% of a repository's findings&lt;/strong&gt; — a project we had ranked among our strongest examples turned out to have shipped nothing breaking at all.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Direction matters
&lt;/h3&gt;

&lt;p&gt;A &lt;em&gt;request&lt;/em&gt; field becoming required breaks every client that omits it. A &lt;em&gt;response&lt;/em&gt; field becoming required breaks nobody — the server is promising &lt;strong&gt;more&lt;/strong&gt;, not demanding it. We counted both as consumer-breaking. Twenty-five changes were miscounted this way, taking consumer-visible changes from 813 to 788.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. "Undocumented" was a vocabulary problem
&lt;/h3&gt;

&lt;p&gt;Our detector searched release notes for &lt;em&gt;breaking&lt;/em&gt;, &lt;em&gt;backwards-incompatible&lt;/em&gt;, &lt;em&gt;no longer&lt;/em&gt;, &lt;em&gt;removed the&lt;/em&gt;, &lt;em&gt;migration guide&lt;/em&gt;. Teams write &lt;strong&gt;"entirely replaced by"&lt;/strong&gt;, &lt;strong&gt;"moved to"&lt;/strong&gt;, &lt;strong&gt;"renamed"&lt;/strong&gt;, &lt;strong&gt;"Upgrading"&lt;/strong&gt;, or simply put it in a &lt;code&gt;[!IMPORTANT]&lt;/code&gt; block.&lt;/p&gt;

&lt;p&gt;We also read only the first 6,000 characters of each release body, and truncated one disclosure in a body of roughly 8,400. And we read only GitHub release bodies — one project's releases are two links to its own docs site, where every version has a dedicated &lt;em&gt;Breaking Changes&lt;/em&gt; section. Calling that "undocumented" would have accused the most rigorous team in the sample of hiding things.&lt;/p&gt;

&lt;p&gt;Undisclosed releases: &lt;strong&gt;48 → 23 → 14&lt;/strong&gt; as each of those was fixed. Two thirds of our central claim was wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  And the headline itself
&lt;/h3&gt;

&lt;p&gt;Our first draft of this post said &lt;strong&gt;97%&lt;/strong&gt;. The actual figure is &lt;strong&gt;95.3%&lt;/strong&gt; — 81 of 85. The 97% came from a denominator that never got re-checked after the sample changed. We caught it while writing this paragraph.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we would now say the problem is
&lt;/h2&gt;

&lt;p&gt;Not &lt;em&gt;"teams don't know they're breaking consumers."&lt;/em&gt; Most of the ones we could measure do know, and say so.&lt;/p&gt;

&lt;p&gt;The sharper finding sits with the teams that &lt;strong&gt;did&lt;/strong&gt; adopt detection. In a separate survey we ran in August — 504 repositories already running oasdiff, a different and non-overlapping sample from the 1,939 here — we read the workflow files of eight of them. Six had deliberately made the check non-blocking — &lt;code&gt;continue-on-error: true&lt;/code&gt;, or the command piped through &lt;code&gt;|| true&lt;/code&gt;. One wrote down why:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The baseline used to be live production (app.infisical.com). Production tracks the last deploy rather than main, so every breaking change legitimately merged to main re-fired on every open PR until the next deploy. Unrelated PRs failed with identical errors and &lt;strong&gt;the check stopped being believed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This check is advisory. It reports what the PR changes and comments when something breaks, but it never fails the job. Making it blocking is a separate decision, and one worth taking only once the reports have been observed to be trustworthy.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is the real shape of it. Detection is solved and free. The hard part is a gate people still trust six months in — and the honest answer is that most teams who tried one turned it off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caveats
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sample bias.&lt;/strong&gt; Stage 1 selected repositories where somebody had &lt;em&gt;already filed a breaking-change complaint&lt;/em&gt;. This is not a random sample of OpenAPI publishers; if anything it over-represents projects that have felt the problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public repos only.&lt;/strong&gt; Everything here is open source. Internal APIs behind a company firewall may look nothing like this.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ten releases per project.&lt;/strong&gt; Longer histories were truncated, so the breaking-change totals are a floor, not a ceiling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec ≠ API.&lt;/strong&gt; A change flagged here may be intentional, communicated elsewhere, or on an endpoint nobody consumes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10 of 76 "specs" weren't OpenAPI documents at all&lt;/strong&gt; — files whose names contain &lt;em&gt;openapi&lt;/em&gt; or &lt;em&gt;swagger&lt;/em&gt; but which are JSON Schema or config. Our first filter matched on filename; reading them fixed it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Counts drift.&lt;/strong&gt; Repositories kept releasing while we measured.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The data
&lt;/h2&gt;

&lt;p&gt;The full dataset is published so you can check any of this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://specshield.io/data/breaking-change-issue-survey-2026-09.json" rel="noopener noreferrer"&gt;breaking-change-issue-survey-2026-09.json&lt;/a&gt;&lt;/strong&gt; (700 KB) — the 1,939 repositories behind the headline, with every issue title, URL and comment count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://specshield.io/data/openapi-compatibility-gate-survey-2026-09.json" rel="noopener noreferrer"&gt;openapi-compatibility-gate-survey-2026-09.json&lt;/a&gt;&lt;/strong&gt; (424 KB) — the 76 repositories whose spec history we diffed.&lt;/p&gt;

&lt;p&gt;The second file contains all 76 repositories, the spec path we read, every release pair compared with its dates, whether the pair was discarded as cross-branch, each release's disclosure classification, and every consumer-visible change with its type, method, path and tier. The method and the classification rules are in each file, so they stand on their own.&lt;/p&gt;

&lt;p&gt;One honest gap, noted in the first file: the harvest ran over several rounds and only 924 of 2,301 issues retained a label for which query surfaced them, covering 12 distinct searches. The repositories, titles and counts are complete; the query attribution is not.&lt;/p&gt;

&lt;p&gt;If you reproduce it and get a different number, we would rather hear about it than not.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;We build &lt;a href="https://specshield.io" rel="noopener noreferrer"&gt;SpecShield&lt;/a&gt;, which is a breaking-change gate, so we had every incentive to report that number as bad as possible. It is in our interest for the answer to be "95% of projects are flying blind." The data says most of them are not flying blind at all — they are telling their users exactly what they broke. We would rather publish that than the version that sells better.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>openapi</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
    <item>
      <title>OpenAPI contract testing in 2026: oasdiff vs Spectral vs PactFlow (and what I built)</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Fri, 21 Aug 2026 12:17:03 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/openapi-contract-testing-in-2026-oasdiff-vs-spectral-vs-pactflow-and-what-i-built-21an</link>
      <guid>https://dev.to/deepaksatyam/openapi-contract-testing-in-2026-oasdiff-vs-spectral-vs-pactflow-and-what-i-built-21an</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Updated November 2026:&lt;/strong&gt; PactFlow pricing corrected (it now has a free Starter plan), and a new section on catching &lt;em&gt;security&lt;/em&gt; regressions in the same gate. The opening example is now framed as what it always was: an illustration, not a specific incident.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here's a change that passes every test: rename a response field from &lt;code&gt;customer_id&lt;/code&gt; to &lt;code&gt;customerId&lt;/code&gt; so it matches the rest of the codebase. Unit tests pass, because they test your code. Review approves it, because it's a tidy-up. And any client still reading &lt;code&gt;customer_id&lt;/code&gt; breaks the moment you deploy.&lt;/p&gt;

&lt;p&gt;Nothing in the pipeline was broken. What broke was the &lt;em&gt;contract&lt;/em&gt; between the API and someone else — and in most CI setups, nothing is looking at that.&lt;/p&gt;

&lt;p&gt;I've spent the past year building tooling around this problem. This is where I think each of the existing tools actually wins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disclosure before we start:&lt;/strong&gt; I'm the author of SpecShield, one of the tools below. I'll be straight about where the free alternatives beat it, because for a lot of teams they will. If all you need is what oasdiff does, use oasdiff — it's excellent and it costs nothing.&lt;/p&gt;




&lt;h2&gt;
  
  
  "Contract testing" is four different jobs
&lt;/h2&gt;

&lt;p&gt;Most of the confusion in this space comes from one phrase covering four unrelated problems. Once you separate them, tool choice gets obvious.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job 1 — Did this change break anything at all?&lt;/strong&gt;&lt;br&gt;
Diff two OpenAPI specs, classify what changed, flag what's backwards-incompatible. Removed endpoints, narrowed types, newly-required request fields.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job 2 — Is this spec any good?&lt;/strong&gt;&lt;br&gt;
Linting. Missing descriptions, inconsistent casing, no &lt;code&gt;operationId&lt;/code&gt;, auth described in ways that will bite you later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job 3 — Will this break a &lt;em&gt;specific consumer I know about&lt;/em&gt;?&lt;/strong&gt;&lt;br&gt;
Different question entirely. Removing an endpoint nobody calls is free. Removing one that three teams depend on is an outage. This needs knowledge of who consumes what.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Job 4 — Should this deploy be blocked?&lt;/strong&gt;&lt;br&gt;
The organisational one. Someone has to decide that a finding stops a merge, and someone has to be able to override it without turning the whole check off.&lt;/p&gt;

&lt;p&gt;Most tools do one or two of these well. Nobody does all four, including me.&lt;/p&gt;


&lt;h2&gt;
  
  
  Job 1: breaking-change detection — oasdiff wins
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;oasdiff&lt;/a&gt; is open source, has several hundred breaking-change checks, ships a CLI and a GitHub Action, and has a hosted web diff where you paste two specs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;oasdiff breaking spec-v1.yaml spec-v2.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's the reference implementation. If your requirement is "tell me when a PR breaks the spec," install it this afternoon and skip the rest of this post.&lt;/p&gt;

&lt;p&gt;I'll say the uncomfortable part plainly, since it's the honest framing: &lt;strong&gt;breaking-change detection is commoditised.&lt;/strong&gt; It's table stakes. Nobody should pay for it as a standalone feature, mine included.&lt;/p&gt;




&lt;h2&gt;
  
  
  Job 2: linting — Spectral and vacuum
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/stoplightio/spectral" rel="noopener noreferrer"&gt;Spectral&lt;/a&gt; is the de facto standard, and &lt;a href="https://github.com/daveshanley/vacuum" rel="noopener noreferrer"&gt;vacuum&lt;/a&gt; is a much faster Go implementation that reads the same ruleset format.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;extends&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;spectral:oas&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;recommended&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;operation-operationId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;error&lt;/span&gt;
  &lt;span class="na"&gt;operation-description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;warn&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both free. Both good. Stoplight, Apigee API hub and Azure API Center all bundle Spectral under the hood, so if you're on one of those you already have this.&lt;/p&gt;

&lt;p&gt;The gap isn't the linter. It's what happens to the output. &lt;code&gt;spectral lint&lt;/code&gt; prints a wall of warnings, someone puts it in CI, it fails on 200 findings the first day, and by week three it's &lt;code&gt;|| true&lt;/code&gt;. It's one of the most common ways a lint step dies.&lt;/p&gt;




&lt;h2&gt;
  
  
  Job 3: consumer-aware verification — PactFlow, and this is where money lives
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://pact.io" rel="noopener noreferrer"&gt;Pact&lt;/a&gt; and &lt;a href="https://pactflow.io" rel="noopener noreferrer"&gt;PactFlow&lt;/a&gt; solve the real version. Consumers publish what they actually use, providers publish what they offer, and a broker tells you whether a given pair is compatible.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;can-i-deploy&lt;/code&gt; is the piece worth stealing conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pact-broker can-i-deploy --pacticipant payments-api \
  --version abc123 --to-environment production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's not "did the spec change." It's "will this specific build break a consumer that is live right now."&lt;/p&gt;

&lt;p&gt;PactFlow is the mature product here. There's a free Starter plan; the Team plan is around $115–127/month depending on billing. If you want full consumer-driven contract testing with the Pact DSL and runtime verification, they go deeper than anything spec-only can — including mine. Spec-to-spec comparison can't tell you a consumer &lt;em&gt;reads&lt;/em&gt; a field it never declared. Runtime pact verification can.&lt;/p&gt;

&lt;p&gt;Worth knowing: &lt;strong&gt;&lt;a href="https://github.com/opticdev/optic" rel="noopener noreferrer"&gt;Optic&lt;/a&gt; was archived on 12 January 2026&lt;/strong&gt; (Optic Labs is now part of Atlassian). If you're running it, it's unmaintained.&lt;/p&gt;




&lt;h2&gt;
  
  
  Job 4: the gate — the part I think is underserved
&lt;/h2&gt;

&lt;p&gt;Every tool above produces findings. Very few help you turn findings into a decision that survives contact with a deadline.&lt;/p&gt;

&lt;p&gt;This is the gap I built SpecShield for, so weigh what follows accordingly.&lt;/p&gt;

&lt;h3&gt;
  
  
  A score, not a wall of warnings
&lt;/h3&gt;

&lt;p&gt;Governance findings get weighted by severity into a 0–100 score and an A–F grade:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield govern openapi.yaml --min-score 80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any error-severity finding caps the grade at C, on the theory that an API with an unresolved error is not an "A" API no matter how many nice descriptions it has. A threshold is something a team can agree on. "Zero warnings" is something a team agrees on once and then abandons.&lt;/p&gt;

&lt;p&gt;Three rule packs ship built in:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pack&lt;/th&gt;
&lt;th&gt;Rules&lt;/th&gt;
&lt;th&gt;For&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;recommended&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;Design consistency — &lt;code&gt;operationId&lt;/code&gt;, descriptions, kebab-case paths, camelCase properties, array and string bounds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;owasp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;HTTPS-only servers, security field defined, no credentials in query strings, no HTTP Basic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;minimal&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;The highest-signal rules only, for adding a gate to a legacy spec without drowning&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Waivers, so the gate survives
&lt;/h3&gt;

&lt;p&gt;This is the feature I'd argue matters most, and it's the least exciting to demo.&lt;/p&gt;

&lt;p&gt;When a gate blocks something at 6pm on a Friday, the team has two options: fix it, or disable the check. Everyone disables the check. Then it never comes back on.&lt;/p&gt;

&lt;p&gt;So findings can be waived at the org level, with the waiver recorded and revocable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield govern openapi.yaml --org acme --min-score 80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The waiver applies to the verdict, the rule stays on for everyone else, and there's a record of who accepted what. The gate stays credible because there's a pressure valve that isn't "delete the CI step."&lt;/p&gt;

&lt;h3&gt;
  
  
  Rulesets that aren't a lock-in trap
&lt;/h3&gt;

&lt;p&gt;Custom rulesets are Spectral-format YAML. There's a portability validator that actively &lt;strong&gt;rejects&lt;/strong&gt; engine-specific constructs — vacuum-only &lt;code&gt;extends&lt;/code&gt;, vendor rule-id prefixes, engine-specific functions.&lt;/p&gt;

&lt;p&gt;That's deliberate. A ruleset you write should run somewhere else if you leave. Governance rules encode institutional knowledge, and holding that hostage is a bad way to keep customers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Output CI already understands
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield govern openapi.yaml --output report.sarif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SARIF, JUnit, HTML and JSON. SARIF matters most — GitHub ingests it natively, so findings show up as annotations on the diff instead of buried in log output nobody opens.&lt;/p&gt;

&lt;h3&gt;
  
  
  The deploy gate
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield bdct publish-provider --spec openapi.yaml --env production
specshield bdct can-i-deploy --provider payments-api --env production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Consumers register the contract they depend on. Before a deploy, you ask whether it's safe. Same shape as PactFlow's, built on OpenAPI rather than the Pact DSL — lighter to adopt, less powerful at runtime. That's a genuine trade, not a free win.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where it runs
&lt;/h3&gt;

&lt;p&gt;The same engine is exposed through a CLI, a GitHub Action, a GitHub App that posts a check run and a sticky PR comment, an &lt;a href="https://plugins.jetbrains.com/plugin/33137-specshield" rel="noopener noreferrer"&gt;IntelliJ plugin&lt;/a&gt;, and an MCP server so coding agents can run the gate before opening a PR.&lt;/p&gt;

&lt;p&gt;One thing worth stating clearly: &lt;strong&gt;it's fully deterministic. No LLM anywhere in the analysis.&lt;/strong&gt; The same spec always produces the same score, and every deducted point traces to a named rule. In a market currently bolting language models onto linters, "explainable and reproducible" felt like the more useful property for something that blocks deploys.&lt;/p&gt;




&lt;h2&gt;
  
  
  New since this post: security regressions in the same gate
&lt;/h2&gt;

&lt;p&gt;A contract can break &lt;em&gt;safely&lt;/em&gt; — every client keeps working — and still get worse. An endpoint loses its &lt;code&gt;security&lt;/code&gt; requirement. A bearer token becomes an API key in the query string. A response starts returning &lt;code&gt;client_secret&lt;/code&gt;. None of that is a breaking change, so a breaking-change diff stays green.&lt;/p&gt;

&lt;p&gt;So the gate now has a security mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield gate openapi.yaml --security
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It blocks a PR when authentication is removed or weakened, a required scope is dropped, a new endpoint ships without auth while the rest of the API has it, or credentials and regulated data appear in a response. Lower-risk changes (a new public endpoint marked &lt;code&gt;security: []&lt;/code&gt;, an email field on an authenticated endpoint) are reported for review instead of blocking. Waivers work the same way as everything else in the gate: owner, reason, expiry.&lt;/p&gt;

&lt;p&gt;And for the API as it is today, rather than the diff:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;specshield audit openapi.yaml --logs /var/log/nginx/access.log*.gz --sarif audit.sarif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That checks the spec against the &lt;a href="https://owasp.org/API-Security/editions/2023/en/0x11-t10/" rel="noopener noreferrer"&gt;OWASP API Security Top 10&lt;/a&gt; and compares real traffic with it: endpoints answering that the spec doesn't document (shadow APIs), old &lt;code&gt;/v1&lt;/code&gt; routes still serving after &lt;code&gt;/v2&lt;/code&gt; shipped, and files like &lt;code&gt;/.env&lt;/code&gt; returning 200. It sends no requests — it reads the spec and the logs you already have.&lt;/p&gt;

&lt;p&gt;To be clear about the limits: this reads what the spec &lt;em&gt;declares&lt;/em&gt; and what the logs &lt;em&gt;recorded&lt;/em&gt;. It isn't a DAST scanner and doesn't test what the running service actually enforces. Tools like ZAP or StackHawk do that, and they're complementary.&lt;/p&gt;




&lt;h2&gt;
  
  
  The comparison, honestly
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Breaking changes&lt;/th&gt;
&lt;th&gt;Linting&lt;/th&gt;
&lt;th&gt;Consumer-aware&lt;/th&gt;
&lt;th&gt;Deploy gate&lt;/th&gt;
&lt;th&gt;Waivers&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;oasdiff&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅ Best in class&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Spectral / vacuum&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅ Standard&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PactFlow&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;✅ Deepest&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;Free Starter; Team ~$115/mo+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bump.sh&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;~$50/mo+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Optic&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;Archived&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SpecShield&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;Free tier&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Reading that table fairly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;oasdiff beats me at raw breaking-change detection.&lt;/strong&gt; More checks, longer track record, larger community.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PactFlow beats me at consumer-driven testing.&lt;/strong&gt; Runtime verification catches things spec comparison structurally cannot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spectral has a far bigger ruleset ecosystem&lt;/strong&gt; than my three packs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apigee and Azure API Center aren't competitors at all&lt;/strong&gt; — they're runtime API management. Different layer, and complementary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where I think the combination earns its place: one gate that does breaking changes &lt;em&gt;and&lt;/em&gt; governance, with a threshold and a waiver workflow, wired into the PR rather than a separate dashboard.&lt;/p&gt;

&lt;p&gt;If you don't need the gate, the free tools are genuinely enough. I'd rather say that than have you find out in week two.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd actually recommend
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Just starting?&lt;/strong&gt; oasdiff in CI. Today. Takes twenty minutes and catches the majority of what hurts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spec quality drifting across teams?&lt;/strong&gt; Add Spectral or vacuum. Start with three rules, not thirty.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real consumers, real runtime coupling, budget?&lt;/strong&gt; PactFlow. It's the mature answer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want one gate, a score you can threshold, and a waiver trail?&lt;/strong&gt; That's the gap I built for — &lt;a href="https://specshield.io" rel="noopener noreferrer"&gt;specshield.io&lt;/a&gt;, free tier. CLI is &lt;code&gt;npm i -g specshield&lt;/code&gt; (&lt;a href="https://www.npmjs.com/package/specshield" rel="noopener noreferrer"&gt;npm&lt;/a&gt;); add &lt;code&gt;--security&lt;/code&gt; to the gate if you also want auth regressions blocked; there's also an &lt;a href="https://plugins.jetbrains.com/plugin/33137-specshield" rel="noopener noreferrer"&gt;IntelliJ plugin&lt;/a&gt; if you'd rather see it in the editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Still on Optic?&lt;/strong&gt; It's been archived since January. Please migrate to something.&lt;/p&gt;




&lt;p&gt;The lesson of the &lt;code&gt;customerId&lt;/code&gt; rename isn't that you need more tests. You probably have plenty. It's that nothing in the pipeline knows a contract exists, or who is on the other end of it.&lt;/p&gt;

&lt;p&gt;Whichever tool you pick, pick one that does.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What are you using for this? Genuinely curious whether people are gating on contracts yet or still finding out in production.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>devops</category>
      <category>testing</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Your AI coding agent will happily ship a breaking API change. I built an MCP server to catch it.</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Fri, 10 Jul 2026 18:40:53 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/your-ai-coding-agent-will-happily-ship-a-breaking-api-change-i-built-an-mcp-server-to-catch-it-5dal</link>
      <guid>https://dev.to/deepaksatyam/your-ai-coding-agent-will-happily-ship-a-breaking-api-change-i-built-an-mcp-server-to-catch-it-5dal</guid>
      <description>&lt;p&gt;Last month I watched Cursor confidently rename a field across an entire API, commit it, and open a PR. Clean diff, tests green, looked great. It had also just broken a mobile client and a partner integration that were still reading the old field name — and neither Cursor nor I noticed until much later.&lt;/p&gt;

&lt;p&gt;That's the thing about AI coding agents and APIs: they're fast, they're fearless, and they have &lt;strong&gt;zero awareness of your API contract&lt;/strong&gt;. An agent will drop an endpoint, make a request field required, or change a response type without any sense that a real consumer out there depends on the old shape. The code compiles. Your tests pass (your tests — not the consumer's). The breakage is completely silent until someone downstream feels it, usually in production, usually from an angry message rather than a failing build.&lt;/p&gt;

&lt;p&gt;We keep giving agents more power to &lt;em&gt;write&lt;/em&gt; API changes and nothing to tell them whether a change is &lt;strong&gt;safe to ship&lt;/strong&gt;. So I built that missing piece as an MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap: there's no "is this safe?" step in the loop
&lt;/h2&gt;

&lt;p&gt;Think about how you'd catch this manually. You'd diff the old and new OpenAPI spec, look for removed endpoints, removed response fields, tightened request contracts, enum narrowing — the classic breaking changes — and decide whether it's safe to merge or whether you need a version bump and a heads-up to consumers.&lt;/p&gt;

&lt;p&gt;An agent never does that. It has the &lt;em&gt;code&lt;/em&gt; in context, not the &lt;em&gt;contract implications&lt;/em&gt;. And "did I just break a consumer?" is exactly the kind of question it should be asking before it hands you a diff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enter MCP
&lt;/h2&gt;

&lt;p&gt;If you haven't used it yet: the &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; is a standard way to give AI agents &lt;strong&gt;tools&lt;/strong&gt; — little capabilities they can call. Claude, Cursor, and others all speak it. Instead of the agent guessing, it can call a tool and get a real answer.&lt;/p&gt;

&lt;p&gt;So the fix is simple to state: give the agent a tool that answers &lt;strong&gt;"is this API change safe to ship to my consumers?"&lt;/strong&gt; — and have it call that &lt;em&gt;before&lt;/em&gt; it proposes the change.&lt;/p&gt;

&lt;p&gt;That's the hero tool in the MCP server I published (&lt;code&gt;specshield-mcp-server&lt;/code&gt;). It's called &lt;code&gt;is_change_safe&lt;/code&gt;, and it's a thin wrapper over a deploy-gate check: given the old and new spec, it returns a verdict, a risk level, and the exact reasons.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;Take that field rename. You ask the agent something like &lt;em&gt;"rename &lt;code&gt;status&lt;/code&gt; to &lt;code&gt;paymentStatus&lt;/code&gt; across the Orders API — and check it's safe to ship first."&lt;/em&gt; With the tool available, it calls &lt;code&gt;is_change_safe&lt;/code&gt; and gets back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"safeToMerge"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"riskLevel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"CRITICAL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"blockingReasons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Response field 'status' removed from GET /orders/{id}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"Response field 'status' removed from GET /orders"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"recommendedAction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Do not merge as-is. Removing 'status' breaks existing consumers — keep it as a deprecated alias, or ship behind a new API version and coordinate migration."&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the agent tells &lt;em&gt;you&lt;/em&gt;, before the commit: this is a breaking change, here's who it breaks, here's how to do it safely. The rename that would've sailed through and blown up two weeks later gets caught while you're still typing.&lt;/p&gt;

&lt;p&gt;The other tools follow the same idea — all read-only:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;is_change_safe&lt;/code&gt; — the deploy gate (above)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;explain_breaking_changes&lt;/code&gt; — plain-language impact + suggested migration&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;generate_migration_guide&lt;/code&gt; — a migration guide for consumers&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;generate_release_notes&lt;/code&gt; — release notes from the diff&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;compare_specs&lt;/code&gt; — the raw diff, if you just want everything&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setting it up
&lt;/h2&gt;

&lt;p&gt;It's on npm and the &lt;a href="https://registry.modelcontextprotocol.io" rel="noopener noreferrer"&gt;official MCP registry&lt;/a&gt;. You'll need an API key (it talks to a backend that runs the actual analysis). Then it's one block of config.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Desktop / Cursor&lt;/strong&gt; (&lt;code&gt;claude_desktop_config.json&lt;/code&gt; or &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"specshield"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"specshield-mcp-server"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"SPECSHIELD_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your_key_here"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Claude Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add specshield &lt;span class="nt"&gt;--env&lt;/span&gt; &lt;span class="nv"&gt;SPECSHIELD_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your_key_here &lt;span class="nt"&gt;--&lt;/span&gt; npx &lt;span class="nt"&gt;-y&lt;/span&gt; specshield-mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart the client and the tools show up. Then just ask, in plain English: &lt;em&gt;"here are my old and new openapi specs — is it safe to ship this change to my consumers?"&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Being honest about what it is (and isn't)
&lt;/h2&gt;

&lt;p&gt;A few things I want to be straight about, because I hate MCP posts that oversell:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's &lt;strong&gt;analyze-only&lt;/strong&gt;. It reads two specs and returns a verdict. It never edits your code, runs commands, or reads files you didn't point it at.&lt;/li&gt;
&lt;li&gt;It doesn't &lt;em&gt;prevent&lt;/em&gt; anyone from shipping a breaking change. It makes the risk &lt;strong&gt;impossible to miss at the right moment&lt;/strong&gt; — guardrail, not a lock.&lt;/li&gt;
&lt;li&gt;The breaking-change detection itself isn't magic; tools like oasdiff have done spec diffing for years. What I care about is the &lt;em&gt;decision&lt;/em&gt; — "can I deploy this?" — living inside the agent loop instead of in a CI step you see after you've already moved on.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The bigger idea: shift the deploy gate left, into the agent
&lt;/h2&gt;

&lt;p&gt;We spent years moving checks "left" — from production, to CI, to pre-commit hooks. AI agents are a new "left" that most of our safety tooling hasn't caught up to yet. The agent is where the change is &lt;em&gt;authored&lt;/em&gt; now, so that's where the "wait, is this safe?" question belongs.&lt;/p&gt;

&lt;p&gt;An MCP server turned out to be a surprisingly clean way to do that: the agent already has the two specs in context, it just needed something to ask.&lt;/p&gt;

&lt;p&gt;If you want to try it, the package is &lt;code&gt;specshield-mcp-server&lt;/code&gt; on npm and the repo is &lt;a href="https://github.com/specshield26/specshield-mcp-server" rel="noopener noreferrer"&gt;on GitHub&lt;/a&gt;. And if you've built MCP tools that add guardrails to agents, I'd genuinely like to hear what you're doing — that "the agent should check before it acts" pattern feels like it has a lot more in it than just API diffs.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>mcp</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why API Breaking Changes Still Reach Production Even With CI/CD</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Wed, 24 Jun 2026 18:17:22 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/why-api-breaking-changes-still-reach-production-even-with-cicd-4hmo</link>
      <guid>https://dev.to/deepaksatyam/why-api-breaking-changes-still-reach-production-even-with-cicd-4hmo</guid>
      <description>&lt;h1&gt;
  
  
  Why API Breaking Changes Still Reach Production Even With CI/CD
&lt;/h1&gt;

&lt;p&gt;A few years ago I watched a "tiny" API change take down checkout for about forty minutes. The change was a one-liner. The pull request had two approvals. CI was green across the board. And it still broke production, because the thing that actually mattered was never tested.&lt;/p&gt;

&lt;p&gt;If you run microservices at any real scale, you have lived some version of this. Let's talk about why it keeps happening even with a mature pipeline, and what the teams who &lt;em&gt;don't&lt;/em&gt; keep getting paged do differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Here's the change that caused the outage. A payments service had a response that looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"transaction_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"txn_8842"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"amount_cents"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4200&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Someone renamed &lt;code&gt;amount_cents&lt;/code&gt; to &lt;code&gt;amount&lt;/code&gt; and switched it to a decimal, because "cents is confusing." Cleaner field, better docs. The producing service's tests were updated to match, everything passed, it shipped.&lt;/p&gt;

&lt;p&gt;The problem: three downstream services still read &lt;code&gt;amount_cents&lt;/code&gt;. One of them was the order service, which now received &lt;code&gt;undefined&lt;/code&gt;, multiplied it by a quantity, and wrote &lt;code&gt;NaN&lt;/code&gt; into the database. The failures didn't even surface in the payments service. They surfaced two hops away, in a service the original author had never opened.&lt;/p&gt;

&lt;p&gt;This is the core issue. &lt;strong&gt;A breaking change is not defined by the service that makes it. It's defined by the consumers who depend on it.&lt;/strong&gt; And the producer's CI pipeline has no idea those consumers exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Existing Approaches Fail
&lt;/h2&gt;

&lt;p&gt;The natural reaction is "we need more tests." But look at what each layer actually checks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unit tests&lt;/strong&gt; verify the code does what the author intended. The author &lt;em&gt;intended&lt;/em&gt; to rename the field. The unit tests were updated to expect &lt;code&gt;amount&lt;/code&gt;. They passed because they were testing the new, broken behavior. Green unit tests told us nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Integration tests&lt;/strong&gt; verify the service works with its own dependencies — its database, its cache, the APIs &lt;em&gt;it&lt;/em&gt; calls. They almost never spin up the services that call &lt;em&gt;it&lt;/em&gt;. The payments service had no reason to boot the order service in its pipeline, so the incompatibility was invisible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;End-to-end tests&lt;/strong&gt; can catch this in theory. In practice they're slow, flaky, and incomplete. Nobody has an E2E test for every consumer's every field access. The order service's &lt;code&gt;amount_cents&lt;/code&gt; read wasn't in any E2E path that ran on the payments PR. E2E suites also tend to test happy paths through the UI, not the specific data contracts between internal services.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schema validation in CI&lt;/strong&gt; feels like the answer, and it's closer. But most teams validate that their OpenAPI spec is &lt;em&gt;well-formed&lt;/em&gt;, not that it's &lt;em&gt;compatible with the previous version&lt;/em&gt;. A spec that renames a field is still a perfectly valid spec. Linting passes. The document is correct. It's just incompatible.&lt;/p&gt;

&lt;p&gt;The gap is structural, not a matter of test coverage. Every one of these layers checks a service against &lt;em&gt;its own&lt;/em&gt; expectations. None of them check a service against &lt;em&gt;what its consumers actually depend on&lt;/em&gt;. That's the missing layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Better Approach
&lt;/h2&gt;

&lt;p&gt;You need two things the pipeline above doesn't have: a machine-readable contract, and a check that compares the new contract to what consumers rely on — running &lt;em&gt;before&lt;/em&gt; the change merges.&lt;/p&gt;

&lt;p&gt;There are two ways to get there, and they're complementary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Diff the contract against its own previous version.&lt;/strong&gt; If you publish an OpenAPI spec, you can compare the PR's spec to the one currently in production and classify the differences. Removing a field, renaming it, tightening a type, adding a required request parameter — these are breaking. Adding an optional field is not. This catches the obvious regressions cheaply and needs zero coordination with other teams.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Diff the contract against what consumers actually use.&lt;/strong&gt; This is consumer-driven contract testing. Each consumer publishes the subset of the API it depends on. The producer's pipeline checks every change against the union of those expectations. If something still reads &lt;code&gt;amount_cents&lt;/code&gt;, removing it fails the build — on the producer's PR, before merge.&lt;/p&gt;

&lt;p&gt;Here's how that reshapes the flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flowchart TD
    A[Producer opens PR] --&amp;gt; B[Generate OpenAPI spec from code]
    B --&amp;gt; C{Diff vs production spec}
    C --&amp;gt;|Backward compatible| D{Check consumer contracts}
    C --&amp;gt;|Breaking change| F[Fail build + report removed fields]
    D --&amp;gt;|All satisfied| E[Merge allowed]
    D --&amp;gt;|Consumer dependency broken| F
    F --&amp;gt; G[Producer notified pre-merge]
    G --&amp;gt; H[Coordinate version or fix]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tradeoff worth naming: approach 1 is nearly free but only catches self-inconsistency. Approach 2 catches real-world breakage but requires consumers to publish and maintain their contracts, which is organizational work, not just technical. Most teams I've worked with start with the diff (immediate value, no buy-in needed) and layer in consumer contracts for the high-blast-radius services first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;

&lt;p&gt;Start with the spec diff, because it pays off on day one. Given the production spec and the PR's spec, a tool like &lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;&lt;code&gt;oasdiff&lt;/code&gt;&lt;/a&gt; classifies every change. The output for our rename looks roughly like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;oasdiff breaking production.yaml pr.yaml
&lt;span class="go"&gt;
1 breaking changes:

error, in components/schemas/Transaction
  property 'amount_cents' removed from response of
  GET /transactions/{id} (200)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the whole outage, surfaced in one command. The interesting part is the OpenAPI definition driving it — note that &lt;em&gt;removing&lt;/em&gt; &lt;code&gt;amount_cents&lt;/code&gt; and &lt;em&gt;adding&lt;/em&gt; &lt;code&gt;amount&lt;/code&gt; are two separate changes, and only one of them is dangerous:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# production.yaml&lt;/span&gt;
&lt;span class="na"&gt;components&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;schemas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Transaction&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;object&lt;/span&gt;
      &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;status&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;transaction_id&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;amount_cents&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;properties&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;string&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
        &lt;span class="na"&gt;transaction_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;string&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
        &lt;span class="na"&gt;amount_cents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;integer&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# pr.yaml  — amount_cents gone, amount added&lt;/span&gt;
&lt;span class="na"&gt;components&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;schemas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Transaction&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;object&lt;/span&gt;
      &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;status&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;transaction_id&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;amount&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;properties&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;string&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
        &lt;span class="na"&gt;transaction_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;string&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
        &lt;span class="na"&gt;amount&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="nv"&gt;number&lt;/span&gt; &lt;span class="pi"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now wire it into CI so it gates the merge instead of living in someone's terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/api-compatibility.yml&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;API Compatibility&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pull_request&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contract-check&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Fetch the spec currently in production&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;curl -sf https://api.internal/openapi.yaml -o production.yaml&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Generate the spec from this PR&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./gradlew generateOpenApiSpec&lt;/span&gt;   &lt;span class="c1"&gt;# or your generator&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Fail on breaking changes&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;docker run --rm -v "$PWD:/specs" tufin/oasdiff \&lt;/span&gt;
            &lt;span class="s"&gt;breaking /specs/production.yaml /specs/build/openapi.yaml \&lt;/span&gt;
            &lt;span class="s"&gt;--fail-on ERROR&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--fail-on ERROR&lt;/code&gt; is the line that matters. Without it the diff is a report nobody reads; with it, the rename never merges. Run it on every PR, not nightly — the entire point is to catch the change while the author still has context, not eight hours later.&lt;/p&gt;

&lt;p&gt;For the consumer-driven side, the mechanics differ by tool (Pact is the common one), but the principle is identical: the producer's pipeline downloads the consumers' recorded expectations and verifies the new build still satisfies them. Same gate, broader truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;A few things I only learned by getting them wrong, mostly while building internal governance tooling for a service fleet that had outgrown anyone's ability to reason about it by hand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generate the spec from code, never the reverse.&lt;/strong&gt; Hand-maintained OpenAPI files drift from the implementation within weeks, and then your compatibility check is comparing two fictions. If the spec comes out of the running code (annotations, reflection, whatever your stack offers), the diff is comparing reality to reality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Breaking" needs a precise, boring definition.&lt;/strong&gt; Our first version flagged every change and developers learned to ignore it inside a week. Alert fatigue kills these tools faster than bugs do. Sit down and write the actual rules: removing a response field is breaking, adding an optional request field is not, changing a type is breaking, adding an enum value is breaking &lt;em&gt;for responses&lt;/em&gt; but not requests. Encode that, and trust drops back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The org problem is harder than the code problem.&lt;/strong&gt; The diff was a weekend. Getting teams to treat a red compatibility check as a real blocker — that took quarters. The check only works if "the consumer contract failed" carries the same weight as "the tests failed." Until then it's advisory, and advisory checks get clicked through at 6 PM on a Friday.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version numbers are a promise, not a mechanism.&lt;/strong&gt; Bumping to &lt;code&gt;/v2&lt;/code&gt; doesn't stop a &lt;code&gt;v1&lt;/code&gt; consumer from breaking; it just gives you somewhere to put the new shape. Something still has to &lt;em&gt;enforce&lt;/em&gt; that &lt;code&gt;v1&lt;/code&gt; keeps its contract. The version is the label on the box, not the lock.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Breaking changes reach production because every standard testing layer validates a service against its own expectations, and a breaking change is by definition about &lt;em&gt;someone else's&lt;/em&gt; expectations. CI being green means "this service is internally consistent" — which is exactly what you'd see right before the field you renamed takes down three downstream consumers.&lt;/p&gt;

&lt;p&gt;Closing that gap doesn't take a rewrite. It takes one new gate: a contract, generated from code, diffed on every PR, configured to actually fail the build. Start with the cheap spec diff today; add consumer-driven contracts for your highest-blast-radius services as you go.&lt;/p&gt;

&lt;p&gt;So here's what I'm curious about: how does your team draw the line on what counts as a "breaking" change — and is that definition written down anywhere, or does it live in the head of whoever reviews the PR?&lt;/p&gt;

</description>
      <category>api</category>
      <category>microservices</category>
      <category>devops</category>
      <category>testing</category>
    </item>
    <item>
      <title>9 API changes that look backwards-compatible but aren't</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Tue, 16 Jun 2026 14:30:00 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/9-api-changes-that-look-backwards-compatible-but-arent-1bk0</link>
      <guid>https://dev.to/deepaksatyam/9-api-changes-that-look-backwards-compatible-but-arent-1bk0</guid>
      <description>&lt;p&gt;"We didn't break anything — we just cleaned up the response."&lt;/p&gt;

&lt;p&gt;Famous last words. Four hours later a mobile app is crashing and a partner integration is returning garbage, because "cleaned up" quietly meant "changed the shape of data other people depend on."&lt;/p&gt;

&lt;p&gt;The tricky thing about breaking an API is that &lt;strong&gt;the most dangerous changes don't look dangerous.&lt;/strong&gt; They look like tidying. They pass code review, pass your tests, and ship green — because the breakage doesn't live in your repo. It lives in code you can't see, owned by people who didn't get a heads-up.&lt;/p&gt;

&lt;p&gt;Here are nine changes that feel backwards-compatible, why each one isn't, and how to stay safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Renaming a field
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;userId&lt;/code&gt; → &lt;code&gt;user_id&lt;/code&gt;, "for consistency." Every client still reading &lt;code&gt;userId&lt;/code&gt; now gets &lt;code&gt;undefined&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A rename is a &lt;strong&gt;delete plus an add&lt;/strong&gt; — and the delete is the part that breaks people.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; add the new field, keep the old one, deprecate it loudly, remove it later (if ever).&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Making a response field optional or nullable
&lt;/h2&gt;

&lt;p&gt;It was always there; now it's sometimes &lt;code&gt;null&lt;/code&gt;. The client that did &lt;code&gt;payment.currency.toUpperCase()&lt;/code&gt; crashes.&lt;/p&gt;

&lt;p&gt;Loosening a response you &lt;em&gt;send&lt;/em&gt; tightens the assumptions you &lt;em&gt;break&lt;/em&gt; downstream.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; treat "always present" as a promise. If a field genuinely must become optional, that's a versioned change, not a patch.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Removing a field "nobody uses"
&lt;/h2&gt;

&lt;p&gt;You can grep your own codebase. You cannot grep your consumers' code, the partner's integration, the Zapier zap someone built in 2023, or the LLM parsing your response right now.&lt;/p&gt;

&lt;p&gt;"Unused" means "unused by the consumers I happen to know about."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; instrument field-level usage in production &lt;em&gt;before&lt;/em&gt; you remove anything. Measure, don't assume.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Narrowing a type
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;string&lt;/code&gt; → an enum. A wide numeric range → a smaller one. &lt;code&gt;number&lt;/code&gt; → &lt;code&gt;integer&lt;/code&gt;. Every previously-valid value that no longer fits is now a rejected request.&lt;/p&gt;

&lt;p&gt;Widening an input type is safe. &lt;strong&gt;Narrowing it is a breaking change&lt;/strong&gt; for everyone already sending the old values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; only ever loosen the inputs you accept. Tightening needs a version bump.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Changing a default value
&lt;/h2&gt;

&lt;p&gt;A field defaults to &lt;code&gt;false&lt;/code&gt;; you flip it to &lt;code&gt;true&lt;/code&gt; "because that's what most people want anyway." Every client relying on the old default silently changes behavior — no error, no failed request, just &lt;em&gt;different results&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Defaults are part of the contract even though nothing in the schema visibly "changed."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; treat a default change as a breaking change. It is one.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Adding a required request field
&lt;/h2&gt;

&lt;p&gt;You add &lt;code&gt;tenantId&lt;/code&gt; and mark it required. Every existing client that doesn't send it now gets a &lt;code&gt;400&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Adding &lt;em&gt;optional&lt;/em&gt; fields is safe. Adding &lt;em&gt;required&lt;/em&gt; ones breaks everyone who came before.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; new request fields are optional with a sane default — or they ride a new version.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Changing the error shape or status code
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;400&lt;/code&gt; → &lt;code&gt;422&lt;/code&gt;. &lt;code&gt;{ "error": "..." }&lt;/code&gt; → &lt;code&gt;{ "errors": [...] }&lt;/code&gt;. A success &lt;code&gt;200&lt;/code&gt; → a &lt;code&gt;204&lt;/code&gt; with no body.&lt;/p&gt;

&lt;p&gt;Error handling is code too, and you just broke all of it. The clients that were carefully parsing your error format are now the ones that fail hardest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; error contracts are contracts. Status codes and error bodies are load-bearing — version them like anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Touching an enum
&lt;/h2&gt;

&lt;p&gt;Renaming a value (&lt;code&gt;"active"&lt;/code&gt; → &lt;code&gt;"ACTIVE"&lt;/code&gt;) or dropping one (&lt;code&gt;"pending"&lt;/code&gt; is gone) breaks every client with an exhaustive switch — or a stored value that's now invalid. Even &lt;em&gt;adding&lt;/em&gt; a value can break strict consumers that didn't expect a new one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; enum values are forever. Add them carefully; never rename or remove without a major version.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Quietly changing serialization
&lt;/h2&gt;

&lt;p&gt;The schema "type" didn't change, but the &lt;em&gt;meaning&lt;/em&gt; did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dates from Unix seconds to ISO-8601.&lt;/li&gt;
&lt;li&gt;A 64-bit ID that loses precision when JSON serializes it as a float.&lt;/li&gt;
&lt;li&gt;Pagination from offset to cursor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are the nastiest because a schema diff often won't even flag them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe move:&lt;/strong&gt; pin formats explicitly, and diff &lt;strong&gt;real payloads&lt;/strong&gt;, not just the spec.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing all nine have in common
&lt;/h2&gt;

&lt;p&gt;Every one of these passes review, passes your tests, and ships green. "Looks backwards-compatible" is a &lt;em&gt;vibe&lt;/em&gt;. "Is backwards-compatible" is a &lt;em&gt;check&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The only reliable guard is to compare every change against the contract that's actually in production — in CI, on every pull request — and fail the build on the change classes above. A human will miss a renamed field in a big diff. A diff tool won't.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Full disclosure: I got annoyed enough by this exact problem that I build a tool for it. But you can get most of the way with &lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;&lt;code&gt;oasdiff&lt;/code&gt;&lt;/a&gt; or any OpenAPI diff wired into CI. Just put &lt;em&gt;something&lt;/em&gt; between "looks safe" and "is deployed."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Which of these nine has bitten you? I'm betting #1 or #3. 👇&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>programming</category>
      <category>devops</category>
    </item>
    <item>
      <title>7 bugs AI-generated code ships that your tests won't catch</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Mon, 15 Jun 2026 20:02:59 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/7-bugs-ai-generated-code-ships-that-your-tests-wont-catch-2lfh</link>
      <guid>https://dev.to/deepaksatyam/7-bugs-ai-generated-code-ships-that-your-tests-wont-catch-2lfh</guid>
      <description>&lt;p&gt;AI writes most of my code now. I'm not mad about it — it's faster, and most of the time it's &lt;em&gt;right&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;But after months of reviewing what these agents produce all day, I've noticed they fail in a very specific, very consistent way. Not random garbage — &lt;strong&gt;plausible, well-formatted, test-passing code that's wrong in ways the test suite never notices.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here are the seven I now look for on every AI-assisted PR, and how to catch each one before it reaches production.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The breaking change to your own API
&lt;/h2&gt;

&lt;p&gt;The agent "cleans up" a response DTO — renames a field, drops one that looks unused, makes something optional. Clean diff. CI green.&lt;/p&gt;

&lt;p&gt;Except the field lived in a contract another team, a mobile app, or a partner integration depends on. The break isn't in this repo, so nothing here can see it — and the tests pass because the agent updated them in the same commit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; diff your OpenAPI/schema against the version that's actually deployed, in CI, and fail on removed/renamed/narrowed fields. Humans miss a renamed key in a 600-line diff. A diff tool never does.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The N+1 query that passes every test
&lt;/h2&gt;

&lt;p&gt;The agent writes an ORM loop that looks perfectly idiomatic and fires one query per row. On your 3-row test fixture it's instant. On 50,000 production rows it melts the database.&lt;/p&gt;

&lt;p&gt;Tests run on tiny fixtures, so this is invisible until a customer with real data hits it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; assert query counts in your tests (&lt;code&gt;assertNumQueries(2)&lt;/code&gt; and friends), load-test the hot paths, and turn on slow-query logging in staging.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Happy-path-only code
&lt;/h2&gt;

&lt;p&gt;Agents optimize for the example in your prompt. You showed it the success case, so it wrote the success case. Null inputs, empty lists, a timeout, a 500 from a downstream service — silently unhandled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; property-based testing (throw a thousand weird inputs at it), and explicitly review for the unhappy path. "What happens when this is null/empty/slow/down?" is still your job.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The concurrency bug
&lt;/h2&gt;

&lt;p&gt;The code is correct — single-threaded. Check-then-act on a shared resource, an unguarded counter, a missing transaction. Your test suite runs serially, so it never reproduces the race.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; concurrency tests that actually run in parallel, design for idempotency, and lean on database constraints as the backstop the application logic forgot.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The confidently outdated API
&lt;/h2&gt;

&lt;p&gt;The model's training data has a half-life. It'll reach for a deprecated method, a flag that was removed two versions ago, or a function signature that's &lt;em&gt;almost&lt;/em&gt; right. It compiles, it runs, and it quietly rots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; pin your dependencies, lint for deprecations, and trust the official docs over the model's confidence. "It worked" is not "it's current."&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The security footgun
&lt;/h2&gt;

&lt;p&gt;String-interpolated SQL. A missing authorization check. A secret that ends up in a log line. CORS set to &lt;code&gt;*&lt;/code&gt; because that made the error go away. Your tests assert &lt;em&gt;behavior&lt;/em&gt;, not &lt;em&gt;safety&lt;/em&gt;, so all of these pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; SAST in CI, a dedicated security-focused review pass, and a rule that an agent's "it works" is never the bar for auth or input-handling code.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. The yes-man test
&lt;/h2&gt;

&lt;p&gt;This is the subtle one, and the most dangerous.&lt;/p&gt;

&lt;p&gt;When the same agent writes the code &lt;strong&gt;and&lt;/strong&gt; the test in one pass, the test stops being an independent check. It asserts whatever the code happens to do — including the bug. You get a green checkmark and zero protection, because the test and the code were written to agree with each other.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- assertThat(json).contains("\"currency\":\"USD\"");
&lt;/span&gt;&lt;span class="gi"&gt;+ assertThat(json).doesNotContainKey("currency");   // "fixed" the test to match the change
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That test didn't catch the breaking change. It &lt;em&gt;ratified&lt;/em&gt; it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch it:&lt;/strong&gt; write the test from the spec &lt;strong&gt;before&lt;/strong&gt; the agent touches the implementation, and treat any test modified in the same commit as the code it covers with deep suspicion.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern underneath all seven
&lt;/h2&gt;

&lt;p&gt;Every one of these has the same root: AI made &lt;em&gt;writing&lt;/em&gt; code nearly free, but it can't see the things that live &lt;strong&gt;outside the function it's editing&lt;/strong&gt; — your other services, your production data volume, your concurrency, your consumers, your threat model.&lt;/p&gt;

&lt;p&gt;The bottleneck moved from &lt;em&gt;typing&lt;/em&gt; to &lt;em&gt;verifying&lt;/em&gt;. And a test the agent wrote for its own code isn't verification — it's the agent agreeing with itself.&lt;/p&gt;

&lt;p&gt;So the leverage now isn't a cleverer prompt. It's guardrails the agent can't fake: contract checks, query budgets, security scans, and tests written independently of the code they guard.&lt;/p&gt;

&lt;p&gt;What's the dumbest thing an AI agent has confidently shipped for you? I collect these. 👇&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>The most dangerous line of code your AI agent writes is the test that passes</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Tue, 09 Jun 2026 14:30:00 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/the-most-dangerous-line-of-code-your-ai-agent-writes-is-the-test-that-passes-23ko</link>
      <guid>https://dev.to/deepaksatyam/the-most-dangerous-line-of-code-your-ai-agent-writes-is-the-test-that-passes-23ko</guid>
      <description>&lt;p&gt;I shipped a breaking change to production three weeks ago. CI was green. 142 tests passed. Code review was approved. The PR was clean enough that I barely read it.&lt;/p&gt;

&lt;p&gt;A mobile client started 500ing four hours later.&lt;/p&gt;

&lt;p&gt;Here's the part that kept me up that night: every single safety net I had was &lt;em&gt;working as designed&lt;/em&gt;. That's what scared me. The system didn't fail. The system did exactly what I told it to do, and the thing still broke.&lt;/p&gt;

&lt;p&gt;Let me walk you through how, because I think a lot of you are about to hit the same wall, if you haven't already.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually happened
&lt;/h2&gt;

&lt;p&gt;I asked an agent to "clean up the user response DTO." Reasonable. There was a field, &lt;code&gt;phoneNumber&lt;/code&gt;, that was always populated for legacy reasons but new accounts left it null. The agent did something genuinely sensible: it made the field optional and, where the value was null, dropped it from the JSON entirely instead of serializing &lt;code&gt;"phoneNumber": null&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Cleaner payload. Smaller response. Better, by most definitions of better.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- { "id": 1042, "name": "Priya", "phoneNumber": null }
&lt;/span&gt;&lt;span class="gi"&gt;+ { "id": 1042, "name": "Priya" }
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You see the problem. An older Android build did &lt;code&gt;response.phoneNumber.length&lt;/code&gt; on a screen nobody on my team had opened in a year. Field present-but-null? Fine. Field &lt;em&gt;missing&lt;/em&gt;? Crash. And you can't force-update an app that's sitting on someone's phone in a tunnel.&lt;/p&gt;

&lt;p&gt;But that's not the interesting part. Breaking changes are old news. The interesting part is &lt;em&gt;why nothing caught it.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The tests passed because the agent wrote the tests
&lt;/h2&gt;

&lt;p&gt;This is the shift nobody's pricing in yet.&lt;/p&gt;

&lt;p&gt;For twenty years, the implicit contract of a test suite was: a human wrote the assertion &lt;em&gt;as a statement of intent&lt;/em&gt;, separately from the implementation. The test and the code disagreed on purpose sometimes, and that disagreement was the whole point. The test was an independent witness.&lt;/p&gt;

&lt;p&gt;When the same agent writes the implementation and the test in the same pass, that independence is gone. The agent changed the DTO, then updated the assertion to match the DTO it just wrote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- assertThat(json).contains("\"phoneNumber\":null");
&lt;/span&gt;&lt;span class="gi"&gt;+ assertThat(json).doesNotContainKey("phoneNumber");
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That test didn't &lt;em&gt;fail to catch&lt;/em&gt; the breaking change. It &lt;strong&gt;ratified&lt;/strong&gt; it. It went green specifically &lt;em&gt;because&lt;/em&gt; the behavior changed. Your test suite stopped being a description of what the system promises and became a description of what the system currently does. Those are not the same thing, and the gap between them is exactly where every breaking change lives.&lt;/p&gt;

&lt;p&gt;I've started calling these "yes-man tests." They agree with whatever just got written. A suite full of them gives you the emotional comfort of a green checkmark with none of the protection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agents are structurally blind to this
&lt;/h2&gt;

&lt;p&gt;It's not that the models are dumb. It's that a breaking change is, almost by definition, invisible from inside the repo.&lt;/p&gt;

&lt;p&gt;The blast radius of &lt;code&gt;phoneNumber&lt;/code&gt; going missing isn't in my backend. It's in an Android repo I don't own, a partner's integration I've never seen, a Zapier zap some customer built in 2024, an LLM-powered agent on the &lt;em&gt;other&lt;/em&gt; side that's now parsing my API and will hallucinate around the missing field instead of erroring. The agent optimizes for what it can see: does it compile, does the test pass, does it satisfy the prompt. Compatibility is a property of the &lt;em&gt;boundary between systems&lt;/em&gt;, and the agent only ever sees one side of the boundary.&lt;/p&gt;

&lt;p&gt;This is also why "just review the PR" doesn't save you at scale. I review fine when I'm reading 40 lines I wrote. I review &lt;em&gt;terribly&lt;/em&gt; when I'm rubber-stamping 600 lines of plausible, well-formatted, test-covered code that an agent generated in nine seconds. The volume is the attack vector. We 10x'd our output and quietly 10x'd the rate of silent contract drift right along with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's actually started working for me
&lt;/h2&gt;

&lt;p&gt;I'm not anti-agent. I write more code with them than without now and I'm not going back. But I changed how I think about the safety layer:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. The contract is the source of truth, not the code.&lt;/strong&gt; I freeze an OpenAPI spec (or a Pact, or even a checked-in JSON sample of every response) and diff &lt;em&gt;generated output against the frozen contract&lt;/em&gt; in CI. Not "do the tests pass" — "did the response shape change in a way that breaks a consumer." Field removed, type narrowed, required-now-optional, enum value dropped, 200→204. Those are the five that cost real money. They're also mechanically detectable, which means a machine should be guarding them, not my tired eyes at 11pm.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Treat agent-written tests as guilty until proven independent.&lt;/strong&gt; If a test changed in the same commit as the code it tests, it is not evidence of anything. I make the agent write characterization tests against the &lt;em&gt;old&lt;/em&gt; behavior first, in a separate step, before it's allowed to touch the implementation. Annoying. Works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Breaking-change detection belongs in CI, not in code review.&lt;/strong&gt; Humans are bad at spotting a missing key in a 600-line diff. Computers are perfect at it. This is the one job I will never hand back to a person.&lt;/p&gt;

&lt;p&gt;The mental model that finally clicked for me: &lt;strong&gt;the bottleneck was never writing code.&lt;/strong&gt; Agents proved that. The bottleneck is &lt;em&gt;knowing whether the thing you just wrote broke someone who isn't in the room.&lt;/em&gt; That problem got dramatically harder the moment we started generating code faster than we can possibly reason about its consequences.&lt;/p&gt;

&lt;p&gt;We're all very excited about how much code we can produce now. I'd start getting equally excited about how much of it we can &lt;em&gt;verify we didn't break.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;What's the dumbest breaking change that's slipped past &lt;em&gt;your&lt;/em&gt; CI lately? I want to know I'm not alone here.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>devops</category>
    </item>
    <item>
      <title>Your API has thousands of LLM consumers. None of them can read your changelog.</title>
      <dc:creator>Deepak Satyam</dc:creator>
      <pubDate>Thu, 04 Jun 2026 20:13:40 +0000</pubDate>
      <link>https://dev.to/deepaksatyam/your-api-has-thousands-of-llm-consumers-none-of-them-can-read-your-changelog-5c9e</link>
      <guid>https://dev.to/deepaksatyam/your-api-has-thousands-of-llm-consumers-none-of-them-can-read-your-changelog-5c9e</guid>
      <description>&lt;p&gt;Sometime in the last eighteen months, the consumer base of every public API changed, and almost nobody updated their testing strategy.&lt;/p&gt;

&lt;p&gt;If you publish an API today — even an internal one with an OpenAPI spec on a Confluence page — you have consumers you didn't onboard, didn't issue a key to, didn't notify on deprecation, and can't reach with a changelog. Those consumers are language models, and the agents people are building on top of them. Some of them learned your API last week. Some learned it eighteen months ago and got their knowledge frozen there. None of them got the email when you renamed &lt;code&gt;user_id&lt;/code&gt; to &lt;code&gt;userId&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is a real category of consumer, in production, in volume, today. And the testing discipline that was supposed to catch breaking changes — consumer-driven contract testing, the Pact-shaped world — wasn't designed for it. The mismatch is wider than most teams realize, and it's quietly producing a class of bugs that nobody is currently tracking as a bug.&lt;/p&gt;

&lt;h2&gt;
  
  
  The frozen-consumer problem
&lt;/h2&gt;

&lt;p&gt;A traditional API consumer is a known, named, versioned codebase. Your mobile app, version 4.3.2. Your partner's billing service. The Python SDK you publish. You can enumerate them. You can test against them. When you change something, you can call the team and tell them. If you adopted Pact in the last decade you have a broker that tells you, automatically, which consumers your provider change would break — before you ship it.&lt;/p&gt;

&lt;p&gt;An LLM consumer is none of those things.&lt;/p&gt;

&lt;p&gt;It is a &lt;em&gt;population&lt;/em&gt;, not a codebase. It does not version itself in any way you can address. It has a training cutoff, after which your API documentation is frozen in its weights. It has a tool-use prompt at runtime, after which any &lt;em&gt;additional&lt;/em&gt; knowledge of your API is whatever some agent author happened to paste in. It does not pull your changelog. It will not retry against the new schema. It will, with terrifying confidence, call the old endpoint with the old fields, parse the old shape, and degrade silently.&lt;/p&gt;

&lt;p&gt;Call this the &lt;strong&gt;frozen consumer&lt;/strong&gt;: a real, behaviorally-relevant user of your API whose understanding of your schema is anchored to a moment in time you do not control, that you cannot query, and that you cannot update with a deprecation header.&lt;/p&gt;

&lt;p&gt;If your team ships an OpenAPI spec, it is in the training corpus. If your endpoints respond to documented requests, agents are calling them. KushoAI's &lt;em&gt;State of Agentic API Testing 2026&lt;/em&gt; report found that 41% of public APIs experience schema drift within 30 days of any given snapshot, and 63% within 90 days — meaning the vast majority of LLM consumers in production are calling an API that has already changed since their training data was assembled. The drift is the default state. The "synchronized consumer" was always a flattering fiction, but with human consumers you could at least notify them. You can't notify a population.&lt;/p&gt;

&lt;h2&gt;
  
  
  The new breaking-change taxonomy
&lt;/h2&gt;

&lt;p&gt;The old taxonomy of breaking changes — removed endpoints, removed required fields, changed types, narrowed enums — is still right. It's just incomplete.&lt;/p&gt;

&lt;p&gt;There are now categories of change that are &lt;strong&gt;not breaking for human-written consumers&lt;/strong&gt; but &lt;strong&gt;catastrophic for frozen consumers&lt;/strong&gt;. Three matter:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Lexical breaks
&lt;/h3&gt;

&lt;p&gt;You rename &lt;code&gt;user_id&lt;/code&gt; to &lt;code&gt;userId&lt;/code&gt;. Your changelog notes it. Your SDKs auto-regenerate. Your typed clients refuse to compile until updated. Every human consumer is either fine, or loud about not being fine.&lt;/p&gt;

&lt;p&gt;The LLM consumer is silent. It will keep generating requests with &lt;code&gt;user_id&lt;/code&gt; for as long as that token cluster wins next-token prediction, which is to say: indefinitely for many models, until the next retraining cycle. The model isn't broken. The model is doing exactly what models do — predicting the most likely token sequence based on the training distribution it learned.&lt;/p&gt;

&lt;p&gt;The same applies to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;snake_case&lt;/code&gt; ↔ &lt;code&gt;camelCase&lt;/code&gt; migrations&lt;/li&gt;
&lt;li&gt;Plural ↔ singular collection naming (&lt;code&gt;/users/{id}/order&lt;/code&gt; vs &lt;code&gt;/users/{id}/orders&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Header prefix changes (&lt;code&gt;X-Request-Id&lt;/code&gt; → &lt;code&gt;Request-Id&lt;/code&gt;, dropping the &lt;code&gt;X-&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Path versioning shifts (&lt;code&gt;/v1/items&lt;/code&gt; → &lt;code&gt;/api/items&lt;/code&gt; with content negotiation)&lt;/li&gt;
&lt;li&gt;Acronym casing (&lt;code&gt;userID&lt;/code&gt; ↔ &lt;code&gt;userId&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For human consumers and traditional contract tests these are "find-replace" changes that the typecheck catches in seconds. For frozen consumers, they're invisible cliffs. And field &lt;em&gt;additions&lt;/em&gt; are not safe either: KushoAI's data shows additions account for 86% of all observed drift events, and LLMs reliably hallucinate field names from related-domain APIs to fill perceived gaps — so an "additive" change can still produce calls with phantom fields the model believes you accept.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Semantic drift inside stable shapes
&lt;/h3&gt;

&lt;p&gt;The shape of the response is unchanged. The meaning is not.&lt;/p&gt;

&lt;p&gt;You added two new values to an existing enum: &lt;code&gt;status: "active" | "inactive"&lt;/code&gt; becomes &lt;code&gt;status: "active" | "inactive" | "trialing" | "paused"&lt;/code&gt;. Strictly additive. Your typed consumers expand their switch statements (or your TypeScript users find out at runtime — same outcome, different timing).&lt;/p&gt;

&lt;p&gt;For an LLM consumer, the new values are now &lt;em&gt;out of distribution&lt;/em&gt;. It learned a binary. It will branch on a binary. &lt;code&gt;"trialing"&lt;/code&gt; will route through the "inactive" branch with some probability and the "active" branch with the rest, depending on the agent's prompt, the model temperature, and the surrounding context. It will not raise. It will not log. It will just route some non-trivial fraction of customers to the wrong code path.&lt;/p&gt;

&lt;p&gt;The most dangerous shape of this isn't even enums. It's response codes whose semantics drift: a &lt;code&gt;422&lt;/code&gt; that used to mean "validation failed, retry never" but now also gets emitted by a new ML-backed validator that means "validation failed, retry maybe." Same code. Different meaning. Frozen consumers will keep treating it as terminal. Human consumers update their retry policy when you announce it.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Hallucinated endpoints and resurrected fields
&lt;/h3&gt;

&lt;p&gt;This is the inverse problem. Your API gets &lt;em&gt;smaller&lt;/em&gt;, and an LLM keeps calling the removed parts.&lt;/p&gt;

&lt;p&gt;Frozen consumers will confidently call endpoints you sunset two years ago. They will populate request bodies with deprecated fields that your server now rejects (in the lucky case) or silently ignores (in the worse one). They will believe in pagination tokens you stopped issuing.&lt;/p&gt;

&lt;p&gt;There's a documented failure mode for this — researchers call it &lt;em&gt;functional hallucination&lt;/em&gt;: the agent calls an endpoint that doesn't exist, or sends a string &lt;code&gt;"fifty-percent"&lt;/code&gt; to a field requiring the integer &lt;code&gt;50&lt;/code&gt;. Roughly 20% of package references in LLM-generated code are hallucinated, and 43% of those hallucinations &lt;em&gt;repeat across generations&lt;/em&gt;. These are not random one-off fabrications. They are stable confabulations the model has learned to repeat. Your removed endpoint has a half-life measured in model generations, not deploy cycles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why your contract tests don't catch any of this
&lt;/h2&gt;

&lt;p&gt;Pact, the canonical consumer-driven contract testing tool, works like this: the consumer declares what it expects from the provider. The expectation is published to a broker. The provider, in CI, verifies that its current code satisfies every published expectation. If a provider change would break any registered consumer, the verification fails and the merge doesn't happen.&lt;/p&gt;

&lt;p&gt;This is a beautiful system, and I'm a fan — &lt;a href="https://dev.to/deepaksatyam/pact-is-great-its-also-why-most-teams-dont-do-contract-testing-5c14"&gt;I wrote a piece last week&lt;/a&gt; about how Pact is genuinely great and dramatically underused. But re-read the contract: the consumer &lt;em&gt;declares&lt;/em&gt; what it expects. The consumer is a participant. The contract is mutual.&lt;/p&gt;

&lt;p&gt;A frozen consumer is not a participant. It doesn't sign anything. It doesn't publish to a broker. It doesn't even know which version of your API it learned. It has, instead, a &lt;em&gt;phantom contract&lt;/em&gt;: a statistical model of your schema, derived from text someone scraped at some point, with no version, no expiration, no notification channel.&lt;/p&gt;

&lt;p&gt;You cannot run a Pact test against a phantom contract because there is no contract object to fetch. There is no canonical "what LangChain agents trained on a 2023-cutoff model expected from your &lt;code&gt;/billing&lt;/code&gt; endpoint" — there is a &lt;em&gt;distribution&lt;/em&gt; of expectations, varying by base model, fine-tune, surrounding prompt context, and which retrieval-augmented documents the agent author happened to attach.&lt;/p&gt;

&lt;p&gt;Pact assumed a population of N consumers where N is countable and addressable. Frozen consumers are a population where N is large, varies daily, and each individual "consumer" is the joint product of a base model, a prompt, and your now-stale documentation. The math of contract testing assumes a finite, named set. The new consumer base is neither.&lt;/p&gt;

&lt;p&gt;This is not Pact's fault. Pact is correct within its assumptions. The assumptions about &lt;em&gt;who your consumers are&lt;/em&gt;, on the other hand, no longer hold for any API with a public-facing spec.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to actually do
&lt;/h2&gt;

&lt;p&gt;I don't have a clean answer here, and nobody else does either yet. But three practices are starting to converge, and they're all cheap enough that you can adopt them this quarter without waiting for the discipline to mature.&lt;/p&gt;

&lt;h3&gt;
  
  
  Treat your OpenAPI spec as your AI compatibility contract
&lt;/h3&gt;

&lt;p&gt;Your OpenAPI document is no longer documentation. It is the canonical artifact that a population of frozen consumers will read once and remember forever. Descriptions matter more than they used to. Examples matter more than they used to. The names of fields matter &lt;em&gt;vastly&lt;/em&gt; more than they used to.&lt;/p&gt;

&lt;p&gt;This has consequences for how you make changes. Renaming a field for human-readability is no longer a free improvement. The cost is not "update the SDK." The cost is "every agent backed by a model trained between $LAST_CUTOFF and the next major training run will silently use the wrong name, indefinitely." That cost is real and you should price it into the change.&lt;/p&gt;

&lt;p&gt;The corollary: if you must rename, accept the old name in parallel for at least one model-generation cycle — call it 18 months — and emit it in responses too. The cost of dual-shape support is finite, bounded, and visible. The cost of a population of agents quietly calling you wrong is, depending on what your API does, anywhere from "support tickets" to "incident."&lt;/p&gt;

&lt;h3&gt;
  
  
  Test against the actual consumer
&lt;/h3&gt;

&lt;p&gt;The cheapest, highest-signal test you are not running: take your OpenAPI spec, hand it to Claude or GPT or Gemini &lt;em&gt;with no other context&lt;/em&gt;, and ask the model to construct a valid call to each endpoint. Then run the call. See what happens.&lt;/p&gt;

&lt;p&gt;This sounds dumb. It catches things contract tests cannot, because it &lt;em&gt;is&lt;/em&gt; the actual behavior your actual consumers will exhibit. If the model consistently misnames a field, misreads an enum, hallucinates a required parameter, or calls a deprecated endpoint, you have just discovered a production bug that no Pact test will ever surface.&lt;/p&gt;

&lt;p&gt;A minimal version, in pseudo-Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;ai_compat_check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;claude&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gpt&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gemini&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;request&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generate_call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;instruction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Construct a valid request. Return JSON.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;actually_call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;findings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can run this in CI alongside your contract tests. Treat divergence as a &lt;em&gt;finding&lt;/em&gt;, not a failure — sometimes the model is doing something dumb you don't need to fix. But sometimes it's pointing at a real ambiguity in your spec, or a real frozen-consumer trap.&lt;/p&gt;

&lt;h3&gt;
  
  
  Publish a structured deprecation channel agents can actually read
&lt;/h3&gt;

&lt;p&gt;Right now your deprecation strategy is: blog post, changelog, email to known consumers. The first two don't reach frozen consumers at all. The third reaches them only if a human is in the loop to update the agent's instructions.&lt;/p&gt;

&lt;p&gt;The emerging fix is the Model Context Protocol (MCP) and similar machine-readable surfaces. An MCP server is a structured, queryable contract that an agent can pull &lt;em&gt;at runtime&lt;/em&gt;. It doesn't rely on the model's training data. It tells the agent, right now, what the current shape is.&lt;/p&gt;

&lt;p&gt;Publishing an MCP surface alongside your REST API is the closest thing to a registered-consumer relationship you can get with the LLM population. It won't reach agents that don't use MCP, but the population that does is growing fast, and being there early is cheap.&lt;/p&gt;

&lt;h2&gt;
  
  
  The category-level take
&lt;/h2&gt;

&lt;p&gt;Consumer-driven contract testing was the testing discipline of the 2010s. It assumed a knowable, addressable, code-bearing consumer. That assumption still holds for most of your traffic. It does not hold for an emerging, growing, increasingly-important slice of it.&lt;/p&gt;

&lt;p&gt;AI-consumer compatibility testing is the same problem in a fundamentally different shape. The tooling doesn't exist yet. There are no Pact-equivalents for the frozen-consumer case, because nobody has figured out yet what the broker is supposed to broker. I expect the next several years of API testing tooling to be about figuring this out, the same way the 2010s were about figuring out contracts.&lt;/p&gt;

&lt;p&gt;Until then: assume you have consumers you can't see, write your OpenAPI as though it's a contract you can't take back, and test against the models that are actually calling you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I think and write about this kind of thing for a living — most of my time goes into &lt;a href="https://specshield.io/" rel="noopener noreferrer"&gt;SpecShield&lt;/a&gt;, where I work on API breaking-change detection. If you've shipped a "non-breaking" change that broke an AI consumer in production, I'd really like to hear it in the comments — I'm starting to collect cases.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>ai</category>
      <category>testing</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
