Skip to content

Commit f5f6864

Browse files
committed
Merge branch 'master' into myapp
2 parents 143ea34 + 1f1b8a1 commit f5f6864

55,172 files changed

Lines changed: 4360785 additions & 1797893 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.

.circleci/config.yml

Lines changed: 51 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -31,69 +31,69 @@ commands: # a reusable command with parameters
3131
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
3232
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
3333
# This is based on your 1.0 configuration file or project settings
34+
#- run:
35+
# command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
3436
- run:
35-
command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
37+
command: java -version
3638
- run:
3739
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
3840
- run:
39-
command: |-
40-
printf '127.0.0.1 petstore.swagger.io
41-
' | sudo tee -a /etc/hosts
41+
command: |
42+
sudo tee -a /etc/hosts \<<< "127.0.0.1 path.v1.test.openapi-generator.tech"
43+
sudo tee -a /etc/hosts \<<< "127.0.0.1 path.v2.test.openapi-generator.tech"
44+
sudo tee -a /etc/hosts \<<< "127.0.0.111 path.v3.test.openapi-generator.tech"
45+
sudo tee -a /etc/hosts \<<< "127.0.0.1 operation.v1.test.openapi-generator.tech"
46+
sudo tee -a /etc/hosts \<<< "127.0.0.1 operation.v2.test.openapi-generator.tech"
47+
sudo tee -a /etc/hosts \<<< "127.0.0.111 operation.v3.test.openapi-generator.tech"
48+
sudo tee -a /etc/hosts \<<< "127.0.0.1 server.v1.test.openapi-generator.tech"
49+
sudo tee -a /etc/hosts \<<< "127.0.0.1 server.v2.test.openapi-generator.tech"
50+
sudo tee -a /etc/hosts \<<< "127.0.0.111 server.v3.test.openapi-generator.tech"
51+
sudo tee -a /etc/hosts \<<< "127.0.0.1 petstore.swagger.io"
52+
cat /etc/hosts
4253
# - run: docker pull openapitools/openapi-petstore
4354
# - run: docker run -d -e OPENAPI_BASE_PATH=/v3 -e DISABLE_API_KEY=1 -e DISABLE_OAUTH=1 -p 80:8080 openapitools/openapi-petstore
4455
- run: docker pull swaggerapi/petstore
4556
- run: docker run --name petstore.swagger -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
4657
- run: docker ps -a
4758
- run: sleep 30
4859
- run: cat /etc/hosts
49-
# Test
50-
- run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
60+
- run: export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
5161
- run:
5262
name: "Setup custom environment variables"
5363
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV
5464
- run: ./CI/circle_parallel.sh
5565
# Save dependency cache
56-
- save_cache:
57-
key: source-v2-{{ .Branch }}-{{ .Revision }}
58-
paths:
59-
# This is a broad list of cache paths to include many possible development environments
60-
# You can probably delete some of these entries
61-
- vendor/bundle
62-
- ~/.nvm
63-
- ~/.pyenv
64-
- ~/virtualenvs
65-
- ~/.m2
66-
- ~/.ivy2
67-
- ~/.sbt
68-
- ~/.bundle
69-
- ~/.go_workspace
70-
- ~/.gradle
71-
- ~/.cache/bower
72-
- ".git"
73-
- ~/.stack
74-
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
75-
- ~/R
76-
# save "default" cache using the key "source-v2-"
77-
- save_cache:
78-
key: source-v2-
79-
paths:
80-
# This is a broad list of cache paths to include many possible development environments
81-
# You can probably delete some of these entries
82-
- vendor/bundle
83-
- ~/.nvm
84-
- ~/.pyenv
85-
- ~/virtualenvs
86-
- ~/.m2
87-
- ~/.ivy2
88-
- ~/.sbt
89-
- ~/.bundle
90-
- ~/.go_workspace
91-
- ~/.gradle
92-
- ~/.cache/bower
93-
- ".git"
94-
- ~/.stack
95-
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
96-
- ~/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
9797
# Teardown
9898
# 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
9999
# Save test results
@@ -141,7 +141,7 @@ commands: # a reusable command with parameters
141141
jobs:
142142
node0:
143143
machine:
144-
image: ubuntu-2004:202201-02
144+
image: ubuntu-2004:2024.01.1
145145
working_directory: ~/OpenAPITools/openapi-generator
146146
shell: /bin/bash --login
147147
environment:
@@ -154,7 +154,7 @@ jobs:
154154
nodeNo: "0"
155155
node1:
156156
machine:
157-
image: ubuntu-2004:202201-02
157+
image: ubuntu-2004:2024.01.1
158158
working_directory: ~/OpenAPITools/openapi-generator
159159
shell: /bin/bash --login
160160
environment:
@@ -167,7 +167,7 @@ jobs:
167167
nodeNo: "1"
168168
node2:
169169
machine:
170-
image: ubuntu-2004:202201-02
170+
image: ubuntu-2004:2024.01.1
171171
working_directory: ~/OpenAPITools/openapi-generator
172172
shell: /bin/bash --login
173173
environment:
@@ -180,7 +180,7 @@ jobs:
180180
nodeNo: "2"
181181
node3:
182182
machine:
183-
image: ubuntu-2004:202201-02
183+
image: ubuntu-2004:2024.01.1
184184
working_directory: ~/OpenAPITools/openapi-generator
185185
shell: /bin/bash --login
186186
environment:
@@ -192,20 +192,6 @@ jobs:
192192
- checkout
193193
- command_build_and_test:
194194
nodeNo: "3"
195-
node4:
196-
docker:
197-
- image: fkrull/multi-python
198-
working_directory: ~/OpenAPITools/openapi-generator
199-
shell: /bin/bash --login
200-
environment:
201-
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
202-
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
203-
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator
204-
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli
205-
steps:
206-
- checkout
207-
- command_docker_build_and_test:
208-
nodeNo: "4"
209195
workflows:
210196
version: 2
211197
build:
@@ -214,4 +200,3 @@ workflows:
214200
- node1
215201
- node2
216202
- node3
217-
- node4

.ddev/web-build/Dockerfile.maven

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
RUN apt update && apt install -y maven

.devcontainer/devcontainer.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
"ghcr.io/devcontainers/features/node:1": {
1010
"version": "lts"
1111
},
12-
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {}
12+
"ghcr.io/devcontainers/features/rust:1": {},
13+
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
14+
"docker-in-docker": {
15+
"version": "latest",
16+
"moby": true,
17+
"dockerDashComposeVersion": "v1"
18+
}
1319
},
1420
// Configure tool-specific properties.
1521
"customizations": {
@@ -20,8 +26,8 @@
2026
"java.configuration.runtimes": [
2127
{
2228
"name": "JavaSE-11",
23-
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms",
24-
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip",
29+
"path": "/usr/local/sdkman/candidates/java/current",
30+
"sources": "/usr/local/sdkman/candidates/java/current/lib/src.zip",
2531
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
2632
"default": true
2733
}

.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/.test/samples.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,6 @@
319319
"Client: Java"
320320
]
321321
},
322-
{
323-
"input": "java-petstore-jersey1.sh",
324-
"matches": [
325-
"Client: Java"
326-
]
327-
},
328322
{
329323
"input": "java-petstore-jersey2-java6.sh",
330324
"matches": [
@@ -584,18 +578,6 @@
584578
"Server: Java"
585579
]
586580
},
587-
{
588-
"input": "jaxrs-jersey1-petstore-server.sh",
589-
"matches": [
590-
"Server: Java"
591-
]
592-
},
593-
{
594-
"input": "jaxrs-jersey1-usetags-petstore-server.sh",
595-
"matches": [
596-
"Server: Java"
597-
]
598-
},
599581
{
600582
"input": "jaxrs-petstore-server-datelib-j8.sh",
601583
"matches": [
@@ -800,12 +782,6 @@
800782
"Client: Python"
801783
]
802784
},
803-
{
804-
"input": "python-server-flask-petstore-python2.sh",
805-
"matches": [
806-
"Server: Python"
807-
]
808-
},
809785
{
810786
"input": "python-server-flask-petstore.sh",
811787
"matches": [

.github/CODEOWNERS

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@ modules/openapi-generator-core/**/* @OpenAPITools/generator-core-team
1212
# No need for auto-generated subdirectories (reduces noise)
1313
docs/ @OpenAPITools/generator-core-team
1414

15-
## Individual interests
16-
.github/**/* @jimschubert
17-
scripts/**/* @jimschubert
18-
website/**/* @jimschubert
19-
bin/ci/**/* @jimschubert
20-
2115
## Build related
2216
CI/**/* @OpenAPITools/build
2317
.mvn/**/* @OpenAPITools/build
2418
bin/utils/**/* @OpenAPITools/build
2519

26-
## Module-specific
27-
modules/openapi-generator-cli/**/* @jimschubert
28-
modules/openapi-generator-gradle-plugin/**/* @jimschubert
29-
modules/openapi-generator-maven-plugin/**/* @jimschubert
30-
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
20+
# cpp-qt-client technical committee
21+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @ravinikam
22+
samples/client/petstore/cpp-qt/**/* @ravinikam
23+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @stkrwork
24+
samples/client/petstore/cpp-qt/**/* @stkrwork
25+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @etherealjoy
26+
samples/client/petstore/cpp-qt/**/* @etherealjoy
27+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @martindelille
28+
samples/client/petstore/cpp-qt/**/* @martindelille
29+
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd
30+
samples/client/petstore/cpp-qt/**/* @muttleyxd

.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://apidevtools.org/swagger-parser/online/))?
13+
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apitools.dev/swagger-parser/online/))?
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: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@
77
- [ ] 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.
88
- [ ] Run the following to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) and update samples:
99
```
10-
./mvnw clean package
11-
./bin/generate-samples.sh
12-
./bin/utils/export_docs_generators.sh
10+
./mvnw clean package || exit
11+
./bin/generate-samples.sh ./bin/configs/*.yaml || exit
12+
./bin/utils/export_docs_generators.sh || exit
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-
- [ ] In case you are adding a new generator, run the following additional script :
20-
```
21-
./bin/utils/ensure-up-to-date.sh
22-
```
23-
Commit all changed files.
24-
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
19+
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
20+
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (upcoming `7.x.0` minor release - breaking changes with fallbacks), `8.0.x` (breaking changes without fallbacks)
2521
- [ ] 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/actions/run-samples/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ inputs:
1515
runs:
1616
using: "composite"
1717
steps:
18-
- run: mvn --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
19-
shell: bash
18+
- run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
19+
shell: bash

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
- package-ecosystem: "maven"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
allow:
12+
- dependency-name: "com.gradle.*"

0 commit comments

Comments
 (0)