Repository navigation
Update dependency github:oasdiff/oasdiff to v1.39.0 - #128
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.38.0→1.39.0Release Notes
oasdiff/oasdiff (github:oasdiff/oasdiff)
v1.39.0Compare Source
Nullability changes are reported correctly through
oneOf,anyOfandallOfThis release is about whether a property accepts
null. Changes made through aoneOforanyOfare now decided by what the whole schema accepts before and after,--flatten-allofkeepsnullablewhen it merges anallOf, 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
oneOfandanyOfoneOforanyOfis decided by what it accepts, not by the branch that was edited (#1420, #1424). AoneOfmatches only when exactly one branch matches, so it acceptsnullonly while exactly one branch does. Addingnullto a second branch therefore takesnullaway from the property. That edit was reported asrequest-property-became-nullableat info level and is nowrequest-property-became-not-nullableat error level, with a comment that explains theoneOfrule. The reverse edit, and the response side, are corrected the same way.anyOfno longer reports a change that did not happen (#1420). AnanyOfacceptsnullwhen any branch does, so a branch losingnullnext to another null branch changes nothing. It was reported asrequest-property-became-not-nullableat error level and is now not reported.typeis reported as the loss ofnull(#1424). A schema with notypeaccepts every type,nullincluded. Wrapping it inoneOf: [{type: "null"}, X]makesnullmatch both branches, so theoneOfrejects it. This is nowbecame-not-nullable, with a comment saying that giving the branch atypefixes it.nullable: truenext to aoneOforanyOfis 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 request property `value/oneOf[subschema #​1]` became nullablenow namesvalue, since it is the property that changed.--flatten-allofnullablesurvives the merge of anallOf(#1425, fixes #1348, thanks @remcowesterhoud for the report and the two specs that reproduce it).nullable: truebeside anallOfover 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 reportsrequest-property-became-not-nullableat error level.oasdiff flattenkeeps the keyword in its output.nullkeep the merged schema nullable (#1425, #1427). When the schema holding theallOfhas notypeand every member acceptsnull, the merged schema is nullable. A member with notypecounts as acceptingnull. Atypewithoutnullableon the holding schema keepsnullout, whatever the members say.Source locations
baseSourceandrevisionSource(#1421). Only changes made with thenullablekeyword had them. A"null"entry in a type array, aoneOfwrapping and a branch change are now located too, at the keyword or branch that changed. Fingerprints are unchanged.Misc
--versionon ago installbinary reports the release (#1419).go install github.com/oasdiff/oasdiff@v1.39.0produced a binary that reportedoasdiff version main. It now reports1.39.0, and a build from a checkout reports what it was built from. Release binaries, Homebrew and Docker are unchanged.Go package changes
diff.SchemaAcceptsNullis removed (#1423). It was exported only for the checker. The reading ofnullnow lives in an internal package shared bydiff,checkerandvalidate.flatten/allof.MergesetsNullableby the rules above (#1425, #1427). Callers that relied on the merged schema being nullable only when the holding schema and every member saidnullable: truewill seeNullableset in more cases.Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.