Skip to main content

Compatibility

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: compatibility · 4 operations

GET /v1/compatibility/rules​

Get Compatibility Rules

List every compatibility rule id with its severity per mode, category and description.

The same table the Compatibility modes docs page is generated from. Rules are grouped by family (Avro, JSON Schema, Protobuf, AsyncAPI) and sorted by id within each. Static reference data, identical for every tenant, so no tenant is named; diff:read and registry:read API keys may call it.

Operation id: get_compatibility_rules_v1_compatibility_rules_get

Parameters

NameInTypeRequiredDescription
formatquerystring or nullnoNarrow to one format family (avro, json-schema, protobuf, asyncapi) or format key (asyncapi-3, jsonschema). A format with no mode-aware rules returns an empty list.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get compatibility rules.application/json CompatibilityRuleCatalogueOut
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/compatibility​

Check Revision Compatibility

Compare baseRevisionId (older / consumer expectation) to headRevisionId (newer). Returns structured safe / breaking / unknown findings for CI-style merge gates.

mode (BACKWARD / FORWARD / FULL / NONE), transitive and category (Protobuf) default to the project's style-guide policy. Avro, JSON Schema and AsyncAPI revisions are graded by mode, Protobuf revisions at the category; other formats keep the OpenAPI engine and report evaluatedUnder.modeApplied: false. With transitive the head is also compared against every earlier revision of the base, and each finding names the revision it was found against.

Each side is the revision's rendered OpenAPI document from the document store (COA-5.6); X-Apiome-Document-Cache reports hit or miss per side, on the 409 replies too.

Operation id: check_revision_compatibility_v1_versions__tenant_slug___project_id__compatibility_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for check revision compatibility.

Responses

StatusDescriptionBody
200Successful response for check revision compatibility.application/json CompatibilityCheckResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/compatibility/evidence​

Create Compatibility Evidence

Run oasdiff, persist evidence on the head revision, return gate output.

Emits normalized JSON by default. Pass ?format=sarif or ?format=junit (or matching Accept) for CI-compatible artifacts.

Operation id: create_compatibility_evidence_v1_versions__tenant_slug___project_id__compatibility_evidence_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
formatquerystring or nullnoGate output format: json (default), sarif, or junit.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for create compatibility evidence.

Responses

StatusDescriptionBody
200Successful response for create compatibility evidence.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_id}/compatibility/evidence​

List Compatibility Evidence

List persisted oasdiff compatibility evidence runs for a revision.

Operation id: list_compatibility_evidence_v1_versions__tenant_slug___project_id___version_id__compatibility_evidence_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
formatquerystring or nullnoWhen set to sarif/junit, emit gate output for the latest oasdiff run.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list compatibility evidence.application/json any
422Validation Errorapplication/json HTTPValidationError

Schemas used​

CompatibilityCheckRequest​

Compare two schema revisions (versions.id) for backward compatibility.

PropertyTypeRequiredDescription
baseRevisionIdstringyesOlder / merge-base side revision (versions.id UUID).
headRevisionIdstringyesNewer / branch tip side revision (versions.id UUID).
rulesCompatibilityRulesPayload or nullnoRules.
policyCompatibilityPolicyPayload or nullnoPolicy.
modestring or nullnoCompatibility mode (XPC-4.5): BACKWARD, FORWARD, FULL or NONE, any case. A _TRANSITIVE name (FULL_TRANSITIVE) also sets transitive. Omit to use the project's style-guide policy.
transitiveboolean or nullnoAlso check the head against every earlier revision of the base, not only the base (XPC-4.5). Omit to use the project's policy.
categorystring or nullnobuf breaking category Protobuf changes are graded at (XPC-4.5): WIRE, WIRE_JSON, PACKAGE or FILE. Omit to use the project's policy.

CompatibilityCheckResponse​

CompatibilityCheckResponse schema.

PropertyTypeRequiredDescription
overallstringyesOverall.
baseRevisionIdstringyesBase Revision ID.
headRevisionIdstringyesHead Revision ID.
findingsarray of CompatibilityFindingOutyesFindings.
ruleHitsmap of integernoCount of findings per rule id (deterministic classification; #2589).
breakingChangeDocumentationIssueUrlstring or nullnoBreaking Change Documentation Issue URL.
reportFingerprintstringyesReport Fingerprint.
tenantCompatGateActivebooleannoTrue when project metadata requests merge-time compat gating.
mergeBlockedByCompatGatebooleannoTrue when tenant gate is on and the revision pair is not fully safe.
deprecationWarningsarray of RevisionDeprecationWarningOutnoDeprecation Warnings.
deprecatedRevisionBlockedbooleannoTrue when project metadata requests strict deprecation handling and a revision is deprecated.
evaluatedUnderEvaluatedUnderOut or nullnoWhat the verdict was graded under: mode, transitivity, Protobuf category, the formats compared, whether the mode was applied, the ruleset and the revisions compared (XPC-4.5).

CompatibilityEvidenceRequest​

Run independent oasdiff compatibility evidence for two revisions (CLX-2.3).

PropertyTypeRequiredDescription
baseRevisionIdstringyesBaseline revision (versions.id UUID) or CI-provided base.
headRevisionIdstringyesCandidate / head revision (versions.id UUID).

CompatibilityRuleCatalogueOut​

The rule catalogue, optionally narrowed to one format.

PropertyTypeRequiredDescription
formatstring or nullnoThe ?format= filter, when one was sent.
modesarray of stringyesThe compatibility modes severities is keyed by.
categoriesarray of stringyesThe buf breaking categories categorySeverities is keyed by.
defaultsobjectyesWhat a project gets without a policy: mode, transitive and category.
rulesarray of CompatibilityRuleOutyesRules.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.