Skip to content

Update dependency github:oasdiff/oasdiff to v1.39.0 - #128

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/github-oasdiff-oasdiff-1.x
Nov 21, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/github-oasdiff-oasdiff-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
github:oasdiff/oasdiff tools minor 1.38.0 → 1.39.0

Release Notes

oasdiff/oasdiff (github:oasdiff/oasdiff)

v1.39.0

Compare Source

Nullability changes are reported correctly through oneOf, anyOf and allOf

This release is about whether a property accepts null. Changes made through a oneOf or anyOf are now decided by what the whole schema accepts before and after, --flatten-allof keeps nullable when it merges an allOf, and every nullability change points at the line that caused it.

Some comparisons report differently than in v1.38.0, including new errors where a breaking change was missed. If a result looks wrong, pin v1.38.0 and open an issue.

CLI changes

Nullability through oneOf and anyOf

  • A oneOf or anyOf is decided by what it accepts, not by the branch that was edited (#​1420, #​1424). A oneOf matches only when exactly one branch matches, so it accepts null only while exactly one branch does. Adding null to a second branch therefore takes null away from the property. That edit was reported as request-property-became-nullable at info level and is now request-property-became-not-nullable at error level, with a comment that explains the oneOf rule. The reverse edit, and the response side, are corrected the same way.
  • anyOf no longer reports a change that did not happen (#​1420). An anyOf accepts null when any branch does, so a branch losing null next to another null branch changes nothing. It was reported as request-property-became-not-nullable at error level and is now not reported.
  • Wrapping a schema that has no type is reported as the loss of null (#​1424). A schema with no type accepts every type, null included. Wrapping it in oneOf: [{type: "null"}, X] makes null match both branches, so the oneOf rejects it. This is now became-not-nullable, with a comment saying that giving the branch a type fixes it.
  • nullable: true next to a oneOf or anyOf is read as nullable (#​1424). This is how OpenAPI 3.0 documents declare a nullable composition, and it is read as they mean it, whatever the branches say.
  • The change is reported on the property, not on a branch (#​1420, #​1424). A report that read the request property `value/oneOf[subschema #​1]` became nullable now names value, since it is the property that changed.

--flatten-allof

  • nullable survives the merge of an allOf (#​1425, fixes #​1348, thanks @​remcowesterhoud for the report and the two specs that reproduce it). nullable: true beside an allOf over a $ref, the usual OpenAPI 3.0 way to make a reference nullable, was dropped by the merge. With --flatten-allof, removing it reported nothing, and it now reports request-property-became-not-nullable at error level. oasdiff flatten keeps the keyword in its output.
  • Members that all accept null keep the merged schema nullable (#​1425, #​1427). When the schema holding the allOf has no type and every member accepts null, the merged schema is nullable. A member with no type counts as accepting null. A type without nullable on the holding schema keeps null out, whatever the members say.

Source locations

  • Every nullability change carries baseSource and revisionSource (#​1421). Only changes made with the nullable keyword had them. A "null" entry in a type array, a oneOf wrapping and a branch change are now located too, at the keyword or branch that changed. Fingerprints are unchanged.

Misc

  • --version on a go install binary reports the release (#​1419). go install github.com/oasdiff/oasdiff@v1.39.0 produced a binary that reported oasdiff version main. It now reports 1.39.0, and a build from a checkout reports what it was built from. Release binaries, Homebrew and Docker are unchanged.
Go package changes
  • Breaking: diff.SchemaAcceptsNull is removed (#​1423). It was exported only for the checker. The reading of null now lives in an internal package shared by diff, checker and validate.
  • flatten/allof.Merge sets Nullable by the rules above (#​1425, #​1427). Callers that relied on the merged schema being nullable only when the holding schema and every member said nullable: true will see Nullable set in more cases.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot enabled auto-merge (squash) November 21, 2026 13:12
@renovate
renovate Bot merged commit 059b730 into main Nov 21, 2026
8 checks passed
@renovate
renovate Bot deleted the renovate/github-oasdiff-oasdiff-1.x branch November 21, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants