Choose a compatibility mode per project or per request
You can now choose the compatibility mode changes are graded under. A project's style-guide policy
holds a mode (BACKWARD, FORWARD, FULL or NONE), whether it is transitive, and a
Protobuf category. The classified diff, the compatibility check, the CI diff gate and the
breaking-change publish check all use it, and any request can override it.
- Per project. Set
compatibilityMode,compatibilityTransitiveandprotobufBreakingCategorywithPUT /v1/style-guides/{tenant}/{guide}/policy. Each guide edit records them in the guide's history. - Per request.
POST /v1/diff/{tenant}/classifiedandPOST /v1/versions/{tenant}/{project}/compatibilityacceptmode,transitiveandcategory. On the command line, useapiome diff --mode forward,--transitiveor--category wire, andapiome compat --mode full. The diff-action takesmode,transitiveandcategoryinputs. - Says what it evaluated. Every response carries
evaluatedUnder: the mode, transitivity and category, the formats compared, andmodeApplied. For a format without mode rules, such as OpenAPI,modeAppliedisfalseand the response names the ruleset that graded it instead. - Transitive checks. With
transitiveon, a change is also checked against every earlier version. A change compatible with the last version but not an older one fails, and names that older version. Under a block policy, publishing it is refused. - Avro by mode. The same Avro pair now grades differently under
BACKWARDandFORWARD. - Rule catalogue.
GET /v1/compatibility/ruleslists every Avro, JSON Schema, Protobuf and AsyncAPI rule id with its severity under each mode or category. The table on Compatibility modes is generated from it.
