feat: (PoC) Support OpenAPI 3.1.x#1231
Open
ZhongpinWang wants to merge 19 commits into
Open
Conversation
CharlesDuboisSAP
left a comment
Contributor
There was a problem hiding this comment.
Some test coverage is lacking, you could add some more unit tests
| { | ||
| return isOas31(rootNode.path("openapi").asText(null)); | ||
| final String version = openAPI.getOpenapi(); | ||
| return version != null && version.startsWith("3.1"); |
Contributor
There was a problem hiding this comment.
Shouldn’t it be version >= 3.1 ?
Author
There was a problem hiding this comment.
It is hard to say >= 3.1 as they don't follow SemVer any more since 3.1. So there can be breaking changes in 3.2 and it should have an additional isOas32 to control the process logic.
So what is true in 3.1 may not be true in 3.2. As for now, I would suggest we just announce support for 3.1 and say 3.2 not supported.
…k-java into support-openapi-3.1
ZhongpinWang
marked this pull request as ready for review
July 23, 2026 13:42
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.
Context
This is a generated (later manually reviewed and fixed) PoC for evaluating the effort of supporting OpenAPI 3.1.x in the generator.
The following two files coming from the initial round of generation might be outdated but you can use as a reference.
I generated all data models in AI SDK Java with the new SNAPSHOT cloud sdk generator, and there were no breaking changes.
See SAP/ai-sdk-java#958 for the generated result.