[Parsing] Allow OAS versions 3.1.2 and 3.2.0#840
Merged
czechboy0 merged 3 commits intoapple:mainfrom Oct 23, 2025
Merged
Conversation
czechboy0
approved these changes
Oct 22, 2025
Contributor
czechboy0
left a comment
There was a problem hiding this comment.
Thank you, @mattpolzin 🙏
Contributor
|
I just removed the two issues from the description, I'd like to keep the open to track adding fuller support for new features in those versions. But this PR at least unblocks parsing those versions, which is more urgent. |
Contributor
|
Can you rerun the formatter please? |
Contributor
Author
Done. Happy to squash into previous commit if you'd like. |
Contributor
|
No need, the merge will squash it |
8e556f1 to
580d98f
Compare
Contributor
Author
|
Fixed the test failure I somehow missed locally. [EDIT] ... and fixed the fixed commits because my editor keeps dropping a newline from an unrelated test's expected output. |
580d98f to
94b0efa
Compare
czechboy0
reviewed
Oct 23, 2025
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.
Motivation
Modifications
The OpenAPIKit dependency has been bumped to 3.9.0+ to use the new version mapping feature.
The generator has been instructed to accept OAS documents of versions 3.1.2 and 3.2.0 in addition to the existing supported versions.
In order to parse OAS 3.2.0 without any of the features it adds, OpenAPIKit has been instructed to parse OAS 3.2.0 as if it were OAS 3.1.2.
Result
OpenAPI Documents versioned 3.1.2 and 3.2.0 will successfully load into the generator.
Test Plan
The test suite has been updated.