OpenAPI 3.2 Compatibility Layer + Java 17 Alignment and Parser Upgrade#4
Open
FelixCaceres17 wants to merge 4 commits into
Open
OpenAPI 3.2 Compatibility Layer + Java 17 Alignment and Parser Upgrade#4FelixCaceres17 wants to merge 4 commits into
FelixCaceres17 wants to merge 4 commits into
Conversation
- Upgrade runtime to Java 17 (Dockerfile openjdk base) - Bump swagger-parser from 2.1.19 to 2.1.41 - Add OpenAPI 3.2 normalization layer in SerializedDataUtils * Normalizes 3.2 specs to 3.1-compatible structure before parsing * Transforms querystring parameter location to query * Remaps 3.2-specific fields to extension-safe keys - Improve SoapUI generation resilience * Support querystring parameter handling * Centralize and simplify readOnly HTTP method filtering * Gracefully skip unsupported HTTP methods with logging - Convert OpenAPI 3.2 tests from placeholder to concrete behavior * Add real 3.2 parsing and generation tests * Add querystring parameter compatibility test - Update documentation to reflect official 3.2 support strategy * OPENAPI_VERSIONS.md: 3.2 now marked as officially supported * README.md: Updated compatibility matrix and feature table Impact: OpenAPI 3.2 specs can now be parsed and reliably converted to SoapUI projects via normalization layer, safer handling of edge-case parameter/method types, and clearer product messaging. Closes: OpenAPI 3.2 support feature
rafael-goterris
left a comment
There was a problem hiding this comment.
In pom.xml update the version of openapi2soapui to 2.0.0
| * Skip write operations (POST/PUT/PATCH/DELETE) if readOnly mode is enabled | ||
| * @param operations list of path operations | ||
| */ | ||
| private void setResourceMethods(RestResource restResource, Map<HttpMethod, Operation> operations) { |
There was a problem hiding this comment.
| * @param pathName path name to find Resource | ||
| * @param pathItem instance of OpenAPI Path to iterate its Operations | ||
| */ | ||
| private void setMethodsRequests(String pathName, PathItem pathItem) { |
There was a problem hiding this comment.
| @@ -61,7 +61,7 @@ | |||
|
|
|||
| <springdoc.version>2.0.2</springdoc.version> | |||
There was a problem hiding this comment.
Check which latest version of springdoc is compatible
Co-authored-by: Rafael Goterris Perales <rafael.goterris@cloudappi.net>
- pom.xml: bump openapi2soapui to 2.0.0 and springdoc to 2.6.0 (Spring Boot 3.3 compatible) - SoapUIProject.java: extract configureResourceMethod / configureMethodRequest helpers to reduce cognitive complexity (S3776) on setResourceMethods and setMethodsRequests - SerializedDataUtils.java: use pattern matching for instanceof (S6201) - OpenAPIVersionSupportTest.java: replace YAML string concatenations with text blocks (S6126)
- Rename configureResourceMethod -> setResourceMethod - Rename configureMethodRequest -> setMethodRequest - Rename applyRequestBodyContent -> setRequestBodyContent - Add Javadoc to each new private helper to match the rest of the class
|
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.



Impact: OpenAPI 3.2 specs can now be parsed and reliably converted to SoapUI projects via normalization layer, safer handling of edge-case parameter/method types, and clearer product messaging.
Closes: OpenAPI 3.2 support feature