mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-02-17 22:11:10 +00:00
Compare commits
1 Commits
python-ser
...
handlebar-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfa9e57b5e |
@@ -13,7 +13,7 @@
|
|||||||
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
|
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
|
||||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"moby": false
|
"moby": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,6 +1,6 @@
|
|||||||
<!--
|
<!--
|
||||||
Please follow the issue template below for bug reports and feature requests.
|
Please follow the issue template below for bug reports and feature requests.
|
||||||
Also please indicate in the issue title which language/library is concerned. E.g.: [JAVA] Bug generating foo with bar
|
Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar
|
||||||
-->
|
-->
|
||||||
|
|
||||||
##### Description
|
##### Description
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -18,7 +18,7 @@ assignees: ''
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Please follow the issue template below for bug reports.
|
Please follow the issue template below for bug reports.
|
||||||
Also please indicate in the issue title which language/library is concerned. E.g.: [BUG][JAVA] Bug generating foo with bar
|
Also please indicate in the issue title which language/library is concerned. Eg: [BUG][JAVA] Bug generating foo with bar
|
||||||
-->
|
-->
|
||||||
|
|
||||||
##### Description
|
##### Description
|
||||||
|
|||||||
2
.github/workflows/docker-release.yml
vendored
2
.github/workflows/docker-release.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.m2
|
path: ~/.m2
|
||||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
|||||||
3
.github/workflows/gradle-plugin-tests.yaml
vendored
3
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -19,9 +19,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
.github/workflows/gradle-test.yaml
vendored
5
.github/workflows/gradle-test.yaml
vendored
@@ -37,17 +37,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
cache: gradle
|
|
||||||
# Cache Gradle Dependencies
|
# Cache Gradle Dependencies
|
||||||
- name: Setup Gradle Dependencies Cache
|
- name: Setup Gradle Dependencies Cache
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
# Cache Gradle Wrapper
|
# Cache Gradle Wrapper
|
||||||
- name: Setup Gradle Wrapper Cache
|
- name: Setup Gradle Wrapper Cache
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/wrapper
|
path: ~/.gradle/wrapper
|
||||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
||||||
|
|||||||
16
.github/workflows/linux.yaml
vendored
16
.github/workflows/linux.yaml
vendored
@@ -27,16 +27,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
cache: gradle
|
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
- uses: actions/cache@v5
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -45,12 +44,12 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- uses: gradle/actions/setup-gradle@v5
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
with:
|
||||||
gradle-version: '8.14.3'
|
gradle-version: '8.14.3'
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.19.0
|
uses: s4u/setup-maven-action@v1.18.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
@@ -62,7 +61,7 @@ jobs:
|
|||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
|
||||||
- name: Upload Maven build artifact
|
- name: Upload Maven build artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v4
|
||||||
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
|
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
@@ -92,13 +91,12 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.19.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
|
||||||
cache: gradle
|
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v7
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
- name: Run Ensures Script
|
- name: Run Ensures Script
|
||||||
|
|||||||
2
.github/workflows/maven-plugin-tests.yaml
vendored
2
.github/workflows/maven-plugin-tests.yaml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/maven-release.yml
vendored
2
.github/workflows/maven-release.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.m2
|
path: ~/.m2
|
||||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
|||||||
69
.github/workflows/mill-plugin-tests.yaml
vendored
69
.github/workflows/mill-plugin-tests.yaml
vendored
@@ -1,69 +0,0 @@
|
|||||||
name: Mill plugin tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- modules/openapi-generator-mill-plugin/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- modules/openapi-generator-mill-plugin/**
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
name: Mill plugin tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- name: Set up JDK 11
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
distribution: 'temurin'
|
|
||||||
- name: Restore cache (read-only)
|
|
||||||
# only use restore keys, no save key because we need to clear the cache before running the examples
|
|
||||||
uses: actions/cache/restore@v5
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle
|
|
||||||
~/.cache/coursier
|
|
||||||
!~/.gradle/caches/*/plugin-resolution/
|
|
||||||
!~/.m2/repository/org/openapitools/
|
|
||||||
!~/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openapitools/
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
|
|
||||||
- name: Maven Clean Install
|
|
||||||
env:
|
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
|
||||||
run: |
|
|
||||||
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
|
|
||||||
|
|
||||||
# This is needed because of differences in how Maven and Coursier download artifacts
|
|
||||||
# Maven will only download the pom when the transitive dependency is not needed in the current projects compile classpath
|
|
||||||
# whereas Coursier expects the artifact (jar) to be present in a Maven repository. When Coursier encounters a
|
|
||||||
# artifact folder with a pom it considers the artifact to be available and will then crash when the jar is missing.
|
|
||||||
- name: Clear m2 cache except openapitools (because otherwise coursier will fail to resolve artifacts where only poms are downloaded)
|
|
||||||
run: |
|
|
||||||
mv ~/.m2/repository/org/openapitools /tmp/openapitools-backup || true
|
|
||||||
rm -rf ~/.m2/repository/*
|
|
||||||
mkdir -p ~/.m2/repository/org
|
|
||||||
mv /tmp/openapitools-backup ~/.m2/repository/org/openapitools || true
|
|
||||||
|
|
||||||
- name: Mill Example - Test Validation Command
|
|
||||||
env:
|
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
|
||||||
run: |
|
|
||||||
(cd modules/openapi-generator-mill-plugin/example/ && ./mill validateOpenapiSpec $(pwd)/api/petstore-invalid.yaml)
|
|
||||||
|
|
||||||
- name: Mill Example - Test Validation Task
|
|
||||||
env:
|
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
|
||||||
run: |
|
|
||||||
(cd modules/openapi-generator-mill-plugin/example/ && ./mill openapi.validate)
|
|
||||||
|
|
||||||
- name: Mill Example - Test Compile Task
|
|
||||||
env:
|
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
|
||||||
run: |
|
|
||||||
(cd modules/openapi-generator-mill-plugin/example/ && ./mill __.compile)
|
|
||||||
|
|
||||||
14
.github/workflows/openapi-generator.yaml
vendored
14
.github/workflows/openapi-generator.yaml
vendored
@@ -21,9 +21,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -42,7 +41,7 @@ jobs:
|
|||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- run: ls -la modules/openapi-generator-cli/target
|
- run: ls -la modules/openapi-generator-cli/target
|
||||||
- name: Upload openapi-generator-cli.jar artifact
|
- name: Upload openapi-generator-cli.jar artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
||||||
@@ -60,9 +59,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -81,7 +79,7 @@ jobs:
|
|||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- name: Publish unit test reports
|
- name: Publish unit test reports
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: surefire-test-results
|
name: surefire-test-results
|
||||||
path: '**/surefire-reports/TEST-*.xml'
|
path: '**/surefire-reports/TEST-*.xml'
|
||||||
@@ -99,7 +97,7 @@ jobs:
|
|||||||
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@v7
|
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
|
||||||
@@ -138,7 +136,7 @@ jobs:
|
|||||||
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@v7
|
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
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
51
.github/workflows/samples-clojure.yaml
vendored
51
.github/workflows/samples-clojure.yaml
vendored
@@ -1,51 +0,0 @@
|
|||||||
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@v5
|
|
||||||
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
|
|
||||||
37
.github/workflows/samples-crystal.yaml
vendored
37
.github/workflows/samples-crystal.yaml
vendored
@@ -1,37 +0,0 @@
|
|||||||
name: Samples Crystal clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/crystal/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/crystal/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Crystal projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/petstore/crystal/
|
|
||||||
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: Install Crystal
|
|
||||||
uses: crystal-lang/install-crystal@v1
|
|
||||||
- name: Shards Install
|
|
||||||
run: shards install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
- name: Run tests
|
|
||||||
run: crystal spec
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
2
.github/workflows/samples-dart.yaml
vendored
2
.github/workflows/samples-dart.yaml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Cache test dependencies
|
- name: Cache test dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: pub-cache
|
cache-name: pub-cache
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-dotnet-fx.yaml
vendored
2
.github/workflows/samples-dotnet-fx.yaml
vendored
@@ -11,7 +11,7 @@ on:
|
|||||||
- samples/client/petstore/csharp/generichost/net4.8/**
|
- samples/client/petstore/csharp/generichost/net4.8/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net Framework projects
|
name: Build .Net projects
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
37
.github/workflows/samples-dotnet-petstore.yml
vendored
37
.github/workflows/samples-dotnet-petstore.yml
vendored
@@ -1,37 +0,0 @@
|
|||||||
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.1.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
|
|
||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
|
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net Standard projects
|
name: Build .Net projects
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
59
.github/workflows/samples-dotnet10.yaml
vendored
59
.github/workflows/samples-dotnet10.yaml
vendored
@@ -1,59 +0,0 @@
|
|||||||
name: Samples C# .Net 10 Clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/**
|
|
||||||
- samples/client/petstore/csharp/httpclient/net10/**
|
|
||||||
- samples/client/petstore/csharp/restsharp/net10/**
|
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net10/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/**
|
|
||||||
- samples/client/petstore/csharp/httpclient/net10/**
|
|
||||||
- samples/client/petstore/csharp/restsharp/net10/**
|
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net10/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build .Net 10 projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
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/HelloWorld
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/AllOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/AnyOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/FormModels
|
|
||||||
# - samples/client/petstore/csharp/generichost/net10/ManualPetstoreTests
|
|
||||||
# - samples/client/petstore/csharp/generichost/net10/ManualSourceGenerationTests
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/NullReferenceTypes
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/OneOf
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/Petstore
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/SourceGeneration
|
|
||||||
- samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate
|
|
||||||
# restsharp
|
|
||||||
- samples/client/petstore/csharp/restsharp/net10/EnumMappings
|
|
||||||
# httpclient
|
|
||||||
- samples/client/petstore/csharp/httpclient/net10/Petstore
|
|
||||||
- samples/client/petstore/csharp/httpclient/net10/Petstore-nonPublicApi
|
|
||||||
# unity
|
|
||||||
# - samples/client/petstore/csharp/unityWebRequest/net10/Petstore
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
|
||||||
with:
|
|
||||||
dotnet-version: '10.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
|
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- 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
54
.github/workflows/samples-dotnet7-client.yml
vendored
@@ -1,54 +0,0 @@
|
|||||||
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.1.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
|
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- 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
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- 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@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- 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
@@ -15,7 +15,7 @@ on:
|
|||||||
- samples/client/petstore/csharp/unityWebRequest/net8/**
|
- samples/client/petstore/csharp/unityWebRequest/net8/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net 8 projects
|
name: Build .Net projects
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
14
.github/workflows/samples-dotnet9.yaml
vendored
14
.github/workflows/samples-dotnet9.yaml
vendored
@@ -3,24 +3,31 @@ name: Samples C# .Net 9 Clients
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/**
|
||||||
- samples/client/petstore/csharp/generichost/net9/**
|
- samples/client/petstore/csharp/generichost/net9/**
|
||||||
- samples/client/petstore/csharp/httpclient/net9/**
|
- samples/client/petstore/csharp/httpclient/net9/**
|
||||||
- samples/client/petstore/csharp/restsharp/net9/**
|
- samples/client/petstore/csharp/restsharp/net9/**
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/**
|
||||||
- samples/client/petstore/csharp/generichost/net9/**
|
- samples/client/petstore/csharp/generichost/net9/**
|
||||||
- samples/client/petstore/csharp/httpclient/net9/**
|
- samples/client/petstore/csharp/httpclient/net9/**
|
||||||
- samples/client/petstore/csharp/restsharp/net9/**
|
- samples/client/petstore/csharp/restsharp/net9/**
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net 9 projects
|
name: Build .Net projects
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
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/HelloWorld
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
||||||
- samples/client/petstore/csharp/generichost/net9/AllOf
|
- samples/client/petstore/csharp/generichost/net9/AllOf
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
||||||
@@ -36,14 +43,13 @@ 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@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.1.0
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '9.0.101'
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
10
.github/workflows/samples-go-client.yaml
vendored
10
.github/workflows/samples-go-client.yaml
vendored
@@ -6,17 +6,12 @@ on:
|
|||||||
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
||||||
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
||||||
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
|
- 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:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
||||||
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
||||||
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
|
- 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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Go
|
name: Build Go
|
||||||
@@ -28,9 +23,6 @@ jobs:
|
|||||||
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/'
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/'
|
||||||
- 'samples/openapi3/client/petstore/go-petstore-withXml/'
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/'
|
||||||
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/
|
- 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:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
|
|||||||
5
.github/workflows/samples-go.yaml
vendored
5
.github/workflows/samples-go.yaml
vendored
@@ -6,13 +6,13 @@ on:
|
|||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
- 'samples/server/petstore/go-chi-server/**'
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
- 'samples/server/others/go-server/**'
|
- 'samples/server/others/go-server/no-body-path-params/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
- 'samples/server/petstore/go-chi-server/**'
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
- 'samples/server/others/go-server/**'
|
- 'samples/server/others/go-server/no-body-path-params/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -26,7 +26,6 @@ jobs:
|
|||||||
- samples/server/petstore/go-api-server/
|
- samples/server/petstore/go-api-server/
|
||||||
- samples/server/petstore/go-chi-server/
|
- samples/server/petstore/go-chi-server/
|
||||||
- samples/server/others/go-server/no-body-path-params/
|
- samples/server/others/go-server/no-body-path-params/
|
||||||
- samples/server/others/go-server/optional-body/
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
|
|||||||
3
.github/workflows/samples-groovy.yaml
vendored
3
.github/workflows/samples-groovy.yaml
vendored
@@ -26,9 +26,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
23
.github/workflows/samples-java-client-jdk11.yaml
vendored
23
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -5,7 +5,6 @@ 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/**
|
||||||
@@ -18,17 +17,12 @@ 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/**
|
||||||
@@ -41,10 +35,6 @@ 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:
|
||||||
@@ -56,12 +46,10 @@ 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
|
||||||
- samples/client/petstore/java/native-jakarta
|
- samples/client/petstore/java/native-jakarta
|
||||||
- samples/client/petstore/java/native-useGzipFeature
|
|
||||||
- samples/client/petstore/java/retrofit2
|
- samples/client/petstore/java/retrofit2
|
||||||
- samples/client/petstore/java/retrofit2rx2
|
- samples/client/petstore/java/retrofit2rx2
|
||||||
- samples/client/petstore/java/retrofit2rx3
|
- samples/client/petstore/java/retrofit2rx3
|
||||||
@@ -109,19 +97,14 @@ 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@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -133,7 +116,7 @@ jobs:
|
|||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package --no-transfer-progress
|
||||||
|
|
||||||
- name: Cache gradle dependencies
|
- name: Cache gradle dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-caches
|
cache-name: gradle-caches
|
||||||
with:
|
with:
|
||||||
@@ -141,7 +124,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
- name: Cache gradle wrapper
|
- name: Cache gradle wrapper
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-wrapper
|
cache-name: gradle-wrapper
|
||||||
with:
|
with:
|
||||||
|
|||||||
10
.github/workflows/samples-java-client-jdk17.yaml
vendored
10
.github/workflows/samples-java-client-jdk17.yaml
vendored
@@ -7,7 +7,6 @@ on:
|
|||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/restclient-*/**
|
- samples/client/petstore/java/restclient-*/**
|
||||||
- samples/client/others/java/webclient-sealedInterface/**
|
- samples/client/others/java/webclient-sealedInterface/**
|
||||||
- samples/client/others/java/webclient-sealedInterface_3_1/**
|
|
||||||
- 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/**
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -16,7 +15,6 @@ on:
|
|||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/restclient-*/**
|
- samples/client/petstore/java/restclient-*/**
|
||||||
- samples/client/others/java/webclient-sealedInterface/**
|
- samples/client/others/java/webclient-sealedInterface/**
|
||||||
- samples/client/others/java/webclient-sealedInterface_3_1/**
|
|
||||||
- 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/**
|
||||||
jobs:
|
jobs:
|
||||||
@@ -36,7 +34,6 @@ jobs:
|
|||||||
- samples/client/petstore/java/restclient-useSingleRequestParameter
|
- samples/client/petstore/java/restclient-useSingleRequestParameter
|
||||||
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
|
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
|
||||||
- samples/client/others/java/webclient-sealedInterface
|
- samples/client/others/java/webclient-sealedInterface
|
||||||
- samples/client/others/java/webclient-sealedInterface_3_1
|
|
||||||
- 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:
|
||||||
@@ -45,9 +42,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +56,7 @@ jobs:
|
|||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package --no-transfer-progress
|
||||||
|
|
||||||
- name: Cache gradle dependencies
|
- name: Cache gradle dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-caches
|
cache-name: gradle-caches
|
||||||
with:
|
with:
|
||||||
@@ -68,7 +64,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
- name: Cache gradle wrapper
|
- name: Cache gradle wrapper
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-wrapper
|
cache-name: gradle-wrapper
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-java-dubbo.yaml
vendored
2
.github/workflows/samples-java-dubbo.yaml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.version }}
|
java-version: ${{ matrix.version }}
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.version }}
|
java-version: ${{ matrix.version }}
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
# 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@v5
|
|
||||||
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
|
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- samples/server/petstore/java-play-framework-fake-endpoints
|
- samples/server/petstore/java-play-framework-fake-endpoints
|
||||||
- samples/server/petstore/java-play-framework-fake-endpoints-with-security
|
- samples/server/petstore/java-play-framework-fake-endpoints-with-security
|
||||||
- samples/server/petstore/java-play-framework-no-bean-validation
|
- samples/server/petstore/java-play-framework-no-bean-validation
|
||||||
- samples/server/petstore/java-play-framework-no-excp-handling
|
- samples/server/petstore/java-play-framework-no-exception-handling
|
||||||
- samples/server/petstore/java-play-framework-no-interface
|
- samples/server/petstore/java-play-framework-no-interface
|
||||||
- samples/server/petstore/java-play-framework-no-nullable
|
- samples/server/petstore/java-play-framework-no-nullable
|
||||||
- samples/server/petstore/java-play-framework-no-swagger-ui
|
- samples/server/petstore/java-play-framework-no-swagger-ui
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
38
.github/workflows/samples-java-sbt.yaml
vendored
38
.github/workflows/samples-java-sbt.yaml
vendored
@@ -1,38 +0,0 @@
|
|||||||
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@v5
|
|
||||||
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
|
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-java-wiremock.yaml
vendored
2
.github/workflows/samples-java-wiremock.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
51
.github/workflows/samples-javascript.yaml
vendored
51
.github/workflows/samples-javascript.yaml
vendored
@@ -1,51 +0,0 @@
|
|||||||
name: Samples JS clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
#- samples/client/petstore/javascript-flowtyped/**
|
|
||||||
- samples/client/petstore/javascript-es6/**
|
|
||||||
- samples/client/petstore/javascript-promise-es6/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
#- samples/client/petstore/javascript-flowtyped/**
|
|
||||||
- samples/client/petstore/javascript-es6/**
|
|
||||||
- samples/client/petstore/javascript-promise-es6/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
node:
|
|
||||||
- "18.x"
|
|
||||||
- "20.x"
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/petstore/javascript-es6/
|
|
||||||
- samples/client/petstore/javascript-promise-es6/
|
|
||||||
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
|
|
||||||
- name: Use Node.js 20.x
|
|
||||||
uses: actions/setup-node@v5
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node }}
|
|
||||||
cache: 'npm' # Or 'yarn'
|
|
||||||
- name: npm install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: npm install
|
|
||||||
- name: npm test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: npm test
|
|
||||||
2
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
2
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
10
.github/workflows/samples-jaxrs.yaml
vendored
10
.github/workflows/samples-jaxrs.yaml
vendored
@@ -20,7 +20,10 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs/jersey2-useTags
|
- samples/server/petstore/jaxrs/jersey2-useTags
|
||||||
- samples/server/petstore/jaxrs-jersey
|
- samples/server/petstore/jaxrs-jersey
|
||||||
- samples/server/petstore/jaxrs-spec
|
- samples/server/petstore/jaxrs-spec
|
||||||
- samples/server/petstore/jaxrs-spec-withxml
|
- samples/server/petstore/jaxrs-spec-interface
|
||||||
|
- samples/server/petstore/jaxrs-spec-interface-response
|
||||||
|
- samples/server/petstore/jaxrs-jersey
|
||||||
|
- samples/server/petstore/jaxrs-spec
|
||||||
- samples/server/petstore/jaxrs-spec-interface
|
- samples/server/petstore/jaxrs-spec-interface
|
||||||
- samples/server/petstore/jaxrs-spec-interface-response
|
- samples/server/petstore/jaxrs-spec-interface-response
|
||||||
- samples/server/petstore/jaxrs-datelib-j8
|
- samples/server/petstore/jaxrs-datelib-j8
|
||||||
@@ -34,9 +37,6 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-cxf-cdi
|
- samples/server/petstore/jaxrs-cxf-cdi
|
||||||
- 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
|
||||||
- samples/server/petstore/jaxrs-spec-swagger-annotations
|
|
||||||
- samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta
|
|
||||||
- samples/server/petstore/jaxrs-spec-swagger-v3-annotations
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-jdk17.yaml
vendored
2
.github/workflows/samples-jdk17.yaml
vendored
@@ -64,7 +64,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-jdk21.yaml
vendored
2
.github/workflows/samples-jdk21.yaml
vendored
@@ -37,7 +37,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 21
|
java-version: 21
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
8
.github/workflows/samples-kotlin-client.yaml
vendored
8
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -29,6 +29,7 @@ jobs:
|
|||||||
# needs Android configured
|
# needs Android configured
|
||||||
#- samples/client/petstore/kotlin-json-request-string
|
#- samples/client/petstore/kotlin-json-request-string
|
||||||
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
|
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
|
||||||
|
- samples/client/petstore/kotlin-jvm-volley
|
||||||
- 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
|
||||||
@@ -43,11 +44,12 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-threetenbp
|
- samples/client/petstore/kotlin-threetenbp
|
||||||
- samples/client/petstore/kotlin-kotlinx-datetime
|
- samples/client/petstore/kotlin-kotlinx-datetime
|
||||||
- samples/client/petstore/kotlin-uppercase-enum
|
- samples/client/petstore/kotlin-uppercase-enum
|
||||||
- samples/client/petstore/kotlin-array-integer-enum
|
|
||||||
- samples/client/petstore/kotlin-default-values-jvm-okhttp4
|
- samples/client/petstore/kotlin-default-values-jvm-okhttp4
|
||||||
- samples/client/petstore/kotlin-default-values-jvm-retrofit2
|
- samples/client/petstore/kotlin-default-values-jvm-retrofit2
|
||||||
|
- samples/client/petstore/kotlin-default-values-jvm-volley
|
||||||
- samples/client/petstore/kotlin-default-values-multiplatform
|
- samples/client/petstore/kotlin-default-values-multiplatform
|
||||||
- samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4
|
- samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4
|
||||||
|
- samples/client/petstore/kotlin-array-simple-string-jvm-volley
|
||||||
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
||||||
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
|
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
|
||||||
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
||||||
@@ -69,16 +71,14 @@ jobs:
|
|||||||
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
||||||
- samples/client/others/kotlin-integer-enum
|
- samples/client/others/kotlin-integer-enum
|
||||||
- samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization
|
- samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization
|
||||||
- samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -26,9 +26,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ on:
|
|||||||
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
||||||
- 'samples/server/petstore/kotlin-springboot-*/**'
|
- 'samples/server/petstore/kotlin-springboot-*/**'
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
||||||
- 'samples/server/petstore/kotlin-spring-declarative*/**'
|
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
# - samples/server/petstore/kotlin-spring-default/**
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -18,7 +17,6 @@ on:
|
|||||||
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
||||||
- 'samples/server/petstore/kotlin-springboot-*/**'
|
- 'samples/server/petstore/kotlin-springboot-*/**'
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
||||||
- 'samples/server/petstore/kotlin-spring-declarative*/**'
|
|
||||||
# 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/**
|
||||||
|
|
||||||
@@ -36,8 +34,6 @@ jobs:
|
|||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
||||||
- samples/server/petstore/kotlin-springboot-3
|
- samples/server/petstore/kotlin-springboot-3
|
||||||
- samples/server/petstore/kotlin-springboot-3-no-response-entity
|
|
||||||
- samples/server/petstore/kotlin-springboot-additionalproperties
|
|
||||||
- samples/server/petstore/kotlin-springboot-delegate-nodefaults
|
- samples/server/petstore/kotlin-springboot-delegate-nodefaults
|
||||||
- samples/server/petstore/kotlin-springboot-request-cookie
|
- samples/server/petstore/kotlin-springboot-request-cookie
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
@@ -47,10 +43,6 @@ jobs:
|
|||||||
- 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-misk
|
- samples/server/petstore/kotlin-misk
|
||||||
- samples/server/petstore/kotlin-spring-declarative-interface
|
|
||||||
- samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines
|
|
||||||
- samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped
|
|
||||||
- samples/server/petstore/kotlin-spring-declarative-interface-wrapped
|
|
||||||
# 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:
|
||||||
@@ -59,9 +51,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -32,9 +32,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 21
|
java-version: 21
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
8
.github/workflows/samples-kotlin-server.yaml
vendored
8
.github/workflows/samples-kotlin-server.yaml
vendored
@@ -29,8 +29,6 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-springboot
|
- samples/server/petstore/kotlin-springboot
|
||||||
- samples/server/petstore/kotlin-springboot-no-response-entity
|
|
||||||
- samples/server/petstore/kotlin-springboot-no-response-entity-delegate
|
|
||||||
- samples/server/petstore/kotlin-springboot-multipart-request-model
|
- samples/server/petstore/kotlin-springboot-multipart-request-model
|
||||||
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
||||||
- samples/server/petstore/kotlin-springboot-delegate
|
- samples/server/petstore/kotlin-springboot-delegate
|
||||||
@@ -41,7 +39,6 @@ jobs:
|
|||||||
- 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-springboot-x-kotlin-implements
|
||||||
- samples/server/petstore/kotlin-springboot-include-http-request-context-delegate
|
|
||||||
- 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
|
||||||
@@ -62,10 +59,9 @@ jobs:
|
|||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 8
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
40
.github/workflows/samples-powershell.yaml
vendored
40
.github/workflows/samples-powershell.yaml
vendored
@@ -1,40 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v6
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.9'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ jobs:
|
|||||||
- "3.13"
|
- "3.13"
|
||||||
sample:
|
sample:
|
||||||
- samples/openapi3/client/petstore/python-aiohttp
|
- samples/openapi3/client/petstore/python-aiohttp
|
||||||
- samples/openapi3/client/petstore/python-httpx
|
|
||||||
- samples/openapi3/client/petstore/python
|
- samples/openapi3/client/petstore/python
|
||||||
- samples/openapi3/client/petstore/python-lazyImports
|
- samples/openapi3/client/petstore/python-lazyImports
|
||||||
services:
|
services:
|
||||||
@@ -53,7 +52,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
2
.github/workflows/samples-python-server.yaml
vendored
2
.github/workflows/samples-python-server.yaml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-python@v6
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.9'
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: make test-all
|
run: make test-all
|
||||||
|
|||||||
69
.github/workflows/samples-r.yaml
vendored
69
.github/workflows/samples-r.yaml
vendored
@@ -1,69 +0,0 @@
|
|||||||
name: Samples R clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/R/**
|
|
||||||
- samples/client/petstore/R-httr2/**
|
|
||||||
- samples/client/petstore/R-httr2-wrapper/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/petstore/R/**
|
|
||||||
- samples/client/petstore/R-httr2/**
|
|
||||||
- samples/client/petstore/R-httr2-wrapper/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build R projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/petstore/R/
|
|
||||||
- samples/client/petstore/R-httr2/
|
|
||||||
- samples/client/petstore/R-httr2-wrapper/
|
|
||||||
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: r-lib/actions/setup-r@v2
|
|
||||||
with:
|
|
||||||
use-public-rspm: true
|
|
||||||
|
|
||||||
- name: Install devtools
|
|
||||||
run: install.packages("devtools")
|
|
||||||
shell: Rscript {0}
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: devtools::build()
|
|
||||||
shell: Rscript {0}
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
|
|
||||||
- uses: r-lib/actions/setup-r-dependencies@v2
|
|
||||||
with:
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
extra-packages: any::rcmdcheck
|
|
||||||
needs: check
|
|
||||||
|
|
||||||
- uses: r-lib/actions/check-r-package@v2
|
|
||||||
with:
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
upload-snapshots: true
|
|
||||||
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
|
|
||||||
error-on: '"error"'
|
|
||||||
|
|
||||||
- name: Install local package
|
|
||||||
run: R CMD INSTALL .
|
|
||||||
shell: bash # Ensure correct shell for command execution
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
9
.github/workflows/samples-rust-server.yaml
vendored
9
.github/workflows/samples-rust-server.yaml
vendored
@@ -39,10 +39,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: cargo build --all-targets --all-features
|
||||||
set -e
|
|
||||||
cargo build --all-targets --all-features
|
|
||||||
cargo build --all-targets --no-default-features
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: |
|
||||||
@@ -60,10 +57,6 @@ jobs:
|
|||||||
cargo build --bin ${package##*/} --features cli
|
cargo build --bin ${package##*/} --features cli
|
||||||
target/debug/${package##*/} --help
|
target/debug/${package##*/} --help
|
||||||
fi
|
fi
|
||||||
# Test the validate feature if it exists
|
|
||||||
if cargo read-manifest | grep -q '"validate"'; then
|
|
||||||
cargo build --features validate --all-targets
|
|
||||||
fi
|
|
||||||
cargo fmt
|
cargo fmt
|
||||||
cargo test
|
cargo test
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|||||||
70
.github/workflows/samples-scala-client.yaml
vendored
70
.github/workflows/samples-scala-client.yaml
vendored
@@ -1,70 +0,0 @@
|
|||||||
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@v5
|
|
||||||
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
|
|
||||||
2
.github/workflows/samples-scala-jdk8.yaml
vendored
2
.github/workflows/samples-scala-jdk8.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Setup sbt launcher
|
- name: Setup sbt launcher
|
||||||
uses: sbt/setup-sbt@v1
|
uses: sbt/setup-sbt@v1
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
43
.github/workflows/samples-scala-server.yaml
vendored
43
.github/workflows/samples-scala-server.yaml
vendored
@@ -1,43 +0,0 @@
|
|||||||
name: Samples Scala/sbt server
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'samples/server/petstore/scala**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'samples/server/petstore/scala**'
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build sbt/Scala
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# servers
|
|
||||||
- samples/server/petstore/scala-play-server
|
|
||||||
- samples/server/petstore/scala-akka-http-server
|
|
||||||
- samples/server/petstore/scala-pekko-http-server
|
|
||||||
- samples/server/petstore/scalatra
|
|
||||||
- samples/server/petstore/scala-http4s-server
|
|
||||||
- samples/server/petstore/scala-cask
|
|
||||||
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@v5
|
|
||||||
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
|
|
||||||
56
.github/workflows/samples-scala.yaml
vendored
Normal file
56
.github/workflows/samples-scala.yaml
vendored
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
name: Samples Scala/sbt
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/scala**'
|
||||||
|
- 'samples/server/petstore/scala**'
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/scala**'
|
||||||
|
- 'samples/server/petstore/scala**'
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build sbt/Scala client, servers
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
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-sttp4-jsoniter
|
||||||
|
#- samples/client/petstore/scala-sttp
|
||||||
|
#- samples/client/petstore/scala-sttp-circe
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/scala-lagom-server
|
||||||
|
- samples/server/petstore/scala-play-server
|
||||||
|
- samples/server/petstore/scala-akka-http-server
|
||||||
|
- samples/server/petstore/scala-pekko-http-server
|
||||||
|
- samples/server/petstore/scalatra
|
||||||
|
- samples/server/petstore/scala-http4s-server
|
||||||
|
- samples/server/petstore/scala-cask
|
||||||
|
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
|
||||||
5
.github/workflows/samples-spring-jdk17.yaml
vendored
5
.github/workflows/samples-spring-jdk17.yaml
vendored
@@ -11,7 +11,6 @@ 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
|
||||||
@@ -22,7 +21,6 @@ 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)
|
||||||
@@ -41,7 +39,6 @@ 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@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
@@ -49,7 +46,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
.github/workflows/samples-spring.yaml
vendored
5
.github/workflows/samples-spring.yaml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- samples/openapi3/server/petstore/springboot-delegate
|
- samples/openapi3/server/petstore/springboot-delegate
|
||||||
- samples/openapi3/server/petstore/spring-boot-oneof
|
- samples/openapi3/server/petstore/spring-boot-oneof
|
||||||
- samples/server/petstore/spring-boot-nullable-set
|
- samples/server/petstore/spring-boot-nullable-set
|
||||||
- samples/server/petstore/spring-boot-defaultInterface-unhandledExcp
|
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
- samples/server/petstore/springboot-beanvalidation
|
- samples/server/petstore/springboot-beanvalidation
|
||||||
- samples/server/petstore/springboot-builtin-validation
|
- samples/server/petstore/springboot-builtin-validation
|
||||||
@@ -60,7 +60,6 @@ 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@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
@@ -68,7 +67,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-swift5.yaml
vendored
2
.github/workflows/samples-swift5.yaml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: swift-actions/setup-swift@v3
|
- uses: swift-actions/setup-swift@v2
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
with:
|
with:
|
||||||
swift-version: '5'
|
swift-version: '5'
|
||||||
|
|||||||
148
.github/workflows/samples-typescript-client.yaml
vendored
148
.github/workflows/samples-typescript-client.yaml
vendored
@@ -1,148 +0,0 @@
|
|||||||
name: Samples TS clients
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/others/typescript-angular/**
|
|
||||||
- samples/client/others/typescript-angular-v20/**
|
|
||||||
# comment out angular released before Nov 2023
|
|
||||||
#- samples/client/petstore/typescript-angular-v12-provided-in-root/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v13-provided-in-root/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v14-provided-in-root/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v15-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v17-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v18-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v20-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v21-provided-in-root/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/default/**
|
|
||||||
# comment out due to build failure
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/default/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/jquery/**
|
|
||||||
# comment out due to build failure
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/jquery/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/object_params/**
|
|
||||||
# comment out due to build failure
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/object_params/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/builds/inversify/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/inversify/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/deno/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/browser/**
|
|
||||||
# comment out due to build failure
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/browser/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/builds/nullable-enum/**
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/default/**
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/es6-target/**
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/with-npm-version/**
|
|
||||||
- samples/client/petstore/typescript-fetch/tests/default/**
|
|
||||||
# comment out due to build failure
|
|
||||||
#- samples/client/petstore/typescript-node/npm/**
|
|
||||||
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/**
|
|
||||||
- samples/client/petstore/typescript-axios/builds/with-npm-version/**
|
|
||||||
# comment out due to build failure
|
|
||||||
#- samples/client/petstore/typescript-axios/tests/default/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/others/typescript-angular/**
|
|
||||||
- samples/client/others/typescript-angular-v20/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v12-provided-in-root/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v13-provided-in-root/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v14-provided-in-root/**
|
|
||||||
#- samples/client/petstore/typescript-angular-v15-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v17-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v18-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v20-provided-in-root/**
|
|
||||||
- samples/client/petstore/typescript-angular-v21-provided-in-root/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/default/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/default/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/jquery/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/jquery/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/object_params/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/object_params/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/builds/inversify/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/inversify/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/deno/**
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/browser/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/browser/**
|
|
||||||
#- samples/openapi3/client/petstore/typescript/builds/nullable-enum/**
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/default/**
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/es6-target/**
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/with-npm-version/**
|
|
||||||
- samples/client/petstore/typescript-fetch/tests/default/**
|
|
||||||
#- samples/client/petstore/typescript-node/npm/**
|
|
||||||
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/**
|
|
||||||
- samples/client/petstore/typescript-axios/builds/with-npm-version/**
|
|
||||||
#- samples/client/petstore/typescript-axios/tests/default/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build projects
|
|
||||||
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:
|
|
||||||
node:
|
|
||||||
#- "18.x"
|
|
||||||
- "20.x"
|
|
||||||
sample:
|
|
||||||
- samples/client/others/typescript-angular/
|
|
||||||
- samples/client/others/typescript-angular-v20/
|
|
||||||
#- samples/client/petstore/typescript-angular-v12-provided-in-root/
|
|
||||||
#- samples/client/petstore/typescript-angular-v13-provided-in-root/
|
|
||||||
#- samples/client/petstore/typescript-angular-v14-provided-in-root/
|
|
||||||
#- samples/client/petstore/typescript-angular-v15-provided-in-root/
|
|
||||||
- samples/client/petstore/typescript-angular-v16-provided-in-root/
|
|
||||||
- samples/client/petstore/typescript-angular-v17-provided-in-root/
|
|
||||||
- samples/client/petstore/typescript-angular-v18-provided-in-root/
|
|
||||||
- samples/client/petstore/typescript-angular-v19-provided-in-root/
|
|
||||||
- samples/client/petstore/typescript-angular-v20-provided-in-root/
|
|
||||||
- samples/client/petstore/typescript-angular-v21-provided-in-root/
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/default/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/default/
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/jquery/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/jquery/
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/object_params/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/object_params/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/builds/inversify/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/inversify/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/deno/
|
|
||||||
- samples/openapi3/client/petstore/typescript/builds/browser/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/tests/browser/
|
|
||||||
#- samples/openapi3/client/petstore/typescript/builds/nullable-enum/
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/default/
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/es6-target/
|
|
||||||
- samples/client/petstore/typescript-fetch/builds/with-npm-version/
|
|
||||||
- samples/client/petstore/typescript-fetch/tests/default/
|
|
||||||
#- samples/client/petstore/typescript-node/npm/
|
|
||||||
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/
|
|
||||||
- samples/client/petstore/typescript-axios/builds/with-npm-version/
|
|
||||||
#- samples/client/petstore/typescript-axios/tests/default/
|
|
||||||
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
|
|
||||||
- name: Set up JDK 17
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: '17' # Specify your desired Java version
|
|
||||||
distribution: 'temurin' # Or 'adopt', 'oracle', etc.
|
|
||||||
cache: maven # Cache Maven dependencies for faster builds
|
|
||||||
- name: Use Node.js
|
|
||||||
uses: actions/setup-node@v5
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node }}
|
|
||||||
cache: 'npm' # Or 'yarn'
|
|
||||||
- name: mvn integration-test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: mvn integration-test
|
|
||||||
@@ -16,9 +16,9 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/others/typescript/encode-decode/test
|
- samples/client/others/typescript/encode-decode/test
|
||||||
node-version:
|
node-version:
|
||||||
|
- 16
|
||||||
|
- 18
|
||||||
- 20
|
- 20
|
||||||
- 22
|
|
||||||
- 24
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
|||||||
34
.github/workflows/samples-typescript-server.yaml
vendored
34
.github/workflows/samples-typescript-server.yaml
vendored
@@ -1,34 +0,0 @@
|
|||||||
name: Samples TS servers
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/typescript-nestjs-server/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/server/petstore/typescript-nestjs-server/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build projects
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
node:
|
|
||||||
- "18.x"
|
|
||||||
- "20.x"
|
|
||||||
sample:
|
|
||||||
- samples/server/petstore/typescript-nestjs-server/
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- name: Use Node.js 20.x
|
|
||||||
uses: actions/setup-node@v5
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node }}
|
|
||||||
cache: 'npm' # Or 'yarn'
|
|
||||||
- name: npm install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: npm install
|
|
||||||
- name: npm test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: npm test
|
|
||||||
5
.github/workflows/windows.yaml
vendored
5
.github/workflows/windows.yaml
vendored
@@ -24,9 +24,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -40,7 +39,7 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.19.0
|
uses: s4u/setup-maven-action@v1.18.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -49,8 +49,6 @@ nb-configuration.xml
|
|||||||
*.xml~
|
*.xml~
|
||||||
*.t~
|
*.t~
|
||||||
|
|
||||||
**/.angular
|
|
||||||
|
|
||||||
/target
|
/target
|
||||||
/generated-files
|
/generated-files
|
||||||
test-output/
|
test-output/
|
||||||
|
|||||||
37
CI/.travis.yml.bash
Normal file
37
CI/.travis.yml.bash
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
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
|
||||||
@@ -11,15 +11,43 @@ export NODE_ENV=test
|
|||||||
|
|
||||||
if [ "$NODE_INDEX" = "1" ]; then
|
if [ "$NODE_INDEX" = "1" ]; then
|
||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
|
java -version
|
||||||
|
|
||||||
sudo apt-get -y install cpanminus
|
sudo apt-get -y install cpanminus
|
||||||
|
|
||||||
|
# install rust
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
|
||||||
echo "Testing perl"
|
echo "Testing perl"
|
||||||
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
||||||
|
|
||||||
|
echo "Testing ruby"
|
||||||
|
(cd samples/client/petstore/ruby && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
||||||
|
|
||||||
|
echo "Testing rust"
|
||||||
|
(cd samples/server/petstore/rust-axum && mvn integration-test)
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test cpp-restsdk"
|
echo "Running node $NODE_INDEX to test Go"
|
||||||
|
# install haskell
|
||||||
|
#curl -sSLk https://get.haskellstack.org/ | sh
|
||||||
|
#stack upgrade
|
||||||
|
#stack --version
|
||||||
|
|
||||||
|
# install curl
|
||||||
|
#sudo apt-get -y build-dep libcurl4-gnutls-dev
|
||||||
|
#sudo apt-get -y install libcurl4-gnutls-dev
|
||||||
|
|
||||||
|
# Install golang version 1.18
|
||||||
|
go version
|
||||||
|
sudo mkdir /usr/local/go1.18
|
||||||
|
wget -c https://dl.google.com/go/go1.18.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.18
|
||||||
|
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
||||||
|
go version
|
||||||
|
|
||||||
# install cpprestsdk
|
# install cpprestsdk
|
||||||
sudo apt-get install libcpprest-dev
|
sudo apt-get install libcpprest-dev
|
||||||
@@ -28,21 +56,87 @@ 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
|
||||||
|
|
||||||
echo "Running node $NODE_INDEX ... "
|
echo "Running node $NODE_INDEX ... "
|
||||||
|
|
||||||
echo "Testing ruby"
|
# Install node@stable (for angular 6)
|
||||||
(cd samples/client/petstore/ruby && mvn integration-test)
|
set +e
|
||||||
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||||
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
export NVM_DIR="/opt/circleci/.nvm"
|
||||||
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
#nvm install stable
|
||||||
|
# install v16 instead of the latest stable version
|
||||||
|
nvm install 18
|
||||||
|
nvm alias default 18
|
||||||
|
node --version
|
||||||
|
|
||||||
|
# Each step uses the same `$BASH_ENV`, so need to modify it
|
||||||
|
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
||||||
|
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
|
||||||
|
|
||||||
|
(cd samples/client/others/typescript-angular && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v12-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v13-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v18-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v19-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/jquery && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/object_params && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/object_params && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/inversify && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/inversify && mvn integration-test)
|
||||||
|
#(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/nullable-enum && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/tests/default && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-node/npm && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/javascript-flowtyped && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/javascript-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
|
||||||
./mvnw clean install
|
|
||||||
|
(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
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ COPY ./google_checkstyle.xml ${GEN_DIR}
|
|||||||
# All poms are copied, then we go offline, to allow for better caching of code changes without fetching all dependencies each time
|
# All poms are copied, then we go offline, to allow for better caching of code changes without fetching all dependencies each time
|
||||||
COPY ./modules/openapi-generator-gradle-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-gradle-plugin/
|
COPY ./modules/openapi-generator-gradle-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-gradle-plugin/
|
||||||
COPY ./modules/openapi-generator-maven-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-maven-plugin/
|
COPY ./modules/openapi-generator-maven-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-maven-plugin/
|
||||||
COPY ./modules/openapi-generator-mill-plugin/pom.xml ${GEN_DIR}/modules/openapi-generator-mill-plugin/
|
|
||||||
COPY ./modules/openapi-generator-online/pom.xml ${GEN_DIR}/modules/openapi-generator-online/
|
COPY ./modules/openapi-generator-online/pom.xml ${GEN_DIR}/modules/openapi-generator-online/
|
||||||
COPY ./modules/openapi-generator-cli/pom.xml ${GEN_DIR}/modules/openapi-generator-cli/
|
COPY ./modules/openapi-generator-cli/pom.xml ${GEN_DIR}/modules/openapi-generator-cli/
|
||||||
COPY ./modules/openapi-generator-core/pom.xml ${GEN_DIR}/modules/openapi-generator-core/
|
COPY ./modules/openapi-generator-core/pom.xml ${GEN_DIR}/modules/openapi-generator-core/
|
||||||
@@ -24,7 +23,6 @@ RUN mvn dependency:go-offline
|
|||||||
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
|
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
|
||||||
COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
|
COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
|
||||||
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
|
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
|
||||||
COPY ./modules/openapi-generator-mill-plugin ${GEN_DIR}/modules/openapi-generator-mill-plugin
|
|
||||||
COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
|
COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
|
||||||
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
|
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
|
||||||
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
|
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -15,8 +15,10 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.20.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>
|
||||||
@@ -148,8 +150,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.20.0 (upcoming minor release) [SNAPSHOT](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) | 20.02.2026 | 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.19.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.19.0) (latest stable release) | 20.01.2026 | 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) |
|
||||||
@@ -212,16 +214,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.19.0/openapi-generator-cli-7.19.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.19.0/openapi-generator-cli-7.19.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.19.0/openapi-generator-cli-7.19.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.
|
||||||
@@ -456,7 +458,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.19.0
|
openapi-generator-cli version-manager set 7.15.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -480,7 +482,7 @@ pip install openapi-generator-cli
|
|||||||
|
|
||||||
To install a specific version
|
To install a specific version
|
||||||
```
|
```
|
||||||
pip install openapi-generator-cli==7.19.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)
|
||||||
@@ -506,7 +508,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.19.0/openapi-generator-cli-7.19.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`
|
||||||
@@ -757,7 +759,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [REST United](https://restunited.com)
|
- [REST United](https://restunited.com)
|
||||||
- [Robocorp](https://www.robocorp.com)
|
- [Robocorp](https://www.robocorp.com)
|
||||||
- [Robotinfra](https://www.robotinfra.com)
|
- [Robotinfra](https://www.robotinfra.com)
|
||||||
- [Sarvika Technologies Pvt. Ltd.](https://www.sarvika.com)
|
|
||||||
- [SearchApi](https://www.searchapi.io/)
|
- [SearchApi](https://www.searchapi.io/)
|
||||||
- [SmartHR](https://smarthr.co.jp/)
|
- [SmartHR](https://smarthr.co.jp/)
|
||||||
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
||||||
@@ -1183,7 +1184,6 @@ Here is a list of template creators:
|
|||||||
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Scala Lagom: @gmkumar2005
|
* Scala Lagom: @gmkumar2005
|
||||||
* Scala Play: @adigerber
|
* Scala Play: @adigerber
|
||||||
* TypeScript NestJS: @aryobenholzner
|
|
||||||
* Documentation
|
* Documentation
|
||||||
* AsciiDoc: @man-at-home
|
* AsciiDoc: @man-at-home
|
||||||
* HTML Doc 2: @jhitchcock
|
* HTML Doc 2: @jhitchcock
|
||||||
|
|||||||
119
appveyor.yml
Normal file
119
appveyor.yml
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
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\ComposedEnum\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
- dotnet test samples\client\petstore\csharp\generichost\latest\InlineEnumAnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
- 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,7 +6,6 @@ additionalProperties:
|
|||||||
shardVersion: 1.0.0
|
shardVersion: 1.0.0
|
||||||
moduleName: Petstore
|
moduleName: Petstore
|
||||||
shardName: petstore
|
shardName: petstore
|
||||||
#paramsEncoder: Crest::EnumeratedFlatParamsEncoder
|
|
||||||
strictSpecBehavior: false
|
strictSpecBehavior: false
|
||||||
modelNameMappings:
|
modelNameMappings:
|
||||||
PropertyNameMapping: AnotherPropertyNameMapping
|
PropertyNameMapping: AnotherPropertyNameMapping
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/AllOf
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: true
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/AnyOf
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: true
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: false
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: true
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/FormModels
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: false
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
skipFormModel: false
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
inlineSchemaOptions:
|
|
||||||
RESOLVE_INLINE_ENUMS: true
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/SourceGeneration
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useSourceGeneration: true
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/NullReferenceTypes
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: true
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/OneOf
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: true
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{2E60EF87-DB0B-4D01-A36E-F5E90F7EC757}'
|
|
||||||
useDateTimeForDate: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for csharp generichost
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/generichost/net10/Petstore
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
nullableReferenceTypes: false
|
|
||||||
equatable: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
modelPropertySorting: alphabetical
|
|
||||||
operationParameterSorting: alphabetical
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for .net standard httpclient
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/httpclient/net10/Petstore-nonPublicApi
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
library: httpclient
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
equatable: true
|
|
||||||
nonPublicApi: true
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# for .net standard httpclient
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/httpclient/net10/Petstore
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
library: httpclient
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
equatable: true
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# for .net standard httpclient
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/httpclient/net9/Petstore-nonPublicApi
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
library: httpclient
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net9.0
|
|
||||||
equatable: true
|
|
||||||
nonPublicApi: true
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp
|
|
||||||
library: restsharp
|
|
||||||
outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net10.0
|
|
||||||
equatable: true
|
|
||||||
enumNameMappings:
|
|
||||||
delivered: Shipped
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
library: restsharp
|
library: restsharp
|
||||||
outputDir: samples/client/petstore/csharp/restsharp/standard2.0/Petstore
|
outputDir: samples/client/petstore/csharp/restsharp/standard2.0/Petstore
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types-localhost.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
# for .net Unity
|
|
||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/unityWebRequest/net10/Petstore
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
library: unityWebRequest
|
|
||||||
additionalProperties:
|
|
||||||
targetFramework: net10.0
|
|
||||||
equatable: true
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
generatorName: go
|
generatorName: go
|
||||||
outputDir: samples/client/others/go/allof_multiple_ref_and_discriminator
|
outputDir: samples/client/others/go/allof_multiple_ref_and_discriminator
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/allof_multiple_ref_and_discriminator.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/allof_multiple_ref_and_discriminator.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go
|
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
generatorName: go
|
generatorName: go
|
||||||
outputDir: samples/client/others/go/oneof-anyof-required
|
outputDir: samples/client/others/go/oneof-anyof-required
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-anyof-required.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-anyof-required.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go
|
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
generatorName: go
|
generatorName: go
|
||||||
outputDir: samples/client/others/go/oneof-discriminator-lookup
|
outputDir: samples/client/others/go/oneof-discriminator-lookup
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-discriminator.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-discriminator.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go
|
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
useOneOfDiscriminatorLookup: "true"
|
useOneOfDiscriminatorLookup: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: go
|
generatorName: go
|
||||||
outputDir: samples/client/petstore/go/go-petstore
|
outputDir: samples/client/petstore/go/go-petstore
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-localhost.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go
|
templateDir: modules/openapi-generator/src/main/resources/go
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore
|
packageName: petstore
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: go-server
|
|
||||||
outputDir: samples/server/others/go-server/optional-body
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/optional_body.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go-server
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
packageName: petstoreserver
|
|
||||||
addResponseHeaders: true
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: html
|
|
||||||
outputDir: samples/documentation/html
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/htmlDocs
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user