Sign in
Docs

Schemas

Compare two versions of a schema

Have a token? Manage tokens in the console
GET
/v1/schemas/diff

What changed between two versions, field by field, by JSON Pointer. breaking is a hint that a document the older version accepted may now be refused, not a verdict.

Needs scope schemas:read.

Authorization

bearer
headerAuthorizationBearer <JWT>

An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.

Query Parameters

path?string

The schema's path, <area>/<name>, as List schemas gives it.

from?string

The older major.

Formatint64
to?string

The newer major.

Formatint64

Response Body

iohr.schemas.v1.DiffSchemaVersionsResponse

application/json
  1. response

iohr.schemas.v1.DiffSchemaVersionsResponse

breaking*boolean
changes*array<>
from*string
Formatint64
path*string
to*string
Formatint64
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try {  const { value } = await api.schemas.diffSchemaVersions();  console.log(value);} catch (e) {  if (!(e instanceof ApiError)) throw e;  console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);  process.exitCode = 1;}

npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.

Example Response
{  "breaking": true,  "changes": [    {      "after": "string",      "before": "string",      "breaking": true,      "kind": "string",      "pointer": "string"    }  ],  "from": "string",  "path": "string",  "to": "string"}