contractdiff

Breaking-change diff, lint and code generation for API contracts (OpenAPI, JSON Schema, AsyncAPI, MCP), and the spec back from the code. No dependency outside the burgee family. An openapi-typescript migration path.

Read the docs
npm install contractdiff

Start here

Learn contractdiff in this order

Migrate

Coming from another package

Each guide maps the package you use today onto this one, call by call, and says what is different on purpose.

The family

Part of burgee

contractdiff is one of the burgee packages. These pages cover all of them.