Skip to content

Commit 3557514

Browse files
committed
Merge branch 'master' into useDeductionForOneOfInterfaces
# Conflicts: # modules/openapi-generator/src/main/resources/JavaSpring/oneof_interface.mustache
2 parents 58f2588 + e2a998f commit 3557514

14,504 files changed

Lines changed: 338410 additions & 136508 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.

.devcontainer/devcontainer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
},
1212
"ghcr.io/devcontainers/features/rust:1": {},
1313
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
14-
"docker-in-docker": {
14+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
1515
"version": "latest",
16-
"moby": true,
17-
"dockerDashComposeVersion": "v1"
16+
"moby": true
1817
}
1918
},
2019
// Configure tool-specific properties.

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @martindelille
2828
samples/client/petstore/cpp-qt/**/* @martindelille
2929
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd
3030
samples/client/petstore/cpp-qt/**/* @muttleyxd
31+
32+
# cpp-rest-client technical committee
33+
modules/openapi-generator/src/main/resources/cpp-rest-client/**/* @aminya
34+
samples/client/petstore/cpp-restsdk/**/* @aminya

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assignees: ''
1010
#### Bug Report Checklist
1111

1212
- [ ] Have you provided a full/minimal spec to reproduce the issue?
13-
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apitools.dev/swagger-parser/online/))?
13+
- [ ] Have you validated the input using an OpenAPI validator?
1414
- [ ] Have you [tested with the latest master](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) to confirm the issue still exists?
1515
- [ ] Have you searched for related issues/PRs?
1616
- [ ] What's the actual output vs expected output?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
./bin/generate-samples.sh ./bin/configs/*.yaml || exit
1212
./bin/utils/export_docs_generators.sh || exit
1313
```
14-
(For Windows users, please run the script in [Git BASH](https://gitforwindows.org/))
14+
(For Windows users, please run the script in [WSL](https://learn.microsoft.com/en-us/windows/wsl/install))
1515
Commit all changed files.
1616
This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit as it would merge with master.
1717
These must match the expectations made by your contribution.

.github/workflows/openapi-generator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ jobs:
142142
path: modules/openapi-generator-cli/target
143143
- name: Delete samples that are entirely generated
144144
run: |
145+
rm -rf samples/client/petstore/csharp/generichost/latest/HelloWorld
145146
rm -rf samples/client/petstore/csharp/generichost/latest/Tags
147+
rm -rf samples/client/petstore/csharp/generichost/latest/OneOfList
146148
147149
rm -rf samples/client/petstore/csharp/generichost/net8/AllOf
148150
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOf

.github/workflows/samples-dotnet9.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
matrix:
2525
sample:
2626
- samples/client/petstore/csharp/generichost/latest/Tags
27+
- samples/client/petstore/csharp/generichost/latest/HelloWorld
28+
- samples/client/petstore/csharp/generichost/latest/OneOfList
2729
- samples/client/petstore/csharp/generichost/net9/AllOf
2830
- samples/client/petstore/csharp/generichost/net9/AnyOf
2931
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Samples Elixir
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/elixir/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/elixir/**
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
14+
strategy:
15+
matrix:
16+
otp: ['25.3.2', '26.2.5', '27.3.3']
17+
elixir: ['1.18.3']
18+
sample:
19+
- samples/client/petstore/elixir/
20+
services:
21+
petstore-api:
22+
image: swaggerapi/petstore
23+
ports:
24+
- 80:8080
25+
env:
26+
SWAGGER_HOST: http://petstore.swagger.io
27+
SWAGGER_BASE_PATH: /v2
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: erlef/setup-beam@v1
31+
with:
32+
otp-version: ${{matrix.otp}}
33+
elixir-version: ${{matrix.elixir}}
34+
- name: mix deps.get
35+
run: mix deps.get
36+
working-directory: ${{ matrix.sample }}
37+
- name: mix test
38+
run: mix test
39+
working-directory: ${{ matrix.sample }}

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
- samples/client/petstore/java/webclient-swagger2
6262
- samples/client/petstore/java/webclient-useSingleRequestParameter
6363
- samples/client/petstore/java/vertx
64+
- samples/client/petstore/java/vertx-no-nullable
65+
- samples/client/petstore/java/vertx-supportVertxFuture
6466
- samples/client/petstore/java/jersey2-java8-localdatetime
6567
- samples/client/petstore/java/google-api-client
6668
- samples/client/petstore/java/rest-assured
@@ -69,11 +71,13 @@ jobs:
6971
- samples/client/petstore/java/microprofile-rest-client-mutiny
7072
- samples/client/petstore/java/microprofile-rest-client-3.0
7173
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson
74+
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny
7275
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
7376
- samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
7477
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
7578
- samples/client/petstore/java/apache-httpclient
7679
- samples/client/petstore/java/feign
80+
- samples/client/petstore/java/feign-hc5
7781
- samples/client/petstore/java/feign-no-nullable
7882
- samples/client/petstore/java/okhttp-gson-awsv4signature
7983
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
@@ -107,6 +111,27 @@ jobs:
107111
path: |
108112
~/.m2
109113
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
110-
- name: Build
114+
- name: Build with Maven
111115
working-directory: ${{ matrix.sample }}
112116
run: mvn clean package --no-transfer-progress
117+
118+
- name: Cache gradle dependencies
119+
uses: actions/cache@v4
120+
env:
121+
cache-name: gradle-caches
122+
with:
123+
path: ~/.gradle/caches
124+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
125+
126+
- name: Cache gradle wrapper
127+
uses: actions/cache@v4
128+
env:
129+
cache-name: gradle-wrapper
130+
with:
131+
path: ~/.gradle/wrapper
132+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
133+
134+
- name: Build with Gradle
135+
working-directory: ${{ matrix.sample }}
136+
if: ${{ hashFiles('./gradlew') != '' }}
137+
run: ./gradlew build -x test

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
- samples/client/petstore/java/webclient-jakarta/**
88
- samples/client/petstore/java/restclient-*/**
99
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
10+
- samples/client/others/java/restclient-enum-in-multipart/**
1011
pull_request:
1112
paths:
1213
- samples/client/petstore/java/resttemplate-jakarta/**
1314
- samples/client/petstore/java/webclient-jakarta/**
1415
- samples/client/petstore/java/restclient-*/**
1516
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
17+
- samples/client/others/java/restclient-enum-in-multipart/**
1618
jobs:
1719
build:
1820
name: Build Java Client JDK17
@@ -28,7 +30,9 @@ jobs:
2830
- samples/client/petstore/java/restclient-nullable-arrays
2931
- samples/client/petstore/java/restclient-swagger2
3032
- samples/client/petstore/java/restclient-useSingleRequestParameter
33+
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
3134
- samples/client/petstore/java/webclient-useSingleRequestParameter
35+
- samples/client/others/java/restclient-enum-in-multipart
3236
steps:
3337
- uses: actions/checkout@v4
3438
- uses: actions/setup-java@v4

.github/workflows/samples-julia.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# Using develop mode to install package so that it is easier to modify the package test files
3131
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
3232
cd ~/.julia/dev/OpenAPI
33-
git checkout v0.1.25
33+
git checkout v0.2.0
3434
cd $currdir
3535
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
3636
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore

0 commit comments

Comments
 (0)