Repository navigation
test: enforce oasdiff nullability and warning policy - #56
Closed
mojtaba-arvin wants to merge 6 commits into
Closed
mojtaba-arvin wants to merge 6 commits into
mojtaba-arvin wants to merge 6 commits into
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.
Product decision
Treat both definite and potential breaking findings as release blockers in the consumer contract gate. A
WARNmeans the schema is insufficient to decide safely; it must not silently pass. Exceptions require a narrowly scoped severity override with a documented rationale and test.Changes
--fail-on ERRto--fail-on WARN.nullable: true.type: [string, "null"].oneOfandanyOfnull wrappers.allOf+$refwith--flatten-allof, covering the v1.38.0 regression fix.WARNand asserts that--fail-on WARNexits non-zero. This tests the warning gate itself rather than relying on documentation alone.Research basis
oneOf,anyOf, andallOf, including nullableallOf/$refwith flattening.--fail-on WARNfails on both ERR and WARN findings.Sources: oasdiff v1.38.0 release, nullability guide, breaking-change policy.
Verification
Latest head:
9d71d52d9dc05c17fa1f9cca24decdb9d1598b8d.Fresh CI is required for the expanded semantic fixtures and strict warning gate. This PR is Draft and must not be considered complete until the OpenAPI contract job and central PR gate pass on this exact head.