Repository navigation
chore(deps): update dependency oasdiff/oasdiff to v1.42.0 - #262
Conversation
|
smart auto-merge: left for a session -- a test red at
|
|
smart auto-merge: red at |
Edited/Blocked NotificationRenovate 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. |
|
smart auto-merge: left for a session -- a test red at
|
|
smart auto-merge: still red at |
…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>
This PR contains the following updates:
1.41.0→1.42.0Release Notes
oasdiff/oasdiff
v1.42.0Compare Source
requiredacrossallOfwithout a flag, changes undernotat the right level, and checks for the properties of a parameter's schemaSeveral 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:
notthat makes the schema accept fewer values was reported as info. It is now an error.New warnings, without
--flatten-allof:allOfbranch and required by another branch, or by the schema that lists the branches, is now recognized as required.Lower levels:
allOfis a warning, not an error, as it already was in a request or response body.CLI changes
Checks
A
requiredlist and the property it names can be in differentallOfbranches (#1434, thanks @businessdeveloper69, for the request body case reported in #1383; #1474, #1478, #1482; part of #1483). For example:Without
--flatten-allof, such a property was either not reported or classified as optional. In OpenAPI 3.1 the same arrangement comes from arequiredlist written beside a$ref.request-property-became-required,request-parameter-property-became-required,request-header-property-became-required(warning)response-property-became-optional(warning)response-property-became-optional(warning) orrequest-property-became-optional(info)new-optional-request-propertyand its parameter counterpart (info)new-required-request-property,new-required-request-parameter-property,new-required-request-header-property(warning)response-optional-property-removed(info)response-required-property-removed(warning)request-optional-property-became-not-read-only(info)request-required-property-became-not-read-only(warning)The warnings carry the
all-of-not-flattenedcomment. With--flatten-allofthe same changes are reported at their checks' own levels, as before.A change under
notis reported at the level of its reversed effect (#1458). A value is valid againstnotwhen it is invalid against the schema inside it, so a change there has the opposite effect.not: {minLength: 5}tonot: {minLength: 10}not: {minLength: 10}tonot: {minLength: 5}not: {enum: [a, b]}tonot: {enum: [a]}not: {enum: [a]}tonot: {enum: [a, b]}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-levelsis kept.Properties added to or removed from a parameter's schema are reported (#1469). Four new ids:
request-parameter-property-removednew-optional-request-parameter-propertynew-required-request-parameter-propertyrequest-parameter-property-became-requiredA header keeps
new-required-request-header-propertyandrequest-header-property-became-required.A parameter or header schema with
allOfgets theallOfwarning (#1464, #1465). A change there kept its check's level, where the same change in a body is a warning with theall-of-not-flattenedcomment. This covers the checks on a parameter's schema and its properties and on a response header's schema, for examplerequest-parameter-max-decreased,request-parameter-property-enum-value-removedandresponse-header-type-changed: error before, warning now. With--flatten-allofthey 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-removedon a read-only property of a query parameter was an error. The same now applies torequest-property-became-requiredinside 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
allOfcomment no longer names a flag (#1488). The comment on a change found in anallOfbranch 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.checksparametersand those on a response header's schema are inheaders; both were inschema. Four content media type and content encoding rules moved toschema. This changes whatoasdiff checks changelog --tags <area>lists and the area in its json output. Levels, ids and messages are unchanged.Install script
install.shreportedChecksums do not matchwhen a download failed. It now retries, names the URL that failed, says whenchecksums.txthas no entry for the archive, and writes every error to stderr.Go package changes
checker.RequestParameterPropertyUpdatedCheckandchecker.RequestParameterPropertyBecameRequiredCheck, with the id constantsRequestParameterPropertyRemovedId,NewOptionalRequestParameterPropertyId,NewRequiredRequestParameterPropertyIdandRequestParameterPropertyBecameRequiredId.ApiChange.WithNegated,Effect.Reversedandchecker.NegatedCommentId(#1458), for a change undernot.Rule.Transitions(#1470). A rule names the schema transitions it reports, with the constantsTransitionNullableWrapping,TransitionBooleanFalseSchema,TransitionOneOfWrapping,TransitionListOfTypesandTransitionNullOnlyTypeChange. The reporter idsGetTransitionsreturns are the same; their order now follows the rule registry.Configuration
📅 Schedule: (in timezone America/New_York)
* 0-11 * * *)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.