Repository navigation
v0.1.24
Every action now runs on oasdiff v1.38.0, which adds a way to gate on version bumps and names the file each change is in.
Highlights
Fail only when a breaking change ships without a major version bump
The breaking action's fail-on input takes a new value, MISSING-VERSION-BUMP:
- uses: oasdiff/oasdiff-action/breaking@v0.1.24
with:
base: 'main:openapi.yaml'
revision: 'openapi.yaml'
fail-on: MISSING-VERSION-BUMPThe step passes when the breaking changes come with a major increase in info.version, and fails when they do not. Annotations are unaffected, so reviewers see every breaking change on the Files changed tab either way, and the step log says how the version was judged:
versioning policy: violated. info.version is still 1.0.0.
See Version Bumps and Breaking Changes.
This replaces the api-version-not-bumped, api-version-decreased and api-major-version-not-bumped checks, which are retired. If a severity-levels file named in your .oasdiff.yaml lists one of those ids, it now fails to load like any other unknown id, so remove those lines when you upgrade.
Annotations name the file each change is in
- A removal is annotated in the base spec, where the removed element still is, instead of the revision, which no longer has it.
- A change inside a
$ref'd file is annotated in that file instead of in the root document. - A change to
info.versionis annotated on that line.
Fixes
- A description edit inside an anonymous
allOf,anyOforoneOfbranch is no longer reported as a branch added and removed. Editing adescriptionunder aoneOfin a response schema used to produceresponse-property-one-of-addedandresponse-property-one-of-removedfor what was only a documentation change (oasdiff #1404). - A description an inline to
$refrefactor carries is reported again. Inline and$refbranches that validate the same are matched as one branch (on by default), and a matched pair was dropped whole, so a description that differed between the inline branch and the component replacing it was reported nowhere (oasdiff #1408). - The
validateaction no longer fails on a callback cycle, which the other actions already handled (oasdiff #1401).
Full Changelog: v0.1.23...v0.1.24