-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Support OpenAPI 3.1.x #1231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ZhongpinWang
wants to merge
27
commits into
main
Choose a base branch
from
support-openapi-3.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b7dabdb
Add generated solution
ZhongpinWang cbddab1
fix: PMD Nonnull
ZhongpinWang 42a0e60
Fix log
CharlesDuboisSAP ffe6a01
Remove unnecessary log warning and error
ZhongpinWang ad395cb
Log spec OAS version instead of mentioning 3.1 limitation
ZhongpinWang fe03631
Remove unused overload in oas version util
ZhongpinWang 189c472
Add integration tests and fix exclusive min max in 3.0 and 3.1
ZhongpinWang 65b4d10
Add unit test for pathItems
ZhongpinWang f14cdfa
Remove all Gap x in the code
ZhongpinWang 0af7b8d
Add unit tests for normalizer and fix map logic for oas 3.0
ZhongpinWang 88e1d34
Add all integration test for apache
ZhongpinWang 97d5048
Remove warnings CustomJavaClientCodegen
CharlesDuboisSAP 776c994
fix: nullable getter for non-required field
ZhongpinWang 208a588
Fix the sibling description
ZhongpinWang 39f1a95
Fix tests
ZhongpinWang 8e1150c
Merge branch 'support-openapi-3.1' of https://github.com/SAP/cloud-sd…
ZhongpinWang b9cb23a
Moved components path items to integration test
ZhongpinWang ec48f91
Merge branch 'main' into support-openapi-3.1
ZhongpinWang 986ced0
chore: revert the nonnull change back for non-required field
ZhongpinWang cb41ee4
Update test resources
ZhongpinWang 3ab66c7
Remove all duplicated oas tests in apache integration test
ZhongpinWang 8e3a83f
Merge branch 'main' into support-openapi-3.1
ZhongpinWang 3e149d6
Remove analysis md
ZhongpinWang 4719fbb
Formatting
ZhongpinWang bae1184
Add warning in parseOpenApiSpec for OAS 3.1
ZhongpinWang fbd2d19
formatting
ZhongpinWang 2e861a3
release notes
CharlesDuboisSAP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,194 +1,194 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
| <groupId>com.sap.cloud.sdk.datamodel</groupId> | ||
| <artifactId>openapi-parent</artifactId> | ||
| <version>5.33.0-SNAPSHOT</version> | ||
| </parent> | ||
| <artifactId>openapi-generator</artifactId> | ||
| <packaging>jar</packaging> | ||
| <name>Data Model - OpenAPI Services - Generator</name> | ||
| <description>OpenAPI Services data model (VDM) - generator classes</description> | ||
| <url>https://sap.github.io/cloud-sdk/docs/java/getting-started</url> | ||
| <organization> | ||
| <name>SAP SE</name> | ||
| <url>https://www.sap.com</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>The Apache Software License, Version 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <name>SAP</name> | ||
| <email>cloudsdk@sap.com</email> | ||
| <organization>SAP SE</organization> | ||
| <organizationUrl>https://www.sap.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <properties> | ||
| <enforcer.skipEnforceScopeLombok>true</enforcer.skipEnforceScopeLombok> | ||
| </properties> | ||
| <dependencyManagement> | ||
| <dependencies> | ||
| <!-- Fix vulnerability BDSA-2018-5289 by updating Rhino from 1.7.7.2 to 1.7.14 --> | ||
| <dependency> | ||
| <groupId>org.mozilla</groupId> | ||
| <artifactId>rhino</artifactId> | ||
| <version>1.9.1</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </dependencyManagement> | ||
| <dependencies> | ||
| <!-- scope compile --> | ||
| <dependency> | ||
| <groupId>com.sap.cloud.sdk.datamodel</groupId> | ||
| <artifactId>datamodel-metadata-generator</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sap.cloud.sdk.cloudplatform</groupId> | ||
| <artifactId>cloudplatform-connectivity</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sap.cloud.sdk.cloudplatform</groupId> | ||
| <artifactId>cloudplatform-core</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.openapitools</groupId> | ||
| <artifactId>openapi-generator</artifactId> | ||
| <exclusions> | ||
| <exclusion> | ||
| <artifactId>slf4j-simple</artifactId> | ||
| <groupId>org.slf4j</groupId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-core</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-yaml</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.vavr</groupId> | ||
| <artifactId>vavr</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| <exclusions> | ||
| <exclusion> | ||
| <artifactId>checker-qual</artifactId> | ||
| <groupId>org.checkerframework</groupId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>commons-io</groupId> | ||
| <artifactId>commons-io</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.swagger.core.v3</groupId> | ||
| <artifactId>swagger-models</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.swagger.parser.v3</groupId> | ||
| <artifactId>swagger-parser</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.swagger.parser.v3</groupId> | ||
| <artifactId>swagger-parser-core</artifactId> | ||
| </dependency> | ||
| <!-- fix dependency convergence --> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-annotations</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-xml</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-guava</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-joda</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-jsr310</artifactId> | ||
| </dependency> | ||
| <!-- scope test --> | ||
| <dependency> | ||
| <groupId>org.junit.jupiter</groupId> | ||
| <artifactId>junit-jupiter-api</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.junit.jupiter</groupId> | ||
| <artifactId>junit-jupiter-params</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.assertj</groupId> | ||
| <artifactId>assertj-core</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.skyscreamer</groupId> | ||
| <artifactId>jsonassert</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- scope provided --> | ||
| <dependency> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-dependency-plugin</artifactId> | ||
| <configuration> | ||
| <ignoredUnusedDeclaredDependencies> | ||
| <!-- Ensure correct jackson dependency versions are present --> | ||
| <!-- When Maven runs a plugin it will ignore its dependencyManagement section --> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.core:jackson-annotations</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.dataformat:jackson-dataformat-xml</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.datatype:jackson-datatype-joda</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.datatype:jackson-datatype-guava</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.datatype:jackson-datatype-jsr310</ignoredUnusedDeclaredDependency> | ||
| </ignoredUnusedDeclaredDependencies> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| <resources> | ||
| <resource> | ||
| <filtering>true</filtering> | ||
| <directory>src/main/resources</directory> | ||
| </resource> | ||
| </resources> | ||
| </build> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
| <groupId>com.sap.cloud.sdk.datamodel</groupId> | ||
| <artifactId>openapi-parent</artifactId> | ||
| <version>5.33.0-SNAPSHOT</version> | ||
| </parent> | ||
| <artifactId>openapi-generator</artifactId> | ||
| <packaging>jar</packaging> | ||
| <name>Data Model - OpenAPI Services - Generator</name> | ||
| <description>OpenAPI Services data model (VDM) - generator classes</description> | ||
| <url>https://sap.github.io/cloud-sdk/docs/java/getting-started</url> | ||
| <organization> | ||
| <name>SAP SE</name> | ||
| <url>https://www.sap.com</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>The Apache Software License, Version 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <name>SAP</name> | ||
| <email>cloudsdk@sap.com</email> | ||
| <organization>SAP SE</organization> | ||
| <organizationUrl>https://www.sap.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <properties> | ||
| <enforcer.skipEnforceScopeLombok>true</enforcer.skipEnforceScopeLombok> | ||
| </properties> | ||
| <dependencyManagement> | ||
| <dependencies> | ||
| <!-- Fix vulnerability BDSA-2018-5289 by updating Rhino from 1.7.7.2 to 1.7.14 --> | ||
| <dependency> | ||
| <groupId>org.mozilla</groupId> | ||
| <artifactId>rhino</artifactId> | ||
| <version>1.9.1</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </dependencyManagement> | ||
| <dependencies> | ||
| <!-- scope compile --> | ||
| <dependency> | ||
| <groupId>com.sap.cloud.sdk.datamodel</groupId> | ||
| <artifactId>datamodel-metadata-generator</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sap.cloud.sdk.cloudplatform</groupId> | ||
| <artifactId>cloudplatform-connectivity</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sap.cloud.sdk.cloudplatform</groupId> | ||
| <artifactId>cloudplatform-core</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.openapitools</groupId> | ||
| <artifactId>openapi-generator</artifactId> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-simple</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-core</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-yaml</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.vavr</groupId> | ||
| <artifactId>vavr</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.guava</groupId> | ||
| <artifactId>guava</artifactId> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.checkerframework</groupId> | ||
| <artifactId>checker-qual</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>commons-io</groupId> | ||
| <artifactId>commons-io</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.swagger.core.v3</groupId> | ||
| <artifactId>swagger-models</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.swagger.parser.v3</groupId> | ||
| <artifactId>swagger-parser</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.swagger.parser.v3</groupId> | ||
| <artifactId>swagger-parser-core</artifactId> | ||
| </dependency> | ||
| <!-- fix dependency convergence --> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-annotations</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-xml</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-guava</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-joda</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-jsr310</artifactId> | ||
| </dependency> | ||
| <!-- scope test --> | ||
| <dependency> | ||
| <groupId>org.junit.jupiter</groupId> | ||
| <artifactId>junit-jupiter-api</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.junit.jupiter</groupId> | ||
| <artifactId>junit-jupiter-params</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.assertj</groupId> | ||
| <artifactId>assertj-core</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.skyscreamer</groupId> | ||
| <artifactId>jsonassert</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- scope provided --> | ||
| <dependency> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| <build> | ||
| <resources> | ||
| <resource> | ||
| <filtering>true</filtering> | ||
| <directory>src/main/resources</directory> | ||
| </resource> | ||
| </resources> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-dependency-plugin</artifactId> | ||
| <configuration> | ||
| <ignoredUnusedDeclaredDependencies> | ||
| <!-- Ensure correct jackson dependency versions are present --> | ||
| <!-- When Maven runs a plugin it will ignore its dependencyManagement section --> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.core:jackson-annotations</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.dataformat:jackson-dataformat-xml</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.datatype:jackson-datatype-joda</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.datatype:jackson-datatype-guava</ignoredUnusedDeclaredDependency> | ||
| <ignoredUnusedDeclaredDependency>com.fasterxml.jackson.datatype:jackson-datatype-jsr310</ignoredUnusedDeclaredDependency> | ||
| </ignoredUnusedDeclaredDependencies> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting?