forked from loafle/openapi-generator-original
Compare commits
5 Commits
master
...
r-circleci
Author | SHA1 | Date | |
---|---|---|---|
|
1bc19c694e | ||
|
da2401a520 | ||
|
474325a9e5 | ||
|
8e8e16e136 | ||
|
a450c651b9 |
@ -141,7 +141,7 @@ commands: # a reusable command with parameters
|
|||||||
jobs:
|
jobs:
|
||||||
node0:
|
node0:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:2024.01.1
|
image: ubuntu-2004:202201-02
|
||||||
working_directory: ~/OpenAPITools/openapi-generator
|
working_directory: ~/OpenAPITools/openapi-generator
|
||||||
shell: /bin/bash --login
|
shell: /bin/bash --login
|
||||||
environment:
|
environment:
|
||||||
@ -154,7 +154,7 @@ jobs:
|
|||||||
nodeNo: "0"
|
nodeNo: "0"
|
||||||
node1:
|
node1:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:2024.01.1
|
image: ubuntu-2004:202201-02
|
||||||
working_directory: ~/OpenAPITools/openapi-generator
|
working_directory: ~/OpenAPITools/openapi-generator
|
||||||
shell: /bin/bash --login
|
shell: /bin/bash --login
|
||||||
environment:
|
environment:
|
||||||
@ -167,7 +167,7 @@ jobs:
|
|||||||
nodeNo: "1"
|
nodeNo: "1"
|
||||||
node2:
|
node2:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:2024.01.1
|
image: ubuntu-2004:202201-02
|
||||||
working_directory: ~/OpenAPITools/openapi-generator
|
working_directory: ~/OpenAPITools/openapi-generator
|
||||||
shell: /bin/bash --login
|
shell: /bin/bash --login
|
||||||
environment:
|
environment:
|
||||||
@ -180,7 +180,7 @@ jobs:
|
|||||||
nodeNo: "2"
|
nodeNo: "2"
|
||||||
node3:
|
node3:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:2024.01.1
|
image: ubuntu-2004:202201-02
|
||||||
working_directory: ~/OpenAPITools/openapi-generator
|
working_directory: ~/OpenAPITools/openapi-generator
|
||||||
shell: /bin/bash --login
|
shell: /bin/bash --login
|
||||||
environment:
|
environment:
|
||||||
@ -192,6 +192,20 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- command_build_and_test:
|
- command_build_and_test:
|
||||||
nodeNo: "3"
|
nodeNo: "3"
|
||||||
|
node4:
|
||||||
|
machine:
|
||||||
|
image: ubuntu-2004:202201-02
|
||||||
|
working_directory: ~/OpenAPITools/openapi-generator
|
||||||
|
shell: /bin/bash --login
|
||||||
|
environment:
|
||||||
|
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
||||||
|
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
||||||
|
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator
|
||||||
|
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- command_build_and_test:
|
||||||
|
nodeNo: "4"
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
@ -200,3 +214,4 @@ workflows:
|
|||||||
- node1
|
- node1
|
||||||
- node2
|
- node2
|
||||||
- node3
|
- node3
|
||||||
|
- node4
|
||||||
|
@ -1 +0,0 @@
|
|||||||
RUN apt update && apt install -y maven
|
|
@ -26,8 +26,8 @@
|
|||||||
"java.configuration.runtimes": [
|
"java.configuration.runtimes": [
|
||||||
{
|
{
|
||||||
"name": "JavaSE-11",
|
"name": "JavaSE-11",
|
||||||
"path": "/usr/local/sdkman/candidates/java/current",
|
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms",
|
||||||
"sources": "/usr/local/sdkman/candidates/java/current/lib/src.zip",
|
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip",
|
||||||
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
|
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
@ -50,4 +50,4 @@
|
|||||||
// "postCreateCommand": "mvn clean package -DskipTests",
|
// "postCreateCommand": "mvn clean package -DskipTests",
|
||||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
"remoteUser": "vscode"
|
"remoteUser": "vscode"
|
||||||
}
|
}
|
11
.github/CODEOWNERS
vendored
11
.github/CODEOWNERS
vendored
@ -12,11 +12,22 @@ modules/openapi-generator-core/**/* @OpenAPITools/generator-core-team
|
|||||||
# No need for auto-generated subdirectories (reduces noise)
|
# No need for auto-generated subdirectories (reduces noise)
|
||||||
docs/ @OpenAPITools/generator-core-team
|
docs/ @OpenAPITools/generator-core-team
|
||||||
|
|
||||||
|
## Individual interests
|
||||||
|
.github/**/* @jimschubert
|
||||||
|
scripts/**/* @jimschubert
|
||||||
|
website/**/* @jimschubert
|
||||||
|
bin/ci/**/* @jimschubert
|
||||||
|
|
||||||
## Build related
|
## Build related
|
||||||
CI/**/* @OpenAPITools/build
|
CI/**/* @OpenAPITools/build
|
||||||
.mvn/**/* @OpenAPITools/build
|
.mvn/**/* @OpenAPITools/build
|
||||||
bin/utils/**/* @OpenAPITools/build
|
bin/utils/**/* @OpenAPITools/build
|
||||||
|
|
||||||
|
## Module-specific
|
||||||
|
modules/openapi-generator-cli/**/* @jimschubert
|
||||||
|
modules/openapi-generator-gradle-plugin/**/* @jimschubert
|
||||||
|
modules/openapi-generator-maven-plugin/**/* @jimschubert
|
||||||
|
|
||||||
# cpp-qt-client technical committee
|
# cpp-qt-client technical committee
|
||||||
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @ravinikam
|
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @ravinikam
|
||||||
samples/client/petstore/cpp-qt/**/* @ravinikam
|
samples/client/petstore/cpp-qt/**/* @ravinikam
|
||||||
|
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -10,7 +10,7 @@ assignees: ''
|
|||||||
#### Bug Report Checklist
|
#### Bug Report Checklist
|
||||||
|
|
||||||
- [ ] Have you provided a full/minimal spec to reproduce the issue?
|
- [ ] Have you provided a full/minimal spec to reproduce the issue?
|
||||||
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apitools.dev/swagger-parser/online/))?
|
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swagger-parser/online/))?
|
||||||
- [ ] 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?
|
- [ ] 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?
|
||||||
- [ ] Have you searched for related issues/PRs?
|
- [ ] Have you searched for related issues/PRs?
|
||||||
- [ ] What's the actual output vs expected output?
|
- [ ] What's the actual output vs expected output?
|
||||||
|
8
.github/PULL_REQUEST_TEMPLATE.md
vendored
8
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -7,9 +7,9 @@
|
|||||||
- [ ] 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.
|
- [ ] 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.
|
||||||
- [ ] Run the following to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) and update samples:
|
- [ ] Run the following to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) and update samples:
|
||||||
```
|
```
|
||||||
./mvnw clean package || exit
|
./mvnw clean package
|
||||||
./bin/generate-samples.sh ./bin/configs/*.yaml || exit
|
./bin/generate-samples.sh ./bin/configs/*.yaml
|
||||||
./bin/utils/export_docs_generators.sh || exit
|
./bin/utils/export_docs_generators.sh
|
||||||
```
|
```
|
||||||
(For Windows users, please run the script in [Git BASH](https://gitforwindows.org/))
|
(For Windows users, please run the script in [Git BASH](https://gitforwindows.org/))
|
||||||
Commit all changed files.
|
Commit all changed files.
|
||||||
@ -17,5 +17,5 @@
|
|||||||
These must match the expectations made by your contribution.
|
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*`.
|
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*`.
|
||||||
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
|
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
|
||||||
- [ ] 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)
|
- [ ] 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)
|
||||||
- [ ] 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.
|
- [ ] 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.
|
||||||
|
4
.github/workflows/gradle-test.yaml
vendored
4
.github/workflows/gradle-test.yaml
vendored
@ -10,7 +10,7 @@ on:
|
|||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
- 'samples/openapi3/client/petstore/java/**'
|
- 'samples/openapi3/client/petstore/java/**'
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 8.7
|
GRADLE_VERSION: 7.2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -29,8 +29,6 @@ jobs:
|
|||||||
- samples/client/petstore/java/okhttp-gson
|
- samples/client/petstore/java/okhttp-gson
|
||||||
- samples/client/petstore/java/okhttp-gson-group-parameter
|
- samples/client/petstore/java/okhttp-gson-group-parameter
|
||||||
- samples/client/petstore/java/webclient-swagger2
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
- samples/client/petstore/java/native
|
|
||||||
- samples/client/petstore/java/native-jakarta
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
|
4
.github/workflows/linux.yaml
vendored
4
.github/workflows/linux.yaml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
@ -87,7 +87,7 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
1
.github/workflows/maven-plugin-tests.yaml
vendored
1
.github/workflows/maven-plugin-tests.yaml
vendored
@ -39,7 +39,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
|
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||||
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
./mvnw --no-snapshot-updates --quiet clean install -f modules/openapi-generator-maven-plugin/examples/multi-module/sample-external-ref-schema/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
@ -11,7 +11,7 @@ jobs:
|
|||||||
report:
|
report:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dorny/test-reporter@v2
|
- uses: dorny/test-reporter@v1
|
||||||
with:
|
with:
|
||||||
artifact: surefire-test-results
|
artifact: surefire-test-results
|
||||||
name: JUnit Test results
|
name: JUnit Test results
|
||||||
|
37
.github/workflows/openapi-generator.yaml
vendored
37
.github/workflows/openapi-generator.yaml
vendored
@ -140,43 +140,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target
|
path: modules/openapi-generator-cli/target
|
||||||
- name: Delete samples that are entirely generated
|
|
||||||
run: |
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/latest/HelloWorld
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/latest/Tags
|
|
||||||
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/AllOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/FormModels
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/NullReferenceTypes
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/OneOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/Petstore
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/SourceGeneration
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
|
||||||
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/standard2.0/Petstore
|
|
||||||
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/AllOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/AnyOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/FormModels
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/OneOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/Petstore
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate
|
|
||||||
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/AllOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/AnyOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/FormModels
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/OneOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/Petstore
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate
|
|
||||||
- name: Generate samples
|
- name: Generate samples
|
||||||
run: |
|
run: bash bin/generate-samples.sh
|
||||||
bash bin/generate-samples.sh
|
|
||||||
# when a sample is deleted, you have to generate it twice for all files to get created
|
|
||||||
bash bin/generate-samples.sh
|
|
||||||
- name: Verify git status
|
- name: Verify git status
|
||||||
run: |
|
run: |
|
||||||
if [[ "$(git status --porcelain)" != "" ]]; then
|
if [[ "$(git status --porcelain)" != "" ]]; then
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
name: Samples C# .Net 8 FastEndpoints Server
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints/**
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-*/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints/**
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-*/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net 8 FastEndpoints servers
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useApiVersioning
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useAuthentication
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useProblemDetails
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useRecords
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useResponseCaching
|
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
14
.github/workflows/samples-c-libcurl-client.yaml
vendored
14
.github/workflows/samples-c-libcurl-client.yaml
vendored
@ -4,26 +4,14 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/c/**'
|
- 'samples/client/petstore/c/**'
|
||||||
- 'samples/client/petstore/c-useJsonUnformatted/**'
|
|
||||||
- 'samples/client/others/c/bearerAuth/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/c/**'
|
- 'samples/client/petstore/c/**'
|
||||||
- 'samples/client/petstore/c-useJsonUnformatted/**'
|
|
||||||
- 'samples/client/others/c/bearerAuth/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build c libcurl client
|
name: Build c libcurl client
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- 'samples/client/petstore/c/'
|
|
||||||
- 'samples/client/petstore/c-useJsonUnformatted/'
|
|
||||||
- 'samples/client/others/c/bearerAuth/'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
@ -31,7 +19,7 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
|
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: "samples/client/petstore/c"
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
20
.github/workflows/samples-cpp-qt-client.yaml
vendored
20
.github/workflows/samples-cpp-qt-client.yaml
vendored
@ -3,10 +3,10 @@ name: Samples cpp qt client
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "samples/client/petstore/cpp-qt*/**"
|
- 'samples/client/petstore/cpp-qt/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "samples/client/petstore/cpp-qt*/**"
|
- 'samples/client/petstore/cpp-qt/**'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 6.9
|
GRADLE_VERSION: 6.9
|
||||||
@ -16,9 +16,9 @@ jobs:
|
|||||||
name: Build cpp qt client
|
name: Build cpp qt client
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
qt-version:
|
||||||
- samples/client/petstore/cpp-qt
|
- '5.15.2'
|
||||||
- samples/client/petstore/cpp-qt-addDownloadProgress
|
- '6.5.3'
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
@ -27,10 +27,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: "6.7.1"
|
version: ${{ matrix.qt-version }}
|
||||||
target: "desktop"
|
tools: ${{ matrix.tools }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: "samples/client/petstore/cpp-qt"
|
||||||
run: cmake . && cmake --build . --verbose
|
run: cmake . && cmake --build .
|
||||||
|
42
.github/workflows/samples-dotnet-fx.yaml
vendored
42
.github/workflows/samples-dotnet-fx.yaml
vendored
@ -1,42 +0,0 @@
|
|||||||
name: Samples C# .Net Framework Clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net projects
|
|
||||||
runs-on: windows-2019
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/AllOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/AnyOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/FormModels
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/OneOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/Petstore
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate
|
|
||||||
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/AllOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/AnyOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/FormModels
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/OneOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/Petstore
|
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet test Org.OpenAPITools.sln
|
|
38
.github/workflows/samples-dotnet-standard.yaml
vendored
38
.github/workflows/samples-dotnet-standard.yaml
vendored
@ -3,32 +3,40 @@ name: Samples C# .Net Standard Client
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/csharp/generichost/standard2.0/**
|
# build C# API client (netstandard)
|
||||||
- samples/client/petstore/csharp/httpclient/standard2.0/**
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
- samples/client/petstore/csharp/restsharp/standard2.0/**
|
- samples/client/petstore/csharp/*netstandard*/**
|
||||||
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
|
# build C# API client (netstandard with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (netstandard httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/csharp/generichost/standard2.0/**
|
# build C# API client (netstandard)
|
||||||
- samples/client/petstore/csharp/httpclient/standard2.0/**
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
- samples/client/petstore/csharp/restsharp/standard2.0/**
|
- samples/client/petstore/csharp/*netstandard*/**
|
||||||
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
|
# build C# API client (netstandard with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (netstandard httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/csharp/generichost/standard2.0/Petstore/
|
# build C# API client (netstandard)
|
||||||
- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/
|
- samples/client/petstore/csharp/OpenAPIClient/
|
||||||
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
|
||||||
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
# build C# API client (netstandard with ConditionalSerialization)
|
||||||
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
||||||
|
# build C# API client (netstandard httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
44
.github/workflows/samples-dotnet.yaml
vendored
Normal file
44
.github/workflows/samples-dotnet.yaml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Samples C# .Net 8 Clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**
|
||||||
|
- samples/client/petstore/csharp/*net6.0*/**
|
||||||
|
- samples/client/petstore/csharp/*net7.0*/**
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-*latest*/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**
|
||||||
|
- samples/client/petstore/csharp/*net6.0*/**
|
||||||
|
- samples/client/petstore/csharp/*net7.0*/**
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-*latest*/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net7.0-useDateTimeForDate
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0-useDateTimeForDate
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.0.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet test Org.OpenAPITools.sln
|
33
.github/workflows/samples-dotnet6-client-echo-api.yaml
vendored
Normal file
33
.github/workflows/samples-dotnet6-client-echo-api.yaml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Samples C# .Net 6 Client Echo API
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/csharp-restsharp/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/csharp-restsharp/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/csharp-restsharp/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.0.x'
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
dotnet build Org.OpenAPITools.sln
|
||||||
|
dotnet test Org.OpenAPITools.sln
|
53
.github/workflows/samples-dotnet6-client.yaml
vendored
Normal file
53
.github/workflows/samples-dotnet6-client.yaml
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
name: Samples C# .Net 6 Client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/**
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/**
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.0.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
@ -25,7 +25,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
name: Samples C# .Net 8 Client Echo API
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/csharp/restsharp/net8/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/csharp/restsharp/net8/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net clients
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
- name: Run echo server
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
||||||
(cd http-echo-server && npm install && npm start &)
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
dotnet build Org.OpenAPITools.sln
|
|
||||||
dotnet test Org.OpenAPITools.sln
|
|
27
.github/workflows/samples-dotnet8-client.yaml
vendored
27
.github/workflows/samples-dotnet8-client.yaml
vendored
@ -1,27 +0,0 @@
|
|||||||
name: Samples C# .Net 8 Client
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/restsharp/net8/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/restsharp/net8/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net clients
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
|
||||||
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
37
.github/workflows/samples-dotnet8-server.yaml
vendored
37
.github/workflows/samples-dotnet8-server.yaml
vendored
@ -1,37 +0,0 @@
|
|||||||
name: Samples C# .Net 8 Server
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/aspnetcore-8.0/**
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-*/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/aspnetcore-8.0/**
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-*/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net 8 servers
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/server/petstore/aspnetcore-8.0
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-pocoModels
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-project4Models
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-useSwashBuckle
|
|
||||||
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet test Org.OpenAPITools.sln
|
|
45
.github/workflows/samples-dotnet8.yaml
vendored
45
.github/workflows/samples-dotnet8.yaml
vendored
@ -1,45 +0,0 @@
|
|||||||
name: Samples C# .Net 8 Clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/**
|
|
||||||
- samples/client/petstore/csharp/httpclient/net8/**
|
|
||||||
- samples/client/petstore/csharp/restsharp/net8/**
|
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net8/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/**
|
|
||||||
- samples/client/petstore/csharp/httpclient/net8/**
|
|
||||||
- samples/client/petstore/csharp/restsharp/net8/**
|
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net8/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/AllOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/AnyOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/FormModels
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/ManualPetstoreTests
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/ManualSourceGenerationTests
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/NullReferenceTypes
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/OneOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/Petstore
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/SourceGeneration
|
|
||||||
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.0.x'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet test Org.OpenAPITools.sln
|
|
55
.github/workflows/samples-dotnet9.yaml
vendored
55
.github/workflows/samples-dotnet9.yaml
vendored
@ -1,55 +0,0 @@
|
|||||||
name: Samples C# .Net 9 Clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/**
|
|
||||||
- samples/client/petstore/csharp/httpclient/net9/**
|
|
||||||
- samples/client/petstore/csharp/restsharp/net9/**
|
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/**
|
|
||||||
- samples/client/petstore/csharp/httpclient/net9/**
|
|
||||||
- samples/client/petstore/csharp/restsharp/net9/**
|
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/Tags
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/HelloWorld
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/AllOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/FormModels
|
|
||||||
# - samples/client/petstore/csharp/generichost/net9/ManualPetstoreTests
|
|
||||||
# - samples/client/petstore/csharp/generichost/net9/ManualSourceGenerationTests
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/NullReferenceTypes
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/OneOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/Petstore
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/SourceGeneration
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate
|
|
||||||
# restsharp
|
|
||||||
- samples/client/petstore/csharp/restsharp/net9/EnumMappings
|
|
||||||
# httpclient
|
|
||||||
- samples/client/petstore/csharp/httpclient/net9/Petstore
|
|
||||||
# unity
|
|
||||||
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
|
||||||
with:
|
|
||||||
dotnet-version: '9.0.101'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet test Org.OpenAPITools.sln
|
|
6
.github/workflows/samples-elm.yaml
vendored
6
.github/workflows/samples-elm.yaml
vendored
@ -3,12 +3,10 @@ name: Samples Elm
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/samples-elm.yaml
|
|
||||||
- samples/client/petstore/elm/**
|
- samples/client/petstore/elm/**
|
||||||
- samples/openapi3/client/elm/**
|
- samples/openapi3/client/elm/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/samples-elm.yaml
|
|
||||||
- samples/client/petstore/elm/**
|
- samples/client/petstore/elm/**
|
||||||
- samples/openapi3/client/elm/**
|
- samples/openapi3/client/elm/**
|
||||||
jobs:
|
jobs:
|
||||||
@ -24,7 +22,7 @@ jobs:
|
|||||||
- samples/openapi3/client/elm
|
- samples/openapi3/client/elm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: jorelali/setup-elm@v6
|
- uses: jorelali/setup-elm@v5
|
||||||
with:
|
with:
|
||||||
elm-version: 0.19.1
|
elm-version: 0.19.1
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -34,4 +32,4 @@ jobs:
|
|||||||
# An .elm file couldn't be compiled
|
# An .elm file couldn't be compiled
|
||||||
# No .elm files were found
|
# No .elm files were found
|
||||||
# No elm.json file could be found in the root of the working directory
|
# No elm.json file could be found in the root of the working directory
|
||||||
run: elm make $(find . -name "*.elm") --output=/dev/null
|
run: elm make $(find . -name *.elm) --output=/dev/null
|
||||||
|
18
.github/workflows/samples-erlang.yaml
vendored
18
.github/workflows/samples-erlang.yaml
vendored
@ -3,33 +3,33 @@ name: Samples Erlang
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/echo_api/erlang-server/**
|
# comment out due to errors
|
||||||
- samples/server/petstore/erlang-server/**
|
# ===> Compiling src/openapi_pet_handler.erl failed
|
||||||
|
# src/openapi_pet_handler.erl:278: function is_authorized/2 already defined
|
||||||
|
#- samples/server/petstore/erlang-server/**
|
||||||
- samples/client/petstore/erlang-client/**
|
- samples/client/petstore/erlang-client/**
|
||||||
- samples/client/petstore/erlang-proper/**
|
- samples/client/petstore/erlang-proper/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/echo_api/erlang-server/**
|
#- samples/server/petstore/erlang-server/**
|
||||||
- samples/server/petstore/erlang-server/**
|
|
||||||
- samples/client/petstore/erlang-client/**
|
- samples/client/petstore/erlang-client/**
|
||||||
- samples/client/petstore/erlang-proper/**
|
- samples/client/petstore/erlang-proper/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Erlang projects
|
name: Build Erlang projects
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/server/echo_api/erlang-server/
|
#- samples/server/petstore/erlang-server/
|
||||||
- samples/server/petstore/erlang-server/
|
|
||||||
- samples/client/petstore/erlang-client/
|
- samples/client/petstore/erlang-client/
|
||||||
- samples/client/petstore/erlang-proper/
|
- samples/client/petstore/erlang-proper/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: '27'
|
otp-version: '22.2'
|
||||||
rebar3-version: '3.23.0'
|
rebar3-version: '3.14.3'
|
||||||
- run: rebar3 compile
|
- run: rebar3 compile
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
|
31
.github/workflows/samples-go.yaml
vendored
31
.github/workflows/samples-go.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Samples Go
|
name: Samples Go
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -6,17 +6,15 @@ on:
|
|||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
- 'samples/server/petstore/go-chi-server/**'
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
- 'samples/server/others/go-server/no-body-path-params/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
- 'samples/server/petstore/go-chi-server/**'
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
- 'samples/server/others/go-server/no-body-path-params/**'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Go
|
name: Build Go
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -25,7 +23,6 @@ jobs:
|
|||||||
- samples/server/petstore/go-echo-server/
|
- samples/server/petstore/go-echo-server/
|
||||||
- samples/server/petstore/go-api-server/
|
- samples/server/petstore/go-api-server/
|
||||||
- samples/server/petstore/go-chi-server/
|
- samples/server/petstore/go-chi-server/
|
||||||
- samples/server/others/go-server/no-body-path-params/
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
@ -35,27 +32,3 @@ jobs:
|
|||||||
- name: Run test
|
- name: Run test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: go test -mod=mod -v
|
run: go test -mod=mod -v
|
||||||
|
|
||||||
verify:
|
|
||||||
name: Verify generated Go files with Go tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/server/petstore/go-api-server/
|
|
||||||
go-version:
|
|
||||||
- "1.18"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: ${{ matrix.go-version }}
|
|
||||||
- name: Install Dependencies
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
go mod tidy
|
|
||||||
- name: Run tests
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: go test ./samples_tests -v
|
|
3
.github/workflows/samples-haskell.yaml
vendored
3
.github/workflows/samples-haskell.yaml
vendored
@ -5,13 +5,11 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/haskell-yesod/**
|
- samples/server/petstore/haskell-yesod/**
|
||||||
- samples/server/petstore/haskell-servant/**
|
- samples/server/petstore/haskell-servant/**
|
||||||
- samples/server/others/haskell-servant-ping/**
|
|
||||||
- samples/client/petstore/haskell-http-client/**
|
- samples/client/petstore/haskell-http-client/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/haskell-yesod/**
|
- samples/server/petstore/haskell-yesod/**
|
||||||
- samples/server/petstore/haskell-servant/**
|
- samples/server/petstore/haskell-servant/**
|
||||||
- samples/server/others/haskell-servant-ping/**
|
|
||||||
- samples/client/petstore/haskell-http-client/**
|
- samples/client/petstore/haskell-http-client/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -24,7 +22,6 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/haskell-yesod/
|
- samples/server/petstore/haskell-yesod/
|
||||||
- samples/server/petstore/haskell-servant/
|
- samples/server/petstore/haskell-servant/
|
||||||
- samples/server/others/haskell-servant-ping/
|
|
||||||
- samples/client/petstore/haskell-http-client/
|
- samples/client/petstore/haskell-http-client/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -43,4 +43,4 @@ jobs:
|
|||||||
(cd http-echo-server && npm install && npm start &)
|
(cd http-echo-server && npm install && npm start &)
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
name: Java Client (Echo API) JDK17
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/java/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/java/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Java Client JDK17
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/echo_api/java/apache-httpclient
|
|
||||||
- samples/client/echo_api/java/native
|
|
||||||
- samples/client/echo_api/java/feign-gson
|
|
||||||
- samples/client/echo_api/java/resttemplate
|
|
||||||
- samples/client/echo_api/java/resteasy
|
|
||||||
- samples/client/echo_api/java/restclient
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 17
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Setup node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
- name: Run echo server
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
||||||
(cd http-echo-server && npm install && npm start &)
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: mvn clean package --no-transfer-progress
|
|
@ -50,4 +50,4 @@ jobs:
|
|||||||
(cd http-echo-server && npm install && npm start &)
|
(cd http-echo-server && npm install && npm start &)
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
27
.github/workflows/samples-java-client-jdk11.yaml
vendored
27
.github/workflows/samples-java-client-jdk11.yaml
vendored
@ -11,14 +11,8 @@ on:
|
|||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
- samples/client/others/java/okhttp-gson-oneOf/**
|
- samples/client/others/java/okhttp-gson-oneOf/**
|
||||||
- samples/client/others/java/okhttp-gson-oneOf-array/**
|
|
||||||
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
|
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
|
||||||
- samples/client/others/java/webclient-useAbstractionForFiles/**
|
- samples/client/others/java/webclient-useAbstractionForFiles/**
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
|
||||||
- samples/client/others/java/jersey2-oneOf-duplicates/**
|
|
||||||
- samples/client/others/java/jersey2-oneOf-Mixed/**
|
|
||||||
- samples/client/others/java/resttemplate-list-schema-validation/**
|
|
||||||
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
@ -29,14 +23,8 @@ on:
|
|||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
- samples/client/others/java/okhttp-gson-oneOf/**
|
- samples/client/others/java/okhttp-gson-oneOf/**
|
||||||
- samples/client/others/java/okhttp-gson-oneOf-array/**
|
|
||||||
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
|
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
|
||||||
- samples/client/others/java/webclient-useAbstractionForFiles/**
|
- samples/client/others/java/webclient-useAbstractionForFiles/**
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
|
||||||
- samples/client/others/java/jersey2-oneOf-duplicates/**
|
|
||||||
- samples/client/others/java/jersey2-oneOf-Mixed/**
|
|
||||||
- samples/client/others/java/resttemplate-list-schema-validation/**
|
|
||||||
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK11
|
name: Build Java Client JDK11
|
||||||
@ -59,25 +47,18 @@ jobs:
|
|||||||
- samples/client/petstore/java/webclient
|
- samples/client/petstore/java/webclient
|
||||||
- samples/client/petstore/java/webclient-nullable-arrays
|
- samples/client/petstore/java/webclient-nullable-arrays
|
||||||
- samples/client/petstore/java/webclient-swagger2
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
|
||||||
- samples/client/petstore/java/vertx
|
- samples/client/petstore/java/vertx
|
||||||
- samples/client/petstore/java/vertx-no-nullable
|
|
||||||
- samples/client/petstore/java/vertx-supportVertxFuture
|
|
||||||
- samples/client/petstore/java/jersey2-java8-localdatetime
|
- samples/client/petstore/java/jersey2-java8-localdatetime
|
||||||
- samples/client/petstore/java/google-api-client
|
- samples/client/petstore/java/google-api-client
|
||||||
- samples/client/petstore/java/rest-assured
|
- samples/client/petstore/java/rest-assured
|
||||||
- samples/client/petstore/java/rest-assured-jackson
|
- samples/client/petstore/java/rest-assured-jackson
|
||||||
- samples/client/petstore/java/microprofile-rest-client
|
- samples/client/petstore/java/microprofile-rest-client
|
||||||
- samples/client/petstore/java/microprofile-rest-client-mutiny
|
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0
|
- samples/client/petstore/java/microprofile-rest-client-3.0
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson
|
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
|
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
|
|
||||||
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
|
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
|
||||||
- samples/client/petstore/java/apache-httpclient
|
- samples/client/petstore/java/apache-httpclient
|
||||||
- samples/client/petstore/java/feign
|
- samples/client/petstore/java/feign
|
||||||
- samples/client/petstore/java/feign-hc5
|
|
||||||
- samples/client/petstore/java/feign-no-nullable
|
|
||||||
- samples/client/petstore/java/okhttp-gson-awsv4signature
|
- samples/client/petstore/java/okhttp-gson-awsv4signature
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
||||||
- samples/openapi3/client/petstore/java/native
|
- samples/openapi3/client/petstore/java/native
|
||||||
@ -88,14 +69,8 @@ jobs:
|
|||||||
- samples/client/petstore/java/resttemplate-swagger2/
|
- samples/client/petstore/java/resttemplate-swagger2/
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
|
||||||
- samples/client/others/java/okhttp-gson-oneOf/
|
- samples/client/others/java/okhttp-gson-oneOf/
|
||||||
- samples/client/others/java/okhttp-gson-oneOf-array/
|
|
||||||
- samples/client/echo_api/java/okhttp-gson-user-defined-templates/
|
|
||||||
- samples/client/others/java/resttemplate-useAbstractionForFiles/
|
- samples/client/others/java/resttemplate-useAbstractionForFiles/
|
||||||
- samples/client/others/java/webclient-useAbstractionForFiles/
|
- samples/client/others/java/webclient-useAbstractionForFiles/
|
||||||
- samples/client/others/java/jersey2-oneOf-duplicates/
|
|
||||||
- samples/client/others/java/jersey2-oneOf-Mixed/
|
|
||||||
- samples/client/others/java/resttemplate-list-schema-validation/
|
|
||||||
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -112,4 +87,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
34
.github/workflows/samples-java-client-jdk17.yaml
vendored
34
.github/workflows/samples-java-client-jdk17.yaml
vendored
@ -5,14 +5,10 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/java/resttemplate-jakarta/**
|
- samples/client/petstore/java/resttemplate-jakarta/**
|
||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/restclient-*/**
|
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/java/resttemplate-jakarta/**
|
- samples/client/petstore/java/resttemplate-jakarta/**
|
||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/restclient-*/**
|
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK17
|
name: Build Java Client JDK17
|
||||||
@ -24,12 +20,6 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/java/resttemplate-jakarta
|
- samples/client/petstore/java/resttemplate-jakarta
|
||||||
- samples/client/petstore/java/webclient-jakarta
|
- samples/client/petstore/java/webclient-jakarta
|
||||||
- samples/client/petstore/java/restclient
|
|
||||||
- samples/client/petstore/java/restclient-nullable-arrays
|
|
||||||
- samples/client/petstore/java/restclient-swagger2
|
|
||||||
- samples/client/petstore/java/restclient-useSingleRequestParameter
|
|
||||||
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
|
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -44,27 +34,9 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.m2
|
~/.m2
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
- name: Build with Gradle
|
||||||
- name: Cache gradle dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: gradle-caches
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/caches
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
|
||||||
|
|
||||||
- name: Cache gradle wrapper
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: gradle-wrapper
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: gradle clean build
|
||||||
|
44
.github/workflows/samples-java-helidon-v3.yaml
vendored
44
.github/workflows/samples-java-helidon-v3.yaml
vendored
@ -1,44 +0,0 @@
|
|||||||
name: Samples Java Helidon v3
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/java-helidon-client/v3/**
|
|
||||||
- samples/server/petstore/java-helidon-server/v3/**
|
|
||||||
- samples/server/others/java-helidon-server/v3/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/java-helidon-client/v3/**
|
|
||||||
- samples/server/petstore/java-helidon-server/v3/**
|
|
||||||
- samples/server/others/java-helidon-server/v3/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Java Helidon
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/java-helidon-client/v3/mp
|
|
||||||
- samples/client/petstore/java-helidon-client/v3/se
|
|
||||||
- samples/server/petstore/java-helidon-server/v3/mp
|
|
||||||
- samples/server/petstore/java-helidon-server/v3/se
|
|
||||||
- samples/server/others/java-helidon-server/v3/mp-format-test
|
|
||||||
version: [17]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: ${{ matrix.version }}
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: mvn clean package --no-transfer-progress
|
|
45
.github/workflows/samples-java-helidon-v4.yaml
vendored
45
.github/workflows/samples-java-helidon-v4.yaml
vendored
@ -1,45 +0,0 @@
|
|||||||
name: Samples Java Helidon v4
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/**
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/**
|
|
||||||
- samples/server/others/java-helidon-server/v4/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/**
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/**
|
|
||||||
- samples/server/others/java-helidon-server/v4/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Java Helidon
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/mp
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/se
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/mp
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/se
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/se-uac
|
|
||||||
- samples/server/others/java-helidon-server/v4/mp-format-test
|
|
||||||
version: [21]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: ${{ matrix.version }}
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: mvn clean package --no-transfer-progress
|
|
41
.github/workflows/samples-java-helidon.yaml
vendored
Normal file
41
.github/workflows/samples-java-helidon.yaml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: Samples Java Helidon
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java-helidon-client/**
|
||||||
|
- samples/server/petstore/java-helidon-server/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java-helidon-client/**
|
||||||
|
- samples/server/petstore/java-helidon-server/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Helidon
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/java-helidon-client/mp
|
||||||
|
- samples/client/petstore/java-helidon-client/se
|
||||||
|
- samples/server/petstore/java-helidon-server/mp
|
||||||
|
- samples/server/petstore/java-helidon-server/se
|
||||||
|
version: [17]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ matrix.version }}
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
@ -44,4 +44,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
@ -3,19 +3,20 @@ name: Samples Java Server
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
# java-camel is tested locally for the time being
|
||||||
|
#- 'samples/server/petstore/java-camel/**'
|
||||||
- 'samples/server/petstore/java-vertx-web/**'
|
- 'samples/server/petstore/java-vertx-web/**'
|
||||||
- 'samples/server/petstore/java-inflector/**'
|
- 'samples/server/petstore/java-inflector/**'
|
||||||
- 'samples/server/petstore/java-pkmst/**'
|
- 'samples/server/petstore/java-pkmst/**'
|
||||||
# test in circleci instead
|
# test in circleci instead
|
||||||
- 'samples/server/petstore/java-undertow/**'
|
- 'samples/server/petstore/java-undertow/**'
|
||||||
- 'samples/server/petstore/java-microprofile/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
#- 'samples/server/petstore/java-camel/**'
|
||||||
- 'samples/server/petstore/java-vertx-web/**'
|
- 'samples/server/petstore/java-vertx-web/**'
|
||||||
- 'samples/server/petstore/java-inflector/**'
|
- 'samples/server/petstore/java-inflector/**'
|
||||||
- 'samples/server/petstore/java-pkmst/**'
|
- 'samples/server/petstore/java-pkmst/**'
|
||||||
#- 'samples/server/petstore/java-undertow/**'
|
#- 'samples/server/petstore/java-undertow/**'
|
||||||
- 'samples/server/petstore/java-microprofile/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Server
|
name: Build Java Server
|
||||||
@ -25,11 +26,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# servers
|
# servers
|
||||||
|
#- samples/server/petstore/java-camel/
|
||||||
- samples/server/petstore/java-vertx-web/
|
- samples/server/petstore/java-vertx-web/
|
||||||
- samples/server/petstore/java-inflector/
|
- samples/server/petstore/java-inflector/
|
||||||
- samples/server/petstore/java-pkmst/
|
- samples/server/petstore/java-pkmst/
|
||||||
#- samples/server/petstore/java-undertow/
|
#- samples/server/petstore/java-undertow/
|
||||||
- samples/server/petstore/java-microprofile/
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -46,4 +47,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
2
.github/workflows/samples-java-wiremock.yaml
vendored
2
.github/workflows/samples-java-wiremock.yaml
vendored
@ -32,4 +32,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
2
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
2
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
@ -33,4 +33,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
2
.github/workflows/samples-jaxrs.yaml
vendored
2
.github/workflows/samples-jaxrs.yaml
vendored
@ -53,4 +53,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
40
.github/workflows/samples-jdk17.yaml
vendored
40
.github/workflows/samples-jdk17.yaml
vendored
@ -4,36 +4,28 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3/**
|
- samples/openapi3/client/petstore/spring-cloud-3/**
|
||||||
- samples/client/petstore/java-helidon-client/v3/mp/**
|
- samples/client/petstore/java-helidon-client/mp/**
|
||||||
- samples/client/petstore/java-helidon-client/v3/se/**
|
- samples/client/petstore/java-helidon-client/se/**
|
||||||
- samples/client/petstore/spring-http-interface-reactive/**
|
- samples/client/petstore/spring-http-interface-reactive/**
|
||||||
- samples/client/petstore/spring-http-interface/**
|
- samples/client/petstore/spring-http-interface/**
|
||||||
- samples/client/petstore/spring-http-interface-reactive-noResponseEntity/**
|
|
||||||
- samples/client/petstore/spring-http-interface-noResponseEntity/**
|
|
||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/microprofile-rest-client-outer-enum/**
|
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3/**
|
- samples/openapi3/server/petstore/springboot-3/**
|
||||||
- samples/server/petstore/java-camel/**
|
- samples/server/petstore/java-helidon-server/mp/**
|
||||||
- samples/server/petstore/java-helidon-server/v3/mp/**
|
- samples/server/petstore/java-helidon-server/se/**
|
||||||
- samples/server/petstore/java-helidon-server/v3/se/**
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3/**
|
- samples/openapi3/client/petstore/spring-cloud-3/**
|
||||||
- samples/client/petstore/java-helidon-client/v3/mp/**
|
- samples/client/petstore/java-helidon-client/mp/**
|
||||||
- samples/client/petstore/java-helidon-client/v3/se/**
|
- samples/client/petstore/java-helidon-client/se/**
|
||||||
- samples/client/petstore/spring-http-interface-reactive/**
|
- samples/client/petstore/spring-http-interface-reactive/**
|
||||||
- samples/client/petstore/spring-http-interface/**
|
- samples/client/petstore/spring-http-interface/**
|
||||||
- samples/client/petstore/spring-http-interface-reactive-noResponseEntity/**
|
|
||||||
- samples/client/petstore/spring-http-interface-noResponseEntity/**
|
|
||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/microprofile-rest-client-outer-enum/**
|
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3/**
|
- samples/openapi3/server/petstore/springboot-3/**
|
||||||
- samples/server/petstore/java-camel/**
|
- samples/server/petstore/java-helidon-server/mp/**
|
||||||
- samples/server/petstore/java-helidon-server/v3/mp/**
|
- samples/server/petstore/java-helidon-server/se/**
|
||||||
- samples/server/petstore/java-helidon-server/v3/se/**
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build with JDK17
|
name: Build with JDK17
|
||||||
@ -44,19 +36,17 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3
|
- samples/openapi3/client/petstore/spring-cloud-3
|
||||||
- samples/client/petstore/java-helidon-client/v3/mp/
|
- samples/client/petstore/java-helidon-client/mp
|
||||||
- samples/client/petstore/java-helidon-client/v3/se
|
- samples/client/petstore/java-helidon-client/se
|
||||||
- samples/client/petstore/spring-http-interface-reactive
|
- samples/client/petstore/spring-http-interface-reactive
|
||||||
- samples/client/petstore/spring-http-interface
|
- samples/client/petstore/spring-http-interface
|
||||||
- samples/client/petstore/spring-http-interface-reactive-noResponseEntity
|
|
||||||
- samples/client/petstore/spring-http-interface-noResponseEntity
|
|
||||||
- samples/client/petstore/java/webclient-jakarta
|
- samples/client/petstore/java/webclient-jakarta
|
||||||
- samples/client/petstore/java/microprofile-rest-client-outer-enum
|
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3
|
||||||
- samples/server/petstore/java-camel/
|
- samples/server/petstore/java-helidon-server/mp
|
||||||
- samples/server/petstore/java-helidon-server/v3/mp/
|
- samples/server/petstore/java-helidon-server/se
|
||||||
- samples/server/petstore/java-helidon-server/v3/se
|
- samples/client/petstore/spring-http-interface-reactive
|
||||||
|
- samples/client/petstore/spring-http-interface
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -73,4 +63,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
49
.github/workflows/samples-jdk21.yaml
vendored
49
.github/workflows/samples-jdk21.yaml
vendored
@ -1,49 +0,0 @@
|
|||||||
name: Samples JDK21
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
# clients
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/mp/**
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/se/**
|
|
||||||
# servers
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/mp/**
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/se/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
# clients
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/mp/**
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/se/**
|
|
||||||
# servers
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/mp/**
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/se/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build with JDK21
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/mp/
|
|
||||||
- samples/client/petstore/java-helidon-client/v4/se/
|
|
||||||
# servers
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/mp/
|
|
||||||
- samples/server/petstore/java-helidon-server/v4/se/
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 21
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: mvn clean package --no-transfer-progress
|
|
4
.github/workflows/samples-julia.yaml
vendored
4
.github/workflows/samples-julia.yaml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: 1.8
|
version: 1.8
|
||||||
arch: x64
|
arch: x64
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
# Using develop mode to install package so that it is easier to modify the package test files
|
# Using develop mode to install package so that it is easier to modify the package test files
|
||||||
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
|
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
|
||||||
cd ~/.julia/dev/OpenAPI
|
cd ~/.julia/dev/OpenAPI
|
||||||
git checkout v0.2.0
|
git checkout v0.1.14
|
||||||
cd $currdir
|
cd $currdir
|
||||||
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
||||||
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
||||||
|
9
.github/workflows/samples-kotlin-client.yaml
vendored
9
.github/workflows/samples-kotlin-client.yaml
vendored
@ -10,6 +10,9 @@ on:
|
|||||||
- 'samples/client/petstore/kotlin*/**'
|
- 'samples/client/petstore/kotlin*/**'
|
||||||
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 6.9
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Kotlin client
|
name: Build Kotlin client
|
||||||
@ -20,10 +23,8 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# client
|
# client
|
||||||
- samples/client/petstore/kotlin
|
- samples/client/petstore/kotlin
|
||||||
- samples/client/petstore/kotlin-explicit
|
|
||||||
- samples/client/petstore/kotlin-gson
|
- samples/client/petstore/kotlin-gson
|
||||||
- samples/client/petstore/kotlin-jackson
|
- samples/client/petstore/kotlin-jackson
|
||||||
- samples/client/petstore/kotlin-model-prefix-type-mappings
|
|
||||||
# needs Android configured
|
# needs Android configured
|
||||||
#- samples/client/petstore/kotlin-json-request-string
|
#- samples/client/petstore/kotlin-json-request-string
|
||||||
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
|
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
|
||||||
@ -63,6 +64,7 @@ jobs:
|
|||||||
- samples/client/echo_api/kotlin-jvm-spring-3-webclient
|
- samples/client/echo_api/kotlin-jvm-spring-3-webclient
|
||||||
- samples/client/petstore/kotlin-jvm-spring-3-restclient
|
- samples/client/petstore/kotlin-jvm-spring-3-restclient
|
||||||
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
||||||
|
- samples/client/petstore/kotlin-spring-cloud
|
||||||
- samples/client/petstore/kotlin-name-parameter-mappings
|
- samples/client/petstore/kotlin-name-parameter-mappings
|
||||||
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
||||||
steps:
|
steps:
|
||||||
@ -70,7 +72,7 @@ jobs:
|
|||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
@ -82,6 +84,7 @@ jobs:
|
|||||||
- name: Install Gradle wrapper
|
- name: Install Gradle wrapper
|
||||||
uses: eskatos/gradle-command-action@v3
|
uses: eskatos/gradle-command-action@v3
|
||||||
with:
|
with:
|
||||||
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -7,7 +7,8 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/kotlin**
|
- samples/client/echo_api/kotlin**
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 7.4
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Kotlin Client JDK17
|
name: Build Kotlin Client JDK17
|
||||||
@ -18,8 +19,6 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
||||||
- samples/client/echo_api/kotlin-model-prefix-type-mappings
|
|
||||||
- samples/client/echo_api/kotlin-jvm-okhttp
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -37,6 +36,7 @@ jobs:
|
|||||||
- name: Install Gradle wrapper
|
- name: Install Gradle wrapper
|
||||||
uses: eskatos/gradle-command-action@v3
|
uses: eskatos/gradle-command-action@v3
|
||||||
with:
|
with:
|
||||||
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
|
@ -1,48 +1,34 @@
|
|||||||
name: Samples Kotlin server (jdk17)
|
name: Samples Kotlin server
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
branches:
|
||||||
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
- 'samples/server/petstore/kotlin-server/**'
|
- 'samples/server/petstore/kotlin-server/javalin/**'
|
||||||
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
|
||||||
- 'samples/server/petstore/kotlin-springboot-*/**'
|
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
# - samples/server/petstore/kotlin-spring-default/**
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
- 'samples/server/petstore/kotlin-server/**'
|
- 'samples/server/petstore/kotlin-server/javalin/**'
|
||||||
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
|
||||||
- 'samples/server/petstore/kotlin-springboot-*/**'
|
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
# - samples/server/petstore/kotlin-spring-default/**
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: '8.10'
|
GRADLE_VERSION: 7.4
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Kotlin server (jdk17)
|
name: Build Kotlin server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
|
||||||
- samples/server/petstore/kotlin-springboot-3
|
- samples/server/petstore/kotlin-springboot-3
|
||||||
- samples/server/petstore/kotlin-springboot-delegate-nodefaults
|
- samples/server/petstore/kotlin-springboot-request
|
||||||
- samples/server/petstore/kotlin-springboot-request-cookie
|
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec-mutiny
|
|
||||||
- samples/server/petstore/kotlin-server/javalin
|
- samples/server/petstore/kotlin-server/javalin
|
||||||
- samples/server/petstore/kotlin-server/javalin-6
|
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
|
||||||
- samples/server/petstore/kotlin-misk
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
# - samples/server/petstore/kotlin-spring-default/
|
# - samples/server/petstore/kotlin-spring-default/
|
||||||
steps:
|
steps:
|
||||||
@ -67,4 +53,4 @@ jobs:
|
|||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
name: Samples Kotlin server (jdk21)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'samples/server/petstore/kotlin-server/**'
|
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'samples/server/petstore/kotlin-server/**'
|
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
|
||||||
|
|
||||||
env:
|
|
||||||
GRADLE_VERSION: '8.10'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Kotlin server (jdk21)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/server/petstore/kotlin-server/javalin-6
|
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
|
||||||
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
|
||||||
- samples/server/petstore/kotlin-misk
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 21
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Install Gradle wrapper
|
|
||||||
uses: eskatos/gradle-command-action@v3
|
|
||||||
with:
|
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
|
||||||
build-root-directory: ${{ matrix.sample }}
|
|
||||||
arguments: wrapper
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: ./gradlew build -x test
|
|
19
.github/workflows/samples-kotlin-server.yaml
vendored
19
.github/workflows/samples-kotlin-server.yaml
vendored
@ -1,27 +1,25 @@
|
|||||||
name: Samples Kotlin server (jdk8)
|
name: Samples Kotlin server
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
branches:
|
||||||
- samples/server/others/kotlin-server/jaxrs-spec/**
|
- samples/server/others/kotlin-server/jaxrs-spec/**
|
||||||
- 'samples/server/petstore/kotlin*/**'
|
- 'samples/server/petstore/kotlin*/**'
|
||||||
- 'samples/server/others/kotlin-server/jaxrs-spec-array-response/**'
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
#- samples/server/petstore/kotlin-spring-default/**
|
#- samples/server/petstore/kotlin-spring-default/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/others/kotlin-server/jaxrs-spec/**
|
- samples/server/others/kotlin-server/jaxrs-spec/**
|
||||||
- 'samples/server/petstore/kotlin*/**'
|
- 'samples/server/petstore/kotlin*/**'
|
||||||
- 'samples/server/others/kotlin-server/jaxrs-spec-array-response/**'
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
# - samples/server/petstore/kotlin-spring-default/**
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 7.6.4
|
GRADLE_VERSION: 6.9
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Kotlin server (jdk8)
|
name: Build Kotlin server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -29,26 +27,19 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-springboot
|
- samples/server/petstore/kotlin-springboot
|
||||||
- samples/server/petstore/kotlin-springboot-multipart-request-model
|
|
||||||
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
||||||
- samples/server/petstore/kotlin-springboot-delegate
|
- samples/server/petstore/kotlin-springboot-delegate
|
||||||
- samples/server/petstore/kotlin-springboot-modelMutable
|
- samples/server/petstore/kotlin-springboot-modelMutable
|
||||||
- samples/server/petstore/kotlin-springboot-reactive
|
- samples/server/petstore/kotlin-springboot-reactive
|
||||||
- samples/server/petstore/kotlin-springboot-reactive-without-flow
|
|
||||||
- samples/server/petstore/kotlin-springboot-source-swagger1
|
- samples/server/petstore/kotlin-springboot-source-swagger1
|
||||||
- samples/server/petstore/kotlin-springboot-source-swagger2
|
- samples/server/petstore/kotlin-springboot-source-swagger2
|
||||||
- samples/server/petstore/kotlin-springboot-springfox
|
- samples/server/petstore/kotlin-springboot-springfox
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec-mutiny
|
- samples/server/petstore/kotlin-server/jaxrs-spec-mutiny
|
||||||
- samples/server/petstore/kotlin-server-modelMutable
|
- samples/server/petstore/kotlin-server-modelMutable
|
||||||
- samples/server/petstore/kotlin-server/javalin
|
- samples/server/petstore/kotlin-server/javalin
|
||||||
- samples/server/others/kotlin-server/jaxrs-spec
|
- samples/server/others/kotlin-server/jaxrs-spec
|
||||||
- samples/server/others/kotlin-server/jaxrs-spec-array-response
|
|
||||||
- samples/server/petstore/kotlin-spring-cloud
|
|
||||||
- samples/server/petstore/kotlin-misk
|
|
||||||
- samples/server/petstore/kotlin-misk-config
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
#- samples/server/petstore/kotlin-spring-default
|
#- samples/server/petstore/kotlin-spring-default
|
||||||
# no build.gradle file
|
# no build.gradle file
|
||||||
@ -75,4 +66,4 @@ jobs:
|
|||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
|
45
.github/workflows/samples-kotlin-wiremock.yaml
vendored
45
.github/workflows/samples-kotlin-wiremock.yaml
vendored
@ -1,45 +0,0 @@
|
|||||||
name: Samples Kotlin WireMock
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- samples/server/petstore/kotlin-wiremock*/**
|
|
||||||
- samples/server/echo_api/kotlin-wiremock/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/kotlin-wiremock*/**
|
|
||||||
- samples/server/echo_api/kotlin-wiremock/**
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Kotlin WireMock
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- samples/server/petstore/kotlin-wiremock
|
|
||||||
- samples/server/petstore/kotlin-wiremock-responses
|
|
||||||
- samples/server/echo_api/kotlin-wiremock
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 11
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Install Gradle wrapper
|
|
||||||
uses: eskatos/gradle-command-action@v3
|
|
||||||
with:
|
|
||||||
build-root-directory: ${{ matrix.sample }}
|
|
||||||
arguments: wrapper
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: ./gradlew build -x test
|
|
31
.github/workflows/samples-ocaml.yaml
vendored
31
.github/workflows/samples-ocaml.yaml
vendored
@ -1,31 +0,0 @@
|
|||||||
name: Samples OCaml
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'samples/client/petstore/ocaml/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'samples/client/petstore/ocaml/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build OCaml
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- 'samples/client/petstore/ocaml/'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set-up OCaml
|
|
||||||
uses: ocaml/setup-ocaml@v3
|
|
||||||
with:
|
|
||||||
ocaml-compiler: 5
|
|
||||||
- name: Install
|
|
||||||
run: opam install . --deps-only --with-test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
- name: Build
|
|
||||||
run: opam exec -- dune build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
32
.github/workflows/samples-php7.yaml
vendored
Normal file
32
.github/workflows/samples-php7.yaml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Samples PHP 7.x
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/php-laravel/lib/
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/php-laravel/lib/
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build PHP projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/php-laravel/lib/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup PHP with tools
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '7.4'
|
||||||
|
tools: php-cs-fixer, phpunit
|
||||||
|
- name: composer install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: composer install
|
||||||
|
- name: phpunit
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: vendor/bin/phpunit
|
13
.github/workflows/samples-php8.yaml
vendored
13
.github/workflows/samples-php8.yaml
vendored
@ -4,13 +4,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
- samples/server/petstore/php-flight/**
|
|
||||||
- samples/server/petstore/php-laravel/**
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
- samples/server/petstore/php-flight/**
|
|
||||||
- samples/server/petstore/php-laravel/**
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build PHP projects
|
name: Build PHP projects
|
||||||
@ -18,22 +14,15 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php:
|
|
||||||
- "8.1"
|
|
||||||
- "8.2"
|
|
||||||
- "8.3"
|
|
||||||
- "8.4"
|
|
||||||
sample:
|
sample:
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
||||||
- samples/server/petstore/php-flight/
|
|
||||||
- samples/server/petstore/php-laravel/
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup PHP with tools
|
- name: Setup PHP with tools
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: "${{ matrix.php }}"
|
php-version: '8.1'
|
||||||
tools: php-cs-fixer, phpunit
|
tools: php-cs-fixer, phpunit
|
||||||
- name: composer install
|
- name: composer install
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
|
3
.github/workflows/samples-postman.yaml
vendored
3
.github/workflows/samples-postman.yaml
vendored
@ -4,7 +4,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/schema/postman-collection/python/**
|
- samples/schema/postman-collection/python/**
|
||||||
- samples/schema/postman-collection/postman.json
|
|
||||||
- .github/workflows/samples-postman.yaml
|
- .github/workflows/samples-postman.yaml
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -17,7 +16,7 @@ jobs:
|
|||||||
# schema
|
# schema
|
||||||
- samples/schema/postman-collection
|
- samples/schema/postman-collection
|
||||||
python-version:
|
python-version:
|
||||||
- "3.12"
|
- "3.11"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
39
.github/workflows/samples-protobuf.yaml
vendored
39
.github/workflows/samples-protobuf.yaml
vendored
@ -1,39 +0,0 @@
|
|||||||
name: Samples Protobuf
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- .github/workflows/samples-protobuf.yaml
|
|
||||||
- samples/config/petstore/protobuf-schema/**
|
|
||||||
- samples/config/petstore/protobuf-schema-config/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- .github/workflows/samples-protobuf.yaml
|
|
||||||
- samples/config/petstore/protobuf-schema/**
|
|
||||||
- samples/config/petstore/protobuf-schema-config/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Protobuf Client
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- 'samples/config/petstore/protobuf-schema/'
|
|
||||||
- 'samples/config/petstore/protobuf-schema-config/'
|
|
||||||
- 'samples/config/petstore/protobuf-schema-config-complex/'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install Protocol Buffers Compiler
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y protobuf-compiler
|
|
||||||
- name: Generate Protobuf Schema
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
mkdir out
|
|
||||||
protoc --proto_path=. --cpp_out=out models/*.proto services/*.proto
|
|
||||||
- name: Verify Generated Files
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
ls -l out/models
|
|
||||||
ls -l out/services
|
|
@ -4,7 +4,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/python/**
|
- samples/client/echo_api/python/**
|
||||||
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/**
|
|
||||||
- .github/workflows/samples-python-client-echo-api.yaml
|
- .github/workflows/samples-python-client-echo-api.yaml
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -18,11 +17,11 @@ jobs:
|
|||||||
- samples/client/echo_api/python
|
- samples/client/echo_api/python
|
||||||
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
|
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
|
||||||
python-version:
|
python-version:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
|
||||||
- "3.13"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
@ -42,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: python -m unittest discover
|
run: python -m pytest
|
||||||
|
|
||||||
- name: mypy
|
- name: mypy
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
|
@ -15,11 +15,11 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
|
||||||
- "3.13"
|
|
||||||
sample:
|
sample:
|
||||||
- samples/openapi3/client/petstore/python-aiohttp
|
- samples/openapi3/client/petstore/python-aiohttp
|
||||||
- samples/openapi3/client/petstore/python
|
- samples/openapi3/client/petstore/python
|
||||||
|
@ -17,11 +17,11 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/python-pydantic-v1/
|
- samples/client/echo_api/python-pydantic-v1/
|
||||||
python-version:
|
python-version:
|
||||||
|
- "3.7"
|
||||||
- "3.8"
|
- "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
@ -15,11 +15,11 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
|
- "3.7"
|
||||||
- "3.8"
|
- "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
|
||||||
sample:
|
sample:
|
||||||
- samples/openapi3/client/petstore/python-pydantic-v1-aiohttp
|
- samples/openapi3/client/petstore/python-pydantic-v1-aiohttp
|
||||||
- samples/openapi3/client/petstore/python-pydantic-v1
|
- samples/openapi3/client/petstore/python-pydantic-v1
|
||||||
|
2
.github/workflows/samples-python-server.yaml
vendored
2
.github/workflows/samples-python-server.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.7'
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: make test-all
|
run: make test-all
|
||||||
|
2
.github/workflows/samples-rust.yaml
vendored
2
.github/workflows/samples-rust.yaml
vendored
@ -34,4 +34,4 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: cargo build --all-targets --all-features
|
run: cargo build
|
||||||
|
38
.github/workflows/samples-scala-jdk8.yaml
vendored
38
.github/workflows/samples-scala-jdk8.yaml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: Samples Scala/sbt (JDK8)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'samples/server/petstore/scala-finch/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'samples/server/petstore/scala-finch/**'
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build scala-finch servers
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# servers
|
|
||||||
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 8
|
|
||||||
- name: Setup sbt launcher
|
|
||||||
uses: sbt/setup-sbt@v1
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.ivy2
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/build.sbt') }}
|
|
||||||
- name: Build and test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: sbt -v +test
|
|
12
.github/workflows/samples-scala.yaml
vendored
12
.github/workflows/samples-scala.yaml
vendored
@ -20,28 +20,24 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/java/okhttp-gson
|
- 'samples/client/petstore/java/okhttp-gson'
|
||||||
- samples/client/petstore/scalaz
|
- samples/client/petstore/scalaz
|
||||||
- samples/client/petstore/scala-pekko
|
- samples/client/petstore/scala-pekko
|
||||||
- samples/client/petstore/scala-http4s
|
#- samples/client/petstore/scala-sttp # won't pass while the same tests in circleci pass
|
||||||
#- samples/client/petstore/scala-sttp
|
|
||||||
#- samples/client/petstore/scala-sttp-circe
|
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/scala-lagom-server
|
- samples/server/petstore/scala-lagom-server
|
||||||
- samples/server/petstore/scala-play-server
|
- samples/server/petstore/scala-play-server
|
||||||
- samples/server/petstore/scala-akka-http-server
|
- samples/server/petstore/scala-akka-http-server
|
||||||
- samples/server/petstore/scala-pekko-http-server
|
- samples/server/petstore/scala-pekko-http-server
|
||||||
- samples/server/petstore/scalatra
|
- samples/server/petstore/scalatra
|
||||||
|
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
||||||
- samples/server/petstore/scala-http4s-server
|
- samples/server/petstore/scala-http4s-server
|
||||||
- samples/server/petstore/scala-cask
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 8
|
||||||
- name: Setup sbt launcher
|
|
||||||
uses: sbt/setup-sbt@v1
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
|
16
.github/workflows/samples-spring-jdk17.yaml
vendored
16
.github/workflows/samples-spring-jdk17.yaml
vendored
@ -4,21 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
|
||||||
- samples/server/petstore/springboot-api-response-examples
|
|
||||||
- samples/server/petstore/springboot-lombok-data
|
|
||||||
- samples/server/petstore/springboot-lombok-tostring
|
|
||||||
- samples/server/petstore/springboot-file-delegate-optional
|
|
||||||
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
|
||||||
- samples/server/petstore/springboot-api-response-examples
|
|
||||||
- samples/server/petstore/springboot-lombok-data
|
- samples/server/petstore/springboot-lombok-data
|
||||||
- samples/server/petstore/springboot-lombok-tostring
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
- samples/server/petstore/springboot-file-delegate-optional
|
|
||||||
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Spring (JDK17)
|
name: Build Java Spring (JDK17)
|
||||||
@ -30,12 +20,8 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
|
||||||
- samples/server/petstore/springboot-api-response-examples
|
|
||||||
- samples/server/petstore/springboot-lombok-data
|
- samples/server/petstore/springboot-lombok-data
|
||||||
- samples/server/petstore/springboot-lombok-tostring
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
- samples/server/petstore/springboot-file-delegate-optional
|
|
||||||
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -52,4 +38,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
40
.github/workflows/samples-spring.yaml
vendored
40
.github/workflows/samples-spring.yaml
vendored
@ -25,41 +25,39 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/spring-cloud
|
- samples/client/petstore/spring-cloud
|
||||||
- samples/client/petstore/spring-cloud-auth
|
|
||||||
- samples/client/petstore/spring-cloud-date-time
|
|
||||||
- samples/client/petstore/spring-cloud-deprecated
|
|
||||||
- samples/client/petstore/spring-cloud-tags
|
|
||||||
- samples/openapi3/client/petstore/spring-cloud
|
- samples/openapi3/client/petstore/spring-cloud
|
||||||
- samples/openapi3/client/petstore/spring-cloud-async
|
- samples/client/petstore/spring-cloud-date-time
|
||||||
- samples/openapi3/client/petstore/spring-cloud-date-time
|
- samples/openapi3/client/petstore/spring-cloud-date-time
|
||||||
- samples/openapi3/client/petstore/spring-cloud-http-basic
|
- samples/openapi3/client/petstore/spring-cloud-http-basic
|
||||||
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
|
||||||
- samples/openapi3/client/petstore/spring-stubs
|
- samples/openapi3/client/petstore/spring-stubs
|
||||||
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-async
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
||||||
|
- samples/client/petstore/spring-cloud-tags
|
||||||
|
- samples/client/petstore/spring-cloud-deprecated
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot
|
|
||||||
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
|
||||||
- samples/openapi3/server/petstore/springboot-delegate
|
|
||||||
- samples/openapi3/server/petstore/spring-boot-oneof
|
|
||||||
- samples/server/petstore/spring-boot-nullable-set
|
|
||||||
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
|
- samples/openapi3/server/petstore/springboot
|
||||||
- samples/server/petstore/springboot-beanvalidation
|
- samples/server/petstore/springboot-beanvalidation
|
||||||
- samples/server/petstore/springboot-builtin-validation
|
- samples/server/petstore/springboot-useoptional
|
||||||
- samples/server/petstore/springboot-delegate
|
|
||||||
- samples/server/petstore/springboot-delegate-no-response-entity
|
|
||||||
- samples/server/petstore/springboot-implicitHeaders
|
|
||||||
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
|
|
||||||
- samples/server/petstore/springboot-lombok-data
|
|
||||||
- samples/server/petstore/springboot-reactive
|
- samples/server/petstore/springboot-reactive
|
||||||
- samples/server/petstore/springboot-reactive-noResponseEntity
|
- samples/server/petstore/springboot-reactive-noResponseEntity
|
||||||
|
- samples/server/petstore/springboot-implicitHeaders
|
||||||
|
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
||||||
|
- samples/server/petstore/springboot-delegate
|
||||||
|
- samples/server/petstore/springboot-delegate-no-response-entity
|
||||||
|
- samples/openapi3/server/petstore/springboot-delegate
|
||||||
|
- samples/server/petstore/spring-boot-nullable-set
|
||||||
|
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
|
- samples/openapi3/server/petstore/spring-boot-oneof
|
||||||
|
- samples/server/petstore/springboot-virtualan
|
||||||
|
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
|
||||||
- samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8
|
- samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8
|
||||||
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
||||||
- samples/server/petstore/springboot-spring-pageable-without-j8
|
- samples/server/petstore/springboot-spring-pageable-without-j8
|
||||||
- samples/server/petstore/springboot-spring-pageable
|
- samples/server/petstore/springboot-spring-pageable
|
||||||
- samples/server/petstore/springboot-spring-provide-args
|
- samples/server/petstore/springboot-spring-provide-args
|
||||||
- samples/server/petstore/springboot-useoptional
|
- samples/server/petstore/springboot-lombok-data
|
||||||
- samples/server/petstore/springboot-virtualan
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@ -76,4 +74,4 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package
|
||||||
|
50
.github/workflows/samples-swift.yaml
vendored
Normal file
50
.github/workflows/samples-swift.yaml
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: Samples Swift
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/swift5/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/swift5/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest]
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/swift5/alamofireLibrary
|
||||||
|
- samples/client/petstore/swift5/anycodableLibrary
|
||||||
|
- samples/client/petstore/swift5/asyncAwaitLibrary
|
||||||
|
- samples/client/petstore/swift5/combineLibrary
|
||||||
|
- samples/client/petstore/swift5/default
|
||||||
|
- samples/client/petstore/swift5/deprecated
|
||||||
|
- samples/client/petstore/swift5/frozenEnums
|
||||||
|
- samples/client/petstore/swift5/nonPublicApi
|
||||||
|
- samples/client/petstore/swift5/objcCompatible
|
||||||
|
- samples/client/petstore/swift5/oneOf
|
||||||
|
- samples/client/petstore/swift5/promisekitLibrary
|
||||||
|
- samples/client/petstore/swift5/readonlyProperties
|
||||||
|
- samples/client/petstore/swift5/resultLibrary
|
||||||
|
- samples/client/petstore/swift5/rxswiftLibrary
|
||||||
|
- samples/client/petstore/swift5/urlsessionLibrary
|
||||||
|
- samples/client/petstore/swift5/validation
|
||||||
|
# NOTE: disabled as vaporLibrary doesnt build when adding this CI config
|
||||||
|
#- samples/client/petstore/swift5/vaporLibrary
|
||||||
|
- samples/client/petstore/swift5/x-swift-hashable
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
sample: samples/client/petstore/swift5/alamofireLibrary
|
||||||
|
name: Build Swift samples
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: swift-actions/setup-swift@v1
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
with:
|
||||||
|
swift-version: '5'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: swift build
|
44
.github/workflows/samples-swift5.yaml
vendored
44
.github/workflows/samples-swift5.yaml
vendored
@ -1,44 +0,0 @@
|
|||||||
name: Samples Swift 5
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/swift5/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/swift5/**
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [macos-latest]
|
|
||||||
sample:
|
|
||||||
- samples/client/petstore/swift5/alamofireLibrary
|
|
||||||
- samples/client/petstore/swift5/asyncAwaitLibrary
|
|
||||||
- samples/client/petstore/swift5/combineLibrary
|
|
||||||
- samples/client/petstore/swift5/default
|
|
||||||
- samples/client/petstore/swift5/objcCompatible
|
|
||||||
- samples/client/petstore/swift5/oneOf
|
|
||||||
- samples/client/petstore/swift5/promisekitLibrary
|
|
||||||
- samples/client/petstore/swift5/resultLibrary
|
|
||||||
- samples/client/petstore/swift5/rxswiftLibrary
|
|
||||||
- samples/client/petstore/swift5/urlsessionLibrary
|
|
||||||
- samples/client/petstore/swift5/validation
|
|
||||||
# NOTE: disabled as vaporLibrary doesnt build when adding this CI config
|
|
||||||
#- samples/client/petstore/swift5/vaporLibrary
|
|
||||||
include:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
sample: samples/client/petstore/swift5/alamofireLibrary
|
|
||||||
name: Build Swift samples
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: swift-actions/setup-swift@v2
|
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
with:
|
|
||||||
swift-version: '5'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: swift build
|
|
@ -1,37 +0,0 @@
|
|||||||
name: TypeScript Client (Encoding / Decoding Test)
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/others/typescript/encode-decode/**
|
|
||||||
- .github/workflows/samples-typescript-encode-decode.yaml
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Test TypeScript Encoding / Decoding
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/others/typescript/encode-decode/test
|
|
||||||
node-version:
|
|
||||||
- 16
|
|
||||||
- 18
|
|
||||||
- 20
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: Install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
npm run preinstall
|
|
||||||
npm i
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: npm test
|
|
@ -1,37 +0,0 @@
|
|||||||
name: TypeScript Node Client (Encoding / Decoding Test)
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/others/typescript-node/encode-decode/**
|
|
||||||
- .github/workflows/samples-typescript-node-encode-decode.yaml
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Test TypeScript Node Encoding / Decoding
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/others/typescript-node/encode-decode/test
|
|
||||||
node-version:
|
|
||||||
- 16
|
|
||||||
- 18
|
|
||||||
- 20
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: Install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
npm run preinstall
|
|
||||||
npm i
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: npm test
|
|
@ -1,26 +0,0 @@
|
|||||||
name: TypeScript clients type checks
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/**
|
|
||||||
- bin/ts-typecheck-all.sh
|
|
||||||
- .github/workflows/samples-typescript-typecheck.yaml
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Typecheck TypeScript samples
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
node-version:
|
|
||||||
- 20
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: Run type checker
|
|
||||||
run: ./bin/ts-typecheck-all.sh
|
|
2
.github/workflows/windows.yaml
vendored
2
.github/workflows/windows.yaml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
.mvn/.gradle-enterprise/
|
.mvn/.gradle-enterprise/
|
||||||
.mvn/.develocity/
|
|
||||||
.scannerwork/
|
.scannerwork/
|
||||||
.vscode
|
.vscode
|
||||||
*.iml
|
*.iml
|
||||||
@ -86,11 +85,6 @@ samples/client/petstore/cpp-restsdk/CMakeCache.txt
|
|||||||
samples/client/petstore/cpp-restsdk/CMakeFiles/
|
samples/client/petstore/cpp-restsdk/CMakeFiles/
|
||||||
samples/client/petstore/cpp-restsdk/Makefile
|
samples/client/petstore/cpp-restsdk/Makefile
|
||||||
samples/client/petstore/cpp-restsdk/cmake_install.cmake
|
samples/client/petstore/cpp-restsdk/cmake_install.cmake
|
||||||
samples/client/petstore/cpp-restsdk/client/CMakeFiles
|
|
||||||
samples/client/petstore/cpp-restsdk/client/Makefile
|
|
||||||
samples/client/petstore/cpp-restsdk/client/cmake_install.cmake
|
|
||||||
samples/client/petstore/cpp-restsdk/client/CppRestPetstoreClientConfig.cmake
|
|
||||||
samples/client/petstore/cpp-restsdk/client/CMakeCache.txt
|
|
||||||
|
|
||||||
#Java/Android
|
#Java/Android
|
||||||
**/.gradle
|
**/.gradle
|
||||||
@ -220,7 +214,6 @@ samples/client/petstore/kotlin*/src/main/kotlin/test/
|
|||||||
samples/client/petstore/kotlin*/build/
|
samples/client/petstore/kotlin*/build/
|
||||||
samples/server/others/kotlin-server/jaxrs-spec/build/
|
samples/server/others/kotlin-server/jaxrs-spec/build/
|
||||||
samples/client/echo_api/kotlin-jvm-spring-3-restclient/build/
|
samples/client/echo_api/kotlin-jvm-spring-3-restclient/build/
|
||||||
samples/client/echo_api/kotlin-jvm-okhttp/build/
|
|
||||||
|
|
||||||
# haskell
|
# haskell
|
||||||
.stack-work
|
.stack-work
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
|
||||||
|
|
||||||
<!-- Common develocity.xml configuration for Maven shared between CI agents and developers building locally.
|
|
||||||
|
|
||||||
The build cache credentials required for CI builds to write to the remote build cache are read from environment variables.
|
|
||||||
Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and
|
|
||||||
Credentials Binding plugin (https://plugins.jenkins.io/credentials-binding/), or the credentials are injected using the
|
|
||||||
vendor-specific mechanism of the CI server running the build.
|
|
||||||
|
|
||||||
Note: In the XML configuration below, you need to adjust
|
|
||||||
|
|
||||||
- the server url of your Develocity server
|
|
||||||
- the name of the environment variable that reveals the build is running in a CI environment
|
|
||||||
- the names of the environment variables holding the build cache credentials
|
|
||||||
|
|
||||||
to the specifics of your CI server settings. -->
|
|
||||||
|
|
||||||
<develocity
|
|
||||||
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd">
|
|
||||||
<server>
|
|
||||||
<url>https://ge.openapi-generator.tech/</url>
|
|
||||||
<allowUntrusted>false</allowUntrusted>
|
|
||||||
</server>
|
|
||||||
<buildScan>
|
|
||||||
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider -->
|
|
||||||
<publishing>
|
|
||||||
<onlyIf>authenticated</onlyIf>
|
|
||||||
</publishing>
|
|
||||||
<obfuscation>
|
|
||||||
<!-- Use a redacted value.-->
|
|
||||||
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
|
|
||||||
</obfuscation>
|
|
||||||
</buildScan>
|
|
||||||
<buildCache>
|
|
||||||
<local>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</local>
|
|
||||||
<remote>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
<!-- Check credentials presence to avoid build cache errors on PR builds when credentials are not present -->
|
|
||||||
<storeEnabled>#{isTrue(env['CI']) and isTrue(env['GRADLE_ENTERPRISE_ACCESS_KEY'])}</storeEnabled>
|
|
||||||
</remote>
|
|
||||||
</buildCache>
|
|
||||||
</develocity>
|
|
@ -2,8 +2,8 @@
|
|||||||
<extensions>
|
<extensions>
|
||||||
<extension>
|
<extension>
|
||||||
<groupId>com.gradle</groupId>
|
<groupId>com.gradle</groupId>
|
||||||
<artifactId>develocity-maven-extension</artifactId>
|
<artifactId>gradle-enterprise-maven-extension</artifactId>
|
||||||
<version>1.21.6</version>
|
<version>1.20.1</version>
|
||||||
</extension>
|
</extension>
|
||||||
<extension>
|
<extension>
|
||||||
<groupId>com.gradle</groupId>
|
<groupId>com.gradle</groupId>
|
||||||
|
45
.mvn/gradle-enterprise.xml
Normal file
45
.mvn/gradle-enterprise.xml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||||
|
|
||||||
|
<!-- Common gradle-enterprise.xml configuration for Maven shared between CI agents and developers building locally.
|
||||||
|
|
||||||
|
The build cache credentials required for CI builds to write to the remote build cache are read from environment variables.
|
||||||
|
Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and
|
||||||
|
Credentials Binding plugin (https://plugins.jenkins.io/credentials-binding/), or the credentials are injected using the
|
||||||
|
vendor-specific mechanism of the CI server running the build.
|
||||||
|
|
||||||
|
Note: In the XML configuration below, you need to adjust
|
||||||
|
|
||||||
|
- the server url of your Gradle Enterprise server
|
||||||
|
- the name of the environment variable that reveals the build is running in a CI environment
|
||||||
|
- the names of the environment variables holding the build cache credentials
|
||||||
|
|
||||||
|
to the specifics of your CI server settings. -->
|
||||||
|
|
||||||
|
<gradleEnterprise
|
||||||
|
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
|
||||||
|
<server>
|
||||||
|
<url>https://ge.openapi-generator.tech/</url> <!-- adjust to your GE server -->
|
||||||
|
<allowUntrusted>false</allowUntrusted> <!-- ensure a trusted certificate is configured -->
|
||||||
|
</server>
|
||||||
|
<buildScan>
|
||||||
|
<captureGoalInputFiles>true</captureGoalInputFiles>
|
||||||
|
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider -->
|
||||||
|
<publish>ALWAYS</publish>
|
||||||
|
<publishIfAuthenticated>true</publishIfAuthenticated>
|
||||||
|
<obfuscation>
|
||||||
|
<!-- Use a redacted value.-->
|
||||||
|
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
|
||||||
|
</obfuscation>
|
||||||
|
</buildScan>
|
||||||
|
<buildCache>
|
||||||
|
<local>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</local>
|
||||||
|
<remote>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<!-- Check credentials presence to avoid build cache errors on PR builds when credentials are not present -->
|
||||||
|
<storeEnabled>#{isTrue(env['CI']) and isTrue(env['GRADLE_ENTERPRISE_ACCESS_KEY'])}</storeEnabled>
|
||||||
|
</remote>
|
||||||
|
</buildCache>
|
||||||
|
</gradleEnterprise>
|
35
.travis.yml
35
.travis.yml
@ -37,12 +37,12 @@ services:
|
|||||||
|
|
||||||
# comment out the host table change to use the public petstore server
|
# comment out the host table change to use the public petstore server
|
||||||
addons:
|
addons:
|
||||||
#apt:
|
apt:
|
||||||
# sources:
|
sources:
|
||||||
# - ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
# packages:
|
packages:
|
||||||
# - g++-5
|
- g++-5
|
||||||
#chrome: stable
|
chrome: stable
|
||||||
hosts:
|
hosts:
|
||||||
- petstore.swagger.io
|
- petstore.swagger.io
|
||||||
|
|
||||||
@ -201,19 +201,16 @@ after_success:
|
|||||||
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
|
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
## NOTE; we will do the followign manually instead as the page doesn't need to be updated in every single travis build
|
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
||||||
## publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
#- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
# - if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
# cd website;
|
||||||
# sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-client.md;
|
# git config --global user.name "${GH_NAME}";
|
||||||
# sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-server.md;
|
# git config --global user.email "${GH_EMAIL}";
|
||||||
# cd website;
|
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
||||||
# git config --global user.name "${GH_NAME}";
|
# yarn install;
|
||||||
# git config --global user.email "${GH_EMAIL}";
|
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
||||||
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
# fi;
|
||||||
# yarn install;
|
|
||||||
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
|
||||||
# fi;
|
|
||||||
#
|
|
||||||
env:
|
env:
|
||||||
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
||||||
|
|
||||||
|
@ -13,24 +13,14 @@ if [ "$NODE_INDEX" = "1" ]; then
|
|||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
sudo apt-get -y install cpanminus
|
sudo apt-get -y install cpanminus libmagic-dev
|
||||||
|
|
||||||
# install rust
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
||||||
source "$HOME/.cargo/env"
|
|
||||||
|
|
||||||
echo "Testing perl"
|
|
||||||
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
||||||
|
|
||||||
echo "Testing ruby"
|
|
||||||
(cd samples/client/petstore/ruby && mvn integration-test)
|
(cd samples/client/petstore/ruby && mvn integration-test)
|
||||||
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
||||||
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
||||||
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
||||||
|
|
||||||
echo "Testing rust"
|
|
||||||
(cd samples/server/petstore/rust-axum && mvn integration-test)
|
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test Go"
|
echo "Running node $NODE_INDEX to test Go"
|
||||||
# install haskell
|
# install haskell
|
||||||
@ -49,19 +39,10 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
||||||
go version
|
go version
|
||||||
|
|
||||||
# install cpprestsdk
|
|
||||||
sudo apt-get install libcpprest-dev
|
|
||||||
wget "https://github.com/aminya/setup-cpp/releases/download/v0.37.0/setup-cpp-x64-linux"
|
|
||||||
chmod +x ./setup-cpp-x64-linux
|
|
||||||
sudo ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true
|
|
||||||
source ~/.cpprc # activate cpp environment variables
|
|
||||||
|
|
||||||
# run go integration tests
|
# run go integration tests
|
||||||
(cd samples/client/petstore/go && mvn integration-test)
|
(cd samples/client/petstore/go && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/go && mvn integration-test)
|
(cd samples/openapi3/client/petstore/go && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false && mvn integration-test)
|
(cd samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false && mvn integration-test)
|
||||||
(cd samples/client/others/go/allof_multiple_ref_and_discriminator && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/cpp-restsdk/client && mvn integration-test)
|
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "3" ]; then
|
elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
|
|
||||||
@ -89,8 +70,6 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test)
|
(cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-angular-v18-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v19-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
||||||
@ -102,7 +81,6 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
#(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test)
|
#(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/nullable-enum && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test)
|
(cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test)
|
(cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test)
|
(cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test)
|
||||||
@ -111,31 +89,38 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
(cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test)
|
(cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
|
(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
|
(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/javascript-flowtyped && mvn integration-test)
|
(cd samples/client/petstore/javascript-flowtyped && mvn integration-test)
|
||||||
(cd samples/client/petstore/javascript-es6 && mvn integration-test)
|
(cd samples/client/petstore/javascript-es6 && mvn integration-test)
|
||||||
(cd samples/client/petstore/javascript-promise-es6 && mvn integration-test)
|
(cd samples/client/petstore/javascript-promise-es6 && mvn integration-test)
|
||||||
|
|
||||||
|
elif [ "$NODE_INDEX" = "4" ]; then
|
||||||
|
echo "Running node $NODE_INDEX ..."
|
||||||
|
|
||||||
|
sudo apt install r-base r-base-dev -y
|
||||||
|
sudo apt-get install r-base-core libssl-dev libcurl4-openssl-dev -y # for httr
|
||||||
|
|
||||||
|
#(cd samples/client/petstore/R && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/R-httr2 && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/R-httr2-wrapper && mvn integration-test)
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
(cd samples/client/petstore/scala-akka && mvn integration-test)
|
(cd samples/client/petstore/scala-akka && mvn integration-test)
|
||||||
(cd samples/client/petstore/scala-sttp && mvn integration-test)
|
(cd samples/client/petstore/scala-sttp && mvn integration-test)
|
||||||
(cd samples/client/petstore/scala-sttp-circe && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/scala-sttp4 && mvn integration-test)
|
(cd samples/client/petstore/scala-sttp4 && mvn integration-test)
|
||||||
(cd samples/client/petstore/clojure && mvn integration-test)
|
(cd samples/client/petstore/clojure && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/jersey2-java8 && mvn integration-test)
|
(cd samples/client/petstore/java/jersey2-java8 && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/java/jersey2-java8 && mvn integration-test)
|
(cd samples/openapi3/client/petstore/java/jersey2-java8 && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/jersey3 && mvn integration-test)
|
(cd samples/client/petstore/java/jersey3 && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/jersey3-oneOf && mvn integration-test)
|
|
||||||
(cd samples/client/others/java/okhttp-gson-streaming && mvn integration-test)
|
(cd samples/client/others/java/okhttp-gson-streaming && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/okhttp-gson && mvn integration-test)
|
(cd samples/client/petstore/java/okhttp-gson && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/okhttp-gson-3.1 && mvn integration-test)
|
(cd samples/client/petstore/java/okhttp-gson-3.1 && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/okhttp-gson-dynamicOperations && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/java/resteasy && mvn integration-test)
|
(cd samples/client/petstore/java/resteasy && mvn integration-test)
|
||||||
(cd samples/client/petstore/java-micronaut-client && mvn integration-test)
|
(cd samples/client/petstore/java-micronaut-client && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/apache-httpclient && mvn integration-test)
|
(cd samples/client/petstore/java/apache-httpclient && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/resttemplate-jakarta && mvn integration-test)
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ Please file the pull request against the correct branch, e.g. `master` for non-b
|
|||||||
|
|
||||||
All the code generators can be found in [modules/openapi-generator/src/main/java/org/openapitools/codegen/languages](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages)
|
All the code generators can be found in [modules/openapi-generator/src/main/java/org/openapitools/codegen/languages](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages)
|
||||||
|
|
||||||
If you want to add a new generator, follow the [new-generator](https://openapi-generator.tech/docs/new-generator) guide.
|
If you want to add a new generator, follow the [new-generator](https://openapi-generator.tech/docs/new-generator) guide.
|
||||||
|
|
||||||
### Templates
|
### Templates
|
||||||
|
|
||||||
@ -84,26 +84,6 @@ For [Vendor Extensions](https://github.com/OAI/OpenAPI-Specification/blob/master
|
|||||||
- For language-specified vendor extension, put it in the form of `x-{lang}-{extension-name}`. e.g. `x-objc-operation-id`, `x-java-feign-retry-limit`
|
- For language-specified vendor extension, put it in the form of `x-{lang}-{extension-name}`. e.g. `x-objc-operation-id`, `x-java-feign-retry-limit`
|
||||||
- For a list of existing vendor extensions in use, please refer to https://github.com/openapitools/openapi-generator/wiki/Vendor-Extensions. If you've added new vendor extensions as part of your PR, please update the wiki page.
|
- For a list of existing vendor extensions in use, please refer to https://github.com/openapitools/openapi-generator/wiki/Vendor-Extensions. If you've added new vendor extensions as part of your PR, please update the wiki page.
|
||||||
|
|
||||||
### Building
|
|
||||||
|
|
||||||
The `openapi-generator-cli` can be built using the following command. This will generate the `openapi-generator-cli.jar` in the `modules/openapi-generator-cli/target` directory without running the tests and generating the Javadocs.
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
|
|
||||||
```
|
|
||||||
|
|
||||||
Or on Windows:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
mvnw.cmd clean install -DskipTests -Dmaven.javadoc.skip=true
|
|
||||||
```
|
|
||||||
|
|
||||||
The binary can run via `java -jar`. For example:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help
|
|
||||||
```
|
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
||||||
@ -132,5 +112,5 @@ See [OpenAPI Tools wiki](https://github.com/OpenAPITools/openapi-generator/wiki/
|
|||||||
- File a PR with meaningful title, description and commit messages
|
- File a PR with meaningful title, description and commit messages
|
||||||
- Make sure the option "Allow edits from maintainers" in the PR is selected so that the maintainers can update your PRs with minor fixes, if needed.
|
- Make sure the option "Allow edits from maintainers" in the PR is selected so that the maintainers can update your PRs with minor fixes, if needed.
|
||||||
- Recommended git settings
|
- Recommended git settings
|
||||||
- `git config core.autocrlf input` to tell Git convert CRLF to LF on commit but not the other way around
|
- `git config core.autocrlf input` to tell Git convert CRLF to LF on commit but not the other way around
|
||||||
- To close an issue (e.g. issue 1542) automatically after a PR is merged, use keywords "fix", "close", "resolve" in the PR description, e.g. `fix #1542`. (Ref: [closing issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
|
- To close an issue (e.g. issue 1542) automatically after a PR is merged, use keywords "fix", "close", "resolve" in the PR description, e.g. `fix #1542`. (Ref: [closing issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
|
||||||
|
11
Dockerfile
11
Dockerfile
@ -10,16 +10,6 @@ COPY ./LICENSE ${GEN_DIR}
|
|||||||
# Required to compile openapi-generator
|
# Required to compile openapi-generator
|
||||||
COPY ./google_checkstyle.xml ${GEN_DIR}
|
COPY ./google_checkstyle.xml ${GEN_DIR}
|
||||||
|
|
||||||
# All poms are copied, then we go offline, to allow for better caching of code changes without fetching all dependencies each time
|
|
||||||
COPY ./modules/openapi-generator-gradle-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-gradle-plugin/
|
|
||||||
COPY ./modules/openapi-generator-maven-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-maven-plugin/
|
|
||||||
COPY ./modules/openapi-generator-online/pom.xml ${GEN_DIR}/modules/openapi-generator-online/
|
|
||||||
COPY ./modules/openapi-generator-cli/pom.xml ${GEN_DIR}/modules/openapi-generator-cli/
|
|
||||||
COPY ./modules/openapi-generator-core/pom.xml ${GEN_DIR}/modules/openapi-generator-core/
|
|
||||||
COPY ./modules/openapi-generator/pom.xml ${GEN_DIR}/modules/openapi-generator/
|
|
||||||
COPY ./pom.xml ${GEN_DIR}
|
|
||||||
RUN mvn dependency:go-offline
|
|
||||||
|
|
||||||
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
|
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
|
||||||
COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
|
COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
|
||||||
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
|
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
|
||||||
@ -27,6 +17,7 @@ COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-onl
|
|||||||
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
|
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
|
||||||
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
|
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
|
||||||
COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
|
COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
|
||||||
|
COPY ./pom.xml ${GEN_DIR}
|
||||||
|
|
||||||
# Pre-compile openapi-generator-cli
|
# Pre-compile openapi-generator-cli
|
||||||
RUN mvn -B -am -pl "modules/openapi-generator-cli" package
|
RUN mvn -B -am -pl "modules/openapi-generator-cli" package
|
||||||
|
123
README.md
123
README.md
@ -6,7 +6,7 @@
|
|||||||
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
||||||
[](./LICENSE)
|
[](./LICENSE)
|
||||||
[](https://opencollective.com/openapi_generator)
|
[](https://opencollective.com/openapi_generator)
|
||||||
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-2wmkn4s8g-n19PJ99Y6Vei74WMUIehQA)
|
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g)
|
||||||
[](https://twitter.com/oas_generator)
|
[](https://twitter.com/oas_generator)
|
||||||
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
||||||
[](https://conan.io/center/recipes/openapi-generator)
|
[](https://conan.io/center/recipes/openapi-generator)
|
||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.14.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.5.0`):
|
||||||
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
||||||
@ -61,20 +61,14 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<img src="https://openapi-generator.tech/img/companies/bumpsh.png" width="128" height="128">](https://bump.sh/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/bumpsh.png" width="128" height="128">](https://bump.sh/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/bileto.png" width="128" height="128">](https://www.bileto.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/bileto.png" width="128" height="128">](https://www.bileto.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/bairesdev.png" width="128" height="128">](https://www.bairesdev.com/sponsoring-open-source-projects/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/bairesdev.png" width="128" height="128">](https://www.bairesdev.com/sponsoring-open-source-projects/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/dmtech.jpeg" width="128" height="128">](https://www.dmtech.de/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/dmtech.jpeg" width="128" height="128">](https://www.dm-jobs.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/adyen.png" width="128" height="128">](https://adyen.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/adyen.png" width="128" height="128">](https://adyen.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/fornex.png" width="128" height="128">](https://fornex.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/fornex.png" width="128" height="128">](https://fornex.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/alloyautomation.png" width="128" height="128">](https://runalloy.com/signup?utm_source=github&utm_medium=referral&utm_campaign=1524_openapigenerator)
|
[<img src="https://openapi-generator.tech/img/companies/alloyautomation.png" width="128" height="128">](https://runalloy.com/signup?utm_source=github&utm_medium=referral&utm_campaign=1524_openapigenerator)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/ssstwitter.png" width="128" height="128">](https://ssstwitter.com/?utm_source=github&utm_medium=referral&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/ssstwitter.png" width="128" height="128">](https://ssstwitter.com/?utm_source=github&utm_medium=referral&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/svix.png" width="128" height="128">](https://www.svix.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
[<img src="https://openapi-generator.tech/img/companies/svix.png" width="128" height="128">](https://www.svix.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/litslink.png" width="128" height="128">](https://litslink.com/services/artificial-intelligence?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
[<img src="https://openapi-generator.tech/img/companies/litslink.png" width="128" height="128">](https://litslink.com/services/artificial-intelligence?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/designli.jpg" width="128" height="128">](https://designli.co?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
|
||||||
[<img src="https://openapi-generator.tech/img/companies/itm.png" width="128" height="128">](https://opensource.muenchen.de?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
|
||||||
[<img src="https://openapi-generator.tech/img/companies/kong.png" width="128" height="128">](https://konghq.com/products/kong-konnect?utm_medium=referral&utm_source=github&utm_campaign=platform&utm_content=openapi-generator)
|
|
||||||
[<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)
|
|
||||||
[<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)
|
|
||||||
[<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)
|
|
||||||
[<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)
|
|
||||||
|
|
||||||
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity
|
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity
|
||||||
|
|
||||||
@ -87,13 +81,13 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
|
|
||||||
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, Spring 6 RestClient, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient, pekko), **Swift** (2.x, 3.x, 4.x, 5.x, 6.x), **Typescript** (AngularJS, Angular (9.x - 19.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo**, **Zapier** |
|
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient, pekko), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (9.x - 17.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo**, **Zapier** |
|
||||||
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** ([Flight](https://docs.flightphp.com/), Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), [Cask](https://github.com/com-lihaoyi/cask), Scalatra) |
|
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
||||||
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
||||||
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
||||||
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Postman Collection**, **Protocol Buffer**, **WSDL** |
|
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Postman Collection**, **Protocol Buffer**, **WSDL** |
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
@ -108,7 +102,6 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
- [1.5 - Homebrew](#15---homebrew)
|
- [1.5 - Homebrew](#15---homebrew)
|
||||||
- [1.6 - Docker](#16---docker)
|
- [1.6 - Docker](#16---docker)
|
||||||
- [1.7 - NPM](#17---npm)
|
- [1.7 - NPM](#17---npm)
|
||||||
- [1.8 - pip](#18---pip)
|
|
||||||
- [2 - Getting Started](#2---getting-started)
|
- [2 - Getting Started](#2---getting-started)
|
||||||
- [3 - Usage](#3---usage)
|
- [3 - Usage](#3---usage)
|
||||||
- [3.1 - Customization](#31---customization)
|
- [3.1 - Customization](#31---customization)
|
||||||
@ -132,8 +125,8 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
|
|||||||
|
|
||||||
| OpenAPI Generator Version | Release Date | Notes |
|
| OpenAPI Generator Version | Release Date | Notes |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
|
||||||
| 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) |
|
| 7.5.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.5.0-SNAPSHOT/) | 12.04.2024 | Minor release with breaking changes (with fallback) |
|
||||||
| [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) |
|
| [7.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.4.0) (latest stable release) | 11.03.2024 | Minor release with breaking changes (with fallback) |
|
||||||
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
||||||
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
||||||
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
||||||
@ -144,7 +137,7 @@ OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0, 3.1 (beta support)
|
|||||||
|
|
||||||
For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page.
|
For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page.
|
||||||
|
|
||||||
For decommissioned generators/libraries/frameworks, please refer to [the "Decommission" label](https://github.com/OpenAPITools/openapi-generator/issues?q=label%3ADecommission+is%3Amerged+) in the pull request page.
|
For decomissioned generators/libraries/frameworks, please refer to [the "Decommission" label](https://github.com/OpenAPITools/openapi-generator/issues?q=label%3ADecommission+is%3Amerged+) in the pull request page.
|
||||||
|
|
||||||
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
||||||
|
|
||||||
@ -196,16 +189,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
|
|||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 11 runtime at a minimum):
|
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 11 runtime at a minimum):
|
||||||
|
|
||||||
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.4.0/openapi-generator-cli-7.4.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
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
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.4.0/openapi-generator-cli-7.4.0.jar -O openapi-generator-cli.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
```
|
```
|
||||||
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
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.4.0/openapi-generator-cli-7.4.0.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
||||||
@ -266,7 +259,7 @@ To build from source, you need the following installed and available in your `$P
|
|||||||
|
|
||||||
* [Java 11](https://adoptium.net/)
|
* [Java 11](https://adoptium.net/)
|
||||||
|
|
||||||
* [Apache Maven 3.8.8 or greater](https://maven.apache.org/) (optional)
|
* [Apache Maven 3.3.4 or greater](https://maven.apache.org/) (optional)
|
||||||
|
|
||||||
After cloning the project, you can build it from source using [maven wrapper](https://maven.apache.org/wrapper/):
|
After cloning the project, you can build it from source using [maven wrapper](https://maven.apache.org/wrapper/):
|
||||||
|
|
||||||
@ -440,7 +433,7 @@ openapi-generator-cli version
|
|||||||
To use a specific version of "openapi-generator-cli"
|
To use a specific version of "openapi-generator-cli"
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
openapi-generator-cli version-manager set 7.13.0
|
openapi-generator-cli version-manager set 7.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@ -449,32 +442,6 @@ Or install it as dev-dependency:
|
|||||||
npm install @openapitools/openapi-generator-cli -D
|
npm install @openapitools/openapi-generator-cli -D
|
||||||
```
|
```
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
|
|
||||||
You can use [locally built JARs](https://github.com/OpenAPITools/openapi-generator-cli?tab=readme-ov-file#use-locally-built-jar) or [`SNAPSHOT` versions](https://github.com/OpenAPITools/openapi-generator-cli?tab=readme-ov-file#use-nightly-snapshot-build) as well.
|
|
||||||
|
|
||||||
### [1.8 - pip](#table-of-contents)
|
|
||||||
|
|
||||||
|
|
||||||
> **Platform(s)**: Linux, macOS, Windows
|
|
||||||
**Install** via [PyPI](https://pypi.org/) (`java` executable is needed to run):
|
|
||||||
|
|
||||||
```
|
|
||||||
pip install openapi-generator-cli
|
|
||||||
```
|
|
||||||
|
|
||||||
To install a specific version
|
|
||||||
```
|
|
||||||
pip install openapi-generator-cli==7.13.0
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
|
||||||
|
|
||||||
```
|
|
||||||
pip install openapi-generator-cli[jdk4py]
|
|
||||||
```
|
|
||||||
|
|
||||||
Ref: https://github.com/openAPITools/openapi-generator-pip
|
|
||||||
|
|
||||||
## [2 - Getting Started](#table-of-contents)
|
## [2 - Getting Started](#table-of-contents)
|
||||||
|
|
||||||
To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml), please run the following
|
To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml), please run the following
|
||||||
@ -490,7 +457,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
|
|||||||
(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`)
|
(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`)
|
||||||
|
|
||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
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)
|
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.0.1/openapi-generator-cli-7.0.1.jar)
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
|
|
||||||
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
||||||
@ -606,9 +573,9 @@ Please refer to [online.md](docs/online.md) on how to run and use the `openapi-g
|
|||||||
|
|
||||||
### [3.4 - License information on Generated Code](#table-of-contents)
|
### [3.4 - License information on Generated Code](#table-of-contents)
|
||||||
|
|
||||||
The OpenAPI Generator project is intended as a benefit for users of the Open API Specification. The project itself has the [License](#7---license) as specified. In addition, please understand the following points:
|
The OpenAPI Generator project is intended as a benefit for users of the Open API Specification. The project itself has the [License](#license) as specified. In addition, please understand the following points:
|
||||||
|
|
||||||
* The templates included with this project are subject to the [License](#7---license).
|
* The templates included with this project are subject to the [License](#license).
|
||||||
* Generated code is intentionally _not_ subject to the parent project license
|
* Generated code is intentionally _not_ subject to the parent project license
|
||||||
|
|
||||||
When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate.
|
When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate.
|
||||||
@ -629,10 +596,8 @@ Here is a list of community-contributed IDE plug-ins that integrate with OpenAPI
|
|||||||
Here are some companies/projects (alphabetical order) using OpenAPI Generator in production. To add your company/project to the list, please visit [README.md](README.md) and click on the icon to edit the page.
|
Here are some companies/projects (alphabetical order) using OpenAPI Generator in production. To add your company/project to the list, please visit [README.md](README.md) and click on the icon to edit the page.
|
||||||
|
|
||||||
- [Aalborg University](https://www.aau.dk)
|
- [Aalborg University](https://www.aau.dk)
|
||||||
- [act coding](https://github.com/actcoding)
|
|
||||||
- [Adaptant Solutions AG](https://www.adaptant.io/)
|
- [Adaptant Solutions AG](https://www.adaptant.io/)
|
||||||
- [adesso SE](https://www.adesso.de/)
|
- [adesso SE](https://www.adesso.de/)
|
||||||
- [adorsys GmbH & Co.KG](https://adorsys.com/)
|
|
||||||
- [Adyen](https://www.adyen.com/)
|
- [Adyen](https://www.adyen.com/)
|
||||||
- [Agoda](https://www.agoda.com/)
|
- [Agoda](https://www.agoda.com/)
|
||||||
- [Airthings](https://www.airthings.com/)
|
- [Airthings](https://www.airthings.com/)
|
||||||
@ -658,13 +623,11 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [CAM](https://www.cam-inc.co.jp/)
|
- [CAM](https://www.cam-inc.co.jp/)
|
||||||
- [Camptocamp](https://www.camptocamp.com/en)
|
- [Camptocamp](https://www.camptocamp.com/en)
|
||||||
- [Carlsberg Group](https://www.carlsberggroup.com/)
|
- [Carlsberg Group](https://www.carlsberggroup.com/)
|
||||||
- [CERN](https://home.cern/)
|
|
||||||
- [Christopher Queen Consulting](https://www.christopherqueenconsulting.com/)
|
- [Christopher Queen Consulting](https://www.christopherqueenconsulting.com/)
|
||||||
- [Cisco](https://www.cisco.com/)
|
- [Cisco](https://www.cisco.com/)
|
||||||
- [codecentric AG](https://www.codecentric.de/)
|
- [codecentric AG](https://www.codecentric.de/)
|
||||||
- [CoinAPI](https://www.coinapi.io/)
|
- [CoinAPI](https://www.coinapi.io/)
|
||||||
- [Commencis](https://www.commencis.com/)
|
- [Commencis](https://www.commencis.com/)
|
||||||
- [ConfigCat](https://configcat.com/)
|
|
||||||
- [cronn GmbH](https://www.cronn.de/)
|
- [cronn GmbH](https://www.cronn.de/)
|
||||||
- [Crossover Health](https://crossoverhealth.com/)
|
- [Crossover Health](https://crossoverhealth.com/)
|
||||||
- [Cupix](https://www.cupix.com/)
|
- [Cupix](https://www.cupix.com/)
|
||||||
@ -741,7 +704,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [REST United](https://restunited.com)
|
- [REST United](https://restunited.com)
|
||||||
- [Robocorp](https://www.robocorp.com)
|
- [Robocorp](https://www.robocorp.com)
|
||||||
- [Robotinfra](https://www.robotinfra.com)
|
- [Robotinfra](https://www.robotinfra.com)
|
||||||
- [SearchApi](https://www.searchapi.io/)
|
|
||||||
- [SmartHR](https://smarthr.co.jp/)
|
- [SmartHR](https://smarthr.co.jp/)
|
||||||
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
||||||
- [Splitit](https://www.splitit.com/)
|
- [Splitit](https://www.splitit.com/)
|
||||||
@ -751,7 +713,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Telstra](https://dev.telstra.com)
|
- [Telstra](https://dev.telstra.com)
|
||||||
- [Tencent](https://www.tencent.com)
|
- [Tencent](https://www.tencent.com)
|
||||||
- [The University of Aizu](https://www.u-aizu.ac.jp/en/)
|
- [The University of Aizu](https://www.u-aizu.ac.jp/en/)
|
||||||
- [TINQIN](https://www.tinqin.com/)
|
|
||||||
- [Translucent ApS](https://www.translucent.dk)
|
- [Translucent ApS](https://www.translucent.dk)
|
||||||
- [TravelTime platform](https://www.traveltimeplatform.com/)
|
- [TravelTime platform](https://www.traveltimeplatform.com/)
|
||||||
- [TribalScale](https://www.tribalscale.com)
|
- [TribalScale](https://www.tribalscale.com)
|
||||||
@ -943,7 +904,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
||||||
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
||||||
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
||||||
- 2022-06-10 - [Autogenerating Clients with FastAPI and Github Actions](https://www.propelauth.com/post/autogenerating-clients-with-fastapi-and-github-actions) by [Andrew Israel](https://www.propelauth.com/author/andrew)
|
|
||||||
- 2022-06-12 - [Mustache templates with OpenAPI specs](https://medium.com/geekculture/mustache-templates-with-openapi-specs-f24711c67dec) by [Beppe Catanese](https://github.com/gcatanese)
|
- 2022-06-12 - [Mustache templates with OpenAPI specs](https://medium.com/geekculture/mustache-templates-with-openapi-specs-f24711c67dec) by [Beppe Catanese](https://github.com/gcatanese)
|
||||||
- 2022-07-01 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
- 2022-07-01 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
||||||
- 2022-07-22 - [使用OpenAPI Generator Maven plugin开发api优先的java客户端和服务端代码](https://blog.roccoshi.top/2022/java/openapi-generator%E7%9A%84%E4%BD%BF%E7%94%A8/) by [Lincest](https://github.com/Lincest)
|
- 2022-07-22 - [使用OpenAPI Generator Maven plugin开发api优先的java客户端和服务端代码](https://blog.roccoshi.top/2022/java/openapi-generator%E7%9A%84%E4%BD%BF%E7%94%A8/) by [Lincest](https://github.com/Lincest)
|
||||||
@ -967,22 +927,12 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2023-06-28 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
- 2023-06-28 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
||||||
- 2023-06-30 - [Generate Client SDKs with OpenApi Generator in Springboot](https://medium.com/@ramavathvinayak/generate-client-sdks-with-openapi-generator-in-springboot-f9f012e73c0b) by [Vinayak Ramavath](https://medium.com/@ramavathvinayak)
|
- 2023-06-30 - [Generate Client SDKs with OpenApi Generator in Springboot](https://medium.com/@ramavathvinayak/generate-client-sdks-with-openapi-generator-in-springboot-f9f012e73c0b) by [Vinayak Ramavath](https://medium.com/@ramavathvinayak)
|
||||||
- 2023-12-10 - [UnityでOpenAPI Generatorを使う](https://www.youtube.com/watch?v=CbNwKVV5LRM) by [Soup Tori](https://www.youtube.com/@souptori8417)
|
- 2023-12-10 - [UnityでOpenAPI Generatorを使う](https://www.youtube.com/watch?v=CbNwKVV5LRM) by [Soup Tori](https://www.youtube.com/@souptori8417)
|
||||||
- 2024-01-24 - [Comment générer des stubs wiremock avec openapi generator](https://www.youtube.com/watch?v=0jhONfBrcKw) by [Alexis Couvreur](https://github.com/acouvreur)
|
|
||||||
- 2024-03-04 - [Generating TypeScript Types with OpenAPI for REST API Consumption](https://www.pullrequest.com/blog/generating-typescript-types-with-openapi-for-rest-api-consumption/) by [PullRequest](https://www.pullrequest.com/)
|
|
||||||
- 2024-03-07 - [Fully typed Web Apps with OpenAPI (Part 1)](https://medium.com/@gfox1984/fully-typed-web-apps-with-openapi-part-1-595d55766670) by [Guillaume Renard](https://medium.com/@gfox1984)
|
|
||||||
- 2024-03-08 - [Laravel OpenAPIによる "辛くない" スキーマ駆動開発](https://fortee.jp/phperkaigi-2024/proposal/9e2e6c38-d078-4efa-99b4-83ebf9033b34) by [KentarouTakeda](https://twitter.com/KentarouTakeda)
|
|
||||||
- 2024-04-04 - [Working with OpenAPI using Rust](https://www.shuttle.dev/blog/2024/04/04/using-openapi-rust) by [Joshua Mo](https://twitter.com/joshmo_dev)
|
|
||||||
- 2024-04-08 - [Implement API first strategy with OpenAPI generator plugin](https://medium.com/javarevisited/implement-api-first-strategy-with-openapi-generator-plugin-e4bbe7f0d778) by [Rui Zhou](https://medium.com/@wirelesser)
|
|
||||||
- 2024-05-06 - [OpenAPI Generator Custom Templates](https://www.javacodegeeks.com/openapi-generator-custom-templates.html) by [Mary Zheng](https://www.javacodegeeks.com/author/mary-zheng)
|
|
||||||
- 2025-02-09 - [Custom validation with OpenApiGenerator and Spring Boot 3](https://medium.com/@jugurtha.aitoufella/custom-validation-with-openapigenerator-and-spring-boot-3-34a656e815c8) by [Jugurtha Aitoufella](https://medium.com/@jugurtha.aitoufella)
|
|
||||||
- 2025-02-20 - [Optimizing API Integration in a Large React Application Using OpenAPI Generator](https://www.youtube.com/watch?v=-B33pQnGQUI) by Stefano Marzo
|
|
||||||
|
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
What's the design philosophy or principle behind OpenAPI Generator?
|
What's the design philosophy or principle behind OpenAPI Generator?
|
||||||
|
|
||||||
We focus on developer experience. The generators should produce code, config, documentation, and more that are easily understandable and consumable by users. We focused on simple use cases to start with (bottom-up approach). Since then the project and the community have grown a lot: 600k weekly downloads via NPM CLI wrapper, 30M downloads via openapi-generator-cli docker image just to highlight a few. We've gradually supported more features (e.g. oneOf, anyOf introduced in OpenAPI 3.0) in various generators and we will continue this approach to deliver something based on our understanding of user demand and what they want, and continue to add support of new features introduced in OpenAPI specification (such as v3.1 and future versions of the OpenAPI specification).
|
We focus on developer experience. The generators should produce code, config, documentation, and more that are easily understandable and consumable by users. We focused on simple use cases to start with (bottom-up approach). Since then the project and the community have grown a lot: 300k weekly downloads via NPM CLI wrapper, 20M downloads via openapi-generator-cli docker image just to highlight a few. We've gradually supported more features (e.g. oneOf, anyOf introduced in OpenAPI 3.0) in various generators and we will continue this approach to deliver something based on our understanding of user demand and what they want, and continue to add support of new features introduced in OpenAPI specification (such as v3.1 and future versions of the OpenAPI specification).
|
||||||
|
|
||||||
### [6.1 - OpenAPI Generator Core Team](#table-of-contents)
|
### [6.1 - OpenAPI Generator Core Team](#table-of-contents)
|
||||||
|
|
||||||
@ -1030,7 +980,6 @@ Here is a list of template creators:
|
|||||||
* Groovy: @victorgit
|
* Groovy: @victorgit
|
||||||
* Go: @wing328 [:heart:](https://www.patreon.com/wing328)
|
* Go: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* Go (rewritten in 2.3.0): @antihax
|
* Go (rewritten in 2.3.0): @antihax
|
||||||
* Godot (GDScript): @Goutte [:heart:](https://liberapay.com/Goutte)
|
|
||||||
* Haskell (http-client): @jonschoning
|
* Haskell (http-client): @jonschoning
|
||||||
* Java (Feign): @davidkiss
|
* Java (Feign): @davidkiss
|
||||||
* Java (Retrofit): @0legg
|
* Java (Retrofit): @0legg
|
||||||
@ -1039,7 +988,6 @@ Here is a list of template creators:
|
|||||||
* Java (okhttp-gson): @xhh
|
* Java (okhttp-gson): @xhh
|
||||||
* Java (RestTemplate): @nbruno
|
* Java (RestTemplate): @nbruno
|
||||||
* Java (Spring 5 WebClient): @daonomic
|
* Java (Spring 5 WebClient): @daonomic
|
||||||
* Java (Spring 6 RestClient): @nicklas2751
|
|
||||||
* Java (RESTEasy): @gayathrigs
|
* Java (RESTEasy): @gayathrigs
|
||||||
* Java (Vertx): @lopesmcc
|
* Java (Vertx): @lopesmcc
|
||||||
* Java (Google APIs Client Library): @charlescapps
|
* Java (Google APIs Client Library): @charlescapps
|
||||||
@ -1081,12 +1029,10 @@ Here is a list of template creators:
|
|||||||
* Scala (sttp): @chameleon82
|
* Scala (sttp): @chameleon82
|
||||||
* Scala (sttp4): @flsh86
|
* Scala (sttp4): @flsh86
|
||||||
* Scala (Pekko): @mickaelmagniez
|
* Scala (Pekko): @mickaelmagniez
|
||||||
* Scala (http4s): @JennyLeahy
|
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
* Swift 3: @hexelon
|
* Swift 3: @hexelon
|
||||||
* Swift 4: @ehyche
|
* Swift 4: @ehyche
|
||||||
* Swift 5: @4brunu
|
* Swift 5: @4brunu
|
||||||
* Swift 6: @4brunu
|
|
||||||
* Swift Combine: @dydus0x14
|
* Swift Combine: @dydus0x14
|
||||||
* TypeScript (Angular1): @mhardorf
|
* TypeScript (Angular1): @mhardorf
|
||||||
* TypeScript (Angular2): @roni-frantchi
|
* TypeScript (Angular2): @roni-frantchi
|
||||||
@ -1112,7 +1058,7 @@ Here is a list of template creators:
|
|||||||
* C++ (Qt5 QHttpEngine): @etherealjoy
|
* C++ (Qt5 QHttpEngine): @etherealjoy
|
||||||
* C++ Pistache: @sebymiano
|
* C++ Pistache: @sebymiano
|
||||||
* C++ Restbed: @stkrwork
|
* C++ Restbed: @stkrwork
|
||||||
* Erlang Server: @galaxie @nelsonvides
|
* Erlang Server: @galaxie
|
||||||
* F# (Giraffe) Server: @nmfisher
|
* F# (Giraffe) Server: @nmfisher
|
||||||
* Go Server: @guohuang
|
* Go Server: @guohuang
|
||||||
* Go Server (refactored in 7.0.0): @lwj5
|
* Go Server (refactored in 7.0.0): @lwj5
|
||||||
@ -1130,7 +1076,6 @@ Here is a list of template creators:
|
|||||||
* Java Vert.x: @lwlee2608
|
* Java Vert.x: @lwlee2608
|
||||||
* Java Micronaut: @andriy-dmytruk
|
* Java Micronaut: @andriy-dmytruk
|
||||||
* Java Helidon: @spericas @tjquinno @tvallin
|
* Java Helidon: @spericas @tjquinno @tvallin
|
||||||
* Java WireMock: [@acouvreur](https://github.com/acouvreur)
|
|
||||||
* JAX-RS RestEasy: @chameleon82
|
* JAX-RS RestEasy: @chameleon82
|
||||||
* JAX-RS CXF: @hiveship
|
* JAX-RS CXF: @hiveship
|
||||||
* JAX-RS CXF (CDI): @nickcmaynard
|
* JAX-RS CXF (CDI): @nickcmaynard
|
||||||
@ -1140,12 +1085,8 @@ Here is a list of template creators:
|
|||||||
* Kotlin (Spring Boot): @dr4ke616
|
* Kotlin (Spring Boot): @dr4ke616
|
||||||
* Kotlin (Vertx): @Wooyme
|
* Kotlin (Vertx): @Wooyme
|
||||||
* Kotlin (JAX-RS): @anttileppa
|
* Kotlin (JAX-RS): @anttileppa
|
||||||
* Kotlin Misk: @andrewwilsonnew @guiarn
|
|
||||||
* Kotlin WireMock: @stefankoppier
|
|
||||||
* NodeJS Express: @YishTish
|
* NodeJS Express: @YishTish
|
||||||
* PHP Flight: @daniel-sc
|
|
||||||
* PHP Laravel: @renepardon
|
* PHP Laravel: @renepardon
|
||||||
* PHP Laravel (refactor in 7.12.0): @gijs-blanken
|
|
||||||
* PHP Lumen: @abcsun
|
* PHP Lumen: @abcsun
|
||||||
* PHP Mezzio (with Path Handler): @Articus
|
* PHP Mezzio (with Path Handler): @Articus
|
||||||
* PHP Slim: @jfastnacht
|
* PHP Slim: @jfastnacht
|
||||||
@ -1156,9 +1097,7 @@ Here is a list of template creators:
|
|||||||
* Python AIOHTTP:
|
* Python AIOHTTP:
|
||||||
* Ruby on Rails 5: @zlx
|
* Ruby on Rails 5: @zlx
|
||||||
* Rust (rust-server): @metaswitch
|
* Rust (rust-server): @metaswitch
|
||||||
* Rust (rust-axum): @linxGnu
|
|
||||||
* Scala Akka: @Bouillie
|
* Scala Akka: @Bouillie
|
||||||
* Scala Cask: @aaronp
|
|
||||||
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Scala Lagom: @gmkumar2005
|
* Scala Lagom: @gmkumar2005
|
||||||
* Scala Play: @adigerber
|
* Scala Play: @adigerber
|
||||||
@ -1175,10 +1114,8 @@ Here is a list of template creators:
|
|||||||
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
|
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* Ktorm: @Luiz-Monad
|
* Ktorm: @Luiz-Monad
|
||||||
* MySQL: [@ybelenko](https://github.com/ybelenko)
|
* MySQL: [@ybelenko](https://github.com/ybelenko)
|
||||||
* PostgreSQL: [@iri](https://github.com/iri)
|
|
||||||
* Postman Collection: @gcatanese
|
|
||||||
* Protocol Buffer: @wing328
|
* Protocol Buffer: @wing328
|
||||||
* WSDL: @adessoDpd
|
* WSDL @adessoDpd
|
||||||
|
|
||||||
:heart: = Link to support the contributor directly
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
@ -1218,7 +1155,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Android | @jaz-ah (2017/09) |
|
| Android | @jaz-ah (2017/09) |
|
||||||
| Apex | |
|
| Apex | |
|
||||||
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
||||||
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) @eafer (2024/12) |
|
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) |
|
||||||
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) |
|
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) |
|
||||||
| C# | @mandrean (2017/08) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) @iBicha (2023/07) |
|
| C# | @mandrean (2017/08) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) @iBicha (2023/07) |
|
||||||
| Clojure | |
|
| Clojure | |
|
||||||
@ -1227,7 +1164,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Eiffel | @jvelilla (2017/09) |
|
| Eiffel | @jvelilla (2017/09) |
|
||||||
| Elixir | @mrmstn (2018/12) |
|
| Elixir | @mrmstn (2018/12) |
|
||||||
| Elm | @eriktim (2018/09) |
|
| Elm | @eriktim (2018/09) |
|
||||||
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) @nelsonvides (2024/09) |
|
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
||||||
| F# | @nmfisher (2019/05) |
|
| F# | @nmfisher (2019/05) |
|
||||||
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) @lwj5 (2023/04) |
|
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) @lwj5 (2023/04) |
|
||||||
| GraphQL | @renepardon (2018/12) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
@ -1238,7 +1175,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| JMeter | @kannkyo (2021/01) |
|
| JMeter | @kannkyo (2021/01) |
|
||||||
| Jetbrains HTTP Client | @jlengrand (2023/01) |
|
| Jetbrains HTTP Client | @jlengrand (2023/01) |
|
||||||
| Julia | @tanmaykm (2023/01) |
|
| Julia | @tanmaykm (2023/01) |
|
||||||
| Kotlin | @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) @e5l (2024/10) |
|
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
| N4JS | @mmews-n4 (2023/03) |
|
| N4JS | @mmews-n4 (2023/03) |
|
||||||
| Nim | |
|
| Nim | |
|
||||||
@ -1252,9 +1189,9 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
||||||
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
|
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
|
||||||
| Scala | @clasnake (2017/07), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
|
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) @joscha (2024/10) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
||||||
| Xojo | @Topheee (2023/04) |
|
| Xojo | @Topheee (2023/04) |
|
||||||
|
|
||||||
|
|
||||||
|
73
appveyor.yml
73
appveyor.yml
@ -43,62 +43,23 @@ build_script:
|
|||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\latest\Tags\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test c# API client (multiple frameworks)
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\latest\HelloWorld\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
# test c# API client (httpclient)
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-httpclient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test c# API client (generichost)
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOfNoCompare\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\FormModels\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test c# API client (netcore)
|
||||||
# - dotnet test samples\client\petstore\csharp\generichost\net9\ManualSourceGenerationTests\ManualTests.Latest.UseSourceGeneration\ManualTests.Latest.UseSourceGeneration.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# - dotnet test samples\client\petstore\csharp\generichost\net9\ManualPetstoreTests\OpenAPIClient-generichost-manual-tests\OpenAPIClient-generichost-manual-tests.csproj
|
#- dotnet test samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\NullReferenceTypes\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test C# API client (.net framework 4.7)
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\OneOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test C# API client (.net framework 4.8)
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\SourceGeneration\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net48\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\UseDateTimeForDate\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test C# API client (.net 5.0)
|
||||||
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net5.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
# test C# API Client using conditional-serialization
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\AnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\AnyOfNoCompare\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\FormModels\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\ManualSourceGenerationTests\ManualTests.Latest.UseSourceGeneration\ManualTests.Latest.UseSourceGeneration.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\ManualPetstoreTests\OpenAPIClient-generichost-manual-tests\OpenAPIClient-generichost-manual-tests.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\NullReferenceTypes\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\OneOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\SourceGeneration\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\UseDateTimeForDate\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\standard2.0\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\AnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\AnyOfNoCompare\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\FormModels\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\OneOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.8\UseDateTimeForDate\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\AnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\AnyOfNoCompare\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\FormModels\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\OneOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net4.7\UseDateTimeForDate\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\httpclient\standard2.0\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net4.7\MultipleFrameworks\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net4.7\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net4.8\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net8\ParameterMappings\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net8\EnumMappings\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net8\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\net8\UseDateTimeForDate\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\standard2.0\ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\restsharp\standard2.0\Petstore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
### TODO: Execute all generators via powershell or other
|
### TODO: Execute all generators via powershell or other
|
||||||
# generate all petstore clients
|
# generate all petstore clients
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints-useApiVersioning
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "false"
|
|
||||||
useRecords: "false"
|
|
||||||
useAuthentication: "false"
|
|
||||||
useValidators: "false"
|
|
||||||
useResponseCaching: "false"
|
|
||||||
useApiVersioning: "true"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{1EC59EB0-DA5B-40C0-8E49-A3E0829DBBFC}"
|
|
||||||
projectConfigurationGuid: "{9685C490-9B77-4EE2-BE4D-811F52665E8F}"
|
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints-useAuthentication
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "false"
|
|
||||||
useRecords: "false"
|
|
||||||
useAuthentication: "true"
|
|
||||||
useValidators: "false"
|
|
||||||
useResponseCaching: "false"
|
|
||||||
useApiVersioning: "false"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{10D45F9B-F270-480C-9DA9-720AA62526A4}"
|
|
||||||
projectConfigurationGuid: "{3FA19D58-AE7C-45E5-B00E-7482026D1816}"
|
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints-useProblemDetails
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "true"
|
|
||||||
useRecords: "false"
|
|
||||||
useAuthentication: "false"
|
|
||||||
useValidators: "false"
|
|
||||||
useResponseCaching: "false"
|
|
||||||
useApiVersioning: "false"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{EA9B735E-72CA-44C4-BB28-358BDECE60C8}"
|
|
||||||
projectConfigurationGuid: "{74D68BAC-36F5-43FC-BE9A-F3E660EECF5D}"
|
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints-useRecords
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "false"
|
|
||||||
useRecords: "true"
|
|
||||||
useAuthentication: "false"
|
|
||||||
useValidators: "false"
|
|
||||||
useResponseCaching: "false"
|
|
||||||
useApiVersioning: "false"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{C5D2BEB0-AB74-433F-BC14-DA66CAC82C10}"
|
|
||||||
projectConfigurationGuid: "{D465FD3B-3146-4661-BB50-522608AA3967}"
|
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints-useResponseCaching
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "false"
|
|
||||||
useRecords: "false"
|
|
||||||
useAuthentication: "false"
|
|
||||||
useValidators: "false"
|
|
||||||
useResponseCaching: "true"
|
|
||||||
useApiVersioning: "false"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{BC56C2A3-ACC5-4ED0-AD8F-CD1831B8A467}"
|
|
||||||
projectConfigurationGuid: "{5D19ACAB-8830-47FD-BAFA-C0985DF9F5F3}"
|
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints-useValidators
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "false"
|
|
||||||
useRecords: "false"
|
|
||||||
useAuthentication: "false"
|
|
||||||
useValidators: "true"
|
|
||||||
useResponseCaching: "false"
|
|
||||||
useApiVersioning: "false"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{C7818EE1-09E2-4349-9696-8B1A9119974A}"
|
|
||||||
projectConfigurationGuid: "{39B801D8-74AA-465D-A637-4A2FFB905378}"
|
|
@ -1,16 +0,0 @@
|
|||||||
generatorName: aspnet-fastendpoints
|
|
||||||
outputDir: samples/server/petstore/aspnet/fastendpoints
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnet-fastendpoints
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
useProblemDetails: "false"
|
|
||||||
useRecords: "false"
|
|
||||||
useAuthentication: "false"
|
|
||||||
useValidators: "false"
|
|
||||||
useResponseCaching: "false"
|
|
||||||
useApiVersioning: "false"
|
|
||||||
routePrefix: "api"
|
|
||||||
versionPrefix: "v"
|
|
||||||
solutionGuid: "{4BC03566-F5F9-4E45-A835-8FA3B2B524B9}"
|
|
||||||
projectConfigurationGuid: "{5F32A09C-5CB7-4917-83AB-CD7D1A04FF49}"
|
|
@ -1,9 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
||||||
useNewtonsoft: false
|
|
@ -1,9 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
||||||
nullableReferenceTypes: true
|
|
@ -1,9 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0-pocoModels
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
||||||
pocoModels: true
|
|
@ -1,9 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0-project4Models
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
||||||
useSeparateModelProject: true
|
|
@ -1,9 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
||||||
centralizedPackageVersionManagement: "enable"
|
|
@ -1,11 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0-useSwashBuckle
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
||||||
useSwashBuckle: false
|
|
||||||
buildTarget: library
|
|
||||||
isLibrary: true
|
|
@ -1,8 +0,0 @@
|
|||||||
generatorName: aspnetcore
|
|
||||||
outputDir: samples/server/petstore/aspnetcore-8.0
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
|
||||||
aspnetCoreVersion: "8.0"
|
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
|
@ -1,4 +0,0 @@
|
|||||||
generatorName: avro-schema
|
|
||||||
outputDir: samples/openapi3/schema/valid-enums/avro-schema-enum
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/avro-schema/valid-enums.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/avro-schema
|
|
@ -2,6 +2,3 @@ generatorName: avro-schema
|
|||||||
outputDir: samples/openapi3/schema/petstore/avro-schema
|
outputDir: samples/openapi3/schema/petstore/avro-schema
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/avro-schema/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/avro-schema/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/avro-schema
|
templateDir: modules/openapi-generator/src/main/resources/avro-schema
|
||||||
additionalProperties:
|
|
||||||
useLogicalTypes: true
|
|
||||||
logicalTypeTimeQuantifier: nanos
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
generatorName: c
|
|
||||||
outputDir: samples/client/others/c/bearerAuth
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/c/bearer_auth.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/C-libcurl
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user