Skip to content

Commit 99ca67d

Browse files
committed
Merge branch 'master' into 8.0.x
2 parents bfc784e + 9c999b6 commit 99ca67d

6,935 files changed

Lines changed: 266193 additions & 60492 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ commands: # a reusable command with parameters
141141
jobs:
142142
node0:
143143
machine:
144-
image: ubuntu-2004:202201-02
144+
image: ubuntu-2004:2024.01.1
145145
working_directory: ~/OpenAPITools/openapi-generator
146146
shell: /bin/bash --login
147147
environment:
@@ -154,7 +154,7 @@ jobs:
154154
nodeNo: "0"
155155
node1:
156156
machine:
157-
image: ubuntu-2004:202201-02
157+
image: ubuntu-2004:2024.01.1
158158
working_directory: ~/OpenAPITools/openapi-generator
159159
shell: /bin/bash --login
160160
environment:
@@ -167,7 +167,7 @@ jobs:
167167
nodeNo: "1"
168168
node2:
169169
machine:
170-
image: ubuntu-2004:202201-02
170+
image: ubuntu-2004:2024.01.1
171171
working_directory: ~/OpenAPITools/openapi-generator
172172
shell: /bin/bash --login
173173
environment:
@@ -180,7 +180,7 @@ jobs:
180180
nodeNo: "2"
181181
node3:
182182
machine:
183-
image: ubuntu-2004:202201-02
183+
image: ubuntu-2004:2024.01.1
184184
working_directory: ~/OpenAPITools/openapi-generator
185185
shell: /bin/bash --login
186186
environment:

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"java.configuration.runtimes": [
2727
{
2828
"name": "JavaSE-11",
29-
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms",
30-
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip",
29+
"path": "/usr/local/sdkman/candidates/java/current",
30+
"sources": "/usr/local/sdkman/candidates/java/current/lib/src.zip",
3131
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
3232
"default": true
3333
}
@@ -50,4 +50,4 @@
5050
// "postCreateCommand": "mvn clean package -DskipTests",
5151
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5252
"remoteUser": "vscode"
53-
}
53+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
These must match the expectations made by your contribution.
1818
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example `./bin/generate-samples.sh bin/configs/java*`.
1919
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
20-
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (upcoming 7.1.0 minor release - breaking changes with fallbacks), `8.0.x` (breaking changes without fallbacks)
20+
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (upcoming 7.6.0 minor release - breaking changes with fallbacks), `8.0.x` (breaking changes without fallbacks)
2121
- [ ] If your PR is targeting a particular programming language, @mention the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) members, so they are more likely to review the pull request.

.github/workflows/gradle-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'samples/client/petstore/java/**'
1111
- 'samples/openapi3/client/petstore/java/**'
1212
env:
13-
GRADLE_VERSION: 7.2
13+
GRADLE_VERSION: 8.7
1414

1515
jobs:
1616
build:

.github/workflows/linux.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
${{ runner.os }}-gradle-
4646
4747
- name: Setup Maven
48-
uses: s4u/setup-maven-action@v1.12.0
48+
uses: s4u/setup-maven-action@v1.13.0
4949
with:
5050
java-version: ${{ matrix.java }}
5151
maven-version: 3.8.8
@@ -87,7 +87,7 @@ jobs:
8787
- name: Check out code
8888
uses: actions/checkout@v4
8989
- name: Setup Maven
90-
uses: s4u/setup-maven-action@v1.12.0
90+
uses: s4u/setup-maven-action@v1.13.0
9191
with:
9292
java-version: 11
9393
maven-version: 3.8.8

.github/workflows/openapi-generator.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,23 @@ jobs:
140140
with:
141141
name: openapi-generator-cli.jar
142142
path: modules/openapi-generator-cli/target
143+
- name: Delete samples that are entirely generated
144+
run: |
145+
rm -rf samples/client/petstore/csharp/generichost/net8/AllOf
146+
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOf
147+
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare
148+
rm -rf samples/client/petstore/csharp/generichost/net8/FormModels
149+
rm -rf samples/client/petstore/csharp/generichost/net8/NullReferenceTypes
150+
rm -rf samples/client/petstore/csharp/generichost/net8/OneOf
151+
rm -rf samples/client/petstore/csharp/generichost/net8/Petstore
152+
rm -rf samples/client/petstore/csharp/generichost/net8/SourceGeneration
153+
rm -rf samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
154+
rm -rf samples/client/petstore/csharp/generichost/standard2.0/Petstore
143155
- name: Generate samples
144-
run: bash bin/generate-samples.sh
156+
run: |
157+
bash bin/generate-samples.sh
158+
# when a sample is deleted, you have to generate it twice for all files to get created
159+
bash bin/generate-samples.sh
145160
- name: Verify git status
146161
run: |
147162
if [[ "$(git status --porcelain)" != "" ]]; then

.github/workflows/samples-cpp-qt-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v4
2929
- name: Install Qt
30-
uses: jurplel/install-qt-action@v3
30+
uses: jurplel/install-qt-action@v4
3131
with:
3232
version: ${{ matrix.qt-version }}
3333
tools: ${{ matrix.tools }}

.github/workflows/samples-go.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
name: Samples Go
1+
name: Samples Go
22

33
on:
44
push:
55
paths:
66
- 'samples/server/petstore/go-echo-server/**'
77
- 'samples/server/petstore/go-api-server/**'
88
- 'samples/server/petstore/go-chi-server/**'
9+
- 'samples/server/others/go-server/no-body-path-params/**'
910
pull_request:
1011
paths:
1112
- 'samples/server/petstore/go-echo-server/**'
1213
- 'samples/server/petstore/go-api-server/**'
1314
- 'samples/server/petstore/go-chi-server/**'
15+
- 'samples/server/others/go-server/no-body-path-params/**'
1416

1517
jobs:
1618
build:
17-
name: Build Go
19+
name: Build Go
1820
runs-on: ubuntu-latest
1921
strategy:
2022
fail-fast: false
@@ -23,6 +25,7 @@ jobs:
2325
- samples/server/petstore/go-echo-server/
2426
- samples/server/petstore/go-api-server/
2527
- samples/server/petstore/go-chi-server/
28+
- samples/server/others/go-server/no-body-path-params/
2629
steps:
2730
- uses: actions/checkout@v4
2831
- uses: actions/setup-go@v5
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Java Client (Echo API) JDK17
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/echo_api/java/restclient
7+
pull_request:
8+
paths:
9+
- samples/client/echo_api/java/restclient
10+
jobs:
11+
build:
12+
name: Build Java Client JDK17
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
sample:
18+
# clients
19+
- samples/client/echo_api/java/restclient
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-java@v4
23+
with:
24+
distribution: 'temurin'
25+
java-version: 17
26+
- name: Cache maven dependencies
27+
uses: actions/cache@v4
28+
env:
29+
cache-name: maven-repository
30+
with:
31+
path: |
32+
~/.m2
33+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
34+
- name: Setup node.js
35+
uses: actions/setup-node@v4
36+
- name: Run echo server
37+
run: |
38+
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
39+
(cd http-echo-server && npm install && npm start &)
40+
- name: Build
41+
working-directory: ${{ matrix.sample }}
42+
run: mvn clean package

.github/workflows/samples-java-client-jdk11.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- samples/client/others/java/webclient-useAbstractionForFiles/**
1616
- samples/client/others/java/jersey2-oneOf-duplicates/**
1717
- samples/client/others/java/jersey2-oneOf-Mixed/**
18+
- samples/client/others/java/resttemplate-list-schema-validation/**
1819
pull_request:
1920
paths:
2021
- 'samples/client/petstore/java/**'
@@ -29,6 +30,7 @@ on:
2930
- samples/client/others/java/webclient-useAbstractionForFiles/**
3031
- samples/client/others/java/jersey2-oneOf-duplicates/**
3132
- samples/client/others/java/jersey2-oneOf-Mixed/**
33+
- samples/client/others/java/resttemplate-list-schema-validation/**
3234
jobs:
3335
build:
3436
name: Build Java Client JDK11
@@ -73,10 +75,12 @@ jobs:
7375
- samples/client/petstore/java/resttemplate-swagger2/
7476
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
7577
- samples/client/others/java/okhttp-gson-oneOf/
78+
- samples/client/echo_api/java/okhttp-gson-user-defined-templates/
7679
- samples/client/others/java/resttemplate-useAbstractionForFiles/
7780
- samples/client/others/java/webclient-useAbstractionForFiles/
7881
- samples/client/others/java/jersey2-oneOf-duplicates/
7982
- samples/client/others/java/jersey2-oneOf-Mixed/
83+
- samples/client/others/java/resttemplate-list-schema-validation/
8084
steps:
8185
- uses: actions/checkout@v4
8286
- uses: actions/setup-java@v4

0 commit comments

Comments
 (0)