Skip to content

Versioning

How the network versions its APIs, contracts and event schemas, and what counts as a breaking change.

API paths

Network APIs live under /api/ohn/v1. The v1 in the path is the major version of the network’s public interface. If a new major version is ever needed, it will be published under a new path next to v1, following the policy of parallel deprecation below.

Contract versions

Each service’s OpenAPI contract has its own info.version (shown in the API reference), following semantic versioning:

  • Patch (1.0.0 → 1.0.1): corrections and clarifications; no behaviour change for a correct client.
  • Minor (1.0.x → 1.1.0): additions only (new operations, new optional fields, new enum values that clients are told to tolerate).
  • Major: a breaking change. The policy is no silent breaking changes: additions stay additive, and anything that would break a client is introduced in parallel with the old behaviour and deprecated before it is removed.

Operations that are being retired are marked deprecated in the contract and in the API reference.

What your client should tolerate

  • Unknown fields in responses: ignore them.
  • New values in fields documented as open lists (states, codes): handle an unknown value gracefully.
  • New optional request fields: you do not need to send them.

Event schemas

Every event carries schema_version. New payload versions are additive; consumers keep accepting the previous version while producers move to the new one (for example, OHN-11 result events accept 1.0.0 and 1.1.0). Check schema_version before reading a payload.

Finding out about changes

  • The changelog lists changes to the public interfaces.
  • Contracts are versioned in the repository with the code, so every change goes through review.
  • Contract consumer tests (conformance, the SDKs’ route checks) fail when a contract changes under them.

The network does not yet send Deprecation or Sunset response headers; deprecations are announced in the contracts and the changelog.