Skip to content

Commit d553d5d

Browse files
committed
Merge branch 'master' of github.com:OpenAPITools/openapi-generator into feature/typescript-angular-deep-object-query-params
2 parents 44961b2 + 3c664d1 commit d553d5d

9,576 files changed

Lines changed: 56581 additions & 15294 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/samples-java-client-jdk17.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- samples/client/petstore/java/restclient-nullable-arrays
2929
- samples/client/petstore/java/restclient-swagger2
3030
- samples/client/petstore/java/restclient-useSingleRequestParameter
31+
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
3132
- samples/client/petstore/java/webclient-useSingleRequestParameter
3233
steps:
3334
- uses: actions/checkout@v4

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
- samples/server/others/kotlin-server/jaxrs-spec-array-response
4949
- samples/server/petstore/kotlin-spring-cloud
5050
- samples/server/petstore/kotlin-misk
51+
- samples/server/petstore/kotlin-misk-config
5152
# comment out due to gradle build failure
5253
#- samples/server/petstore/kotlin-spring-default
5354
# no build.gradle file

.github/workflows/samples-spring-jdk17.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ on:
55
paths:
66
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
77
- samples/openapi3/server/petstore/springboot-3
8+
- samples/server/petstore/springboot-api-response-examples
89
- samples/server/petstore/springboot-lombok-data
910
- samples/server/petstore/springboot-lombok-tostring
1011
- samples/server/petstore/springboot-file-delegate-optional
12+
- samples/server/petstore/springboot-petstore-with-api-response-examples
1113
pull_request:
1214
paths:
1315
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
1416
- samples/openapi3/server/petstore/springboot-3
17+
- samples/server/petstore/springboot-api-response-examples
1518
- samples/server/petstore/springboot-lombok-data
1619
- samples/server/petstore/springboot-lombok-tostring
1720
- samples/server/petstore/springboot-file-delegate-optional
21+
- samples/server/petstore/springboot-petstore-with-api-response-examples
1822
jobs:
1923
build:
2024
name: Build Java Spring (JDK17)
@@ -27,9 +31,11 @@ jobs:
2731
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
2832
# servers
2933
- samples/openapi3/server/petstore/springboot-3
34+
- samples/server/petstore/springboot-api-response-examples
3035
- samples/server/petstore/springboot-lombok-data
3136
- samples/server/petstore/springboot-lombok-tostring
3237
- samples/server/petstore/springboot-file-delegate-optional
38+
- samples/server/petstore/springboot-petstore-with-api-response-examples
3339
steps:
3440
- uses: actions/checkout@v4
3541
- uses: actions/setup-java@v4

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ services:
3737

3838
# comment out the host table change to use the public petstore server
3939
addons:
40-
apt:
41-
sources:
42-
- ubuntu-toolchain-r-test
43-
packages:
44-
- g++-5
45-
chrome: stable
40+
#apt:
41+
# sources:
42+
# - ubuntu-toolchain-r-test
43+
# packages:
44+
# - g++-5
45+
#chrome: stable
4646
hosts:
4747
- petstore.swagger.io
4848

README.md

Lines changed: 10 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.13.0`):
18+
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.14.0`):
1919
[![Build Status](https://api.travis-ci.com/OpenAPITools/openapi-generator.svg?branch=master&status=passed)](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
2020
[![Integration Test2](https://circleci.com/gh/OpenAPITools/openapi-generator.svg?style=shield)](https://circleci.com/gh/OpenAPITools/openapi-generator)
2121
[![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)
@@ -74,6 +74,7 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
7474
[<img src="https://openapi-generator.tech/img/companies/route4me.png" width="128" height="128">](https://route4me.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
7575
[<img src="https://openapi-generator.tech/img/companies/dm.png" width="128" height="128">](https://www.dotcom-monitor.com/sponsoring-open-source-projects/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
7676
[<img src="https://openapi-generator.tech/img/companies/clickit.jpg" width="128" height="128">](https://www.clickittech.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
77+
[<img src="https://openapi-generator.tech/img/companies/unified_to.jpg" width="128" height="128">](https://unified.to/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
7778

7879
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity
7980

@@ -131,8 +132,8 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
131132

132133
| OpenAPI Generator Version | Release Date | Notes |
133134
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
134-
| 7.13.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.13.0-SNAPSHOT/) | 02.04.2025 | Minor release with breaking changes (with fallback) |
135-
| [7.12.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.12.0) (latest stable release) | 28.02.2025 | Minor release with breaking changes (with fallback) |
135+
| 7.14.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.14.0-SNAPSHOT/) | 29.05.2025 | Minor release with breaking changes (with fallback) |
136+
| [7.13.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.13.0) (latest stable release) | 27.04.2025 | Minor release with breaking changes (with fallback) |
136137
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
137138
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
138139
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
@@ -195,16 +196,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
195196
<!-- RELEASE_VERSION -->
196197
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 11 runtime at a minimum):
197198

198-
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar`
199+
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar`
199200

200201
For **Mac/Linux** users:
201202
```sh
202-
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar -O openapi-generator-cli.jar
203+
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar -O openapi-generator-cli.jar
203204
```
204205

205206
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.
206207
```
207-
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar
208+
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar
208209
```
209210

210211
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
@@ -439,7 +440,7 @@ openapi-generator-cli version
439440
To use a specific version of "openapi-generator-cli"
440441

441442
```sh
442-
openapi-generator-cli version-manager set 7.12.0
443+
openapi-generator-cli version-manager set 7.13.0
443444
```
444445

445446
Or install it as dev-dependency:
@@ -463,7 +464,7 @@ pip install openapi-generator-cli
463464

464465
To install a specific version
465466
```
466-
pip install openapi-generator-cli==7.12.0
467+
pip install openapi-generator-cli==7.13.0
467468
```
468469

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

491492
<!-- RELEASE_VERSION -->
492-
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar)
493+
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar)
493494
<!-- /RELEASE_VERSION -->
494495

495496
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/restclient-useSingleRequestParameter-static
3+
library: restclient
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
additionalProperties:
7+
artifactId: singleparam-restclient-static
8+
hideGenerationTimestamp: "true"
9+
useSingleRequestParameter: static

bin/configs/unmaintained/kotlin-jvm-retrofit2-coroutines.yaml renamed to bin/configs/kotlin-jvm-retrofit2-coroutines.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
generatorName: kotlin
2-
outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines
2+
outputDir: samples/client/petstore/kotlin-jvm-retrofit2-coroutines
33
library: jvm-retrofit2
4-
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
55
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
66
additionalProperties:
77
serializationLibrary: gson
88
useCoroutines: "true"
99
artifactId: kotlin-petstore-coroutines-client
1010
serializableModel: "true"
1111
dateLibrary: java8
12+
useResponseAsReturnType: false
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
generatorName: kotlin-misk
2+
outputDir: samples/server/petstore/kotlin-misk-config
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/kotlin-misk
5+
validateSpec: false
6+
additionalProperties:
7+
hideGenerationTimestamp: "true"
8+
moduleClassName: "PetStoreModule"
9+
generateStubImplClasses: true
10+
addModelMoshiJsonAnnotation: true
11+
actionPathPrefix : "samplePrefix"

bin/configs/kotlin-misk.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ generatorName: kotlin-misk
22
outputDir: samples/server/petstore/kotlin-misk
33
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
44
templateDir: modules/openapi-generator/src/main/resources/kotlin-misk
5-
validateSpec: false
65
additionalProperties:
76
hideGenerationTimestamp: "true"
87
moduleClassName: "PetStoreModule"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
generatorName: spring
2+
outputDir: samples/server/petstore/springboot-api-response-examples
3+
library: spring-boot
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/api-response-examples_issue17610.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
6+
additionalProperties:
7+
artifactId: springboot-api-response-examples
8+
documentationProvider: springdoc
9+
useSpringBoot3: true
10+
java8: true
11+
delegatePattern: true
12+
useBeanValidation: true
13+
hideGenerationTimestamp: "true"

0 commit comments

Comments
 (0)