KIVEX

Versions and compatibility

Which changes can happen within a version, and which need a new major version.

Each capability has its own version in the format major.minor, for example web.search 1.0.

  • A minor version adds features, such as a new optional input, a new response field or a new error reason. Your code keeps working as long as it ignores fields it doesn't recognize.
  • A major version can include breaking changes, such as a renamed field or a changed meaning. The old and the new major version run side by side for a transition period.

If you don't send version, you get the latest version. To stay on a major version, send it in the request:

{ "capability": "web.search", "version": "1", "input": { "query": "delivery" } }

Compatibility guarantees

  • A field never changes its meaning within a major version.
  • An error code never changes its meaning. New codes and reasons can be added. Handle an unknown one like the closest one you know.
  • Every change to the public contract is listed in the changelog.

On this page