Before you publish a new version of an API, run these five checks against the candidate OpenAPI document. They take a few minutes and catch the changes that break existing clients.
- Validate the candidate OpenAPI document and resolve every local
$reffrom the release tree. - Compare the candidate with the current released contract. Check for removed operations or response fields, newly required request fields, and narrower request enums.
- Pick one common operation. Validate a representative request and both a success response and an error response against the candidate contract.
- Check that the documentation shows the expected authentication, status codes and error body for that operation.
- Record each finding with the method, path, change and action. If an existing client can break, agree on a migration or versioning plan before shipping.
Example
If POST /orders now requires currency, replay a previously valid request without it. If it fails, record who needs to migrate and what clients should send before releasing the change.
Disclosure: this checklist was generated with AI.