Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 17d66bf

Browse files
committed
Merge branch 'master' into html2-docs-incomplete
* master: (2170 commits) [ci][test] Fix samples (OpenAPITools#7509) [bug][Java] Honor instantiationMap for default values for array, map, set (OpenAPITools#4982) Fix stringifying of ~= (OpenAPITools#7460) minor formatting change (OpenAPITools#7503) [ruby] Fix generation when generateAliasAsModel is enabled (OpenAPITools#7419) [sonar][ci] Fixes some new recommended "bug" fixes found via Sonar (OpenAPITools#7508) Add option to set recursion limit (OpenAPITools#7491) regenerate java pkmst petstore samples (OpenAPITools#7502) fix issue without http signature auth (OpenAPITools#7504) [ruby] Support for per-operation servers (OpenAPITools#7415) Add a link to react native tutorial (OpenAPITools#7505) update of Objective-C model-body.mustache to support discriminator.mappedModels (OpenAPITools#7471) update samples [ci] Sonar bug fixes (OpenAPITools#7497) fixed the backslash issue (OpenAPITools#7492) Fix the range check condition (OpenAPITools#7482) [batch] Option to clean files before generation (OpenAPITools#7465) [java][groovy] Fix mangled src paths in outputs on Windows (OpenAPITools#7487) remove haskell stack installation in shippable ci (OpenAPITools#7481) remove hardcoded PetApi (OpenAPITools#7483) ...
2 parents 4decc1a + f3fbc7d commit 17d66bf

File tree

23,860 files changed

+1118488
-723756
lines changed

Some content is hidden

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

23,860 files changed

+1118488
-723756
lines changed

.github/.test/samples.json

Lines changed: 77 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
]
135135
},
136136
{
137-
"input": "csharp-refactor-petstore.sh",
137+
"input": "csharp-netcore-petstore.sh",
138138
"matches": [
139139
"Client: C-Sharp"
140140
]
@@ -146,13 +146,13 @@
146146
]
147147
},
148148
{
149-
"input": "dart-flutter-petstore.sh",
149+
"input": "dart-jaguar-petstore.sh",
150150
"matches": [
151151
"Client: Dart"
152152
]
153153
},
154154
{
155-
"input": "dart-jaguar-petstore.sh",
155+
"input": "dart-dio-petstore.sh",
156156
"matches": [
157157
"Client: Dart"
158158
]
@@ -218,7 +218,7 @@
218218
]
219219
},
220220
{
221-
"input": "finch-petstore-server.sh",
221+
"input": "scala-finch-petstore-server.sh",
222222
"matches": [
223223
"Server: Scala"
224224
]
@@ -260,7 +260,7 @@
260260
]
261261
},
262262
{
263-
"input": "graphql-server-petstore.sh",
263+
"input": "graphql-nodejs-express-server.sh",
264264
"matches": [
265265
"Server: GraphQL"
266266
]
@@ -825,13 +825,13 @@
825825
]
826826
},
827827
{
828-
"input": "python-flask-petstore-python2.sh",
828+
"input": "python-server-flask-petstore-python2.sh",
829829
"matches": [
830830
"Server: Python"
831831
]
832832
},
833833
{
834-
"input": "python-flask-petstore.sh",
834+
"input": "python-server-flask-petstore.sh",
835835
"matches": [
836836
"Server: Python"
837837
]
@@ -878,12 +878,6 @@
878878
"Client: Rust"
879879
]
880880
},
881-
{
882-
"input": "rust-reqwest-petstore.sh",
883-
"matches": [
884-
"Client: Rust"
885-
]
886-
},
887881
{
888882
"input": "rust-server-petstore.sh",
889883
"matches": [
@@ -1311,6 +1305,76 @@
13111305
"matches": [
13121306
"Announcement"
13131307
]
1308+
},
1309+
{
1310+
"input": "[typescript] Generic typescript text",
1311+
"matches": [
1312+
"Client: TypeScript"
1313+
]
1314+
},
1315+
{
1316+
"input": "[typescript] Generic typescript text",
1317+
"matches": [
1318+
"Client: TypeScript"
1319+
]
1320+
},
1321+
{
1322+
"input": "[typescript-angular] Generic typescript text",
1323+
"matches": [
1324+
"Client: TypeScript"
1325+
]
1326+
},
1327+
{
1328+
"input": "[typescript-angularjs] Generic typescript text",
1329+
"matches": [
1330+
"Client: TypeScript"
1331+
]
1332+
},
1333+
{
1334+
"input": "[typescript-aurelia] Generic typescript text",
1335+
"matches": [
1336+
"Client: TypeScript"
1337+
]
1338+
},
1339+
{
1340+
"input": "[typescript-axios] Generic typescript text",
1341+
"matches": [
1342+
"Client: TypeScript"
1343+
]
1344+
},
1345+
{
1346+
"input": "[typescript-fetch] Generic typescript text",
1347+
"matches": [
1348+
"Client: TypeScript"
1349+
]
1350+
},
1351+
{
1352+
"input": "[typescript-inversify] Generic typescript text",
1353+
"matches": [
1354+
"Client: TypeScript"
1355+
]
1356+
},
1357+
{
1358+
"input": "[typescript-jquery] Generic typescript text",
1359+
"matches": [
1360+
"Client: TypeScript"
1361+
]
1362+
},
1363+
{
1364+
"input": "[typescript-node] Generic typescript text",
1365+
"matches": [
1366+
"Client: TypeScript"
1367+
]
1368+
},
1369+
{
1370+
"input": "[typescript-rxjs] Generic typescript text",
1371+
"matches": [
1372+
"Client: TypeScript"
1373+
]
1374+
},
1375+
{
1376+
"input": "Should not auto-label for typescript outside of brackets.",
1377+
"matches": []
13141378
}
13151379
]
13161380
}

.github/CODEOWNERS

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Core team
2+
modules/openapi-generator/src/main/java/org/openapitools/codegen/*.java @OpenAPITools/generator-core-team
3+
modules/openapi-generator/src/main/java/org/openapitools/codegen/auth/*.java @OpenAPITools/generator-core-team
4+
modules/openapi-generator/src/main/java/org/openapitools/codegen/config/*.java @OpenAPITools/generator-core-team
5+
modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/*.java @OpenAPITools/generator-core-team
6+
modules/openapi-generator/src/main/java/org/openapitools/codegen/ignore/**/*.java @OpenAPITools/generator-core-team
7+
modules/openapi-generator/src/main/java/org/openapitools/codegen/serializer/*.java @OpenAPITools/generator-core-team
8+
modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/**/*.java @OpenAPITools/generator-core-team
9+
modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/**/*.java @OpenAPITools/generator-core-team
10+
modules/openapi-generator-core/**/* @OpenAPITools/generator-core-team
11+
12+
# No need for auto-generated subdirectories (reduces noise)
13+
docs/ @OpenAPITools/generator-core-team
14+
15+
## Individual interests
16+
.github/**/* @jimschubert
17+
scripts/**/* @jimschubert
18+
website/**/* @jimschubert
19+
bin/ci/**/* @jimschubert
20+
21+
## Bulid related
22+
CI/**/* @OpenAPITools/build
23+
.mvn/**/* @OpenAPITools/build
24+
bin/utils/**/* @OpenAPITools/build
25+
26+
## Module-specific
27+
modules/openapi-generator-cli/**/* @jimschubert
28+
modules/openapi-generator-gradle-plugin/**/* @jimschubert
29+
modules/openapi-generator-maven-plugin/**/* @jimschubert
30+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ assignees: ''
1111

1212
- [ ] Have you provided a full/minimal spec to reproduce the issue?
1313
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swagger-parser/online/))?
14-
- [ ] What's the version of OpenAPI Generator used?
15-
- [ ] Have you search for related issues/PRs?
14+
- [ ] 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?
15+
- [ ] Have you searched for related issues/PRs?
1616
- [ ] What's the actual output vs expected output?
17-
- [ ] [Optional] Bounty to sponsor the fix ([example](https://www.bountysource.com/issues/66123212-javascript-client-produces-a-wrong-object-for-a-string-enum-type-that-is-used-with-ref))
17+
- [ ] [Optional] Sponsorship to speed up the bug fix or feature request ([example](https://github.com/OpenAPITools/openapi-generator/issues/6178))
1818

1919
<!--
2020
Please follow the issue template below for bug reports.
@@ -45,9 +45,13 @@ please create a Gist (https://gist.github.com) or upload it somewhere else and
4545
link it here.
4646
-->
4747

48-
##### Command line used for generation
48+
##### Generation Details
4949

50-
<!-- including the language, libraries and various options -->
50+
<!--
51+
Prefer CLI steps, including the language, libraries and various options.
52+
Providing config-based settings allows for simpler testing across CLI and plugins.
53+
For examples, see https://github.com/OpenAPITools/openapi-generator/tree/master/bin/configs
54+
-->
5155

5256
##### Steps to reproduce
5357

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
### PR checklist
1+
<!-- Enter details of the change here. Include additional tests that have been done, reference to the issue for tracking, etc. -->
22

3+
<!-- Please check the completed items below -->
4+
### PR checklist
5+
36
- [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md).
4-
- [ ] Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the change. (For instance, only need to run `./bin/{LANG}-petstore.sh`, `./bin/openapi3/{LANG}-petstore.sh` if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in `.\bin\windows\`. If contributing template-only or documentation-only changes which will change sample output, be sure to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) first.
5-
- [ ] Filed the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`, `4.1.x`, `5.0.x`. Default: `master`.
6-
- [ ] Copied the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language.
7-
8-
### Description of the PR
9-
10-
(details of the change, additional tests that have been done, reference to the issue for tracking, etc)
11-
7+
- [ ] Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
8+
- [ ] If contributing template-only or documentation-only changes which will change sample output, [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) beforehand.
9+
- [ ] Run the shell script `./bin/generate-samples.sh`to update all Petstore samples related to your fix. This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. 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*`. For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
10+
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`
11+
- [ ] Copy the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language.

.github/auto-labeler.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ labels:
138138
- '\s*?-[gl] swift[34]+\s*?'
139139
- '\s*?-[gl] swift2-deprecated\s*?'
140140
'Client: TypeScript':
141+
- '\s*?\[typescript\]\s*?'
141142
- '\s*?\[typescript-[\-a-z]+\]\s*?'
142143
- '\s*?-[gl] typescript-[\-a-z]+\s*?'
143144
# 'Client: VB/VB.net': # NOTE: Not yet implemented
@@ -246,7 +247,7 @@ labels:
246247
'Server: Java':
247248
- '\s*?\[java-.*?\]\s*?'
248249
- '\s*?-[gl] java-.*?\s*?'
249-
- '\s*?-[gl] jaxrx-.*?\s*?'
250+
- '\s*?-[gl] jaxrs-.*?\s*?'
250251
'Server: Kotlin':
251252
- '\s*?\[ktor]\s*?'
252253
- '\s*?\[kotlin-spring]\s*?'
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Check Supported Java Versions
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
name: Build on JDK ${{ matrix.java }} and ${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
java: [8, 11]
14+
os: [ubuntu-latest]
15+
include:
16+
- java: 8
17+
os: windows-latest
18+
- java: 13
19+
os: ubuntu-latest
20+
# Need to update to Gradle version with v13 support in modules/openapi-generator-gradle-plugin/pom.xml
21+
flags: -am -pl modules/openapi-generator-cli
22+
steps:
23+
- name: Check out code
24+
uses: actions/checkout@v2
25+
26+
- name: Set up JDK ${{ matrix.java }}
27+
uses: actions/setup-java@v1
28+
with:
29+
java-version: ${{ matrix.java }}
30+
31+
- uses: actions/cache@v1
32+
with:
33+
path: ~/.m2/repository
34+
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
35+
restore-keys: |
36+
${{ runner.os }}-maven-
37+
38+
- uses: actions/cache@v2
39+
with:
40+
path: |
41+
~/.gradle/caches
42+
~/.gradle/wrapper
43+
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }}
44+
restore-keys: |
45+
${{ runner.os }}-gradle-
46+
47+
- name: Build with Maven
48+
shell: bash
49+
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }}
50+
51+
- name: Test gradle
52+
shell: bash
53+
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
54+
55+
- name: Upload Maven build artifact
56+
uses: actions/upload-artifact@v1
57+
if: matrix.java == '8' && matrix.os == 'ubuntu-latest'
58+
with:
59+
name: artifact
60+
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
61+
62+
verify:
63+
name: Verifies integrity of the commit on ${{ matrix.os }}
64+
needs: build
65+
runs-on: ${{ matrix.os }}
66+
strategy:
67+
matrix:
68+
os: [ubuntu-latest]
69+
# include:
70+
# - os: windows-latest
71+
# flags: --skip-docs
72+
steps:
73+
- name: Check out code
74+
uses: actions/checkout@v2
75+
- name: Download build artifact
76+
uses: actions/download-artifact@v1
77+
with:
78+
name: artifact
79+
- name: Run Ensures Script
80+
shell: bash
81+
run: |
82+
git config --global core.fileMode false
83+
git config --global core.safecrlf false
84+
git config --global core.autocrlf true
85+
mkdir -p modules/openapi-generator-cli/target/
86+
mv artifact/openapi-generator-cli.jar modules/openapi-generator-cli/target/
87+
./bin/utils/ensure-up-to-date ${{ matrix.flags }}

0 commit comments

Comments
 (0)