Papi
20 November 2026

A Version Number You Do Not Choose

Two different things are both called versioning, and teams that conflate them end up doing one of them badly.

API versioning

/v1/orders and /v2/orders, or an Accept header that picks between them. This is an operational promise: two contracts, served side by side, for as long as anyone still calls the old one. It is expensive, and it should be rare.

The two usual mistakes are opposite. One team cuts a new URL prefix for every change and ends up maintaining five. The other never does, and breaks its clients quietly.

Spec versions

A Papi project is a chain of versions. Each one is a candidate somebody proposed, somebody reviewed, and somebody merged. That chain is the history of the contract. Most of it never touches a URL.

The number comes from the diff

When a candidate is merged, Papi compares it with the version before and picks the bump:

  • major if anything breaks a client;
  • minor if the contract changed in a way no client notices;
  • patch if only the prose did: notes, descriptions, release notes.
1.4.0  POST /orders accepts an optional coupon            1.5.0
1.5.0  a typo fixed in the release notes                   1.5.1
1.5.1  GET /orders/:id payment can now be Wallet           2.0.0

Nobody types the number, so nobody argues about whether this one is really a minor. The argument moves to the list of reasons, which is where it belongs.

Breaking on purpose

Nothing in Papi marks a break as intended. The major bump is the acknowledgement. Whether that major also deserves a /v2 in the URL is a decision the bump prompts, not one it makes for you.

Compare the versions your client actually ran

A client upgrading from 5.0 to 9.0 does not care that an endpoint was removed in 6.0 and restored in 8.0. Papi compares any two versions directly, so the question “is it safe for me to upgrade” gets the answer for that pair, not the sum of every step in between.

← All posts