Skip to content

Commit 12e03b1

Browse files
committed
Merge remote-tracking branch 'origin/master' into 6.0.x
2 parents 27e6d08 + 8d532d5 commit 12e03b1

File tree

2,038 files changed

+42259
-50876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,038 files changed

+42259
-50876
lines changed

.github/workflows/check-supported-versions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }}
5151

5252
- name: Upload Maven build artifact
53-
uses: actions/upload-artifact@v2.2.4
53+
uses: actions/upload-artifact@v2.3.1
5454
if: matrix.java == '8' && matrix.os == 'ubuntu-latest'
5555
with:
5656
name: artifact
@@ -81,7 +81,7 @@ jobs:
8181
- name: Check out code
8282
uses: actions/checkout@v2
8383
- name: Download build artifact
84-
uses: actions/download-artifact@v2.0.10
84+
uses: actions/download-artifact@v2.1.0
8585
with:
8686
name: artifact
8787
- name: Run Ensures Script

.github/workflows/openapi-generator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
4040
- run: ls -la modules/openapi-generator-cli/target
4141
- name: Upload openapi-generator-cli.jar artifact
42-
uses: actions/upload-artifact@v2.2.4
42+
uses: actions/upload-artifact@v2.3.1
4343
with:
4444
name: openapi-generator-cli.jar
4545
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
@@ -75,7 +75,7 @@ jobs:
7575
run: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
7676
- name: Publish unit test reports
7777
if: ${{ always() }}
78-
uses: actions/upload-artifact@v2.2.4
78+
uses: actions/upload-artifact@v2.3.1
7979
with:
8080
name: surefire-test-results
8181
path: '**/surefire-reports/TEST-*.xml'
@@ -93,7 +93,7 @@ jobs:
9393
java-version: 8
9494
distribution: 'temurin'
9595
- name: Download openapi-generator-cli.jar artifact
96-
uses: actions/download-artifact@v2.0.10
96+
uses: actions/download-artifact@v2.1.0
9797
with:
9898
name: openapi-generator-cli.jar
9999
path: modules/openapi-generator-cli/target
@@ -132,7 +132,7 @@ jobs:
132132
java-version: 8
133133
distribution: 'temurin'
134134
- name: Download openapi-generator-cli.jar artifact
135-
uses: actions/download-artifact@v2.0.10
135+
uses: actions/download-artifact@v2.1.0
136136
with:
137137
name: openapi-generator-cli.jar
138138
path: modules/openapi-generator-cli/target

.github/workflows/samples-kotlin.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
# needs Android configured
3030
#- samples/client/petstore/kotlin-json-request-string
3131
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
32+
- samples/client/petstore/kotlin-jvm-volley
3233
- samples/client/petstore/kotlin-moshi-codegen
3334
- samples/client/petstore/kotlin-multiplatform
3435
- samples/client/petstore/kotlin-nonpublic

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,14 @@
99

1010
<div align="center">
1111

12-
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`5.3.1`):
12+
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`5.4.x`):
1313
[![Build Status](https://img.shields.io/travis/OpenAPITools/openapi-generator/master.svg?label=Integration%20Test)](https://travis-ci.com/OpenAPITools/openapi-generator)
1414
[![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
1515
[![Windows Test](https://ci.appveyor.com/api/projects/status/github/openapitools/openapi-generator?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
1616
[![JDK11 Build](https://cloud.drone.io/api/badges/OpenAPITools/openapi-generator/status.svg?ref=refs/heads/master)](https://cloud.drone.io/OpenAPITools/openapi-generator)
1717
[![Bitrise](https://img.shields.io/bitrise/4a2b10a819d12b67/master?label=bitrise%3A%20Swift+4,5&token=859FMDR8QHwabCzwvZK6vQ)](https://app.bitrise.io/app/4a2b10a819d12b67)
1818
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/openapitools/openapi-generator/Check%20Supported%20Java%20Versions/master?label=Check%20Supported%20Java%20Versions&logo=github&logoColor=green)](https://github.com/OpenAPITools/openapi-generator/actions?query=workflow%3A%22Check+Supported+Java+Versions%22)
1919

20-
[5.4.x](https://github.com/OpenAPITools/openapi-generator/tree/5.4.x) (`5.4.x`):
21-
[![Build Status](https://img.shields.io/travis/OpenAPITools/openapi-generator/5.4.x.svg?label=Integration%20Test)](https://travis-ci.com/OpenAPITools/openapi-generator)
22-
[![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator/tree/5.4.x.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
23-
[![Windows Test](https://ci.appveyor.com/api/projects/status/github/openapitools/openapi-generator?branch=5.4.x&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
24-
[![JDK11 Build](https://cloud.drone.io/api/badges/OpenAPITools/openapi-generator/status.svg?ref=refs/heads/5.4.x)](https://cloud.drone.io/OpenAPITools/openapi-generator)
25-
[![Bitrise](https://img.shields.io/bitrise/4a2b10a819d12b67/5.4.x?label=bitrise%3A%20Swift+4,5&token=859FMDR8QHwabCzwvZK6vQ)](https://app.bitrise.io/app/4a2b10a819d12b67)
26-
2720
[6.0.x](https://github.com/OpenAPITools/openapi-generator/tree/6.0.x) (`6.0.x`):
2821
[![Build Status](https://img.shields.io/travis/OpenAPITools/openapi-generator/6.0.x.svg?label=Integration%20Test)](https://travis-ci.com/OpenAPITools/openapi-generator)
2922
[![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator/tree/6.0.x.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
@@ -119,8 +112,7 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
119112
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
120113
| 6.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.0.0-SNAPSHOT/) | Jan/Feb 2022 | Minor release with breaking changes (no fallback) |
121114
| 5.4.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.4.0-SNAPSHOT/) | Dec 2021 | Minor release with breaking changes (with fallback) |
122-
| 5.3.1 (upcoming patch release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.3.1-SNAPSHOT/) | Nov/Dec 2021 | Patch release (enhancements, bug fixes, etc) |
123-
| [5.3.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.3.0) (latest stable release) | 24.10.2021 | Minor release with breaking changes (with fallback) |
115+
| [5.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.3.1) (latest stable release) | 21.12.2021 | Patch release (enhancements, bug fixes, etc) |
124116
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
125117

126118
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
@@ -177,16 +169,16 @@ See the different versions of the [openapi-generator-cli](https://mvnrepository.
177169
<!-- RELEASE_VERSION -->
178170
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
179171

180-
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.0/openapi-generator-cli-5.3.0.jar`
172+
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.1/openapi-generator-cli-5.3.1.jar`
181173

182174
For **Mac/Linux** users:
183175
```sh
184-
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.0/openapi-generator-cli-5.3.0.jar -O openapi-generator-cli.jar
176+
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.1/openapi-generator-cli-5.3.1.jar -O openapi-generator-cli.jar
185177
```
186178

187179
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
188180
```
189-
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.0/openapi-generator-cli-5.3.0.jar
181+
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.1/openapi-generator-cli-5.3.1.jar
190182
```
191183

192184
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
@@ -411,7 +403,7 @@ openapi-generator-cli version
411403
To use a specific version of "openapi-generator-cli"
412404

413405
```sh
414-
openapi-generator-cli version-manager set 5.3.0
406+
openapi-generator-cli version-manager set 5.3.1
415407
```
416408

417409
Or install it as dev-dependency:
@@ -435,7 +427,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
435427
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
436428

437429
<!-- RELEASE_VERSION -->
438-
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.0/openapi-generator-cli-5.3.0.jar)
430+
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.3.1/openapi-generator-cli-5.3.1.jar)
439431
<!-- /RELEASE_VERSION -->
440432

441433
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
@@ -917,6 +909,7 @@ Here is a list of template creators:
917909
* JMeter: @davidkiss
918910
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
919911
* Kotlin (MultiPlatform): @andrewemery
912+
* Kotlin (Volley): @alisters
920913
* Lua: @daurnimator
921914
* Nim: @hokamoto
922915
* OCaml: @cgensoul

bin/configs/dart-dio-next-dio-http-petstore-client-lib-fake.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

bin/configs/java-okhttp-gson-nextgen.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
generatorName: java
22
outputDir: samples/client/petstore/java/okhttp-gson-nextgen
33
library: okhttp-gson-nextgen
4-
#inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
5-
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature-okhttp-gson.yaml
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature-okhttp-gson-nextgen.yaml
65
templateDir: modules/openapi-generator/src/main/resources/Java
76
additionalProperties:
87
artifactId: petstore-okhttp-gson-nextgen

bin/configs/k6.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
generatorName: k6
2+
outputDir: samples/client/petstore/k6
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/k6
5+
additionalProperties:
6+
appName: PetstoreClient

bin/configs/kotlin-enum-default-value.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ additionalProperties:
66
artifactId: kotlin-enum-default-value
77
serializableModel: "true"
88
dateLibrary: java8
9+
enumUnknownDefaultCase: true

bin/configs/kotlin-jvm-okhttp3-okhttp3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
55
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
66
additionalProperties:
77
artifactId: kotlin-petstore-okhttp3
8+
enumUnknownDefaultCase: true

bin/configs/kotlin-jvm-volley.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: kotlin
2+
outputDir: samples/client/petstore/kotlin-jvm-volley
3+
library: jvm-volley
4+
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
6+
additionalProperties:
7+
artifactId: kotlin-petstore-jvm-volley
8+
generateRoomModels: "true"
9+
serializationLibrary: "gson"

0 commit comments

Comments
 (0)