Skip to content

Commit 2bea735

Browse files
MisinformedDNAMisinformedDNA
authored andcommitted
Merge branch 'master' into operation-abstract
2 parents 97947f6 + c1e0361 commit 2bea735

11,562 files changed

Lines changed: 150521 additions & 71299 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.

.github/workflows/openapi-generator-test-results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
report:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: dorny/test-reporter@v2
14+
- uses: dorny/test-reporter@v3
1515
with:
1616
artifact: surefire-test-results
1717
name: JUnit Test results
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Samples C# .Net 10 Client (Petstore)
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/csharp/restsharp/net10/Petstore/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/csharp/restsharp/net10/Petstore/**
10+
jobs:
11+
build:
12+
name: Build clients
13+
runs-on: ubuntu-latest
14+
services:
15+
petstore-api:
16+
image: swaggerapi/petstore
17+
ports:
18+
- 80:8080
19+
env:
20+
SWAGGER_HOST: http://petstore.swagger.io
21+
SWAGGER_BASE_PATH: /v2
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
sample:
26+
- samples/client/petstore/csharp/restsharp/net10/Petstore/
27+
steps:
28+
- uses: actions/checkout@v5
29+
- uses: actions/setup-dotnet@v5.2.0
30+
with:
31+
dotnet-version: '10.0.x'
32+
- name: Build
33+
working-directory: ${{ matrix.sample }}
34+
run: dotnet build Org.OpenAPITools.sln
35+
- name: Test
36+
working-directory: ${{ matrix.sample }}
37+
run: dotnet test Org.OpenAPITools.sln

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ on:
77
- samples/client/petstore/java/resttemplate-springBoot4-*/**
88
- samples/client/petstore/java/webclient-jakarta/**
99
- samples/client/petstore/java/restclient-*/**
10+
- samples/client/petstore/java/native-jackson3/**
1011
- samples/client/others/java/webclient-sealedInterface/**
1112
- samples/client/others/java/webclient-sealedInterface_3_1/**
1213
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
1314
- samples/client/others/java/restclient-enum-in-multipart/**
15+
- samples/client/others/java/restclient-sealedInterface/**
1416
pull_request:
1517
paths:
1618
- samples/client/petstore/java/resttemplate-jakarta/**
1719
- samples/client/petstore/java/resttemplate-springBoot4-*/**
1820
- samples/client/petstore/java/webclient-jakarta/**
1921
- samples/client/petstore/java/restclient-*/**
22+
- samples/client/petstore/java/native-jackson3/**
2023
- samples/client/others/java/webclient-sealedInterface/**
2124
- samples/client/others/java/webclient-sealedInterface_3_1/**
2225
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
2326
- samples/client/others/java/restclient-enum-in-multipart/**
27+
- samples/client/others/java/restclient-sealedInterface/**
2428
jobs:
2529
build:
2630
name: Build Java Client JDK17
@@ -41,11 +45,13 @@ jobs:
4145
- samples/client/petstore/java/restclient-swagger2
4246
- samples/client/petstore/java/restclient-useSingleRequestParameter
4347
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
48+
- samples/client/petstore/java/native-jackson3
4449
- samples/client/others/java/webclient-sealedInterface
4550
- samples/client/others/java/webclient-sealedInterface_3_1
4651
- samples/client/petstore/java/webclient-springBoot4-jackson3
4752
- samples/client/petstore/java/webclient-useSingleRequestParameter
4853
- samples/client/others/java/restclient-enum-in-multipart
54+
- samples/client/others/java/restclient-sealedInterface
4955
steps:
5056
- uses: actions/checkout@v5
5157
- uses: actions/setup-java@v5

.github/workflows/samples-jdk17.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- samples/client/petstore/spring-http-interface/**
1111
- samples/client/petstore/spring-http-interface-reactive-noResponseEntity/**
1212
- samples/client/petstore/spring-http-interface-noResponseEntity/**
13+
- samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/**
1314
- samples/client/petstore/java/webclient-jakarta/**
1415
- samples/client/petstore/java/microprofile-rest-client-outer-enum/**
1516
# servers
@@ -29,6 +30,7 @@ on:
2930
- samples/client/petstore/spring-http-interface/**
3031
- samples/client/petstore/spring-http-interface-reactive-noResponseEntity/**
3132
- samples/client/petstore/spring-http-interface-noResponseEntity/**
33+
- samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/**
3234
- samples/client/petstore/java/webclient-jakarta/**
3335
- samples/client/petstore/java/microprofile-rest-client-outer-enum/**
3436
# servers
@@ -54,6 +56,7 @@ jobs:
5456
- samples/client/petstore/spring-http-interface
5557
- samples/client/petstore/spring-http-interface-reactive-noResponseEntity
5658
- samples/client/petstore/spring-http-interface-noResponseEntity
59+
- samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator
5760
- samples/client/petstore/java/webclient-jakarta
5861
- samples/client/petstore/java/microprofile-rest-client-outer-enum
5962
# servers

.github/workflows/samples-kotlin-server.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- samples/server/petstore/kotlin-springboot-reactive-without-flow
4040
- samples/server/petstore/kotlin-springboot-source-swagger1
4141
- samples/server/petstore/kotlin-springboot-source-swagger2
42-
- samples/server/petstore/kotlin-springboot-springfox
4342
- samples/server/petstore/kotlin-springboot-x-kotlin-implements
4443
- samples/server/petstore/kotlin-springboot-include-http-request-context-delegate
4544
- samples/server/petstore/kotlin-server/ktor2
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Samples Java Spring (JDK11)
2+
3+
on:
4+
push:
5+
paths:
6+
# servers
7+
- samples/server/petstore/springboot-implicitHeaders/**
8+
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary/**
9+
pull_request:
10+
paths:
11+
# servers
12+
- samples/server/petstore/springboot-implicitHeaders/**
13+
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary/**
14+
jobs:
15+
build:
16+
name: Build
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
sample:
22+
# servers
23+
- samples/server/petstore/springboot-implicitHeaders
24+
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
25+
steps:
26+
- uses: actions/checkout@v5
27+
- uses: actions/setup-java@v5
28+
with:
29+
distribution: 'temurin'
30+
java-version: 11
31+
- name: Cache maven dependencies
32+
uses: actions/cache@v5
33+
env:
34+
cache-name: maven-repository
35+
with:
36+
path: |
37+
~/.m2
38+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
39+
- name: Build
40+
working-directory: ${{ matrix.sample }}
41+
run: mvn clean package --no-transfer-progress

.github/workflows/samples-spring.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- uses: actions/setup-java@v5
6868
with:
6969
distribution: 'temurin'
70-
java-version: 8
70+
java-version: 17
7171
- name: Cache maven dependencies
7272
uses: actions/cache@v5
7373
env:

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<div align="center">
1717

18-
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.21.0`):
18+
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.22.0`):
1919
[![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
2020
[![Bitrise](https://img.shields.io/bitrise/4a2b10a819d12b67/master?label=bitrise%3A%20Swift+4,5&token=859FMDR8QHwabCzwvZK6vQ)](https://app.bitrise.io/app/4a2b10a819d12b67)
2121

@@ -150,8 +150,8 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
150150

151151
| OpenAPI Generator Version | Release Date | Notes |
152152
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
153-
| 7.21.0 (upcoming minor release) [SNAPSHOT](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) | 20.03.2026 | Minor release with breaking changes (with fallback) |
154-
| [7.20.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.20.0) (latest stable release) | 16.02.2026 | Minor release with breaking changes (with fallback) |
153+
| 7.22.0 (upcoming minor release) [SNAPSHOT](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) | 24.04.2026 | Minor release with breaking changes (with fallback) |
154+
| [7.21.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.21.0) (latest stable release) | 24.03.2026 | Minor release with breaking changes (with fallback) |
155155
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
156156
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
157157
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
@@ -214,16 +214,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
214214
<!-- RELEASE_VERSION -->
215215
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 11 runtime at a minimum):
216216

217-
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.20.0/openapi-generator-cli-7.20.0.jar`
217+
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.21.0/openapi-generator-cli-7.21.0.jar`
218218

219219
For **Mac/Linux** users:
220220
```sh
221-
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.20.0/openapi-generator-cli-7.20.0.jar -O openapi-generator-cli.jar
221+
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.21.0/openapi-generator-cli-7.21.0.jar -O openapi-generator-cli.jar
222222
```
223223

224224
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.
225225
```
226-
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.20.0/openapi-generator-cli-7.20.0.jar
226+
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.21.0/openapi-generator-cli-7.21.0.jar
227227
```
228228

229229
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
@@ -458,7 +458,7 @@ openapi-generator-cli version
458458
To use a specific version of "openapi-generator-cli"
459459

460460
```sh
461-
openapi-generator-cli version-manager set 7.20.0
461+
openapi-generator-cli version-manager set 7.21.0
462462
```
463463

464464
Or install it as dev-dependency:
@@ -482,7 +482,7 @@ pip install openapi-generator-cli
482482

483483
To install a specific version
484484
```
485-
pip install openapi-generator-cli==7.20.0
485+
pip install openapi-generator-cli==7.21.0
486486
```
487487

488488
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
@@ -508,7 +508,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
508508
(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`)
509509

510510
<!-- RELEASE_VERSION -->
511-
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.20.0/openapi-generator-cli-7.20.0.jar)
511+
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.21.0/openapi-generator-cli-7.21.0.jar)
512512
<!-- /RELEASE_VERSION -->
513513

514514
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# for .net standard
2+
generatorName: csharp
3+
library: restsharp
4+
outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
5+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
6+
templateDir: modules/openapi-generator/src/main/resources/csharp
7+
additionalProperties:
8+
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
9+
useCompareNetObjects: true
10+
disallowAdditionalPropertiesIfNotPresent: false
11+
useOneOfDiscriminatorLookup: true
12+
targetFramework: net10.0
13+
equatable: true
14+
enumNameMappings:
15+
delivered: Shipped
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# for .net standard
22
generatorName: csharp
33
library: restsharp
4-
outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
5-
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
4+
outputDir: samples/client/petstore/csharp/restsharp/net10/Petstore
5+
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types-localhost.yaml
66
templateDir: modules/openapi-generator/src/main/resources/csharp
77
additionalProperties:
88
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
@@ -11,5 +11,3 @@ additionalProperties:
1111
useOneOfDiscriminatorLookup: true
1212
targetFramework: net10.0
1313
equatable: true
14-
enumNameMappings:
15-
delivered: Shipped

0 commit comments

Comments
 (0)