Versioning policy
How the Perpetuus API versions the contract, marks deprecations, and removes routes or fields.
Contract version
The public contract is the OpenAPI document. The version lives in info.version and follows
SemVer (MAJOR.MINOR.PATCH):
| Part | When it increases | Example |
|---|---|---|
MAJOR | A change that breaks integrations: removing a route or field, changing a type, or making a previously optional field required | 1.4.2 → 2.0.0 |
MINOR | A compatible addition: a route, an optional field, a new enum value, or a new alias | 1.1.0 → 1.2.0 |
PATCH | A documentation fix, with no behavior change | 1.1.0 → 1.1.1 |
URLs have no version in the path (/api/boards, not /api/v1/boards). Every change is recorded
in the API changelog.
Clients should ignore unknown fields in the response and accept new enum values. That counts as a compatible change.
Deprecation
When a route or field will be removed:
- The operation is marked with
deprecated: truein the OpenAPI document, and the replacement is indicated in the description. - The old route starts responding with
Deprecation: trueandLink: <new-path>; rel="successor-version". - The change is added to the changelog with the migration path.
- When a removal date is set, the route also responds with
Sunset(an HTTP date, RFC 8594) and the date is added to the changelog.
Minimum notice: a deprecated route or field keeps working for at least 90 days
after the changelog announcement before it is removed. Removal increments MAJOR.
BETA APIs
Routes marked BETA follow the BETA API policy: the contract may
change without incrementing MAJOR. Even so, every change to them is recorded in the changelog.
That policy page is currently available in Portuguese.