---
title: "oasdiff breaking API changes"
description: "Reports breaking changes in OpenAPI 3 specs between the --diff base and the current tree, with oasdiff. Only runs with --diff <ref>. The base version is read from git at the merge base with hardened, commit-only git calls; both versions are compared in a temp dir with the project's oasdiff config ignored and external $refs disabled, so a spec cannot make oasdiff fetch URLs. Specs that use external $refs are reported as not compared."
url: https://openaudit.se/auditors/code.oasdiff/
---

# oasdiff breaking API changes

`code.oasdiff`

Reports breaking changes in OpenAPI 3 specs between the --diff base and the current tree, with oasdiff. Only runs with --diff <ref>. The base version is read from git at the merge base with hardened, commit-only git calls; both versions are compared in a temp dir with the project's oasdiff config ignored and external $refs disabled, so a spec cannot make oasdiff fetch URLs. Specs that use external $refs are reported as not compared.

- **Engine:** Wrapped scanner
- **Wraps:** `oasdiff`
- **Targets:** Codebase
- **Areas:** Reliability
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.oasdiff
```

Wraps oasdiff. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More reliability auditors

- [TypeScript type-check (tsc)](https://openaudit.se/auditors/code.typecheck/) (`code.typecheck`)
- [Ruff Python lints](https://openaudit.se/auditors/code.ruff/) (`code.ruff`)
- [staticcheck Go lints](https://openaudit.se/auditors/code.staticcheck/) (`code.staticcheck`)
- [ShellCheck](https://openaudit.se/auditors/code.shellcheck/) (`code.shellcheck`)
- [Rust clippy lints](https://openaudit.se/auditors/code.clippy/) (`code.clippy`)
- [mypy type check](https://openaudit.se/auditors/code.mypy/) (`code.mypy`)
- [golangci-lint](https://openaudit.se/auditors/code.golangci-lint/) (`code.golangci-lint`)
- [PHPStan PHP static analysis](https://openaudit.se/auditors/code.phpstan/) (`code.phpstan`)
