Skip to content

Commit 2de43e7

Browse files
authored
Merge pull request #160 from CiscoM31/refresh/jan-2023
Regular refresh from upstream repo.
2 parents ba3c13b + 40a5b6f commit 2de43e7

File tree

6,968 files changed

+282320
-52582
lines changed

Some content is hidden

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

6,968 files changed

+282320
-52582
lines changed

.circleci/config.yml

Lines changed: 32 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -57,54 +57,43 @@ commands: # a reusable command with parameters
5757
- run: docker ps -a
5858
- run: sleep 30
5959
- run: cat /etc/hosts
60-
# Test
61-
- run: ./mvnw --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
60+
- run: export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
6261
- run:
6362
name: "Setup custom environment variables"
6463
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV
6564
- run: ./CI/circle_parallel.sh
6665
# Save dependency cache
67-
- save_cache:
68-
key: source-v2-{{ .Branch }}-{{ .Revision }}
69-
paths:
70-
# This is a broad list of cache paths to include many possible development environments
71-
# You can probably delete some of these entries
72-
- vendor/bundle
73-
- ~/.nvm
74-
- ~/.pyenv
75-
- ~/virtualenvs
76-
- ~/.m2
77-
- ~/.ivy2
78-
- ~/.sbt
79-
- ~/.bundle
80-
- ~/.go_workspace
81-
- ~/.gradle
82-
- ~/.cache/bower
83-
- ".git"
84-
- ~/.stack
85-
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
86-
- ~/R
87-
# save "default" cache using the key "source-v2-"
88-
- save_cache:
89-
key: source-v2-
90-
paths:
91-
# This is a broad list of cache paths to include many possible development environments
92-
# You can probably delete some of these entries
93-
- vendor/bundle
94-
- ~/.nvm
95-
- ~/.pyenv
96-
- ~/virtualenvs
97-
- ~/.m2
98-
- ~/.ivy2
99-
- ~/.sbt
100-
- ~/.bundle
101-
- ~/.go_workspace
102-
- ~/.gradle
103-
- ~/.cache/bower
104-
- ".git"
105-
- ~/.stack
106-
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
107-
- ~/R
66+
#- save_cache:
67+
# key: source-v2-{{ .Branch }}-{{ .Revision }}
68+
# paths:
69+
# # This is a broad list of cache paths to include many possible development environments
70+
# # You can probably delete some of these entries
71+
# - ~/.m2
72+
# - ~/.ivy2
73+
# - ~/.sbt
74+
# - ~/.bundle
75+
# - ~/.go_workspace
76+
# - ~/.gradle
77+
# - ".git"
78+
# - ~/.stack
79+
# - ~/R
80+
## save "default" cache using the key "source-v2-"
81+
#- save_cache:
82+
# key: source-v2-
83+
# paths:
84+
# # This is a broad list of cache paths to include many possible development environments
85+
# # You can probably delete some of these entries
86+
# - vendor/bundle
87+
# - ~/.m2
88+
# - ~/.ivy2
89+
# - ~/.sbt
90+
# - ~/.bundle
91+
# - ~/.go_workspace
92+
# - ~/.gradle
93+
# - ~/.cache/bower
94+
# - ".git"
95+
# - ~/.stack
96+
# - ~/R
10897
# Teardown
10998
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
11099
# Save test results

.devcontainer/devcontainer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
"ghcr.io/devcontainers/features/node:1": {
1010
"version": "lts"
1111
},
12-
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {}
12+
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
13+
"docker-in-docker": {
14+
"version": "latest",
15+
"moby": true,
16+
"dockerDashComposeVersion": "v1"
17+
}
1318
},
1419
// Configure tool-specific properties.
1520
"customizations": {
@@ -44,4 +49,4 @@
4449
// "postCreateCommand": "mvn clean package -DskipTests",
4550
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
4651
"remoteUser": "vscode"
47-
}
52+
}

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use flake
1+
has nix && use flake

.github/CODEOWNERS

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ modules/openapi-generator-cli/**/* @jimschubert
2828
modules/openapi-generator-gradle-plugin/**/* @jimschubert
2929
modules/openapi-generator-maven-plugin/**/* @jimschubert
3030

31-
# Martin Delille
32-
/Users/martin/dev/clone/openapi-generator/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQtClientCodegen.java @martindelille
33-
/Users/martin/dev/clone/openapi-generator/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQtAbstractCodegen.java @martindelille
34-
/Users/martin/dev/clone/openapi-generator/modules/openapi-generator/src/main/resources/cpp-qt-client @martindelille
35-
/Users/martin/dev/clone/openapi-generator/samples/client/petstore/cpp-qt @martindelille
31+
# cpp-qt-client technical committee
32+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @ravinikam
33+
samples/client/petstore/cpp-qt/**/* @ravinikam
34+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @stkrwork
35+
samples/client/petstore/cpp-qt/**/* @stkrwork
36+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @etherealjoy
37+
samples/client/petstore/cpp-qt/**/* @etherealjoy
38+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @martindelille
39+
samples/client/petstore/cpp-qt/**/* @martindelille
40+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd
41+
samples/client/petstore/cpp-qt/**/* @muttleyxd

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
./bin/generate-samples.sh ./bin/configs/*.yaml
1212
./bin/utils/export_docs_generators.sh
1313
```
14+
(For Windows users, please run the script in [Git BASH](https://gitforwindows.org/))
1415
Commit all changed files.
1516
This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit as it would merge with master.
1617
These must match the expectations made by your contribution.
1718
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*`.
18-
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
19+
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
1920
- [ ] 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)
2021
- [ ] 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/docker.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
name: Docker tests
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- Dockerfile
78
- run-in-docker.sh
89
- pom.xml
910
- modules/openapi-generator-online/pom.xml
1011
- modules/openapi-generator-online/Dockerfile
12+
- modules/openapi-generator-cli/pom.xml
13+
- modules/openapi-generator-cli/Dockerfile
1114
pull_request:
1215
paths:
1316
- Dockerfile
1417
- run-in-docker.sh
1518
- pom.xml
1619
- modules/openapi-generator-online/pom.xml
1720
- modules/openapi-generator-online/Dockerfile
21+
- modules/openapi-generator-cli/pom.xml
22+
- modules/openapi-generator-cli/Dockerfile
1823
jobs:
1924
build:
2025
name: 'Build: Docker'
@@ -27,7 +32,7 @@ jobs:
2732
shell: bash
2833
run: |
2934
sed -i 's/ -it / /g' run-in-docker.sh
30-
./run-in-docker.sh mvn clean install
35+
./run-in-docker.sh mvn -B clean install
3136
3237
- name: Build Dockerfile
3338
shell: bash
@@ -37,3 +42,12 @@ jobs:
3742
shell: bash
3843
run: |
3944
docker build modules/openapi-generator-online/ -t test
45+
- name: Build and test modules/openapi-generator-cli
46+
shell: bash
47+
run: |
48+
cp docker-entrypoint.sh ./modules/openapi-generator-cli
49+
docker build modules/openapi-generator-cli/ -t cli-test
50+
docker run --rm -v "${PWD}:/local" cli-test generate \
51+
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
52+
-g go \
53+
-o /local/out/go

.github/workflows/gradle-plugin-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up JDK 11
18-
uses: actions/setup-java@v3
18+
uses: actions/setup-java@v4
1919
with:
2020
java-version: 11
2121
distribution: 'temurin'

.github/workflows/gradle-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- samples/client/petstore/java/webclient-swagger2
3232
steps:
3333
- uses: actions/checkout@v4
34-
- uses: actions/setup-java@v3
34+
- uses: actions/setup-java@v4
3535
with:
3636
distribution: 'temurin'
3737
java-version: 11

.github/workflows/linux.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Set up JDK ${{ matrix.java }}
26-
uses: actions/setup-java@v3
26+
uses: actions/setup-java@v4
2727
with:
2828
distribution: 'temurin'
2929
java-version: ${{ matrix.java }}
@@ -45,7 +45,7 @@ jobs:
4545
${{ runner.os }}-gradle-
4646
4747
- name: Setup Maven
48-
uses: s4u/setup-maven-action@v1.10.0
48+
uses: s4u/setup-maven-action@v1.11.0
4949
with:
5050
java-version: ${{ matrix.java }}
5151
maven-version: 3.8.8
@@ -57,7 +57,7 @@ jobs:
5757
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5858

5959
- name: Upload Maven build artifact
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@v4
6161
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
6262
with:
6363
name: artifact
@@ -87,12 +87,12 @@ jobs:
8787
- name: Check out code
8888
uses: actions/checkout@v4
8989
- name: Setup Maven
90-
uses: s4u/setup-maven-action@v1.10.0
90+
uses: s4u/setup-maven-action@v1.11.0
9191
with:
9292
java-version: 11
9393
maven-version: 3.8.8
9494
- name: Download build artifact
95-
uses: actions/download-artifact@v3
95+
uses: actions/download-artifact@v4
9696
with:
9797
name: artifact
9898
- name: Run Ensures Script

.github/workflows/maven-plugin-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up JDK 11
18-
uses: actions/setup-java@v3
18+
uses: actions/setup-java@v4
1919
with:
2020
java-version: 11
2121
distribution: 'temurin'

0 commit comments

Comments
 (0)