Skip to content

v0.1.22

Choose a tag to compare

@reuvenharrison reuvenharrison released this 07 Nov 16:45
· 40 commits to main since this release
17214ae

Highlights

Upgraded to oasdiff v1.36.0

Every action now runs tufin/oasdiff:v1.36.0 (#211). What a workflow author sees:

  • Inline annotations land on the changed line in a JSON spec. Source locations used to need a YAML spec, so a JSON one produced annotations attached to the file with no line or column, and the side-by-side review linked from the PR comment showed no source text at all. Both now behave as they do for YAML. One limit: positions are only as fine as the document's line breaks, so a minified spec with everything on one line puts every annotation on line 1. Run it through jq . if your specs are generated.
  • Sunset and deprecation annotations point at the field they are about. Six sunset ids annotated the deprecated line rather than the x-sunset date they complain about, and a parameter's deprecation finding looked for deprecated in the parameter's schema, so it landed on the operation line or carried no line at all.
  • Adding an allOf branch to a request is an error again, on request-body-all-of-added and request-property-all-of-added. Both were reported as warnings with a comment suggesting another branch might still keep a constraint that was dropped, which cannot happen: adding a branch only narrows what a request may send. A job that fails on error will now fail on these.
  • New fingerprints for findings inside an allOf, anyOf or oneOf branch. The branch name no longer ends in a separator, and the name is part of the fingerprint, so a stored approval for one of these changes is requested once more.
  • validate returns its findings in the same order every run, sorted by file, line and column, so a step that compares stored reports stops seeing a reshuffle on every push. A spec with callbacks can also report findings it did not before, and multiple-of-not-positive is now schema-multiple-of-not-positive.
  • The diff action takes --exclude-elements tags, which drops tag changes from diff and summary, both the tags an operation is listed under and the document's own tag definitions.

Also in the image: git revisions work on a repository mounted from the host, so the rev:path syntax no longer fails with "detected dubious ownership" on a self-hosted runner.

Full Changelog: v0.1.21...v0.1.22