Repository navigation
Conversation
Phase 0 of the OpenAPI 3.1 plan: the test setup every later phase uses. Fixture convention under core/src/test/resources/oas31/<rule>/: the same minimal document as old-3.0.yaml/new-3.0.yaml and old-3.1.yaml/new-3.1.yaml so the same change is expressed in 3.0 and in 3.1 syntax. First fixtures: type-change, nullable, exclusive-bounds, array-items, all-of, one-of, plus one Swagger 2.0 pair. Oas31PairedFixturesTest pins the documented 3.0->3.0 verdict per rule, checks the Swagger 2.0 pair matches the 3.0 verdict, and keeps the parts of the harness contract that fail on today's engine as disabled tests, each naming the phase that fixes it: - 3.1->3.1 verdict agreement: Phase 2 (OpenAPITools#950), engine reads 3.1 fields - 3.0->3.1 verdict agreement and the 3.0-vs-3.1 written equivalence: Phase 3 (OpenAPITools#951), converter wired in Fixes OpenAPITools#948 Signed-off-by: Inf1mum <vadimlazuk5@gmail.com>
2 tasks
There was a problem hiding this comment.
All reported issues were addressed across 27 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
This was referenced Nov 16, 2026
Drop Gadget from WidgetCreateRequest's oneOf in the new specs (both versions) and revert the doodad_prop1 type change, so the pinned INCOMPATIBLE verdict depends on the oneOf member decrease instead of an unrelated property type change. Remove the type: object lines beside the request/response oneOf in the 3.0 files so the 3.0 and 3.1 pairs hold the same document. Signed-off-by: Vadim Lazuk <vadimlazuk5@gmail.com>
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.
Fixes #948
Test-only groundwork for the 3.1 effort (Stage 1 plan): a fixture convention plus a harness (
Oas31PairedFixturesTest) that keeps the "same change, same verdict in every version" contract visible while the engine grows 3.1 support.The harness:
Fixtures live in
core/src/test/resources/oas31/<rule>/(old/new×3.0/3.1, the same minimal document in both syntaxes, one change per pair) fortype-change,nullable,exclusive-bounds,array-items,all-of,one-ofandswagger2.The disabled tests document the known 3.1 gaps: same-version comparisons (3.1 type keyword,
"null"nullability, numericexclusiveMinimum,itemsandallOf/oneOfon non-ComposedSchema) until Phase 2 (#950), and cross-version comparisons plus version noise (#858) until Phase 3 (#951).Verified: the build stays green; the disabled tests are the checklist each later phase un-disables when it lands.
Summary by cubic
Adds the paired-fixture test harness that Phase 0 of the OpenAPI 3.1 support plan (#948) builds on. For six rules, the same minimal change is expressed as a 3.0 pair and a 3.1 pair under
core/src/test/resources/oas31/<rule>/; theone-ofpair'sINCOMPATIBLEverdict comes from removing aoneOfmember, so it genuinely exercises composition comparison. The harness pins the documented 3.0→3.0 verdict, checks that a Swagger 2.0 pair for thetype-changerule matches it, and keeps the comparisons that fail on today's engine as disabled tests so the build stays green.Known gaps (disabled, with the phase that fixes each)
typein the types set, numericexclusiveMinimum,itemsand composition onJsonSchema).Written for commit bafe0c2. Summary will update on new commits.