mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
Compare commits
191 Commits
r-github
...
WannabeSof
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b798dc0cb4 | ||
|
|
258d971f42 | ||
|
|
5e8dcc9f07 | ||
|
|
67b24330c9 | ||
|
|
f02acaf27e | ||
|
|
75804e4e31 | ||
|
|
fe6da71327 | ||
|
|
2f69ad9f26 | ||
|
|
e5437e06a3 | ||
|
|
7e9b9615db | ||
|
|
731668b199 | ||
|
|
24d7c3e904 | ||
|
|
71a6901d1e | ||
|
|
f1a273de16 | ||
|
|
3a63c2f7d2 | ||
|
|
73c8728343 | ||
|
|
ac3c37095d | ||
|
|
a55525c634 | ||
|
|
ec0edf433a | ||
|
|
1c950018c8 | ||
|
|
7a5d0d1a71 | ||
|
|
327599996d | ||
|
|
5bdb691fb6 | ||
|
|
fec88b3e88 | ||
|
|
0e1cba6eb6 | ||
|
|
45e4fa1633 | ||
|
|
46de9c8c16 | ||
|
|
ab6c827098 | ||
|
|
e68e3e88b3 | ||
|
|
8b01ebb5c2 | ||
|
|
7dcef20355 | ||
|
|
6e48cf4247 | ||
|
|
6278512122 | ||
|
|
5c04b754ab | ||
|
|
b7749712b8 | ||
|
|
c30fb413bb | ||
|
|
6b692739e8 | ||
|
|
ee4cb9ac22 | ||
|
|
ec28d6261c | ||
|
|
0edcc9d204 | ||
|
|
59eac42b0f | ||
|
|
5efe16c66b | ||
|
|
8a061acc7c | ||
|
|
177b94b1b4 | ||
|
|
58fde20e2c | ||
|
|
8300794c5e | ||
|
|
9b692e5ef7 | ||
|
|
d523903827 | ||
|
|
5f647b8477 | ||
|
|
6825d9ccaa | ||
|
|
0e42edc95b | ||
|
|
278d7ae4c9 | ||
|
|
7b3de8dbce | ||
|
|
bdfbb32cdd | ||
|
|
6e089f5f03 | ||
|
|
e62908e30e | ||
|
|
6164836b57 | ||
|
|
ee40887d47 | ||
|
|
1d739f1598 | ||
|
|
2a556ff24e | ||
|
|
29a817afdb | ||
|
|
3029ac62f7 | ||
|
|
27018b0a0d | ||
|
|
5544e6acc5 | ||
|
|
08733aaf25 | ||
|
|
3f24026b87 | ||
|
|
27ed27f135 | ||
|
|
3cc094485d | ||
|
|
86f107047e | ||
|
|
2ebda09b9f | ||
|
|
fde017150e | ||
|
|
5daef3e901 | ||
|
|
6e443f1354 | ||
|
|
babb3e272b | ||
|
|
d1df75c61d | ||
|
|
20d5126b17 | ||
|
|
efd06f5719 | ||
|
|
c854a23682 | ||
|
|
1c2fd67cc9 | ||
|
|
27d3c6f326 | ||
|
|
eae5088f7c | ||
|
|
90d6af2bab | ||
|
|
d8593ef6d7 | ||
|
|
9148db26fc | ||
|
|
2cdd9ae687 | ||
|
|
443fd76529 | ||
|
|
9c1b680fdf | ||
|
|
bd0b81d26d | ||
|
|
afedd3fd33 | ||
|
|
399547c2ba | ||
|
|
daa8eb422d | ||
|
|
e4c9eb36e9 | ||
|
|
ac5478e909 | ||
|
|
992e387e27 | ||
|
|
e903a89ccf | ||
|
|
ffaeca3204 | ||
|
|
7c4d7277b4 | ||
|
|
065eceb824 | ||
|
|
8ce639ddae | ||
|
|
ca7e8bd932 | ||
|
|
e1447bc3dc | ||
|
|
c134a8adbf | ||
|
|
9c11fcf6bc | ||
|
|
6215e6e005 | ||
|
|
814f406472 | ||
|
|
3d93cc05ec | ||
|
|
dc8fac21d9 | ||
|
|
cd7fe341d3 | ||
|
|
66c2a287cc | ||
|
|
20be2decde | ||
|
|
cc3d6968fa | ||
|
|
2c816f89cb | ||
|
|
f6eeb01895 | ||
|
|
8ee69bfe74 | ||
|
|
8d06496cce | ||
|
|
2569321b82 | ||
|
|
dbe0419034 | ||
|
|
bae8082b9a | ||
|
|
7fba143c5e | ||
|
|
001bc833db | ||
|
|
07b764e0a2 | ||
|
|
11a0075c46 | ||
|
|
9264669a17 | ||
|
|
96b44ce727 | ||
|
|
caf53ac6c4 | ||
|
|
8c0f8677f0 | ||
|
|
d06ed32df0 | ||
|
|
490de02971 | ||
|
|
3ebb299981 | ||
|
|
43d58ee9b0 | ||
|
|
2513d82989 | ||
|
|
6c31cbbf47 | ||
|
|
fe5305f2cf | ||
|
|
030be5d3c7 | ||
|
|
2bbb19a1d5 | ||
|
|
9cd04e71fa | ||
|
|
d7aee8a0d6 | ||
|
|
e1aed293cf | ||
|
|
1870fbb7cf | ||
|
|
9cb04c1b9d | ||
|
|
aacbdf88c0 | ||
|
|
3e032bfcfd | ||
|
|
1860efade2 | ||
|
|
bfc989c6ab | ||
|
|
77e3326a36 | ||
|
|
36cea14781 | ||
|
|
4d9fd4df92 | ||
|
|
4b88cf8243 | ||
|
|
8874df4702 | ||
|
|
6ff9e67bad | ||
|
|
3e577d58c3 | ||
|
|
89a108aca0 | ||
|
|
0f231d9494 | ||
|
|
517bbeb9a9 | ||
|
|
5db1e75fa6 | ||
|
|
5b8a11546c | ||
|
|
603dbfd7f9 | ||
|
|
e2652f1c62 | ||
|
|
c077d005d5 | ||
|
|
f659457f90 | ||
|
|
bf6e83ea63 | ||
|
|
7e974272be | ||
|
|
bb6acc132a | ||
|
|
f6de5b71dc | ||
|
|
a7af767e34 | ||
|
|
de3e227328 | ||
|
|
df1d562f24 | ||
|
|
302590a215 | ||
|
|
31060931b6 | ||
|
|
9f2c92079e | ||
|
|
81be9cd409 | ||
|
|
8de694d4bb | ||
|
|
02ba9f68ac | ||
|
|
87231c3b58 | ||
|
|
f846f307ca | ||
|
|
faa3a0e4c1 | ||
|
|
97aa4a8587 | ||
|
|
5ba0650659 | ||
|
|
fcc83db0f8 | ||
|
|
3fbf52f395 | ||
|
|
dba7aee41e | ||
|
|
d7a8aae6e2 | ||
|
|
7af84cad94 | ||
|
|
7664c6f511 | ||
|
|
e275826d1b | ||
|
|
d29a4bea25 | ||
|
|
657f5fb004 | ||
|
|
fbb15fd324 | ||
|
|
7c1dce4756 | ||
|
|
815a7324e3 | ||
|
|
f371a91d15 |
74
.github/workflows/docker-release.yml
vendored
Normal file
74
.github/workflows/docker-release.yml
vendored
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
name: Release to DockerHub (snapshot, stable)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*' # Triggers on any tag starting with 'v' (e.g., v1.0, v2.1.3)
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
name: Publish images
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# build the JARs
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
distribution: 'zulu'
|
||||||
|
- name: Cache Maven packages
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.m2
|
||||||
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-m2
|
||||||
|
- name: Build
|
||||||
|
run: ./mvnw clean install -DskipTests=true
|
||||||
|
|
||||||
|
# docker workflow
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Setup variables
|
||||||
|
run: |
|
||||||
|
# set as GitHub ENV variables
|
||||||
|
echo "cli_version=$(\./mvnw -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[')" >> $GITHUB_ENV
|
||||||
|
echo "build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV
|
||||||
|
echo "DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online" >> $GITHUB_ENV
|
||||||
|
echo "DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# online images
|
||||||
|
- name: Publish openapi-generator-online snapshot version
|
||||||
|
if: github.ref_type != 'tag' # not tag (release)
|
||||||
|
run: |
|
||||||
|
docker buildx create --use
|
||||||
|
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }} ./modules/openapi-generator-online
|
||||||
|
- name: Publish openapi-generator-online stable version
|
||||||
|
if: github.ref_type == 'tag' # tagged (release)
|
||||||
|
run: |
|
||||||
|
docker buildx create --use
|
||||||
|
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }}:latest -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }}:${{ github.ref_name }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }} -t ${{ env.DOCKER_GENERATOR_IMAGE_NAME }}:latest-release ./modules/openapi-generator-online
|
||||||
|
|
||||||
|
# cli images
|
||||||
|
- name: Publish openapi-generator-cli snapshot version
|
||||||
|
if: github.ref_type != 'tag' # not tag (release)
|
||||||
|
run: |
|
||||||
|
cp docker-entrypoint.sh ./modules/openapi-generator-cli
|
||||||
|
docker buildx create --use
|
||||||
|
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_CODEGEN_CLI_IMAGE_NAME }} ./modules/openapi-generator-cli
|
||||||
|
- name: Publish openapi-generator-cli stable version
|
||||||
|
if: github.ref_type == 'tag' # tagged (release)
|
||||||
|
run: |
|
||||||
|
cp docker-entrypoint.sh ./modules/openapi-generator-cli
|
||||||
|
docker buildx create --use
|
||||||
|
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=${{ env.build_date }} --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$GITHUB_SHA --label=org.opencontainers.image.version=${{ env.cli_version }} -t ${{ env.DOCKER_CODEGEN_CLI_IMAGE_NAME }}:latest -t ${{ env.DOCKER_CODEGEN_CLI_IMAGE_NAME }}:${{ github.ref_name }} -t ${{ env.DOCKER_CODEGEN_CLI_IMAGE_NAME }} -t ${{ env.DOCKER_CODEGEN_CLI_IMAGE_NAME }}:latest-release ./modules/openapi-generator-cli
|
||||||
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Test run-in-docker.sh
|
- name: Test run-in-docker.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
18
.github/workflows/gradle-plugin-tests.yaml
vendored
18
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -13,9 +13,9 @@ jobs:
|
|||||||
name: Gradle plugin tests
|
name: Gradle plugin tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
@@ -34,12 +34,22 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-test-gradle-plugin-
|
${{ runner.os }}-test-gradle-plugin-
|
||||||
- name: Run tests
|
- name: mvn clean install
|
||||||
|
run: |
|
||||||
|
./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
- name: Run tests with wrapper
|
||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/gradle-build-action@v3
|
||||||
|
with:
|
||||||
|
gradle-version: '8.14.3'
|
||||||
|
- name: Run tests without wrapper
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
run: |
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && gradle buildJavaResttemplateSdk) # not using gradle wrapper
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && gradle buildJavaResttemplateSdk) # not using gradle wrapper
|
||||||
|
|||||||
4
.github/workflows/gradle-test.yaml
vendored
4
.github/workflows/gradle-test.yaml
vendored
@@ -32,8 +32,8 @@ jobs:
|
|||||||
- samples/client/petstore/java/native
|
- samples/client/petstore/java/native
|
||||||
- samples/client/petstore/java/native-jakarta
|
- samples/client/petstore/java/native-jakarta
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
14
.github/workflows/linux.yaml
vendored
14
.github/workflows/linux.yaml
vendored
@@ -20,10 +20,10 @@ jobs:
|
|||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
@@ -44,6 +44,10 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
|
with:
|
||||||
|
gradle-version: '8.14.3'
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.18.0
|
||||||
with:
|
with:
|
||||||
@@ -65,7 +69,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Test Gradle plugin usage
|
- name: Test Gradle plugin usage
|
||||||
shell: bash
|
shell: bash
|
||||||
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
run: gradle --project-dir modules/openapi-generator-gradle-plugin/samples/local-spec buildGoSdk --stacktrace
|
||||||
|
|
||||||
- name: Test Maven plugin integration
|
- name: Test Maven plugin integration
|
||||||
if: matrix.java == '11'
|
if: matrix.java == '11'
|
||||||
@@ -85,14 +89,14 @@ jobs:
|
|||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.18.0
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
- name: Run Ensures Script
|
- name: Run Ensures Script
|
||||||
|
|||||||
4
.github/workflows/maven-plugin-tests.yaml
vendored
4
.github/workflows/maven-plugin-tests.yaml
vendored
@@ -13,9 +13,9 @@ jobs:
|
|||||||
name: Maven plugin tests
|
name: Maven plugin tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
61
.github/workflows/maven-release.yml
vendored
Normal file
61
.github/workflows/maven-release.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
name: Release to Maven Central (snapshot, stable)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
distribution: 'zulu'
|
||||||
|
- name: Cache Maven packages
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.m2
|
||||||
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-m2
|
||||||
|
- name: Build
|
||||||
|
run: ./mvnw clean install -DskipTests=true
|
||||||
|
#run: ./mvnw clean install
|
||||||
|
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Publish to Maven Central
|
||||||
|
needs: build
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- id: install-secret-key
|
||||||
|
name: Install gpg secret key
|
||||||
|
run: |
|
||||||
|
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
|
||||||
|
gpg --list-secret-keys --keyid-format LONG
|
||||||
|
|
||||||
|
- name: Set up Maven Central Repository
|
||||||
|
uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
distribution: 'zulu'
|
||||||
|
server-id: central
|
||||||
|
server-username: MAVEN_USERNAME
|
||||||
|
server-password: MAVEN_PASSWORD
|
||||||
|
|
||||||
|
- name: Publish package
|
||||||
|
run: ./mvnw -DskipTests=true --batch-mode -P release -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
|
||||||
|
env:
|
||||||
|
MAVEN_USERNAME: ${{ secrets.OSS_USERNAME }}
|
||||||
|
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
|
||||||
2
.github/workflows/misc-test.yaml
vendored
2
.github/workflows/misc-test.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Misc tests
|
name: Misc tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.6'
|
ruby-version: '2.6'
|
||||||
|
|||||||
20
.github/workflows/openapi-generator.yaml
vendored
20
.github/workflows/openapi-generator.yaml
vendored
@@ -15,9 +15,9 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
@@ -53,9 +53,9 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
@@ -90,14 +90,14 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Download openapi-generator-cli.jar artifact
|
- name: Download openapi-generator-cli.jar artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target
|
path: modules/openapi-generator-cli/target
|
||||||
@@ -129,14 +129,14 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Download openapi-generator-cli.jar artifact
|
- name: Download openapi-generator-cli.jar artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target
|
path: modules/openapi-generator-cli/target
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ jobs:
|
|||||||
- samples/server/petstore/aspnet/fastendpoints-useResponseCaching
|
- samples/server/petstore/aspnet/fastendpoints-useResponseCaching
|
||||||
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- 'samples/client/others/c/bearerAuth/'
|
- 'samples/client/others/c/bearerAuth/'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
51
.github/workflows/samples-clojure.yaml
vendored
Normal file
51
.github/workflows/samples-clojure.yaml
vendored
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
name: Samples Clojure Client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/clojure/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/clojure/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Clojure Client (JDK11)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/clojure/
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Add hosts to /etc/hosts
|
||||||
|
run: |
|
||||||
|
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- 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: Install Leiningen (if using Leiningen)
|
||||||
|
run: |
|
||||||
|
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > lein
|
||||||
|
chmod +x lein
|
||||||
|
sudo mv lein /usr/local/bin/
|
||||||
|
- name: Run tests (Leiningen)
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: lein test
|
||||||
30
.github/workflows/samples-cpp-oatpp-client.yaml
vendored
Normal file
30
.github/workflows/samples-cpp-oatpp-client.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Samples cpp oat++ client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "samples/client/petstore/cpp-oatpp/**"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "samples/client/petstore/cpp-oatpp/**"
|
||||||
|
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 6.9
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build cpp oat++ client
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/cpp-oatpp
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macOS-latest
|
||||||
|
- windows-latest
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: cmake -B build && cmake --build build --verbose
|
||||||
@@ -13,7 +13,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build cpp qt client
|
name: Build cpp oat++ server
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- windows-latest
|
- windows-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: cmake -B build && cmake --build build --verbose
|
run: cmake -B build && cmake --build build --verbose
|
||||||
|
|||||||
2
.github/workflows/samples-cpp-qt-client.yaml
vendored
2
.github/workflows/samples-cpp-qt-client.yaml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- windows-latest
|
- windows-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
59
.github/workflows/samples-dart-build-test.yaml
vendored
Normal file
59
.github/workflows/samples-dart-build-test.yaml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: Samples Dart (build, test)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
paths:
|
||||||
|
#- samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/**
|
||||||
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
|
||||||
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/oneof/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/binary_response/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/petstore-timemachine/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
#- samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/**
|
||||||
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
|
||||||
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/oneof/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/binary_response/**
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/petstore-timemachine/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
sdk: ["3.9.0"]
|
||||||
|
sample:
|
||||||
|
#- samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/
|
||||||
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/
|
||||||
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/oneof/
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/binary_response/
|
||||||
|
- samples/openapi3/client/petstore/dart-dio/petstore-timemachine/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- uses: dart-lang/setup-dart@v1
|
||||||
|
with:
|
||||||
|
sdk: ${{ matrix.sdk }}
|
||||||
|
|
||||||
|
- name: pub get
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dart pub get
|
||||||
|
|
||||||
|
- name: build_runner build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dart run build_runner build
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dart test
|
||||||
4
.github/workflows/samples-dart.yaml
vendored
4
.github/workflows/samples-dart.yaml
vendored
@@ -17,8 +17,8 @@ jobs:
|
|||||||
name: Tests Dart
|
name: Tests Dart
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
4
.github/workflows/samples-dotnet-fx.yaml
vendored
4
.github/workflows/samples-dotnet-fx.yaml
vendored
@@ -12,7 +12,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
runs-on: windows-2019
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/generichost/net4.8/Petstore
|
- samples/client/petstore/csharp/generichost/net4.8/Petstore
|
||||||
- samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate
|
- samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
|||||||
37
.github/workflows/samples-dotnet-petstore.yml
vendored
Normal file
37
.github/workflows/samples-dotnet-petstore.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Samples C# .Net Client (Petstore)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '7.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
|
||||||
@@ -27,8 +27,8 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
||||||
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-project4Models
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
54
.github/workflows/samples-dotnet7-client.yml
vendored
Normal file
54
.github/workflows/samples-dotnet7-client.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
name: Samples C# .Net 7 Client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# the .NET Core 3.0 runtime is no longer supported as it reached its end-of-life on March 3, 2020
|
||||||
|
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build clients
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/Petstore/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/
|
||||||
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '7.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
|
||||||
@@ -18,8 +18,8 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
||||||
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-8.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-8.0-useSwashBuckle
|
||||||
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
4
.github/workflows/samples-dotnet8.yaml
vendored
4
.github/workflows/samples-dotnet8.yaml
vendored
@@ -33,8 +33,8 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/generichost/net8/SourceGeneration
|
- samples/client/petstore/csharp/generichost/net8/SourceGeneration
|
||||||
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
7
.github/workflows/samples-dotnet9.yaml
vendored
7
.github/workflows/samples-dotnet9.yaml
vendored
@@ -23,6 +23,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/ComposedEnum
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf
|
||||||
- samples/client/petstore/csharp/generichost/latest/Tags
|
- samples/client/petstore/csharp/generichost/latest/Tags
|
||||||
- samples/client/petstore/csharp/generichost/latest/HelloWorld
|
- samples/client/petstore/csharp/generichost/latest/HelloWorld
|
||||||
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
||||||
@@ -41,11 +43,12 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/net9/EnumMappings
|
- samples/client/petstore/csharp/restsharp/net9/EnumMappings
|
||||||
# httpclient
|
# httpclient
|
||||||
- samples/client/petstore/csharp/httpclient/net9/Petstore
|
- samples/client/petstore/csharp/httpclient/net9/Petstore
|
||||||
|
- samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi
|
||||||
# unity
|
# unity
|
||||||
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v4.3.1
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.101'
|
dotnet-version: '9.0.101'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
2
.github/workflows/samples-elixir.yaml
vendored
2
.github/workflows/samples-elixir.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
SWAGGER_HOST: http://petstore.swagger.io
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
SWAGGER_BASE_PATH: /v2
|
SWAGGER_BASE_PATH: /v2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: ${{matrix.otp}}
|
otp-version: ${{matrix.otp}}
|
||||||
|
|||||||
2
.github/workflows/samples-elm.yaml
vendored
2
.github/workflows/samples-elm.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- samples/client/petstore/elm
|
- samples/client/petstore/elm
|
||||||
- samples/openapi3/client/elm
|
- samples/openapi3/client/elm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: jorelali/setup-elm@v6
|
- uses: jorelali/setup-elm@v6
|
||||||
with:
|
with:
|
||||||
elm-version: 0.19.1
|
elm-version: 0.19.1
|
||||||
|
|||||||
2
.github/workflows/samples-erlang.yaml
vendored
2
.github/workflows/samples-erlang.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- 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@v5
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: '27'
|
otp-version: '27'
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/go
|
- samples/client/echo_api/go
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: "stable"
|
go-version: "stable"
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
45
.github/workflows/samples-go-client-petstore.yaml
vendored
Normal file
45
.github/workflows/samples-go-client-petstore.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Samples Go Clients (Petstore)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/go/**
|
||||||
|
- samples/openapi3/client/petstore/go/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/go/**
|
||||||
|
- samples/openapi3/client/petstore/go/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Go
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/go/
|
||||||
|
- samples/openapi3/client/petstore/go/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Add hosts to /etc/hosts
|
||||||
|
run: |
|
||||||
|
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
||||||
|
- uses: actions/setup-go@v6
|
||||||
|
- run: go version
|
||||||
|
- name: Install Dependencies
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
go mod tidy
|
||||||
|
- name: Run test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: go test -mod=mod -v
|
||||||
|
|
||||||
45
.github/workflows/samples-go-client.yaml
vendored
Normal file
45
.github/workflows/samples-go-client.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Samples Go Clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
||||||
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
||||||
|
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
|
||||||
|
- samples/client/others/go/allof_multiple_ref_and_discriminator/**
|
||||||
|
- samples/client/others/go/oneof-anyof-required/**
|
||||||
|
- samples/client/others/go/oneof-discriminator-lookup/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
||||||
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
||||||
|
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
|
||||||
|
- samples/client/others/go/allof_multiple_ref_and_discriminator/**
|
||||||
|
- samples/client/others/go/oneof-anyof-required/**
|
||||||
|
- samples/client/others/go/oneof-discriminator-lookup/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Go
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/'
|
||||||
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/'
|
||||||
|
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/
|
||||||
|
- samples/client/others/go/allof_multiple_ref_and_discriminator/
|
||||||
|
- samples/client/others/go/oneof-anyof-required/
|
||||||
|
- samples/client/others/go/oneof-discriminator-lookup/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-go@v6
|
||||||
|
- run: go version
|
||||||
|
- name: Install Dependencies
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
go mod tidy
|
||||||
|
- name: Run test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: go test -mod=mod -v
|
||||||
|
|
||||||
4
.github/workflows/samples-go-gin.yaml
vendored
4
.github/workflows/samples-go-gin.yaml
vendored
@@ -21,8 +21,8 @@ jobs:
|
|||||||
- samples/server/petstore/go-gin-api-server/
|
- samples/server/petstore/go-gin-api-server/
|
||||||
- samples/server/petstore/go-gin-api-server-interface-only/
|
- samples/server/petstore/go-gin-api-server-interface-only/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: "stable"
|
go-version: "stable"
|
||||||
- run: go version
|
- run: go version
|
||||||
|
|||||||
8
.github/workflows/samples-go.yaml
vendored
8
.github/workflows/samples-go.yaml
vendored
@@ -27,8 +27,8 @@ jobs:
|
|||||||
- samples/server/petstore/go-chi-server/
|
- samples/server/petstore/go-chi-server/
|
||||||
- samples/server/others/go-server/no-body-path-params/
|
- samples/server/others/go-server/no-body-path-params/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: "stable"
|
go-version: "stable"
|
||||||
- run: go version
|
- run: go version
|
||||||
@@ -47,9 +47,9 @@ jobs:
|
|||||||
go-version:
|
go-version:
|
||||||
- "1.18"
|
- "1.18"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|||||||
4
.github/workflows/samples-groovy.yaml
vendored
4
.github/workflows/samples-groovy.yaml
vendored
@@ -21,8 +21,8 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/groovy
|
- samples/client/petstore/groovy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|||||||
2
.github/workflows/samples-haskell.yaml
vendored
2
.github/workflows/samples-haskell.yaml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
- samples/server/others/haskell-servant-ping/
|
- 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@v5
|
||||||
- uses: haskell/actions/setup@v2
|
- uses: haskell/actions/setup@v2
|
||||||
with:
|
with:
|
||||||
# ghc-version: '8.8.4' # Exact version of ghc to use
|
# ghc-version: '8.8.4' # Exact version of ghc to use
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ jobs:
|
|||||||
- samples/client/echo_api/java/resttemplate
|
- samples/client/echo_api/java/resttemplate
|
||||||
- samples/client/echo_api/java/resteasy
|
- samples/client/echo_api/java/resteasy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
~/.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: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ jobs:
|
|||||||
- samples/client/echo_api/java/resteasy
|
- samples/client/echo_api/java/resteasy
|
||||||
- samples/client/echo_api/java/restclient
|
- samples/client/echo_api/java/restclient
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
~/.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: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ jobs:
|
|||||||
- samples/client/echo_api/java/resttemplate
|
- samples/client/echo_api/java/resttemplate
|
||||||
- samples/client/echo_api/java/resteasy
|
- samples/client/echo_api/java/resteasy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
~/.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: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
19
.github/workflows/samples-java-client-jdk11.yaml
vendored
19
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
- samples/client/petstore/jaxrs-cxf-client/**
|
- samples/client/petstore/jaxrs-cxf-client/**
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client-swagger2/**
|
||||||
- samples/client/petstore/java-micronaut-client/**
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
@@ -17,12 +18,17 @@ on:
|
|||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
||||||
- samples/client/others/java/jersey2-oneOf-duplicates/**
|
- samples/client/others/java/jersey2-oneOf-duplicates/**
|
||||||
- samples/client/others/java/jersey2-oneOf-Mixed/**
|
- samples/client/others/java/jersey2-oneOf-Mixed/**
|
||||||
|
- samples/client/petstore/java/jersey3-oneOf/**
|
||||||
|
- samples/client/others/java/okhttp-gson-streaming/**
|
||||||
|
- samples/client/others/java/resteasy/**
|
||||||
|
- samples/client/others/java/apache-httpclient/**
|
||||||
- samples/client/others/java/resttemplate-list-schema-validation/**
|
- samples/client/others/java/resttemplate-list-schema-validation/**
|
||||||
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
|
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
- samples/client/petstore/jaxrs-cxf-client/**
|
- samples/client/petstore/jaxrs-cxf-client/**
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client-swagger2/**
|
||||||
- samples/client/petstore/java-micronaut-client/**
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
@@ -35,6 +41,10 @@ on:
|
|||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
||||||
- samples/client/others/java/jersey2-oneOf-duplicates/**
|
- samples/client/others/java/jersey2-oneOf-duplicates/**
|
||||||
- samples/client/others/java/jersey2-oneOf-Mixed/**
|
- samples/client/others/java/jersey2-oneOf-Mixed/**
|
||||||
|
- samples/client/petstore/java/jersey3-oneOf/**
|
||||||
|
- samples/client/others/java/okhttp-gson-streaming/**
|
||||||
|
- samples/client/others/java/resteasy/**
|
||||||
|
- samples/client/others/java/apache-httpclient/**
|
||||||
- samples/client/others/java/resttemplate-list-schema-validation/**
|
- samples/client/others/java/resttemplate-list-schema-validation/**
|
||||||
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
|
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/**
|
||||||
jobs:
|
jobs:
|
||||||
@@ -46,6 +56,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client-swagger2
|
||||||
- samples/client/petstore/jaxrs-cxf-client
|
- samples/client/petstore/jaxrs-cxf-client
|
||||||
- samples/client/petstore/java/native
|
- samples/client/petstore/java/native
|
||||||
- samples/client/petstore/java/native-async
|
- samples/client/petstore/java/native-async
|
||||||
@@ -97,9 +108,13 @@ jobs:
|
|||||||
- samples/client/others/java/jersey2-oneOf-Mixed/
|
- samples/client/others/java/jersey2-oneOf-Mixed/
|
||||||
- samples/client/others/java/resttemplate-list-schema-validation/
|
- samples/client/others/java/resttemplate-list-schema-validation/
|
||||||
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/
|
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/
|
||||||
|
- samples/client/petstore/java/jersey3-oneOf/
|
||||||
|
- samples/client/others/java/okhttp-gson-streaming/
|
||||||
|
- samples/client/petstore/java/resteasy/
|
||||||
|
- samples/client/petstore/java/apache-httpclient/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ jobs:
|
|||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
||||||
- samples/client/others/java/restclient-enum-in-multipart
|
- samples/client/others/java/restclient-enum-in-multipart
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|||||||
39
.github/workflows/samples-java-dubbo.yaml
vendored
Normal file
39
.github/workflows/samples-java-dubbo.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Samples Java Dubbo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/java-dubbo/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/java-dubbo/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Dubbo
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/java-dubbo
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
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: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package --no-transfer-progress -DskipTests
|
||||||
|
# add -DskipTests as the app compiles but fails to start
|
||||||
|
#run: mvn clean package --no-transfer-progress
|
||||||
@@ -26,8 +26,8 @@ jobs:
|
|||||||
- samples/server/others/java-helidon-server/v3/mp-format-test
|
- samples/server/others/java-helidon-server/v3/mp-format-test
|
||||||
version: [17]
|
version: [17]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.version }}
|
java-version: ${{ matrix.version }}
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ jobs:
|
|||||||
- samples/server/others/java-helidon-server/v4/mp-format-test
|
- samples/server/others/java-helidon-server/v4/mp-format-test
|
||||||
version: [21]
|
version: [21]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.version }}
|
java-version: ${{ matrix.version }}
|
||||||
|
|||||||
65
.github/workflows/samples-java-petsore-client-jdk11.yaml
vendored
Normal file
65
.github/workflows/samples-java-petsore-client-jdk11.yaml
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
# run java client tests with petstore server
|
||||||
|
name: Samples Java Petsore Client JDK11
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java/jersey2-java8/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8/**
|
||||||
|
- samples/client/petstore/java/jersey3/**
|
||||||
|
- samples/client/petstore/java/okhttp-gson/**
|
||||||
|
- samples/client/petstore/java/okhttp-gson-3.1/**
|
||||||
|
- samples/client/petstore/java/okhttp-gson-dynamicOperations/**
|
||||||
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java/jersey2-java8/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8/**
|
||||||
|
- samples/client/petstore/java/jersey3/**
|
||||||
|
- samples/client/petstore/java/okhttp-gson/**
|
||||||
|
- samples/client/petstore/java/okhttp-gson-3.1/**
|
||||||
|
- samples/client/petstore/java/okhttp-gson-dynamicOperations/**
|
||||||
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Client JDK11
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/java/jersey2-java8
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8
|
||||||
|
- samples/client/petstore/java/jersey3
|
||||||
|
- samples/client/petstore/java/okhttp-gson
|
||||||
|
- samples/client/petstore/java/okhttp-gson-3.1
|
||||||
|
- samples/client/petstore/java/okhttp-gson-dynamicOperations
|
||||||
|
- samples/client/petstore/java-micronaut-client
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Add hosts to /etc/hosts
|
||||||
|
run: |
|
||||||
|
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- 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 with Maven
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package --no-transfer-progress
|
||||||
@@ -29,8 +29,8 @@ jobs:
|
|||||||
- samples/server/petstore/java-play-framework-no-swagger-ui
|
- samples/server/petstore/java-play-framework-no-swagger-ui
|
||||||
- samples/server/petstore/java-play-framework-no-wrap-calls
|
- samples/server/petstore/java-play-framework-no-wrap-calls
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
38
.github/workflows/samples-java-sbt.yaml
vendored
Normal file
38
.github/workflows/samples-java-sbt.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Samples Java (sbt)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build sbt/Java client, servers
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/java/okhttp-gson
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- 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
|
||||||
@@ -31,8 +31,8 @@ jobs:
|
|||||||
#- samples/server/petstore/java-undertow/
|
#- samples/server/petstore/java-undertow/
|
||||||
- samples/server/petstore/java-microprofile/
|
- samples/server/petstore/java-microprofile/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|||||||
4
.github/workflows/samples-java-wiremock.yaml
vendored
4
.github/workflows/samples-java-wiremock.yaml
vendored
@@ -17,8 +17,8 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/server/petstore/java-wiremock
|
- samples/server/petstore/java-wiremock
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
4
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
4
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
@@ -18,8 +18,8 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/jaxrs/jersey3
|
- samples/server/petstore/jaxrs/jersey3
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
6
.github/workflows/samples-jaxrs.yaml
vendored
6
.github/workflows/samples-jaxrs.yaml
vendored
@@ -38,11 +38,11 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
||||||
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
|
|||||||
4
.github/workflows/samples-jdk17.yaml
vendored
4
.github/workflows/samples-jdk17.yaml
vendored
@@ -58,8 +58,8 @@ jobs:
|
|||||||
- samples/server/petstore/java-helidon-server/v3/mp/
|
- samples/server/petstore/java-helidon-server/v3/mp/
|
||||||
- samples/server/petstore/java-helidon-server/v3/se
|
- samples/server/petstore/java-helidon-server/v3/se
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|||||||
4
.github/workflows/samples-jdk21.yaml
vendored
4
.github/workflows/samples-jdk21.yaml
vendored
@@ -31,8 +31,8 @@ jobs:
|
|||||||
- samples/server/petstore/java-helidon-server/v4/mp/
|
- samples/server/petstore/java-helidon-server/v4/mp/
|
||||||
- samples/server/petstore/java-helidon-server/v4/se/
|
- samples/server/petstore/java-helidon-server/v4/se/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
|||||||
2
.github/workflows/samples-julia.yaml
vendored
2
.github/workflows/samples-julia.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Tests Julia
|
name: Tests Julia
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v2
|
||||||
with:
|
with:
|
||||||
version: 1.8
|
version: 1.8
|
||||||
|
|||||||
9
.github/workflows/samples-kotlin-client.yaml
vendored
9
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -5,10 +5,12 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'samples/client/petstore/kotlin*/**'
|
- 'samples/client/petstore/kotlin*/**'
|
||||||
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
||||||
|
- samples/client/others/kotlin-integer-enum/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/kotlin*/**'
|
- 'samples/client/petstore/kotlin*/**'
|
||||||
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
||||||
|
- samples/client/others/kotlin-integer-enum/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -31,6 +33,7 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-moshi-codegen
|
- samples/client/petstore/kotlin-moshi-codegen
|
||||||
- samples/client/petstore/kotlin-multiplatform
|
- samples/client/petstore/kotlin-multiplatform
|
||||||
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
|
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
|
||||||
|
- samples/client/petstore/kotlin-multiplatform-allOf-discriminator
|
||||||
- samples/client/petstore/kotlin-nonpublic
|
- samples/client/petstore/kotlin-nonpublic
|
||||||
- samples/client/petstore/kotlin-nullable
|
- samples/client/petstore/kotlin-nullable
|
||||||
- samples/client/petstore/kotlin-retrofit2
|
- samples/client/petstore/kotlin-retrofit2
|
||||||
@@ -66,9 +69,11 @@ jobs:
|
|||||||
- 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
|
||||||
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
||||||
|
- samples/client/others/kotlin-integer-enum
|
||||||
|
- samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ jobs:
|
|||||||
- samples/client/echo_api/kotlin-model-prefix-type-mappings
|
- samples/client/echo_api/kotlin-model-prefix-type-mappings
|
||||||
- samples/client/echo_api/kotlin-jvm-okhttp
|
- samples/client/echo_api/kotlin-jvm-okhttp
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ jobs:
|
|||||||
# 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:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
||||||
- samples/server/petstore/kotlin-misk
|
- samples/server/petstore/kotlin-misk
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
|||||||
5
.github/workflows/samples-kotlin-server.yaml
vendored
5
.github/workflows/samples-kotlin-server.yaml
vendored
@@ -38,6 +38,7 @@ jobs:
|
|||||||
- 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-springboot-x-kotlin-implements
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
- samples/server/petstore/kotlin-server/ktor2
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
@@ -54,8 +55,8 @@ jobs:
|
|||||||
# no build.gradle file
|
# no build.gradle file
|
||||||
#- samples/server/petstore/kotlin-vertx-modelMutable
|
#- samples/server/petstore/kotlin-vertx-modelMutable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-wiremock-responses
|
- samples/server/petstore/kotlin-wiremock-responses
|
||||||
- samples/server/echo_api/kotlin-wiremock
|
- samples/server/echo_api/kotlin-wiremock
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|||||||
11
.github/workflows/samples-ocaml.yaml
vendored
11
.github/workflows/samples-ocaml.yaml
vendored
@@ -4,9 +4,15 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/ocaml/**'
|
- 'samples/client/petstore/ocaml/**'
|
||||||
|
- 'samples/client/petstore/ocaml-fake-petstore/**'
|
||||||
|
- 'samples/client/petstore/ocaml-oneOf-primitive/**'
|
||||||
|
- 'samples/client/petstore/ocaml-additional-properties/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/ocaml/**'
|
- 'samples/client/petstore/ocaml/**'
|
||||||
|
- 'samples/client/petstore/ocaml-fake-petstore/**'
|
||||||
|
- 'samples/client/petstore/ocaml-oneOf-primitive/**'
|
||||||
|
- 'samples/client/petstore/ocaml-additional-properties/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -17,8 +23,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- 'samples/client/petstore/ocaml/'
|
- 'samples/client/petstore/ocaml/'
|
||||||
|
- 'samples/client/petstore/ocaml-fake-petstore/'
|
||||||
|
- 'samples/client/petstore/ocaml-oneOf-primitive/'
|
||||||
|
- 'samples/client/petstore/ocaml-additional-properties/'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set-up OCaml
|
- name: Set-up OCaml
|
||||||
uses: ocaml/setup-ocaml@v3
|
uses: ocaml/setup-ocaml@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-php-client.yaml
vendored
2
.github/workflows/samples-php-client.yaml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
SWAGGER_HOST: http://petstore.swagger.io
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
SWAGGER_BASE_PATH: /v2
|
SWAGGER_BASE_PATH: /v2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Setup PHP with tools
|
- name: Setup PHP with tools
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
48
.github/workflows/samples-php-server-syntax-check.yaml
vendored
Normal file
48
.github/workflows/samples-php-server-syntax-check.yaml
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
name: Samples PHP (Server) Syntax Checker
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
|
#- samples/server/petstore/php-laravel/**
|
||||||
|
- samples/server/petstore/php-flight/**
|
||||||
|
- samples/server/petstore/php-mezzio-ph-modern/**
|
||||||
|
- samples/server/petstore/php-mezzio-ph/**
|
||||||
|
- samples/server/petstore/php-slim4/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
|
#- samples/server/petstore/php-laravel/**
|
||||||
|
- samples/server/petstore/php-flight/**
|
||||||
|
- samples/server/petstore/php-mezzio-ph-modern/**
|
||||||
|
- samples/server/petstore/php-mezzio-ph/**
|
||||||
|
- samples/server/petstore/php-slim4/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build PHP projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php:
|
||||||
|
- "8.1"
|
||||||
|
- "8.2"
|
||||||
|
- "8.3"
|
||||||
|
- "8.4"
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
||||||
|
#- samples/server/petstore/php-laravel/
|
||||||
|
- samples/server/petstore/php-flight/
|
||||||
|
- samples/server/petstore/php-mezzio-ph-modern/
|
||||||
|
- samples/server/petstore/php-mezzio-ph/
|
||||||
|
- samples/server/petstore/php-slim4/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Setup PHP with tools
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php }}"
|
||||||
|
- name: php -l
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: find . -name "*.php" -exec php -l {} +
|
||||||
36
.github/workflows/samples-php-syntax-check.yaml
vendored
Normal file
36
.github/workflows/samples-php-syntax-check.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Samples PHP Syntax Checker
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
||||||
|
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
||||||
|
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build PHP projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php:
|
||||||
|
- "8.1"
|
||||||
|
- "8.2"
|
||||||
|
- "8.3"
|
||||||
|
- "8.4"
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/php/OpenAPIClient-php/
|
||||||
|
- samples/client/petstore/php-nextgen/OpenAPIClient-php/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Setup PHP with tools
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php }}"
|
||||||
|
- name: php -l
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: find . -name "*.php" -exec php -l {} +
|
||||||
2
.github/workflows/samples-php8.yaml
vendored
2
.github/workflows/samples-php8.yaml
vendored
@@ -32,7 +32,7 @@ jobs:
|
|||||||
- samples/server/petstore/php-laravel/
|
- samples/server/petstore/php-laravel/
|
||||||
- samples/server/petstore/php-laravel-issue-21334/
|
- samples/server/petstore/php-laravel-issue-21334/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Setup PHP with tools
|
- name: Setup PHP with tools
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/samples-postman.yaml
vendored
4
.github/workflows/samples-postman.yaml
vendored
@@ -19,8 +19,8 @@ jobs:
|
|||||||
python-version:
|
python-version:
|
||||||
- "3.12"
|
- "3.12"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install
|
- name: Install
|
||||||
|
|||||||
40
.github/workflows/samples-powershell.yaml
vendored
Normal file
40
.github/workflows/samples-powershell.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Samples PowerShell
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/powershell/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/powershell/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Test Powershell Clients
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/powershell/
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Build the client
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
./Build.ps1
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
Import-Module -Name './src/PSPetstore'
|
||||||
|
Invoke-Pester -PassThru
|
||||||
|
|
||||||
|
|
||||||
2
.github/workflows/samples-protobuf.yaml
vendored
2
.github/workflows/samples-protobuf.yaml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- 'samples/config/petstore/protobuf-schema-config/'
|
- 'samples/config/petstore/protobuf-schema-config/'
|
||||||
- 'samples/config/petstore/protobuf-schema-config-complex/'
|
- 'samples/config/petstore/protobuf-schema-config-complex/'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Install Protocol Buffers Compiler
|
- name: Install Protocol Buffers Compiler
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ jobs:
|
|||||||
- "3.12"
|
- "3.12"
|
||||||
- "3.13"
|
- "3.13"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/python-fastapi/
|
- samples/server/petstore/python-fastapi/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ jobs:
|
|||||||
name: Validate pyproject.toml
|
name: Validate pyproject.toml
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
- name: Install validator
|
- name: Install validator
|
||||||
@@ -35,6 +35,7 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/openapi3/client/petstore/python-aiohttp
|
- samples/openapi3/client/petstore/python-aiohttp
|
||||||
- samples/openapi3/client/petstore/python
|
- samples/openapi3/client/petstore/python
|
||||||
|
- samples/openapi3/client/petstore/python-lazyImports
|
||||||
services:
|
services:
|
||||||
petstore-api:
|
petstore-api:
|
||||||
image: swaggerapi/petstore
|
image: swaggerapi/petstore
|
||||||
@@ -44,8 +45,8 @@ jobs:
|
|||||||
SWAGGER_HOST: http://petstore.swagger.io
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
SWAGGER_BASE_PATH: /v2
|
SWAGGER_BASE_PATH: /v2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
id: py
|
id: py
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ jobs:
|
|||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
- "3.12"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ jobs:
|
|||||||
SWAGGER_HOST: http://petstore.swagger.io
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
SWAGGER_BASE_PATH: /v2
|
SWAGGER_BASE_PATH: /v2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
id: py
|
id: py
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|||||||
4
.github/workflows/samples-python-server.yaml
vendored
4
.github/workflows/samples-python-server.yaml
vendored
@@ -18,8 +18,8 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/python-aiohttp-srclayout/
|
- samples/server/petstore/python-aiohttp-srclayout/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|||||||
42
.github/workflows/samples-r.yaml
vendored
42
.github/workflows/samples-r.yaml
vendored
@@ -1,42 +0,0 @@
|
|||||||
name: Samples R
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'samples/client/echo_api/r/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'samples/client/echo_api/r/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build R
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- 'samples/client/echo_api/r/'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- 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 &)
|
|
||||||
- uses: r-lib/actions/setup-r@v2
|
|
||||||
with:
|
|
||||||
r-version: 3.6.1
|
|
||||||
- uses: r-lib/actions/setup-r-dependencies@v2
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
with:
|
|
||||||
cache-version: 2
|
|
||||||
- name: Install curl
|
|
||||||
run: sudo apt-get install -y r-cran-curl
|
|
||||||
- name: build and test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
# export _R_CHECK_FORCE_SUGGESTS_=false
|
|
||||||
/bin/bash build_and_test.bash
|
|
||||||
shell: bash
|
|
||||||
4
.github/workflows/samples-ruby.yaml
vendored
4
.github/workflows/samples-ruby.yaml
vendored
@@ -24,9 +24,9 @@ jobs:
|
|||||||
- 'samples/client/echo_api/ruby-faraday/'
|
- 'samples/client/echo_api/ruby-faraday/'
|
||||||
- 'samples/client/echo_api/ruby-typhoeus/'
|
- 'samples/client/echo_api/ruby-typhoeus/'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
72
.github/workflows/samples-rust-client.yaml
vendored
Normal file
72
.github/workflows/samples-rust-client.yaml
vendored
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
name: Samples Rust Clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "samples/client/others/rust/**"
|
||||||
|
- "samples/client/petstore/rust-server/**"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "samples/client/others/rust/**"
|
||||||
|
- "samples/client/petstore/rust/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Rust
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# these folders contain sub-projects of rust clients, servers
|
||||||
|
- samples/client/others/rust/
|
||||||
|
- samples/client/petstore/rust/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
|
||||||
|
- name: Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
cache-targets: false # Don't cache workspace target directories as they don't exist
|
||||||
|
cache-directories:
|
||||||
|
${{ matrix.sample }}/target
|
||||||
|
workspaces: |
|
||||||
|
${{ matrix.sample }}/output/*
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: cargo build --all-targets --all-features
|
||||||
|
- name: Tests
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Iterate through each example and test various features
|
||||||
|
for package in $(find . -maxdepth 1 -mindepth 1 -type d)
|
||||||
|
do
|
||||||
|
# Not all versions have a client example
|
||||||
|
if test -f examples/client/main.rs; then
|
||||||
|
cargo build --example client --features="client"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Test the CLI works if present
|
||||||
|
if test -f bin/cli.rs; then
|
||||||
|
cargo build --bin ${package##*/} --features cli
|
||||||
|
target/debug/${package##*/} --help
|
||||||
|
fi
|
||||||
|
cargo fmt
|
||||||
|
cargo test
|
||||||
|
cargo clippy
|
||||||
|
cargo doc
|
||||||
|
done
|
||||||
@@ -1,16 +1,12 @@
|
|||||||
name: Samples Rust
|
name: Samples Rust Servers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "samples/client/others/rust/**"
|
|
||||||
- "samples/server/petstore/rust-server/**"
|
- "samples/server/petstore/rust-server/**"
|
||||||
- "samples/client/petstore/rust-server/**"
|
|
||||||
- "samples/server/petstore/rust-axum/**"
|
- "samples/server/petstore/rust-axum/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "samples/client/others/rust/**"
|
|
||||||
- "samples/client/petstore/rust/**"
|
|
||||||
- "samples/server/petstore/rust-server/**"
|
- "samples/server/petstore/rust-server/**"
|
||||||
- "samples/server/petstore/rust-axum/**"
|
- "samples/server/petstore/rust-axum/**"
|
||||||
|
|
||||||
@@ -23,13 +19,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# these folders contain sub-projects of rust clients, servers
|
# these folders contain sub-projects of rust clients, servers
|
||||||
- samples/client/others/rust/
|
|
||||||
- samples/client/petstore/rust/
|
|
||||||
- samples/server/petstore/rust-server/
|
- samples/server/petstore/rust-server/
|
||||||
- samples/server/petstore/rust-server-deprecated/
|
- samples/server/petstore/rust-server-deprecated/
|
||||||
- samples/server/petstore/rust-axum/
|
- samples/server/petstore/rust-axum/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
@@ -50,19 +44,10 @@ jobs:
|
|||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
# Skip samples/client/petstore/rust/ as it's tests are failing.
|
|
||||||
if [[ "${{ matrix.sample }}" == "samples/client/petstore/rust/" ]]; then
|
|
||||||
echo "Skipping tests for samples/client/petstore/rust/"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Iterate through each example and test various features
|
# Iterate through each example and test various features
|
||||||
for package in $(find . -maxdepth 1 -mindepth 1 -type d)
|
for package in $(find . -maxdepth 1 -mindepth 1 -type d)
|
||||||
do
|
do
|
||||||
# Not all versions have a client example
|
|
||||||
if test -f examples/client/main.rs; then
|
|
||||||
cargo build --example client --features="client"
|
|
||||||
fi
|
|
||||||
# Not all versions have a server example
|
# Not all versions have a server example
|
||||||
if test -f examples/server/main.rs; then
|
if test -f examples/server/main.rs; then
|
||||||
cargo build --example server --features="server"
|
cargo build --example server --features="server"
|
||||||
70
.github/workflows/samples-scala-client.yaml
vendored
Normal file
70
.github/workflows/samples-scala-client.yaml
vendored
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
name: Samples Scala/sbt client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/scalaz/**
|
||||||
|
- samples/client/petstore/scala-pekko/**
|
||||||
|
- samples/client/petstore/scala-http4s/**
|
||||||
|
- samples/client/petstore/scala-sttp4-jsoniter/**
|
||||||
|
- samples/client/petstore/scala-akka/**
|
||||||
|
- samples/client/petstore/scala-sttp/**
|
||||||
|
- samples/client/petstore/scala-sttp-circe/**
|
||||||
|
- samples/client/petstore/scala-sttp4/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/scalaz/**
|
||||||
|
- samples/client/petstore/scala-pekko/**
|
||||||
|
- samples/client/petstore/scala-http4s/**
|
||||||
|
- samples/client/petstore/scala-sttp4-jsoniter/**
|
||||||
|
- samples/client/petstore/scala-akka/**
|
||||||
|
- samples/client/petstore/scala-sttp/**
|
||||||
|
- samples/client/petstore/scala-sttp-circe/**
|
||||||
|
- samples/client/petstore/scala-sttp4/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build sbt/Scala
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/scalaz
|
||||||
|
- samples/client/petstore/scala-pekko
|
||||||
|
- samples/client/petstore/scala-http4s
|
||||||
|
- samples/client/petstore/scala-sttp4-jsoniter
|
||||||
|
- samples/client/petstore/scala-akka
|
||||||
|
- samples/client/petstore/scala-sttp
|
||||||
|
- samples/client/petstore/scala-sttp-circe
|
||||||
|
- samples/client/petstore/scala-sttp4
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Add hosts to /etc/hosts
|
||||||
|
run: |
|
||||||
|
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- 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
|
||||||
4
.github/workflows/samples-scala-jdk8.yaml
vendored
4
.github/workflows/samples-scala-jdk8.yaml
vendored
@@ -18,8 +18,8 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|||||||
@@ -1,33 +1,21 @@
|
|||||||
name: Samples Scala/sbt
|
name: Samples Scala/sbt server
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/scala**'
|
|
||||||
- 'samples/server/petstore/scala**'
|
- 'samples/server/petstore/scala**'
|
||||||
- 'samples/client/petstore/java/okhttp-gson/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/scala**'
|
|
||||||
- 'samples/server/petstore/scala**'
|
- 'samples/server/petstore/scala**'
|
||||||
- 'samples/client/petstore/java/okhttp-gson/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build sbt/Scala client, servers
|
name: Build sbt/Scala
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
|
||||||
- samples/client/petstore/java/okhttp-gson
|
|
||||||
- samples/client/petstore/scalaz
|
|
||||||
- samples/client/petstore/scala-pekko
|
|
||||||
- samples/client/petstore/scala-http4s
|
|
||||||
#- samples/client/petstore/scala-sttp
|
|
||||||
#- samples/client/petstore/scala-sttp-circe
|
|
||||||
# servers
|
# servers
|
||||||
- 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
|
||||||
@@ -35,8 +23,8 @@ jobs:
|
|||||||
- samples/server/petstore/scala-http4s-server
|
- samples/server/petstore/scala-http4s-server
|
||||||
- samples/server/petstore/scala-cask
|
- samples/server/petstore/scala-cask
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
7
.github/workflows/samples-spring-jdk17.yaml
vendored
7
.github/workflows/samples-spring-jdk17.yaml
vendored
@@ -11,6 +11,7 @@ on:
|
|||||||
- samples/server/petstore/springboot-file-delegate-optional
|
- samples/server/petstore/springboot-file-delegate-optional
|
||||||
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
- samples/server/petstore/spring-boot-oneof-sealed
|
- samples/server/petstore/spring-boot-oneof-sealed
|
||||||
|
- samples/openapi3/server/petstore/spring-boot-oneof-interface
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
@@ -21,6 +22,7 @@ on:
|
|||||||
- samples/server/petstore/springboot-file-delegate-optional
|
- samples/server/petstore/springboot-file-delegate-optional
|
||||||
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
- samples/server/petstore/spring-boot-oneof-sealed
|
- samples/server/petstore/spring-boot-oneof-sealed
|
||||||
|
- samples/openapi3/server/petstore/spring-boot-oneof-interface
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Spring (JDK17)
|
name: Build Java Spring (JDK17)
|
||||||
@@ -39,9 +41,10 @@ jobs:
|
|||||||
- samples/server/petstore/springboot-file-delegate-optional
|
- samples/server/petstore/springboot-file-delegate-optional
|
||||||
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
- samples/server/petstore/spring-boot-oneof-sealed
|
- samples/server/petstore/spring-boot-oneof-sealed
|
||||||
|
- samples/openapi3/server/petstore/spring-boot-oneof-interface
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|||||||
5
.github/workflows/samples-spring.yaml
vendored
5
.github/workflows/samples-spring.yaml
vendored
@@ -60,9 +60,10 @@ jobs:
|
|||||||
- samples/server/petstore/springboot-spring-provide-args
|
- samples/server/petstore/springboot-spring-provide-args
|
||||||
- samples/server/petstore/springboot-useoptional
|
- samples/server/petstore/springboot-useoptional
|
||||||
- samples/server/petstore/springboot-virtualan
|
- samples/server/petstore/springboot-virtualan
|
||||||
|
- samples/openapi3/server/petstore/spring-boot-oneof-interface
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|||||||
2
.github/workflows/samples-swift5.yaml
vendored
2
.github/workflows/samples-swift5.yaml
vendored
@@ -34,7 +34,7 @@ jobs:
|
|||||||
name: Build Swift samples
|
name: Build Swift samples
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- uses: swift-actions/setup-swift@v2
|
- uses: swift-actions/setup-swift@v2
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ jobs:
|
|||||||
- 18
|
- 18
|
||||||
- 20
|
- 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ jobs:
|
|||||||
- 18
|
- 18
|
||||||
- 20
|
- 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
35
.github/workflows/samples-typescript-nestjs-server.yaml
vendored
Normal file
35
.github/workflows/samples-typescript-nestjs-server.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: TypeScript NestJS Server
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/typescript-nestjs-server/**
|
||||||
|
- .github/workflows/samples-typescript-nestjs-server.yaml
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test TypeScript NestJS Server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/server/petstore/typescript-nestjs-server
|
||||||
|
node-version:
|
||||||
|
- 20
|
||||||
|
- 22
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v5
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
npm i
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: npm run test
|
||||||
@@ -20,9 +20,9 @@ jobs:
|
|||||||
- 18
|
- 18
|
||||||
- 20
|
- 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ jobs:
|
|||||||
node-version:
|
node-version:
|
||||||
- 20
|
- 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/samples-zapier.yaml
vendored
4
.github/workflows/samples-zapier.yaml
vendored
@@ -18,9 +18,9 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/zapier
|
- samples/client/petstore/zapier
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/windows.yaml
vendored
6
.github/workflows/windows.yaml
vendored
@@ -18,9 +18,9 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
java: [11, 17]
|
java: [11, 17]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
@@ -54,6 +54,8 @@ jobs:
|
|||||||
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
|
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@v3
|
uses: gradle/gradle-build-action@v3
|
||||||
|
with:
|
||||||
|
gradle-version: '8.14.3'
|
||||||
- name: Gradle tests
|
- name: Gradle tests
|
||||||
run: |
|
run: |
|
||||||
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
||||||
|
|||||||
10
.gitignore
vendored
10
.gitignore
vendored
@@ -16,6 +16,7 @@ modules/openapi-generator-gradle-plugin/bin/
|
|||||||
.classpath
|
.classpath
|
||||||
lib/*
|
lib/*
|
||||||
build/*
|
build/*
|
||||||
|
.kotlin
|
||||||
generated-files/*
|
generated-files/*
|
||||||
generated-sources/*
|
generated-sources/*
|
||||||
generated-code/*
|
generated-code/*
|
||||||
@@ -92,6 +93,12 @@ samples/client/petstore/cpp-restsdk/client/cmake_install.cmake
|
|||||||
samples/client/petstore/cpp-restsdk/client/CppRestPetstoreClientConfig.cmake
|
samples/client/petstore/cpp-restsdk/client/CppRestPetstoreClientConfig.cmake
|
||||||
samples/client/petstore/cpp-restsdk/client/CMakeCache.txt
|
samples/client/petstore/cpp-restsdk/client/CMakeCache.txt
|
||||||
|
|
||||||
|
# cpp-oatpp
|
||||||
|
samples/client/petstore/cpp-oatpp/build
|
||||||
|
samples/client/petstore/cpp-oatpp/external
|
||||||
|
samples/server/petstore/cpp-oatpp/build
|
||||||
|
samples/server/petstore/cpp-oatpp/external
|
||||||
|
|
||||||
#Java/Android
|
#Java/Android
|
||||||
**/.gradle
|
**/.gradle
|
||||||
samples/client/petstore/java/hello.txt
|
samples/client/petstore/java/hello.txt
|
||||||
@@ -290,6 +297,9 @@ samples/openapi3/client/petstore/go/privatekey.pem
|
|||||||
|
|
||||||
## OCaml
|
## OCaml
|
||||||
samples/client/petstore/ocaml/_build/
|
samples/client/petstore/ocaml/_build/
|
||||||
|
samples/client/petstore/ocaml-fake-petstore/_build/
|
||||||
|
samples/client/petstore/ocaml-oneOf-primitive/_build/
|
||||||
|
samples/client/petstore/ocaml-additional-properties/_build/
|
||||||
|
|
||||||
# jetbrain http client
|
# jetbrain http client
|
||||||
samples/client/jetbrains/adyen/checkout71/http/client/Apis/http-client.private.env.json
|
samples/client/jetbrains/adyen/checkout71/http/client/Apis/http-client.private.env.json
|
||||||
|
|||||||
219
.travis.yml
219
.travis.yml
@@ -1,219 +0,0 @@
|
|||||||
sudo: required
|
|
||||||
language: java
|
|
||||||
jdk:
|
|
||||||
- openjdk11
|
|
||||||
|
|
||||||
# See https://docs.travis-ci.com/user/languages/java/#caching
|
|
||||||
before_cache:
|
|
||||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
||||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
||||||
# Avoid caching our built dependencies between runs.
|
|
||||||
- rm -fr $HOME/.m2/repository/org/openapitools/
|
|
||||||
|
|
||||||
cache:
|
|
||||||
yarn: true
|
|
||||||
directories:
|
|
||||||
- $HOME/.m2
|
|
||||||
- $HOME/.ivy2
|
|
||||||
- $HOME/.gradle/caches/
|
|
||||||
- $HOME/.gradle/wrapper/
|
|
||||||
- $HOME/samples/client/petstore/javascript/node_modules
|
|
||||||
- $HOME/samples/client/petstore/php/OpenAPIToolsClient-php/vendor
|
|
||||||
- $HOME/samples/client/petstore/ruby/vendor/bundle
|
|
||||||
- $HOME/samples/client/petstore/python/.venv/
|
|
||||||
- $HOME/samples/server/petstore/rust-server/target
|
|
||||||
- $HOME/samples/server/petstore/rust-axum/target
|
|
||||||
- $HOME/perl5
|
|
||||||
- $HOME/.cargo
|
|
||||||
- $HOME/.pub-cache
|
|
||||||
- $HOME/samples/server/petstore/cpp-pistache/pistache
|
|
||||||
- $HOME/.rvm/gems/ruby-2.4.1
|
|
||||||
- $HOME/website/node_modules/
|
|
||||||
- $HOME/.cache/deno
|
|
||||||
- $HOME/.phpenv/versions/8.1.4
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
# comment out the host table change to use the public petstore server
|
|
||||||
addons:
|
|
||||||
#apt:
|
|
||||||
# sources:
|
|
||||||
# - ubuntu-toolchain-r-test
|
|
||||||
# packages:
|
|
||||||
# - g++-5
|
|
||||||
#chrome: stable
|
|
||||||
hosts:
|
|
||||||
- petstore.swagger.io
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- sudo rm -rf /var/lib/apt/lists/*
|
|
||||||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
||||||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge"
|
|
||||||
- sudo apt-get update
|
|
||||||
#- sudo apt-get install -qqy --no-install-recommends google-chrome-stable
|
|
||||||
#- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
|
||||||
- mkdir -vp ~/.docker/cli-plugins/
|
|
||||||
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.3.0/buildx-v0.3.0.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
|
|
||||||
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
||||||
# to run petstore server locally via docker
|
|
||||||
#- echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin || true
|
|
||||||
#- docker pull swaggerapi/petstore
|
|
||||||
#- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
|
||||||
#- docker ps -a
|
|
||||||
# comment out crystal installation as the tests will run on circleci or github action instead
|
|
||||||
# install crystal
|
|
||||||
#- echo 'deb http://download.opensuse.org/repositories/devel:/languages:/crystal/xUbuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/devel:languages:crystal.list
|
|
||||||
#- curl -fsSL https://download.opensuse.org/repositories/devel:languages:crystal/xUbuntu_16.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_languages_crystal.gpg > /dev/null
|
|
||||||
#- sudo apt update
|
|
||||||
#- sudo apt install crystal
|
|
||||||
#- crystal --version
|
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
|
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
|
||||||
# install rust
|
|
||||||
#- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
|
||||||
## required when sudo: required for the Ruby petstore tests
|
|
||||||
#- gem install bundler -v 2.3.26
|
|
||||||
## set python 3.6.3 as default
|
|
||||||
#- source ~/virtualenv/python3.6/bin/activate
|
|
||||||
# -- skip bash test to shorten build time
|
|
||||||
# Add bats test framework and cURL for Bash script integration tests
|
|
||||||
#- sudo add-apt-repository ppa:duggan/bats --yes
|
|
||||||
#- sudo apt-get update -qq
|
|
||||||
#- sudo apt-get install -qq bats
|
|
||||||
#- sudo apt-get install -qq curl
|
|
||||||
# -- skip bash test end
|
|
||||||
# install dart
|
|
||||||
#- sudo apt-get update
|
|
||||||
#- sudo apt-get install apt-transport-https
|
|
||||||
#- sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
|
|
||||||
#- sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
|
|
||||||
#- sudo apt-get update
|
|
||||||
#- sudo apt-get install dart
|
|
||||||
# switch to php8
|
|
||||||
#- sudo apt-get install -f libonig-dev libzip-dev
|
|
||||||
#- git clone https://github.com/php-build/php-build $(phpenv root)/plugins/php-build
|
|
||||||
#- git clone https://github.com/ngyuki/phpenv-composer.git $(phpenv root)/plugins/phpenv-composer
|
|
||||||
#- if [ $(ls -A "$HOME/.phpenv/versions/8.1.4" | wc -l) -eq 0 ]; then
|
|
||||||
# phpenv install 8.1.4;
|
|
||||||
# fi;
|
|
||||||
#- phpenv rehash
|
|
||||||
#- phpenv versions
|
|
||||||
##- phpenv global 7.2.15
|
|
||||||
#- phpenv global 8.1.4
|
|
||||||
#- php -v
|
|
||||||
# comment out below as installation failed in travis
|
|
||||||
# Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests.
|
|
||||||
# - Travis CI does not support rebar3 [yet](https://github.com/travis-ci/travis-ci/issues/6506#issuecomment-275189490).
|
|
||||||
# - Rely on `kerl` for [pre-compiled versions available](https://docs.travis-ci.com/user/languages/erlang#Choosing-OTP-releases-to-test-against). Rely on installation path chosen by [`travis-erlang-builder`](https://github.com/travis-ci/travis-erlang-builder/blob/e6d016b1a91ca7ecac5a5a46395bde917ea13d36/bin/compile#L18).
|
|
||||||
# - . ~/otp/18.2.1/activate && erl -version
|
|
||||||
#- curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
|
|
||||||
# install C++ tools
|
|
||||||
#- sudo apt install -y --no-install-recommends valgrind cmake build-essential
|
|
||||||
#- cmake --version
|
|
||||||
# install Qt5
|
|
||||||
#- sudo apt install -y --no-install-recommends qt5-default
|
|
||||||
# install boost
|
|
||||||
#- sudo apt install -y --no-install-recommends libboost-all-dev
|
|
||||||
# perl dep
|
|
||||||
#- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
||||||
#- cpanm --quiet --no-interactive Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON || echo "Ignored failure from cpanm"
|
|
||||||
# show host table to confirm petstore.swagger.io is mapped to localhost
|
|
||||||
- cat /etc/hosts
|
|
||||||
# show java version
|
|
||||||
- java -version
|
|
||||||
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
||||||
openssl aes-256-cbc -K $encrypted_6e2c8bba47c6_key -iv $encrypted_6e2c8bba47c6_iv -in sec.gpg.enc -out sec.gpg -d ;
|
|
||||||
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
|
||||||
gpg --check-trustdb ;
|
|
||||||
fi;
|
|
||||||
- pushd .; cd website; yarn install; popd
|
|
||||||
|
|
||||||
script:
|
|
||||||
# fail fast
|
|
||||||
- set -e
|
|
||||||
# show docker buildx version
|
|
||||||
- docker buildx version
|
|
||||||
# run integration tests defined in maven pom.xml
|
|
||||||
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
|
||||||
# show "error" only to reduce the log size
|
|
||||||
- ./mvnw -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -DskipTests -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
after_success:
|
|
||||||
# push to maven repo
|
|
||||||
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
|
||||||
./mvnw clean deploy --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
|
||||||
pushd .;
|
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
|
||||||
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository;
|
|
||||||
echo "Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository";
|
|
||||||
popd;
|
|
||||||
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
|
||||||
./mvnw clean deploy --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
|
||||||
pushd .;
|
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
|
||||||
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository;
|
|
||||||
echo "Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository";
|
|
||||||
popd;
|
|
||||||
fi;
|
|
||||||
if [ -n $TRAVIS_TAG ] && [[ "$TRAVIS_TAG" =~ ^[v][0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
||||||
echo "Publishing the gradle plugin to Gradle Portal on tag $TRAVIS_TAG (only)";
|
|
||||||
pushd .;
|
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
|
||||||
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET;
|
|
||||||
echo "Finished ./gradlew publishPlugins (plugin portal)";
|
|
||||||
popd;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
## docker: build and push openapi-generator-online to DockerHub
|
|
||||||
- if [ $DOCKER_HUB_USERNAME ]; then
|
|
||||||
echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin;
|
|
||||||
export cli_version=$(\mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[');
|
|
||||||
export build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ");
|
|
||||||
docker buildx create --use;
|
|
||||||
if [ ! -z "$TRAVIS_TAG" ]; then
|
|
||||||
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_GENERATOR_IMAGE_NAME:latest -t $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG -t $DOCKER_GENERATOR_IMAGE_NAME -t $DOCKER_GENERATOR_IMAGE_NAME:latest-release ./modules/openapi-generator-online;
|
|
||||||
echo "Built and tagged $DOCKER_GENERATOR_IMAGE_NAME";
|
|
||||||
fi;
|
|
||||||
if [ -z "$TRAVIS_TAG" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
|
||||||
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/openapi-generator-online;
|
|
||||||
echo "Pushed to $DOCKER_GENERATOR_IMAGE_NAME for master";
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
## docker: build cli image and push to Docker Hub
|
|
||||||
- if [ $DOCKER_HUB_USERNAME ]; then
|
|
||||||
echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin;
|
|
||||||
cp docker-entrypoint.sh ./modules/openapi-generator-cli;
|
|
||||||
export cli_version=$(\mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[');
|
|
||||||
export build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ");
|
|
||||||
docker buildx create --use;
|
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli;
|
|
||||||
if [ ! -z "$TRAVIS_TAG" ]; then
|
|
||||||
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG -t $DOCKER_CODEGEN_CLI_IMAGE_NAME -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest-release ./modules/openapi-generator-cli;
|
|
||||||
echo "Built and tagged $DOCKER_GENERATOR_IMAGE_NAME";
|
|
||||||
fi;
|
|
||||||
if [ -z "$TRAVIS_TAG" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
|
||||||
docker buildx build --push --platform linux/amd64,linux/arm64 --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli;
|
|
||||||
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
|
|
||||||
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.
|
|
||||||
# - if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
||||||
# sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-client.md;
|
|
||||||
# sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-server.md;
|
|
||||||
# cd website;
|
|
||||||
# git config --global user.name "${GH_NAME}";
|
|
||||||
# git config --global user.email "${GH_EMAIL}";
|
|
||||||
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
|
||||||
# yarn install;
|
|
||||||
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
|
||||||
# fi;
|
|
||||||
#
|
|
||||||
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
|
|
||||||
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
sudo: required
|
|
||||||
language: java
|
|
||||||
jdk:
|
|
||||||
- openjdk8
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.m2
|
|
||||||
- $HOME/.ivy2
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
addons:
|
|
||||||
hosts:
|
|
||||||
- petstore.swagger.io
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
# to run petstore server locally via docker
|
|
||||||
- docker pull swaggerapi/petstore
|
|
||||||
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
|
||||||
- docker ps -a
|
|
||||||
# Add bats test framework and cURL for Bash script integration tests
|
|
||||||
- sudo add-apt-repository ppa:duggan/bats --yes
|
|
||||||
- sudo apt-get update -qq
|
|
||||||
- sudo apt-get install -qq bats
|
|
||||||
- sudo apt-get install -qq curl
|
|
||||||
|
|
||||||
# show host table to confirm petstore.swagger.io is mapped to localhost
|
|
||||||
- cat /etc/hosts
|
|
||||||
|
|
||||||
script:
|
|
||||||
# fail fast
|
|
||||||
- set -e
|
|
||||||
# run integration tests defined in maven pom.xml
|
|
||||||
- cp pom.xml.bash pom.xml
|
|
||||||
- mvn --no-snapshot-updates --batch-mode verify -Psamples
|
|
||||||
@@ -56,11 +56,6 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
sudo ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true
|
sudo ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true
|
||||||
source ~/.cpprc # activate cpp environment variables
|
source ~/.cpprc # activate cpp environment variables
|
||||||
|
|
||||||
# run go integration tests
|
|
||||||
(cd samples/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/client/others/go/allof_multiple_ref_and_discriminator && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/cpp-restsdk/client && mvn integration-test)
|
(cd samples/client/petstore/cpp-restsdk/client && mvn integration-test)
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "3" ]; then
|
elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
@@ -115,27 +110,10 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
(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)
|
||||||
|
(cd samples/server/petstore/typescript-nestjs-server && 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-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/clojure && 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/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/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-dynamicOperations && 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/apache-httpclient && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/java/resttemplate-jakarta && mvn integration-test)
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
29
README.md
29
README.md
@@ -15,10 +15,8 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.15.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.16.0`):
|
||||||
[](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://app.bitrise.io/app/4a2b10a819d12b67)
|
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -150,8 +148,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.15.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.15.0-SNAPSHOT/) | 29.07.2025 | Minor release with breaking changes (with fallback) |
|
| 7.16.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.16.0-SNAPSHOT/) | 22.09.2025 | Minor release with breaking changes (with fallback) |
|
||||||
| [7.14.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.14.0) (latest stable release) | 25.06.2025 | Minor release with breaking changes (with fallback) |
|
| [7.15.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.15.0) (latest stable release) | 22.08.2025 | 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) |
|
||||||
@@ -214,16 +212,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.14.0/openapi-generator-cli-7.14.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.15.0/openapi-generator-cli-7.15.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.14.0/openapi-generator-cli-7.14.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.15.0/openapi-generator-cli-7.15.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.14.0/openapi-generator-cli-7.14.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.15.0/openapi-generator-cli-7.15.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.
|
||||||
@@ -458,7 +456,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.14.0
|
openapi-generator-cli version-manager set 7.15.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -482,7 +480,7 @@ pip install openapi-generator-cli
|
|||||||
|
|
||||||
To install a specific version
|
To install a specific version
|
||||||
```
|
```
|
||||||
pip install openapi-generator-cli==7.14.0
|
pip install openapi-generator-cli==7.15.0
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
||||||
@@ -508,7 +506,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.14.0/openapi-generator-cli-7.14.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.15.0/openapi-generator-cli-7.15.0.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`
|
||||||
@@ -1025,6 +1023,7 @@ Here is a list of template creators:
|
|||||||
* Apex: @asnelling
|
* Apex: @asnelling
|
||||||
* Bash: @bkryza
|
* Bash: @bkryza
|
||||||
* C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant)
|
* C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant)
|
||||||
|
* C++ Oat++: @Kraust
|
||||||
* C++ REST: @Danielku15
|
* C++ REST: @Danielku15
|
||||||
* C++ Tiny: @AndersSpringborg @kaareHH @michelealbano @mkakbas
|
* C++ Tiny: @AndersSpringborg @kaareHH @michelealbano @mkakbas
|
||||||
* C++ UE4: @Kahncode
|
* C++ UE4: @Kahncode
|
||||||
@@ -1098,6 +1097,7 @@ Here is a list of template creators:
|
|||||||
* Scala (Akka): @cchafer
|
* Scala (Akka): @cchafer
|
||||||
* Scala (sttp): @chameleon82
|
* Scala (sttp): @chameleon82
|
||||||
* Scala (sttp4): @flsh86
|
* Scala (sttp4): @flsh86
|
||||||
|
* Scala (scala-sttp4-jsoniter): @lbialy
|
||||||
* Scala (Pekko): @mickaelmagniez
|
* Scala (Pekko): @mickaelmagniez
|
||||||
* Scala (http4s): @JennyLeahy
|
* Scala (http4s): @JennyLeahy
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
@@ -1141,6 +1141,7 @@ Here is a list of template creators:
|
|||||||
* Haskell Servant: @algas
|
* Haskell Servant: @algas
|
||||||
* Haskell Yesod: @yotsuya
|
* Haskell Yesod: @yotsuya
|
||||||
* Java Camel: @carnevalegiacomo
|
* Java Camel: @carnevalegiacomo
|
||||||
|
* Java Dubbo: @redoom
|
||||||
* Java MSF4J: @sanjeewa-malalgoda
|
* Java MSF4J: @sanjeewa-malalgoda
|
||||||
* Java Spring Boot: @diyfr
|
* Java Spring Boot: @diyfr
|
||||||
* Java Undertow: @stevehu
|
* Java Undertow: @stevehu
|
||||||
@@ -1257,20 +1258,20 @@ 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 | @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) @e5l (2024/10) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
| N4JS | @mmews-n4 (2023/03) |
|
| N4JS | @mmews-n4 (2023/03) |
|
||||||
| Nim | |
|
| Nim | |
|
||||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||||
| ObjC | |
|
| ObjC | |
|
||||||
| OCaml | @cgensoul (2019/08) |
|
| OCaml | @cgensoul (2019/08), @sir4ur0n (2025/08) |
|
||||||
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
||||||
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
|
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
|
||||||
| PowerShell | @wing328 (2020/05) |
|
| PowerShell | @wing328 (2020/05) |
|
||||||
| Python | @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10) @multani (2023/10) |
|
| Python | @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10) @multani (2023/10) |
|
||||||
| 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) @@dsteeley (2025/07) |
|
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) @dsteeley (2025/07) |
|
||||||
| Scala | @clasnake (2017/07), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
|
| Scala | @clasnake (2017/07), @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) @joscha (2024/10) |
|
||||||
|
|||||||
117
appveyor.yml
117
appveyor.yml
@@ -1,117 +0,0 @@
|
|||||||
version: '{branch}-{build}'
|
|
||||||
image: Visual Studio 2022
|
|
||||||
hosts:
|
|
||||||
petstore.swagger.io: 127.0.0.1
|
|
||||||
install:
|
|
||||||
- cmd: SET PATH=C:\maven\apache-maven-3.8.3\bin;C:\gradle\gradle-7.6\bin;%JAVA_HOME%\bin;%PATH%
|
|
||||||
- cmd: SET MAVEN_OPTS=-Xmx4g
|
|
||||||
- cmd: SET JAVA_OPTS=-Xmx4g
|
|
||||||
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.3
|
|
||||||
- cmd: java -version
|
|
||||||
- cmd: dir/w
|
|
||||||
- cmd: docker pull swaggerapi/petstore
|
|
||||||
- cmd: docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
|
||||||
- ps: Start-Sleep -s 120
|
|
||||||
- ps: $PSVersionTable.PSVersion
|
|
||||||
- ps: Install-Module -Name Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
|
||||||
build_script:
|
|
||||||
- dotnet --info
|
|
||||||
# build C# aspnetcore 5.0 server
|
|
||||||
#- dotnet build samples\server\petstore\aspnetcore-5.0\Org.OpenAPITools.sln
|
|
||||||
## build C# aspnetcore 3.1 server
|
|
||||||
#- dotnet build samples\server\petstore\aspnetcore-3.1\Org.OpenAPITools.sln
|
|
||||||
## build C# aspnetcore 3.0 server
|
|
||||||
#- dotnet build samples\server\petstore\aspnetcore-3.0\Org.OpenAPITools.sln
|
|
||||||
## build C# aspnetcore 2.2 server
|
|
||||||
#- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (multiple frameworks)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (httpclient)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (generichost)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (netcore)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClientCore\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (.net framework 4.7)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-net47\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (.net framework 4.8)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-net48\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (.net 5.0)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-net5.0\Org.OpenAPITools.sln
|
|
||||||
## build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\latest\Tags\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\latest\HelloWorld\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\latest\OneOfList\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AllOf\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
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOfNoCompare\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
|
|
||||||
# - dotnet test samples\client\petstore\csharp\generichost\net9\ManualSourceGenerationTests\ManualTests.Latest.UseSourceGeneration\ManualTests.Latest.UseSourceGeneration.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\generichost\net9\NullReferenceTypes\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\OneOf\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
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\SourceGeneration\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
|
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net8\AnyOf\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
|
|
||||||
# generate all petstore clients
|
|
||||||
# - .\bin\windows\run-all-petstore.cmd
|
|
||||||
# generate all petstore clients (openapi3)
|
|
||||||
# - .\bin\openapi3\windows\run-all-petstore.cmd
|
|
||||||
|
|
||||||
# test ps petstore
|
|
||||||
- ps: |
|
|
||||||
cd samples\client\petstore\powershell\
|
|
||||||
.\CIRunTest.ps1
|
|
||||||
cache:
|
|
||||||
- C:\maven\
|
|
||||||
- C:\gradle\
|
|
||||||
- C:\Users\appveyor\.m2
|
|
||||||
6
bin/configs/cpp-oatpp-client.yaml
Normal file
6
bin/configs/cpp-oatpp-client.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: cpp-oatpp-client
|
||||||
|
outputDir: samples/client/petstore/cpp-oatpp
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/cpp-oatpp-client/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/cpp-oatpp-client
|
||||||
|
additionalProperties:
|
||||||
|
addExternalLibs: "true"
|
||||||
10
bin/configs/csharp-generichost-latest-composedEnum.yaml
Normal file
10
bin/configs/csharp-generichost-latest-composedEnum.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/latest/ComposedEnum
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/composed-enum.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
|
validateSpec: false
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user