Skip to content

chore(deps): update dependency oasdiff/oasdiff to v1.42.0 - #262

Merged
mjdev-edge-bot[bot] merged 4 commits into
mainfrom
renovate/oasdiff-oasdiff-1.x
Dec 5, 2026
Merged

mjdev-edge-bot[bot] merged 4 commits into
mainfrom
renovate/oasdiff-oasdiff-1.x

Conversation

@renovate

@renovate renovate Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
oasdiff/oasdiff minor 1.41.0 → 1.42.0

Release Notes

oasdiff/oasdiff

v1.42.0

Compare Source

required across allOf without a flag, changes under not at the right level, and checks for the properties of a parameter's schema

Several changes can make a run report differently from v1.41.0. To keep the previous results while you review them, pin v1.41.0.

New errors:

  • A change under not that makes the schema accept fewer values was reported as info. It is now an error.
  • A new required property in the schema of a query, path or cookie parameter, and a property there that became required, were not reported. They are now errors.

New warnings, without --flatten-allof:

  • A property that is declared in one allOf branch and required by another branch, or by the schema that lists the branches, is now recognized as required.

Lower levels:

  • A change in the schema of a parameter or header that has allOf is a warning, not an error, as it already was in a request or response body.
  • A change to a read-only property of a parameter or request header is info.
CLI changes

Checks

  • A required list and the property it names can be in different allOf branches (#​1434, thanks @​businessdeveloper69, for the request body case reported in #​1383; #​1474, #​1478, #​1482; part of #​1483). For example:

    allOf:
      - $ref: '#/components/schemas/Pet'   # declares name and age
      - required: [name, age]              # age was added here

    Without --flatten-allof, such a property was either not reported or classified as optional. In OpenAPI 3.1 the same arrangement comes from a required list written beside a $ref.

    Change Before After
    property became required: request body, parameter, request header nothing request-property-became-required, request-parameter-property-became-required, request-header-property-became-required (warning)
    property became optional: response nothing response-property-became-optional (warning)
    property became optional in a request, or required in a response nothing info
    a branch stops requiring a property that another branch still requires response-property-became-optional (warning) or request-property-became-optional (info) nothing
    required property added: request body, parameter, request header new-optional-request-property and its parameter counterpart (info) new-required-request-property, new-required-request-parameter-property, new-required-request-header-property (warning)
    required property removed: response response-optional-property-removed (info) response-required-property-removed (warning)
    required property became not read-only: request request-optional-property-became-not-read-only (info) request-required-property-became-not-read-only (warning)

    The warnings carry the all-of-not-flattened comment. With --flatten-allof the same changes are reported at their checks' own levels, as before.

  • A change under not is reported at the level of its reversed effect (#​1458). A value is valid against not when it is invalid against the schema inside it, so a change there has the opposite effect.

    Edit to a request property Before After
    not: {minLength: 5} to not: {minLength: 10} error info
    not: {minLength: 10} to not: {minLength: 5} info error
    not: {enum: [a, b]} to not: {enum: [a]} error info
    not: {enum: [a]} to not: {enum: [a, b]} info error

    The change keeps its id and message and gets the comment "The schema is under not, which reverses the effect of the change." A level set with --severity-levels is kept.

  • Properties added to or removed from a parameter's schema are reported (#​1469). Four new ids:

    Id Level Parameters
    request-parameter-property-removed warning all
    new-optional-request-parameter-property info all
    new-required-request-parameter-property error query, path, cookie
    request-parameter-property-became-required error query, path, cookie

    A header keeps new-required-request-header-property and request-header-property-became-required.

  • A parameter or header schema with allOf gets the allOf warning (#​1464, #​1465). A change there kept its check's level, where the same change in a body is a warning with the all-of-not-flattened comment. This covers the checks on a parameter's schema and its properties and on a response header's schema, for example request-parameter-max-decreased, request-parameter-property-enum-value-removed and response-header-type-changed: error before, warning now. With --flatten-allof they report at their own level.

  • A read-only property of a parameter or request header is treated as in a body (#​1464, #​1468). A read-only property never appears in a request, so a change to one is info with a comment. For example request-parameter-property-enum-value-removed on a read-only property of a query parameter was an error. The same now applies to request-property-became-required inside a read-only property of a request body.

  • A property that is required, write-only and readable in turn (#​1474). A response property that was write-only and required, and is now readable and optional, was an error at the top level of a body and is now info: clients never received it. A new required property nested in a parameter's schema was reported twice and is now reported once.

  • The allOf comment no longer names a flag (#​1488). The comment on a change found in an allOf branch ended with "Run with --flatten-allof to merge the branches and compare what they describe together." That sentence is removed; the comment still says why the change is a warning. Merging allOf schemas describes what the flag does about it and what it costs.

checks

  • 82 rules moved to the area of the object their schema belongs to (#​1471). The generated bound rules on a parameter's schema are in parameters and those on a response header's schema are in headers; both were in schema. Four content media type and content encoding rules moved to schema. This changes what oasdiff checks changelog --tags <area> lists and the area in its json output. Levels, ids and messages are unchanged.

Install script

  • A failed download is reported as one (#​1476, fixes #​1475, thanks @​ajalon1, and #​1477). install.sh reported Checksums do not match when a download failed. It now retries, names the URL that failed, says when checksums.txt has no entry for the archive, and writes every error to stderr.
Go package changes
  • Four new check ids and two check functions (#​1469). checker.RequestParameterPropertyUpdatedCheck and checker.RequestParameterPropertyBecameRequiredCheck, with the id constants RequestParameterPropertyRemovedId, NewOptionalRequestParameterPropertyId, NewRequiredRequestParameterPropertyId and RequestParameterPropertyBecameRequiredId.
  • ApiChange.WithNegated, Effect.Reversed and checker.NegatedCommentId (#​1458), for a change under not.
  • Rule.Transitions (#​1470). A rule names the schema transitions it reports, with the constants TransitionNullableWrapping, TransitionBooleanFalseSchema, TransitionOneOfWrapping, TransitionListOfTypes and TransitionNullOnlyTypeChange. The reporter ids GetTransitions returns are the same; their order now follows the rule registry.

Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • Between 12:00 AM and 11:59 AM (* 0-11 * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, 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 added the deps label Dec 5, 2026
@mjdev-edge-bot
mjdev-edge-bot Bot enabled auto-merge (squash) December 5, 2026 06:28
@mjdev-edge-bot

mjdev-edge-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

smart auto-merge: left for a session -- a test red at e41fc024e9c4 needs judgment. Nothing is retried automatically; a push re-runs CI.

  • test: test: step failed: must-fire suite

@mjdev-edge-bot

mjdev-edge-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

smart auto-merge: red at e41fc024e9c4 on test; no-author case: main is green on it now and moved after this PR's red run; main was NOT seen red on it at this PR's base (main at 366ea9a1cc47). Updating the branch from main: base-driven retry 1 of 1.

@renovate

renovate Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@mjdev-edge-bot

mjdev-edge-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

smart auto-merge: left for a session -- a test red at 1ebe222f180b needs judgment. Nothing is retried automatically; a push re-runs CI.

  • test: test: step failed: must-fire suite

@mjdev-edge-bot

mjdev-edge-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

smart auto-merge: still red at 1ebe222f180b on test after 1 base-driven retries since its last own commit. Not retried again: the PR itself needs the author or a session.

zer0bscured and others added 2 commits December 5, 2026 08:00
…ms.txt

The bump moved OASDIFF_VERSION alone; every pinned sha256 still named the
1.41.0 tarballs, so the fetch was refused (exit 2) and the must-fire suite
went red. Hashes copied from v1.42.0's checksums.txt. v1.42.0 reclassifies
some changes (not/allOf/parameter-schema checks); the must-fire suite passes
on it unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mjdev-edge-bot
mjdev-edge-bot Bot merged commit a04996a into main Dec 5, 2026
8 checks passed
@mjdev-edge-bot
mjdev-edge-bot Bot deleted the renovate/oasdiff-oasdiff-1.x branch December 5, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant