forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into fix-release2
This commit is contained in:
commit
c107bfa6e1
@ -31,8 +31,10 @@ commands: # a reusable command with parameters
|
|||||||
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
|
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
|
||||||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
|
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
|
||||||
# This is based on your 1.0 configuration file or project settings
|
# This is based on your 1.0 configuration file or project settings
|
||||||
|
#- run:
|
||||||
|
# command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
|
||||||
- run:
|
- run:
|
||||||
command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
|
command: java -version
|
||||||
- run:
|
- run:
|
||||||
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
||||||
- run:
|
- run:
|
||||||
@ -47,7 +49,7 @@ commands: # a reusable command with parameters
|
|||||||
- run: sleep 30
|
- run: sleep 30
|
||||||
- run: cat /etc/hosts
|
- run: cat /etc/hosts
|
||||||
# Test
|
# Test
|
||||||
- run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
- run: ./mvnw --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
- run:
|
- run:
|
||||||
name: "Setup custom environment variables"
|
name: "Setup custom environment variables"
|
||||||
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV
|
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV
|
||||||
|
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -18,7 +18,7 @@
|
|||||||
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
|
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
|
||||||
- [ ] In case you are adding a new generator, run the following additional script :
|
- [ ] In case you are adding a new generator, run the following additional script :
|
||||||
```
|
```
|
||||||
./bin/utils/ensure-up-to-date.sh
|
./bin/utils/ensure-up-to-date
|
||||||
```
|
```
|
||||||
Commit all changed files.
|
Commit all changed files.
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
||||||
|
2
.github/actions/run-samples/action.yaml
vendored
2
.github/actions/run-samples/action.yaml
vendored
@ -15,5 +15,5 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: mvn --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
- run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
||||||
shell: bash
|
shell: bash
|
6
.github/dependabot.yml
vendored
6
.github/dependabot.yml
vendored
@ -4,3 +4,9 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
- package-ecosystem: "maven"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
allow:
|
||||||
|
- dependency-name: "com.gradle.*"
|
||||||
|
97
.github/workflows/check-supported-versions.yaml
vendored
97
.github/workflows/check-supported-versions.yaml
vendored
@ -1,97 +0,0 @@
|
|||||||
name: Check Supported Java Versions
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: 'Build: JDK ${{ matrix.java }} (${{ matrix.os }})'
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java: [8, 11]
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
include:
|
|
||||||
- java: 8
|
|
||||||
os: windows-latest
|
|
||||||
- java: 17
|
|
||||||
os: ubuntu-latest
|
|
||||||
# Need to update to Gradle version with v17 support in modules/openapi-generator-gradle-plugin/pom.xml
|
|
||||||
flags: -am -pl modules/openapi-generator-cli -Dmaven.javadoc.skip=true -Dmaven.test.skip=true
|
|
||||||
steps:
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
|
|
||||||
- name: Build with Maven
|
|
||||||
shell: bash
|
|
||||||
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }}
|
|
||||||
|
|
||||||
- name: Upload Maven build artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: matrix.java == '8' && matrix.os == 'ubuntu-latest'
|
|
||||||
with:
|
|
||||||
name: artifact
|
|
||||||
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
|
||||||
|
|
||||||
- name: Test Gradle plugin usage
|
|
||||||
shell: bash
|
|
||||||
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
|
||||||
|
|
||||||
- name: Test Maven plugin integration
|
|
||||||
if: matrix.java == '8'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cd modules/openapi-generator-maven-plugin
|
|
||||||
mvn verify -Pintegration
|
|
||||||
|
|
||||||
verify:
|
|
||||||
name: Verify outputs on ${{ matrix.os }}
|
|
||||||
needs: build
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
# include:
|
|
||||||
# - os: windows-latest
|
|
||||||
# flags: --skip-docs
|
|
||||||
steps:
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Download build artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: artifact
|
|
||||||
- name: Run Ensures Script
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
git config --global core.fileMode false
|
|
||||||
git config --global core.safecrlf false
|
|
||||||
git config --global core.autocrlf true
|
|
||||||
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
|
||||||
# test with java (jersey2) client generation only as ensure-up-to-date script is run in another job instead
|
|
||||||
./bin/generate-samples.sh ./bin/configs/java-jersey2-8.yaml
|
|
||||||
# test debugSupportingFiles
|
|
||||||
./bin/generate-samples.sh ./bin/configs/python.yaml -- --global-property debugSupportingFiles
|
|
39
.github/workflows/docker.yaml
vendored
Normal file
39
.github/workflows/docker.yaml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Docker tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- Dockerfile
|
||||||
|
- run-in-docker.sh
|
||||||
|
- pom.xml
|
||||||
|
- modules/openapi-generator-online/pom.xml
|
||||||
|
- modules/openapi-generator-online/Dockerfile
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- Dockerfile
|
||||||
|
- run-in-docker.sh
|
||||||
|
- pom.xml
|
||||||
|
- modules/openapi-generator-online/pom.xml
|
||||||
|
- modules/openapi-generator-online/Dockerfile
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 'Build: Docker'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Test run-in-docker.sh
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sed -i 's/ -it / /g' run-in-docker.sh
|
||||||
|
./run-in-docker.sh mvn clean install
|
||||||
|
|
||||||
|
- name: Build Dockerfile
|
||||||
|
shell: bash
|
||||||
|
run: docker build .
|
||||||
|
|
||||||
|
- name: Build modules/openapi-generator-online
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
docker build modules/openapi-generator-online/ -t test
|
4
.github/workflows/gradle-plugin-tests.yaml
vendored
4
.github/workflows/gradle-plugin-tests.yaml
vendored
@ -35,8 +35,10 @@ jobs:
|
|||||||
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-test-gradle-plugin-
|
${{ runner.os }}-test-gradle-plugin-
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
||||||
|
1
.github/workflows/gradle-test.yaml
vendored
1
.github/workflows/gradle-test.yaml
vendored
@ -28,6 +28,7 @@ jobs:
|
|||||||
- samples/client/petstore/java/jersey2-java8
|
- samples/client/petstore/java/jersey2-java8
|
||||||
- samples/client/petstore/java/okhttp-gson
|
- samples/client/petstore/java/okhttp-gson
|
||||||
- samples/client/petstore/java/okhttp-gson-group-parameter
|
- samples/client/petstore/java/okhttp-gson-group-parameter
|
||||||
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
name: Java Helidon Functional tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/**
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Java Helidon Functional tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java-version: [11, 17]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java-version }}
|
|
||||||
distribution: 'temurin'
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
env:
|
|
||||||
cache-name: cache-maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle
|
|
||||||
!~/.gradle/caches/*/plugin-resolution/
|
|
||||||
!~/.m2/repository/org/openapitools/
|
|
||||||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
- name: Run unit tests
|
|
||||||
run: cd modules/openapi-generator && mvn --no-snapshot-updates --batch-mode -Dtest="**/functional/*Test" test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- name: Publish unit test reports
|
|
||||||
if: ${{ always() }}
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: surefire-test-results
|
|
||||||
path: '**/surefire-reports/TEST-*.xml'
|
|
108
.github/workflows/linux.yaml
vendored
Normal file
108
.github/workflows/linux.yaml
vendored
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
name: Linux tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 'Build: JDK ${{ matrix.java }} (${{ matrix.os }})'
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [11, 17]
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/wrapper
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
|
- name: Setup Maven
|
||||||
|
uses: s4u/setup-maven-action@v1.8.0
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
maven-version: 3.8.8
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
shell: bash
|
||||||
|
run: ./mvnw clean -nsu -B --quiet -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress install --file pom.xml
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload Maven build artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
|
||||||
|
with:
|
||||||
|
name: artifact
|
||||||
|
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
||||||
|
|
||||||
|
- name: Test Gradle plugin usage
|
||||||
|
shell: bash
|
||||||
|
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
||||||
|
|
||||||
|
- name: Test Maven plugin integration
|
||||||
|
if: matrix.java == '11'
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
run: |
|
||||||
|
cd modules/openapi-generator-maven-plugin
|
||||||
|
mvn clean verify -Pintegration
|
||||||
|
|
||||||
|
verify:
|
||||||
|
name: Verify outputs on ${{ matrix.os }}
|
||||||
|
needs: build
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Setup Maven
|
||||||
|
uses: s4u/setup-maven-action@v1.8.0
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
maven-version: 3.8.8
|
||||||
|
- name: Download build artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifact
|
||||||
|
- name: Run Ensures Script
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git config --global core.fileMode false
|
||||||
|
git config --global core.safecrlf false
|
||||||
|
git config --global core.autocrlf true
|
||||||
|
./mvnw clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
||||||
|
# test with java (jersey2) client generation only as ensure-up-to-date script is run in another job instead
|
||||||
|
./bin/generate-samples.sh ./bin/configs/java-jersey2-8.yaml
|
||||||
|
# test debugSupportingFiles
|
||||||
|
./bin/generate-samples.sh ./bin/configs/go-petstore.yaml -- --global-property debugSupportingFiles
|
12
.github/workflows/maven-plugin-tests.yaml
vendored
12
.github/workflows/maven-plugin-tests.yaml
vendored
@ -34,9 +34,11 @@ jobs:
|
|||||||
${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}-
|
${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-test-maven-plugin-
|
${{ runner.os }}-test-maven-plugin-
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
24
.github/workflows/openapi-generator.yaml
vendored
24
.github/workflows/openapi-generator.yaml
vendored
@ -16,10 +16,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -36,7 +36,9 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Run maven
|
- name: Run maven
|
||||||
run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
env:
|
||||||
|
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@v3
|
uses: actions/upload-artifact@v3
|
||||||
@ -52,10 +54,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -72,7 +74,9 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
env:
|
||||||
|
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@v3
|
uses: actions/upload-artifact@v3
|
||||||
@ -87,10 +91,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
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@v3
|
uses: actions/download-artifact@v3
|
||||||
@ -126,10 +130,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
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@v3
|
uses: actions/download-artifact@v3
|
||||||
|
27
.github/workflows/samples-c-libcurl-client.yaml
vendored
Normal file
27
.github/workflows/samples-c-libcurl-client.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Samples c libcurl client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/c/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/c/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build c libcurl client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
|
||||||
|
- name: Build
|
||||||
|
working-directory: "samples/client/petstore/c"
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
6
.github/workflows/samples-cpp-qt-client.yaml
vendored
6
.github/workflows/samples-cpp-qt-client.yaml
vendored
@ -23,12 +23,16 @@ jobs:
|
|||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
|
include:
|
||||||
|
- os: windows-latest
|
||||||
|
tools: 'tools_openssl_x64'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: jurplel/install-qt-action@v3
|
- uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt-version }}
|
version: ${{ matrix.qt-version }}
|
||||||
|
tools: ${{ matrix.tools }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: "samples/client/petstore/cpp-qt"
|
working-directory: "samples/client/petstore/cpp-qt"
|
||||||
run: ./build-and-test.bash
|
run: cmake . && cmake --build .
|
||||||
|
2
.github/workflows/samples-dart.yaml
vendored
2
.github/workflows/samples-dart.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
|
@ -3,10 +3,10 @@ name: Samples C# .Net Standard
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**netstandard**/'
|
- 'samples/client/petstore/csharp/**netstandard**/'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**netstandard**/'
|
- 'samples/client/petstore/csharp/**netstandard**/'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
@ -16,10 +16,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-dotnet@v3.0.3
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
33
.github/workflows/samples-dotnet.yaml
vendored
33
.github/workflows/samples-dotnet.yaml
vendored
@ -1,18 +1,25 @@
|
|||||||
name: Samples C# .Net 6
|
name: Samples C# .Net 7
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
- 'samples/client/petstore/csharp/**net6.0**/'
|
||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
||||||
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
- 'samples/client/petstore/csharp/**net6.0**/'
|
||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
||||||
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
@ -22,17 +29,21 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-allOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-oneOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-anyOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
|
||||||
- samples/server/petstore/aspnetcore-6.0
|
- samples/server/petstore/aspnetcore-6.0
|
||||||
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
||||||
- samples/server/petstore/aspnetcore-6.0-project4Models
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-dotnet@v3.0.3
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
75
.github/workflows/samples-dotnet6-client.yaml
vendored
Normal file
75
.github/workflows/samples-dotnet6-client.yaml
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
name: Samples C# .Net 6
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (.net 5.0)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
||||||
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (.net 5.0)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
||||||
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCore/
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
||||||
|
# build C# API client (.net 5.0)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net5.0/
|
||||||
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.0.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
41
.github/workflows/samples-dotnet6-server.yaml
vendored
Normal file
41
.github/workflows/samples-dotnet6-server.yaml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: Samples C# .Net 6
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net servers
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/aspnetcore-6.0
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.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
|
35
.github/workflows/samples-elm.yaml
vendored
Normal file
35
.github/workflows/samples-elm.yaml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Samples Elm
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/elm/**
|
||||||
|
- samples/openapi3/client/elm/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/elm/**
|
||||||
|
- samples/openapi3/client/elm/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Elm clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/elm
|
||||||
|
- samples/openapi3/client/elm
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: jorelali/setup-elm@v5
|
||||||
|
with:
|
||||||
|
elm-version: 0.19.1
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
# Try to compile all .elm files
|
||||||
|
# This fails if:
|
||||||
|
# An .elm file couldn't be compiled
|
||||||
|
# No .elm files were found
|
||||||
|
# No elm.json file could be found in the root of the working directory
|
||||||
|
run: elm make $(find . -name *.elm) --output=/dev/null
|
14
.github/workflows/samples-go.yaml
vendored
14
.github/workflows/samples-go.yaml
vendored
@ -5,10 +5,12 @@ on:
|
|||||||
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/**'
|
||||||
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/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -20,17 +22,13 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- 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/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.17.0'
|
go-version: "stable"
|
||||||
- run: go version
|
- run: go version
|
||||||
- name: Install
|
- name: Run test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: go test -mod=mod -v
|
||||||
go get github.com/labstack/echo/v4/middleware@v4.9.0
|
|
||||||
go get github.com/labstack/echo/v4@v4.9.0
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: go test -v
|
|
||||||
|
@ -8,6 +8,7 @@ on:
|
|||||||
- 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/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
@ -16,6 +17,7 @@ on:
|
|||||||
- 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/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -38,6 +40,7 @@ jobs:
|
|||||||
- samples/client/petstore/java/resttemplate-withXml
|
- samples/client/petstore/java/resttemplate-withXml
|
||||||
- samples/client/petstore/java/webclient
|
- samples/client/petstore/java/webclient
|
||||||
- samples/client/petstore/java/webclient-nullable-arrays
|
- samples/client/petstore/java/webclient-nullable-arrays
|
||||||
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
- samples/client/petstore/java/vertx
|
- samples/client/petstore/java/vertx
|
||||||
- samples/client/petstore/java/jersey2-java8-localdatetime
|
- samples/client/petstore/java/jersey2-java8-localdatetime
|
||||||
- samples/client/petstore/java/resteasy
|
- samples/client/petstore/java/resteasy
|
||||||
@ -54,6 +57,9 @@ jobs:
|
|||||||
- samples/client/petstore/java/okhttp-gson-swagger1/
|
- samples/client/petstore/java/okhttp-gson-swagger1/
|
||||||
- samples/client/petstore/java/resttemplate-swagger1/
|
- samples/client/petstore/java/resttemplate-swagger1/
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/
|
||||||
|
- samples/client/petstore/java/okhttp-gson-swagger2/
|
||||||
|
- samples/client/petstore/java/resttemplate-swagger2/
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
41
.github/workflows/samples-java-helidon.yaml
vendored
Normal file
41
.github/workflows/samples-java-helidon.yaml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: Samples Java Helidon
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java-helidon-client/**
|
||||||
|
- samples/server/petstore/java-helidon-server/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java-helidon-client/**
|
||||||
|
- samples/server/petstore/java-helidon-server/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Helidon
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/java-helidon-client/mp
|
||||||
|
- samples/client/petstore/java-helidon-client/se
|
||||||
|
- samples/server/petstore/java-helidon-server/mp
|
||||||
|
- samples/server/petstore/java-helidon-server/se
|
||||||
|
version: [17]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ matrix.version }}
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
1
.github/workflows/samples-jaxrs.yaml
vendored
1
.github/workflows/samples-jaxrs.yaml
vendored
@ -38,6 +38,7 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-cxf-annotated-base-path
|
- samples/server/petstore/jaxrs-cxf-annotated-base-path
|
||||||
- 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
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
5
.github/workflows/samples-kotlin-client.yaml
vendored
5
.github/workflows/samples-kotlin-client.yaml
vendored
@ -51,11 +51,14 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
||||||
- samples/client/petstore/kotlin-jvm-ktor-jackson
|
- samples/client/petstore/kotlin-jvm-ktor-jackson
|
||||||
- samples/client/petstore/kotlin-jvm-ktor-gson
|
- samples/client/petstore/kotlin-jvm-ktor-gson
|
||||||
- samples/client/petstore/kotlin-jvm-ktor-gson
|
- samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-gson
|
- samples/client/petstore/kotlin-jvm-vertx-gson
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
||||||
|
- samples/client/petstore/kotlin-jvm-spring-2-webclient
|
||||||
|
- samples/client/petstore/kotlin-jvm-spring-3-webclient
|
||||||
|
- samples/client/petstore/kotlin-spring-cloud
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
@ -3,10 +3,10 @@ name: Python Client (Echo API)
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/python-nextgen/**
|
- samples/client/echo_api/python/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/python-nextgen/**
|
- samples/client/echo_api/python/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Test Python client
|
name: Test Python client
|
||||||
@ -16,7 +16,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/python-nextgen
|
- samples/client/echo_api/python
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
27
.github/workflows/samples-python-server.yaml
vendored
Normal file
27
.github/workflows/samples-python-server.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Python Server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/python-aiohttp/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/python-aiohttp/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/python-aiohttp/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.7'
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: make test-all
|
2
.github/workflows/samples-spring.yaml
vendored
2
.github/workflows/samples-spring.yaml
vendored
@ -26,6 +26,7 @@ jobs:
|
|||||||
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
- samples/openapi3/client/petstore/spring-cloud-async
|
- samples/openapi3/client/petstore/spring-cloud-async
|
||||||
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional.yaml
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
- samples/openapi3/server/petstore/springboot
|
- samples/openapi3/server/petstore/springboot
|
||||||
@ -46,6 +47,7 @@ jobs:
|
|||||||
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
||||||
- samples/server/petstore/springboot-spring-pageable-without-j8
|
- samples/server/petstore/springboot-spring-pageable-without-j8
|
||||||
- samples/server/petstore/springboot-spring-pageable
|
- samples/server/petstore/springboot-spring-pageable
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-tags.yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
6
.github/workflows/sonar.yml
vendored
6
.github/workflows/sonar.yml
vendored
@ -19,8 +19,8 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Compile with Maven
|
- name: Compile with Maven
|
||||||
run: mvn -B -q clean install jacoco:report
|
run: ./mvnw -B -q clean install jacoco:report
|
||||||
- name: Jacoco Aggregate
|
- name: Jacoco Aggregate
|
||||||
run: mvn jacoco:report-aggregate
|
run: ./mvnw jacoco:report-aggregate
|
||||||
- name: Publish to Sonar
|
- name: Publish to Sonar
|
||||||
run: mvn -B -q -nsu sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}
|
run: ./mvnw -B -q -nsu sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}
|
||||||
|
59
.github/workflows/windows.yaml
vendored
Normal file
59
.github/workflows/windows.yaml
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
name: Windows tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [11, 17]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2/repository
|
||||||
|
~/.gradle
|
||||||
|
!~/.gradle/caches/*/plugin-resolution/
|
||||||
|
!~/.m2/repository/org/openapitools/
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
- name: Setup Maven
|
||||||
|
uses: s4u/setup-maven-action@v1.8.0
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
maven-version: 3.8.8
|
||||||
|
- name: Run maven
|
||||||
|
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet install
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
- name: Test Template Retrieval
|
||||||
|
run: |
|
||||||
|
cd modules/openapi-generator-cli/target
|
||||||
|
# generator names containing "-" caused problems in the past, see https://github.com/OpenAPITools/openapi-generator/issues/9528
|
||||||
|
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
- name: Gradle tests
|
||||||
|
run: |
|
||||||
|
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -36,6 +36,7 @@ nbproject/
|
|||||||
nbactions.xml
|
nbactions.xml
|
||||||
nb-configuration.xml
|
nb-configuration.xml
|
||||||
.direnv/
|
.direnv/
|
||||||
|
**/:w
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
|
13
.mvn/extensions.xml
Normal file
13
.mvn/extensions.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>com.gradle</groupId>
|
||||||
|
<artifactId>gradle-enterprise-maven-extension</artifactId>
|
||||||
|
<version>1.17</version>
|
||||||
|
</extension>
|
||||||
|
<extension>
|
||||||
|
<groupId>com.gradle</groupId>
|
||||||
|
<artifactId>common-custom-user-data-maven-extension</artifactId>
|
||||||
|
<version>1.11.1</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
52
.mvn/gradle-enterprise.xml
Normal file
52
.mvn/gradle-enterprise.xml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||||
|
|
||||||
|
<!-- Common gradle-enterprise.xml configuration for Maven shared between CI agents and developers building locally.
|
||||||
|
|
||||||
|
The build cache credentials required for CI builds to write to the remote build cache are read from environment variables.
|
||||||
|
Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and
|
||||||
|
Credentials Binding plugin (https://plugins.jenkins.io/credentials-binding/), or the credentials are injected using the
|
||||||
|
vendor-specific mechanism of the CI server running the build.
|
||||||
|
|
||||||
|
Note: In the XML configuration below, you need to adjust
|
||||||
|
|
||||||
|
- the server url of your Gradle Enterprise server
|
||||||
|
- the name of the environment variable that reveals the build is running in a CI environment
|
||||||
|
- the names of the environment variables holding the build cache credentials
|
||||||
|
|
||||||
|
to the specifics of your CI server settings. -->
|
||||||
|
|
||||||
|
<gradleEnterprise
|
||||||
|
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
|
||||||
|
<server>
|
||||||
|
<url>https://ge.openapi-generator.tech/</url> <!-- adjust to your GE server -->
|
||||||
|
<allowUntrusted>false</allowUntrusted> <!-- ensure a trusted certificate is configured -->
|
||||||
|
</server>
|
||||||
|
<buildScan>
|
||||||
|
<captureGoalInputFiles>true</captureGoalInputFiles>
|
||||||
|
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider -->
|
||||||
|
<publish>ALWAYS</publish>
|
||||||
|
<publishIfAuthenticated>true</publishIfAuthenticated>
|
||||||
|
<obfuscation>
|
||||||
|
<!-- Use a redacted value.-->
|
||||||
|
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
|
||||||
|
</obfuscation>
|
||||||
|
</buildScan>
|
||||||
|
<buildCache>
|
||||||
|
<local>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</local>
|
||||||
|
<remote>
|
||||||
|
<server>
|
||||||
|
<url>https://ge.openapi-generator.tech/cache/exp3/</url> <!-- adjust to your GE hostname, and note the trailing slash -->
|
||||||
|
<allowUntrusted>true</allowUntrusted> <!-- set to false if a trusted certificate is configured for the GE server -->
|
||||||
|
<credentials>
|
||||||
|
<username>${env.GRADLE_ENTERPRISE_CACHE_USERNAME}</username>
|
||||||
|
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password>
|
||||||
|
</credentials>
|
||||||
|
</server>
|
||||||
|
<enabled>true</enabled> <!-- must be true for this experiment -->
|
||||||
|
<storeEnabled>#{env['CI'] != null}</storeEnabled> <!-- adjust to an env var that is always present only in your CI environment -->
|
||||||
|
</remote>
|
||||||
|
</buildCache>
|
||||||
|
</gradleEnterprise>
|
117
.mvn/wrapper/MavenWrapperDownloader.java
vendored
117
.mvn/wrapper/MavenWrapperDownloader.java
vendored
@ -1,117 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2007-present the original author or authors.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
import java.net.*;
|
|
||||||
import java.io.*;
|
|
||||||
import java.nio.channels.*;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
public class MavenWrapperDownloader {
|
|
||||||
|
|
||||||
private static final String WRAPPER_VERSION = "0.5.6";
|
|
||||||
/**
|
|
||||||
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
|
|
||||||
*/
|
|
||||||
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
|
|
||||||
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
|
|
||||||
* use instead of the default one.
|
|
||||||
*/
|
|
||||||
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
|
|
||||||
".mvn/wrapper/maven-wrapper.properties";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Path where the maven-wrapper.jar will be saved to.
|
|
||||||
*/
|
|
||||||
private static final String MAVEN_WRAPPER_JAR_PATH =
|
|
||||||
".mvn/wrapper/maven-wrapper.jar";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name of the property which should be used to override the default download url for the wrapper.
|
|
||||||
*/
|
|
||||||
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
|
|
||||||
|
|
||||||
public static void main(String args[]) {
|
|
||||||
System.out.println("- Downloader started");
|
|
||||||
File baseDirectory = new File(args[0]);
|
|
||||||
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
|
|
||||||
|
|
||||||
// If the maven-wrapper.properties exists, read it and check if it contains a custom
|
|
||||||
// wrapperUrl parameter.
|
|
||||||
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
|
|
||||||
String url = DEFAULT_DOWNLOAD_URL;
|
|
||||||
if(mavenWrapperPropertyFile.exists()) {
|
|
||||||
FileInputStream mavenWrapperPropertyFileInputStream = null;
|
|
||||||
try {
|
|
||||||
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
|
|
||||||
Properties mavenWrapperProperties = new Properties();
|
|
||||||
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
|
|
||||||
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
|
|
||||||
} catch (IOException e) {
|
|
||||||
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
|
|
||||||
} finally {
|
|
||||||
try {
|
|
||||||
if(mavenWrapperPropertyFileInputStream != null) {
|
|
||||||
mavenWrapperPropertyFileInputStream.close();
|
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
|
||||||
// Ignore ...
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
System.out.println("- Downloading from: " + url);
|
|
||||||
|
|
||||||
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
|
|
||||||
if(!outputFile.getParentFile().exists()) {
|
|
||||||
if(!outputFile.getParentFile().mkdirs()) {
|
|
||||||
System.out.println(
|
|
||||||
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
|
|
||||||
try {
|
|
||||||
downloadFileFromURL(url, outputFile);
|
|
||||||
System.out.println("Done");
|
|
||||||
System.exit(0);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
System.out.println("- Error downloading");
|
|
||||||
e.printStackTrace();
|
|
||||||
System.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
|
|
||||||
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
|
|
||||||
String username = System.getenv("MVNW_USERNAME");
|
|
||||||
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
|
|
||||||
Authenticator.setDefault(new Authenticator() {
|
|
||||||
@Override
|
|
||||||
protected PasswordAuthentication getPasswordAuthentication() {
|
|
||||||
return new PasswordAuthentication(username, password);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
URL website = new URL(urlString);
|
|
||||||
ReadableByteChannel rbc;
|
|
||||||
rbc = Channels.newChannel(website.openStream());
|
|
||||||
FileOutputStream fos = new FileOutputStream(destination);
|
|
||||||
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
|
|
||||||
fos.close();
|
|
||||||
rbc.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
BIN
.mvn/wrapper/maven-wrapper.jar
vendored
BIN
.mvn/wrapper/maven-wrapper.jar
vendored
Binary file not shown.
4
.mvn/wrapper/maven-wrapper.properties
vendored
4
.mvn/wrapper/maven-wrapper.properties
vendored
@ -14,5 +14,5 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
|
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.8/apache-maven-3.8.8-bin.zip
|
||||||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
|
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
|
||||||
|
24
.travis.yml
24
.travis.yml
@ -1,7 +1,7 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk8
|
- openjdk11
|
||||||
|
|
||||||
# See https://docs.travis-ci.com/user/languages/java/#caching
|
# See https://docs.travis-ci.com/user/languages/java/#caching
|
||||||
before_cache:
|
before_cache:
|
||||||
@ -127,21 +127,6 @@ before_install:
|
|||||||
gpg --check-trustdb ;
|
gpg --check-trustdb ;
|
||||||
fi;
|
fi;
|
||||||
- pushd .; cd website; yarn install; popd
|
- pushd .; cd website; yarn install; popd
|
||||||
# install Deno
|
|
||||||
#- sh -s v1.6.2 < ./CI/deno_install.sh
|
|
||||||
#- export PATH="$HOME/.deno/bin:$PATH"
|
|
||||||
|
|
||||||
install:
|
|
||||||
# Add Godeps dependencies to GOPATH and PATH
|
|
||||||
#- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
|
|
||||||
#- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
|
|
||||||
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$HOME/.cargo/bin:$PATH:/usr/lib/dart/bin"
|
|
||||||
#- go version
|
|
||||||
- gcc -v
|
|
||||||
- echo $CC
|
|
||||||
- echo $CXX
|
|
||||||
#- pub version
|
|
||||||
#- dart --version
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# fail fast
|
# fail fast
|
||||||
@ -151,14 +136,13 @@ script:
|
|||||||
# run integration tests defined in maven pom.xml
|
# run integration tests defined in maven pom.xml
|
||||||
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
||||||
# show "error" only to reduce the log size
|
# show "error" only to reduce the log size
|
||||||
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error 2>&1 | grep -i error
|
- ./mvnw -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -DskipTests -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error 2>&1 | grep -i error
|
||||||
#- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
after_success:
|
after_success:
|
||||||
# push to maven repo
|
# push to maven repo
|
||||||
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
echo "Publishing from branch $TRAVIS_BRANCH";
|
||||||
mvn clean deploy -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
./mvnw clean deploy --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
@ -167,7 +151,7 @@ after_success:
|
|||||||
popd;
|
popd;
|
||||||
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
echo "Publishing from branch $TRAVIS_BRANCH";
|
||||||
mvn clean deploy --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
./mvnw clean deploy --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
|
@ -22,7 +22,7 @@ if [ "$NODE_INDEX" = "1" ]; then
|
|||||||
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test Go"
|
echo "Running node $NODE_INDEX to test Go"
|
||||||
@ -43,7 +43,7 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
go version
|
go version
|
||||||
|
|
||||||
# run integration tests
|
# run integration tests
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
elif [ "$NODE_INDEX" = "3" ]; then
|
elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
|
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.node3' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.node3' defined in pom.xml ..."
|
||||||
@ -54,7 +54,7 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
#sudo make altinstall
|
#sudo make altinstall
|
||||||
pyenv install --list
|
pyenv install --list
|
||||||
pyenv install 3.7.12
|
pyenv install 3.7.12
|
||||||
pyenv install 2.7.14
|
#pyenv install 2.7.14 #python2 no longer supported
|
||||||
pyenv global 3.7.12
|
pyenv global 3.7.12
|
||||||
|
|
||||||
# Install node@stable (for angular 6)
|
# Install node@stable (for angular 6)
|
||||||
@ -72,22 +72,23 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
||||||
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
|
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "4" ]; then
|
elif [ "$NODE_INDEX" = "4" ]; then
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
||||||
|
|
||||||
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
(cd samples/openapi3/client/petstore/python && make test)
|
#(cd samples/openapi3/client/petstore/python && make test)
|
||||||
(cd samples/openapi3/client/petstore/python-prior && make test)
|
# comment out due to ModuleNotFoundError: No module named 'urllib3.request'
|
||||||
(cd samples/openapi3/client/3_0_3_unit_test/python && make test)
|
#(cd samples/openapi3/client/petstore/python-prior && make test)
|
||||||
|
#(cd samples/openapi3/client/3_0_3_unit_test/python && make test)
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
mvn --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@ Code change should conform to the programming style guide of the respective lang
|
|||||||
- Scala: http://docs.scala-lang.org/style/
|
- Scala: http://docs.scala-lang.org/style/
|
||||||
- Swift: [Apple Developer](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html)
|
- Swift: [Apple Developer](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html)
|
||||||
- TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
|
- TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
|
||||||
|
- Xojo: https://documentation.xojo.com/topics/code_management/coding_guidelines.html
|
||||||
|
|
||||||
For other languages, feel free to suggest.
|
For other languages, feel free to suggest.
|
||||||
|
|
||||||
|
108
README.md
108
README.md
@ -10,23 +10,17 @@
|
|||||||
[](https://twitter.com/oas_generator)
|
[](https://twitter.com/oas_generator)
|
||||||
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
||||||
[](https://conan.io/center/openapi-generator)
|
[](https://conan.io/center/openapi-generator)
|
||||||
|
[](https://ge.openapi-generator.tech/scans)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`6.4.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.0.0`):
|
||||||
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
||||||
|
|
||||||
[7.0.x](https://github.com/OpenAPITools/openapi-generator/tree/7.0.x) (`7.0.x`):
|
|
||||||
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@ -65,6 +59,7 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<img src="https://openapi-generator.tech/img/companies/burkert.jpg" width="128" height="128">](https://www.burkert.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/burkert.jpg" width="128" height="128">](https://www.burkert.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/finbourne.png" width="128" height="128">](https://www.finbourne.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/finbourne.png" width="128" height="128">](https://www.finbourne.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/bumpsh.png" width="128" height="128">](https://bump.sh/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/bumpsh.png" width="128" height="128">](https://bump.sh/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/bileto.png" width="128" height="128">](https://www.bileto.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
|
||||||
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS and Checkly for sponsoring the API monitoring
|
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS and Checkly for sponsoring the API monitoring
|
||||||
|
|
||||||
@ -77,9 +72,9 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 15.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs) |
|
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (9.x - 16.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo** |
|
||||||
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, Ktor, Vertx), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
||||||
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
||||||
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
||||||
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Protocol Buffer**, **WSDL** |
|
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Protocol Buffer**, **WSDL** |
|
||||||
@ -120,9 +115,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.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.0.0-SNAPSHOT/) | Feb/Mar 2023 | Major release with breaking changes (no fallback) |
|
| 7.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.0.0-SNAPSHOT/) | May/Jun 2023 | Major release with breaking changes (no fallback) |
|
||||||
| 6.4.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.4.0-SNAPSHOT/) | 05.12.2022 | Minor release with breaking changes (with fallback) |
|
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) (latest stable release) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
||||||
| [6.3.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.3.0) (latest stable release) | 01.02.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) |
|
||||||
|
|
||||||
@ -180,27 +174,28 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
|
|||||||
|
|
||||||
### [1.3 - Download JAR](#table-of-contents)
|
### [1.3 - Download JAR](#table-of-contents)
|
||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 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/6.3.0/openapi-generator-cli-6.3.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.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/6.3.0/openapi-generator-cli-6.3.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.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.
|
||||||
|
|
||||||
For Mac users, please make sure Java 8 is installed (Tips: run `java -version` to check the version), and export `JAVA_HOME` in order to use the supported Java version:
|
For Mac users, please make sure Java 11 is installed (Tips: run `java -version` to check the version), and export `JAVA_HOME` in order to use the supported Java version:
|
||||||
```sh
|
```sh
|
||||||
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
|
export JAVA_HOME=`/usr/libexec/java_home -v 1.11`
|
||||||
export PATH=${JAVA_HOME}/bin:$PATH
|
export PATH=${JAVA_HOME}/bin:$PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
### Launcher Script
|
### Launcher Script
|
||||||
|
|
||||||
@ -249,19 +244,14 @@ openapi-generator-cli version # is always 4.0.2, unless any of the above overrid
|
|||||||
|
|
||||||
To build from source, you need the following installed and available in your `$PATH:`
|
To build from source, you need the following installed and available in your `$PATH:`
|
||||||
|
|
||||||
* [Java 8](https://www.oracle.com/technetwork/java/index.html)
|
* [Java 11](https://adoptium.net/)
|
||||||
|
|
||||||
* [Apache Maven 3.3.4 or greater](https://maven.apache.org/)
|
* [Apache Maven 3.3.4 or greater](https://maven.apache.org/) (optional)
|
||||||
|
|
||||||
After cloning the project, you can build it from source with this command:
|
After cloning the project, you can build it from source using [maven wrapper](https://github.com/takari/maven-wrapper):
|
||||||
```sh
|
|
||||||
mvn clean install
|
|
||||||
```
|
|
||||||
|
|
||||||
If you don't have maven installed, you may directly use the included [maven wrapper](https://github.com/takari/maven-wrapper), and build with the command:
|
- Linux: `./mvnw clean install`
|
||||||
```sh
|
- Windows: `mvnw.cmd clean install`
|
||||||
./mvnw clean install
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Nix users
|
#### Nix users
|
||||||
|
|
||||||
@ -269,7 +259,7 @@ If you're a nix user, you can enter OpenAPI Generator shell, by typing:
|
|||||||
```sh
|
```sh
|
||||||
nix develop
|
nix develop
|
||||||
```
|
```
|
||||||
It will enter a shell with Java 8 and Maven installed.
|
It will enter a shell with Java 11 installed.
|
||||||
|
|
||||||
Direnv supports automatically loading of the nix developer shell, so if you're using direnv too, type:
|
Direnv supports automatically loading of the nix developer shell, so if you're using direnv too, type:
|
||||||
```sh
|
```sh
|
||||||
@ -279,9 +269,8 @@ and have `java` and `mvn` set up with correct versions each time you enter proje
|
|||||||
|
|
||||||
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
||||||
|
|
||||||
```sh
|
- Linux: `./mvnw -Pstatic-analysis clean install`
|
||||||
mvn -Pstatic-analysis clean install
|
- Windows: `mvnw.cmd -Pstatic-analysis clean install`
|
||||||
```
|
|
||||||
|
|
||||||
### [1.5 - Homebrew](#table-of-contents)
|
### [1.5 - Homebrew](#table-of-contents)
|
||||||
|
|
||||||
@ -297,11 +286,13 @@ To reinstall with the latest master, run `brew uninstall openapi-generator && br
|
|||||||
To install OpenJDK (pre-requisites), please run
|
To install OpenJDK (pre-requisites), please run
|
||||||
```sh
|
```sh
|
||||||
brew tap AdoptOpenJDK/openjdk
|
brew tap AdoptOpenJDK/openjdk
|
||||||
brew install --cask adoptopenjdk12
|
brew install --cask adoptopenjdk11
|
||||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/
|
export JAVA_HOME=`/usr/libexec/java_home -v 1.11`
|
||||||
```
|
```
|
||||||
|
|
||||||
To install Maven, please run
|
or download installer via https://adoptium.net/
|
||||||
|
|
||||||
|
To install Maven (optional), please run
|
||||||
```sh
|
```sh
|
||||||
brew install maven
|
brew install maven
|
||||||
```
|
```
|
||||||
@ -384,19 +375,18 @@ Once built, `run-in-docker.sh` will act as an executable for openapi-generator-c
|
|||||||
```sh
|
```sh
|
||||||
./run-in-docker.sh help # Executes 'help' command for openapi-generator-cli
|
./run-in-docker.sh help # Executes 'help' command for openapi-generator-cli
|
||||||
./run-in-docker.sh list # Executes 'list' command for openapi-generator-cli
|
./run-in-docker.sh list # Executes 'list' command for openapi-generator-cli
|
||||||
./run-in-docker.sh /gen/bin/go-petstore.sh # Builds the Go client
|
|
||||||
./run-in-docker.sh generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
./run-in-docker.sh generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
||||||
-g go -o /gen/out/go-petstore -p packageName=petstore # generates go client, outputs locally to ./out/go-petstore
|
-g go -o /gen/out/go-petstore -p packageName=petstore # generates go client, outputs locally to ./out/go-petstore
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Troubleshooting
|
##### Troubleshooting
|
||||||
|
|
||||||
If an error like this occurs, just execute the **mvn clean install -U** command:
|
If an error like this occurs, just execute the **./mvnw clean install -U** command:
|
||||||
|
|
||||||
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project openapi-generator: A type incompatibility occurred while executing org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test: java.lang.ExceptionInInitializerError cannot be cast to java.io.IOException
|
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project openapi-generator: A type incompatibility occurred while executing org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test: java.lang.ExceptionInInitializerError cannot be cast to java.io.IOException
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./run-in-docker.sh mvn clean install -U
|
./run-in-docker.sh ./mvnw clean install -U
|
||||||
```
|
```
|
||||||
|
|
||||||
> Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project openapi-generator-gradle-plugin-mvn-wrapper: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.7-bin.zip'
|
> Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project openapi-generator-gradle-plugin-mvn-wrapper: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.7-bin.zip'
|
||||||
@ -411,7 +401,7 @@ cd openapi-generator
|
|||||||
vagrant up
|
vagrant up
|
||||||
vagrant ssh
|
vagrant ssh
|
||||||
cd /vagrant
|
cd /vagrant
|
||||||
./run-in-docker.sh mvn package
|
./run-in-docker.sh ./mvnw package
|
||||||
```
|
```
|
||||||
|
|
||||||
### [1.7 - NPM](#table-of-contents)
|
### [1.7 - NPM](#table-of-contents)
|
||||||
@ -430,7 +420,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 6.3.0
|
openapi-generator-cli version-manager set 6.6.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@ -445,7 +435,7 @@ To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/o
|
|||||||
```sh
|
```sh
|
||||||
git clone https://github.com/openapitools/openapi-generator
|
git clone https://github.com/openapitools/openapi-generator
|
||||||
cd openapi-generator
|
cd openapi-generator
|
||||||
mvn clean package
|
./mvnw clean package
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
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 \
|
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
||||||
-g php \
|
-g php \
|
||||||
@ -454,7 +444,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/6.3.0/openapi-generator-cli-6.3.0.jar)
|
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.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`
|
||||||
@ -598,6 +588,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Adyen](https://www.adyen.com/)
|
- [Adyen](https://www.adyen.com/)
|
||||||
- [Agoda](https://www.agoda.com/)
|
- [Agoda](https://www.agoda.com/)
|
||||||
- [Airthings](https://www.airthings.com/)
|
- [Airthings](https://www.airthings.com/)
|
||||||
|
- [Aleri Solutions Gmbh](https://www.aleri.de/)
|
||||||
- [Allianz](https://www.allianz.com)
|
- [Allianz](https://www.allianz.com)
|
||||||
- [Angular.Schule](https://angular.schule/)
|
- [Angular.Schule](https://angular.schule/)
|
||||||
- [Aqovia](https://aqovia.com/)
|
- [Aqovia](https://aqovia.com/)
|
||||||
@ -680,6 +671,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Paxos](https://www.paxos.com)
|
- [Paxos](https://www.paxos.com)
|
||||||
- [Plaid](https://plaid.com)
|
- [Plaid](https://plaid.com)
|
||||||
- [PLAID, Inc.](https://plaid.co.jp/)
|
- [PLAID, Inc.](https://plaid.co.jp/)
|
||||||
|
- [Pinterest](https://www.pinterest.com)
|
||||||
- [Ponicode](https://ponicode.dev/)
|
- [Ponicode](https://ponicode.dev/)
|
||||||
- [Pricefx](https://www.pricefx.com/)
|
- [Pricefx](https://www.pricefx.com/)
|
||||||
- [PrintNanny](https://www.print-nanny.com/)
|
- [PrintNanny](https://www.print-nanny.com/)
|
||||||
@ -893,6 +885,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
||||||
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
||||||
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
||||||
|
- 2022-06-12 - [Mustache templates with OpenAPI specs](https://medium.com/geekculture/mustache-templates-with-openapi-specs-f24711c67dec) by [Beppe Catanese](https://github.com/gcatanese)
|
||||||
- 2022-07-01 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
- 2022-07-01 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
||||||
- 2022-07-22 - [使用OpenAPI Generator Maven plugin开发api优先的java客户端和服务端代码](https://blog.roccoshi.top/2022/java/openapi-generator%E7%9A%84%E4%BD%BF%E7%94%A8/) by [Lincest](https://github.com/Lincest)
|
- 2022-07-22 - [使用OpenAPI Generator Maven plugin开发api优先的java客户端和服务端代码](https://blog.roccoshi.top/2022/java/openapi-generator%E7%9A%84%E4%BD%BF%E7%94%A8/) by [Lincest](https://github.com/Lincest)
|
||||||
- 2022-08-01 - [Tutorial: Etsy Open API v3 (ruby)](https://blog.tjoyal.dev/etsy-open-api-v3/) by [Thierry Joyal](https://github.com/tjoyal)
|
- 2022-08-01 - [Tutorial: Etsy Open API v3 (ruby)](https://blog.tjoyal.dev/etsy-open-api-v3/) by [Thierry Joyal](https://github.com/tjoyal)
|
||||||
@ -904,6 +897,14 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-12-13 - [API-First with Spring WebFlux and OpenAPI Generator](https://boottechnologies-ci.medium.com/api-first-with-spring-webflux-and-openapi-generator-38b7804c4ed4) by [Eric Anicet](https://boottechnologies-ci.medium.com/)
|
- 2022-12-13 - [API-First with Spring WebFlux and OpenAPI Generator](https://boottechnologies-ci.medium.com/api-first-with-spring-webflux-and-openapi-generator-38b7804c4ed4) by [Eric Anicet](https://boottechnologies-ci.medium.com/)
|
||||||
- 2023-01-06 - [Major Improvements with Helidon and OpenAPI](https://medium.com/helidon/major-improvements-with-helidon-and-openapi-f76a0951508e) by [Tim Quinn](https://medium.com/@tquinno600)
|
- 2023-01-06 - [Major Improvements with Helidon and OpenAPI](https://medium.com/helidon/major-improvements-with-helidon-and-openapi-f76a0951508e) by [Tim Quinn](https://medium.com/@tquinno600)
|
||||||
- 2023-02-02 - [Replacing Postman with the Jetbrains HTTP Client](https://lengrand.fr/replacing-postman-in-seconds-with-the-jetbrains-http-client/) by [julien Lengrand-Lambert](https://github.com/jlengrand)
|
- 2023-02-02 - [Replacing Postman with the Jetbrains HTTP Client](https://lengrand.fr/replacing-postman-in-seconds-with-the-jetbrains-http-client/) by [julien Lengrand-Lambert](https://github.com/jlengrand)
|
||||||
|
- 2023-03-15 - [OpenAPI Generatorに適したOpenAPIの書き方](https://techblog.zozo.com/entry/how-to-write-openapi-for-openapi-generator) by [ZOZO Tech Blog](https://techblog.zozo.com/)
|
||||||
|
- 2023-03-19 - [EXOGEM: Extending OpenAPI Generator for Monitoring of RESTful APIs](https://link.springer.com/chapter/10.1007/978-3-031-26507-5_10) by Daniel Friis Holtebo, Jannik Lucas Sommer, Magnus Mølgaard Lund, Alessandro Tibo, Junior Dongo & Michele Albano at "ICSOC 2022: Service-Oriented Computing – ICSOC 2022 Workshops"
|
||||||
|
- 2023-03-28 - [API-First Design with OpenAPI Generator](https://www.linkedin.com/pulse/api-first-design-openapi-generator-jonathan-manera/) by [Jonathan Manera](https://www.linkedin.com/in/manerajona/)
|
||||||
|
- 2023-03-28 - [ハンズオンで学ぶサーバーサイド Kotlin(Spring Boot&Arrow&OpenAPI Generator)v1.0.1](https://zenn.dev/msksgm/books/implementing-server-side-kotlin-development) by [msk](https://zenn.dev/msksgm)
|
||||||
|
- 2023-04-01 - [OpenAPI Client Code Generation](https://testingboss.com/blog/openapi-client-generation/) by Kwo Ding
|
||||||
|
- 2023-04-27 - [Create an Angular Client using OpenAPI Specifications](Create an Angular Client using OpenAPI Specifications) by [Patric](https://pguso.medium.com/)
|
||||||
|
- 2023-05-16 - [Adyen for Java developers](https://www.adyen.com/blog/adyen-java-library) by [Beppe Catanese, Developer Advocate, Adyen](https://github.com/gcatanese)
|
||||||
|
- 2023-05-18 - [如何基于 Swagger 使用 OpenAPI Generator 生成 JMeter 脚本?](https://blog.51cto.com/u_15181572/6294974) by [高楼(Zee)](https://blog.51cto.com/u_15181572)
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@ -985,7 +986,9 @@ Here is a list of template creators:
|
|||||||
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Kotlin (MultiPlatform): @andrewemery
|
* Kotlin (MultiPlatform): @andrewemery
|
||||||
* Kotlin (Volley): @alisters
|
* Kotlin (Volley): @alisters
|
||||||
|
* Kotlin (jvm-spring-webclient): @stefankoppier
|
||||||
* Lua: @daurnimator
|
* Lua: @daurnimator
|
||||||
|
* N4JS: @mmews-n4
|
||||||
* Nim: @hokamoto
|
* Nim: @hokamoto
|
||||||
* OCaml: @cgensoul
|
* OCaml: @cgensoul
|
||||||
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
@ -1002,10 +1005,12 @@ Here is a list of template creators:
|
|||||||
* Scala (scalaz & http4s): @tbrown1979
|
* Scala (scalaz & http4s): @tbrown1979
|
||||||
* Scala (Akka): @cchafer
|
* Scala (Akka): @cchafer
|
||||||
* Scala (sttp): @chameleon82
|
* Scala (sttp): @chameleon82
|
||||||
|
* Scala (sttp4): @flsh86
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
* Swift 3: @hexelon
|
* Swift 3: @hexelon
|
||||||
* Swift 4: @ehyche
|
* Swift 4: @ehyche
|
||||||
* Swift 5: @4brunu
|
* Swift 5: @4brunu
|
||||||
|
* Swift Combine: @dydus0x14
|
||||||
* TypeScript (Angular1): @mhardorf
|
* TypeScript (Angular1): @mhardorf
|
||||||
* TypeScript (Angular2): @roni-frantchi
|
* TypeScript (Angular2): @roni-frantchi
|
||||||
* TypeScript (Angular6): @akehir
|
* TypeScript (Angular6): @akehir
|
||||||
@ -1018,6 +1023,7 @@ Here is a list of template creators:
|
|||||||
* TypeScript (Node): @mhardorf
|
* TypeScript (Node): @mhardorf
|
||||||
* TypeScript (Rxjs): @denyo
|
* TypeScript (Rxjs): @denyo
|
||||||
* TypeScript (redux-query): @petejohansonxo
|
* TypeScript (redux-query): @petejohansonxo
|
||||||
|
* Xojo: @Topheee
|
||||||
* Server Stubs
|
* Server Stubs
|
||||||
* Ada: @stcarrez
|
* Ada: @stcarrez
|
||||||
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
@ -1031,6 +1037,7 @@ Here is a list of template creators:
|
|||||||
* Erlang Server: @galaxie
|
* Erlang Server: @galaxie
|
||||||
* F# (Giraffe) Server: @nmfisher
|
* F# (Giraffe) Server: @nmfisher
|
||||||
* Go Server: @guohuang
|
* Go Server: @guohuang
|
||||||
|
* Go Server (refactored in 7.0.0): @lwj5
|
||||||
* Go (Echo) Server: @ph4r5h4d
|
* Go (Echo) Server: @ph4r5h4d
|
||||||
* Go (Gin) Server: @kemokemo
|
* Go (Gin) Server: @kemokemo
|
||||||
* GraphQL Express Server: @renepardon
|
* GraphQL Express Server: @renepardon
|
||||||
@ -1135,7 +1142,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Elm | @eriktim (2018/09) |
|
| Elm | @eriktim (2018/09) |
|
||||||
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
||||||
| F# | @nmfisher (2019/05) |
|
| F# | @nmfisher (2019/05) |
|
||||||
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) |
|
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) @lwj5 (2023/04) |
|
||||||
| GraphQL | @renepardon (2018/12) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
| Groovy | |
|
| Groovy | |
|
||||||
| Haskell | |
|
| Haskell | |
|
||||||
@ -1144,8 +1151,9 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| JMeter | @kannkyo (2021/01) |
|
| JMeter | @kannkyo (2021/01) |
|
||||||
| Jetbrains HTTP Client | @jlengrand (2023/01) |
|
| Jetbrains HTTP Client | @jlengrand (2023/01) |
|
||||||
| Julia | @tanmaykm (2023/01) |
|
| Julia | @tanmaykm (2023/01) |
|
||||||
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
|
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
|
| N4JS | @mmews-n4 (2023/03) |
|
||||||
| Nim | |
|
| Nim | |
|
||||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||||
| ObjC | |
|
| ObjC | |
|
||||||
@ -1157,9 +1165,10 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
||||||
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
|
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
|
||||||
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) |
|
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
||||||
|
| Xojo | @Topheee (2023/04) |
|
||||||
|
|
||||||
|
|
||||||
Past Members of Technical Committee:
|
Past Members of Technical Committee:
|
||||||
@ -1245,3 +1254,4 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
110
appveyor.yml
110
appveyor.yml
@ -3,99 +3,63 @@ image: Visual Studio 2022
|
|||||||
hosts:
|
hosts:
|
||||||
petstore.swagger.io: 127.0.0.1
|
petstore.swagger.io: 127.0.0.1
|
||||||
install:
|
install:
|
||||||
- ps: |
|
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
||||||
if (!(Test-Path -Path "C:\maven" )) {
|
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
|
||||||
'https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.zip',
|
|
||||||
'C:\maven-bin.zip'
|
|
||||||
)
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
|
|
||||||
}
|
|
||||||
# install gradle
|
|
||||||
- ps: |
|
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
||||||
if (!(Test-Path -Path "C:\gradle\gradle-7.6" )) {
|
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
|
||||||
'https://services.gradle.org/distributions/gradle-7.6-bin.zip',
|
|
||||||
'C:\gradle-bin.zip'
|
|
||||||
)
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\gradle-bin.zip", "C:\gradle")
|
|
||||||
}
|
|
||||||
- cmd: SET PATH=C:\maven\apache-maven-3.8.3\bin;C:\gradle\gradle-7.6\bin;%JAVA_HOME%\bin;%PATH%
|
- 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 MAVEN_OPTS=-Xmx4g
|
||||||
- cmd: SET JAVA_OPTS=-Xmx4g
|
- cmd: SET JAVA_OPTS=-Xmx4g
|
||||||
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.3
|
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.3
|
||||||
- cmd: java -version
|
- cmd: java -version
|
||||||
- cmd: gradle -v
|
|
||||||
- cmd: dir/w
|
- cmd: dir/w
|
||||||
- git clone https://github.com/wing328/swagger-samples --depth 1
|
- cmd: docker pull swaggerapi/petstore
|
||||||
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.8.3\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs-ci"
|
- 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 15
|
- ps: Start-Sleep -s 120
|
||||||
- ps: $PSVersionTable.PSVersion
|
- ps: $PSVersionTable.PSVersion
|
||||||
- ps: Install-Module -Name Pester -Force -Scope CurrentUser
|
- ps: Install-Module -Name Pester -Force -Scope CurrentUser
|
||||||
build_script:
|
build_script:
|
||||||
- dotnet --info
|
- dotnet --info
|
||||||
# build C# aspnetcore 5.0 server
|
# build C# aspnetcore 5.0 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore-5.0\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore-5.0\Org.OpenAPITools.sln
|
||||||
# build C# aspnetcore 3.1 server
|
## build C# aspnetcore 3.1 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore-3.1\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore-3.1\Org.OpenAPITools.sln
|
||||||
# build C# aspnetcore 3.0 server
|
## build C# aspnetcore 3.0 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore-3.0\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore-3.0\Org.OpenAPITools.sln
|
||||||
# build C# aspnetcore 2.2 server
|
## build C# aspnetcore 2.2 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
||||||
# build C# API client (multiple frameworks)
|
## build C# API client (multiple frameworks)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
||||||
# build C# API client (httpclient)
|
## build C# API client (httpclient)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
||||||
# build C# API client (generichost)
|
## build C# API client (generichost)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
||||||
# build C# API client (netcore)
|
## build C# API client (netcore)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCore\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClientCore\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net framework 4.7)
|
## build C# API client (.net framework 4.7)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net47\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-net47\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net framework 4.8)
|
## build C# API client (.net framework 4.8)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net48\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-net48\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net 5.0)
|
## build C# API client (.net 5.0)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net5.0\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-net5.0\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
## build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
||||||
## build C# API client
|
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
|
||||||
#- msbuild samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
||||||
## build C# API client (with PropertyChanged)
|
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\Org.OpenAPITools.sln
|
|
||||||
#- msbuild samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
||||||
# build C# .net standard 1.3+ API client
|
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
|
|
||||||
#- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
||||||
# install openapi-generator locally
|
|
||||||
- mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
# run the locally installed openapi-generator-gradle-plugin
|
|
||||||
- gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --stacktrace
|
|
||||||
test_script:
|
test_script:
|
||||||
# test c# API client (multiple frameworks)
|
# test c# API client (multiple frameworks)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (httpclient)
|
# test c# API client (httpclient)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-httpclient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-httpclient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (generichost)
|
# test c# API client (generichost)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (netcore)
|
# test c# API client (netcore)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
#- dotnet test samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net framework 4.7)
|
# test C# API client (.net framework 4.7)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net framework 4.8)
|
# test C# API client (.net framework 4.8)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net48\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net48\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net 5.0)
|
# test C# API client (.net 5.0)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net5.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net5.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API Client using conditional-serialization
|
# test C# API Client using conditional-serialization
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
## test c# API client
|
|
||||||
#- nunit3-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
|
||||||
## test c# API client (with PropertyChanged)
|
|
||||||
#- nunit3-console samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
|
||||||
|
|
||||||
### TODO: Execute all generators via powershell or other
|
### TODO: Execute all generators via powershell or other
|
||||||
# generate all petstore clients
|
# generate all petstore clients
|
||||||
|
9
bin/configs/aspnetcore-6.0-NewtonsoftFalse.yaml
Normal file
9
bin/configs/aspnetcore-6.0-NewtonsoftFalse.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
generatorName: aspnetcore
|
||||||
|
outputDir: samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
|
aspnetCoreVersion: "6.0"
|
||||||
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
|
useNewtonsoft: false
|
9
bin/configs/aspnetcore-6.0-nullableReferenceTypes.yaml
Normal file
9
bin/configs/aspnetcore-6.0-nullableReferenceTypes.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
generatorName: aspnetcore
|
||||||
|
outputDir: samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
|
aspnetCoreVersion: "6.0"
|
||||||
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
|
nullableReferenceTypes: true
|
11
bin/configs/aspnetcore-6.0-useSwashBuckle.yaml
Normal file
11
bin/configs/aspnetcore-6.0-useSwashBuckle.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
generatorName: aspnetcore
|
||||||
|
outputDir: samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
|
aspnetCoreVersion: "6.0"
|
||||||
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
|
useSwashBuckle: false
|
||||||
|
buildTarget: library
|
||||||
|
isLibrary: true
|
@ -1,6 +0,0 @@
|
|||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
7
bin/configs/csharp-functions-latest.yaml
Normal file
7
bin/configs/csharp-functions-latest.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
generatorName: csharp-functions
|
||||||
|
outputDir: samples/client/petstore/csharp-functions
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp-functions
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
userSecretsGuid: "76e9e993-9159-441c-9c5b-fe95e7f4f020"
|
11
bin/configs/csharp-generichost-latest-allOf.yaml
Normal file
11
bin/configs/csharp-generichost-latest-allOf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
11
bin/configs/csharp-generichost-latest-anyOf.yaml
Normal file
11
bin/configs/csharp-generichost-latest-anyOf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
11
bin/configs/csharp-generichost-latest-nrt.yaml
Normal file
11
bin/configs/csharp-generichost-latest-nrt.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
11
bin/configs/csharp-generichost-latest-oneOf.yaml
Normal file
11
bin/configs/csharp-generichost-latest-oneOf.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
11
bin/configs/csharp-generichost-latest.yaml
Normal file
11
bin/configs/csharp-generichost-latest.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: false
|
11
bin/configs/csharp-generichost-netstandard2.0.yaml
Normal file
11
bin/configs/csharp-generichost-netstandard2.0.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
targetFramework: netstandard2.0
|
12
bin/configs/csharp-httpclient-netstandard2.0.yaml
Normal file
12
bin/configs/csharp-httpclient-netstandard2.0.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# for .net standard httpclient
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-httpclient
|
||||||
|
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: netstandard2.0
|
@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-allOf
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: net7.0
|
|
||||||
nullableReferenceTypes: true
|
|
@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-anyOf
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: net7.0
|
|
||||||
nullableReferenceTypes: true
|
|
@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-oneOf
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: net7.0
|
|
||||||
nullableReferenceTypes: true
|
|
@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: net7.0
|
|
||||||
nullableReferenceTypes: true
|
|
@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: net7.0
|
|
||||||
nullableReferenceTypes: false
|
|
@ -1,11 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: netstandard2.0
|
|
@ -1,12 +0,0 @@
|
|||||||
# for .net standard httpclient
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient
|
|
||||||
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-netcore
|
|
||||||
library: httpclient
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: netstandard2.0
|
|
@ -1,12 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net47
|
|
||||||
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-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net47
|
|
||||||
skipOneOfAnyOfGetter: true
|
|
@ -1,11 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net48
|
|
||||||
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-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net48
|
|
@ -1,11 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0
|
|
||||||
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-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: net7.0
|
|
@ -1,6 +0,0 @@
|
|||||||
# for .net Unity
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest
|
|
||||||
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-netcore
|
|
||||||
library: unityWebRequest
|
|
@ -1,10 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient
|
|
||||||
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-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
@ -1,8 +0,0 @@
|
|||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCore
|
|
||||||
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-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
targetFramework: netcoreapp3.1
|
|
||||||
useCompareNetObjects: "true"
|
|
@ -1,8 +0,0 @@
|
|||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
targetFramework: netstandard2.1;net47
|
|
||||||
useCompareNetObjects: "true"
|
|
@ -1,12 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization
|
|
||||||
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-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{fa96c953-af24-457d-8a01-f2fd2a7547a9}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: netstandard2.0
|
|
||||||
conditionalSerialization: true
|
|
@ -1,10 +0,0 @@
|
|||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/others/csharp-netcore-complex-files
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/form-multipart-binary-array.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
targetFramework: netstandard2.0
|
|
||||||
useCompareNetObjects: "true"
|
|
||||||
globalProperties:
|
|
||||||
skipFormModel: "false"
|
|
@ -1,7 +0,0 @@
|
|||||||
generatorName: csharp-netcore-functions
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore-functions
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore-functions
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
userSecretsGuid: "76e9e993-9159-441c-9c5b-fe95e7f4f020"
|
|
@ -0,0 +1,8 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClientCoreAndNet47
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
targetFramework: netstandard2.1;net47
|
||||||
|
useCompareNetObjects: "true"
|
12
bin/configs/csharp-restsharp-net4.7.yaml
Normal file
12
bin/configs/csharp-restsharp-net4.7.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net47
|
||||||
|
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
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net47
|
||||||
|
skipOneOfAnyOfGetter: true
|
11
bin/configs/csharp-restsharp-net4.8.yaml
Normal file
11
bin/configs/csharp-restsharp-net4.8.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net48
|
||||||
|
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
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net48
|
@ -0,0 +1,8 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClientCore
|
||||||
|
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}'
|
||||||
|
targetFramework: net7.0
|
||||||
|
useCompareNetObjects: "true"
|
11
bin/configs/csharp-restsharp-net7.0.yaml
Normal file
11
bin/configs/csharp-restsharp-net7.0.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net5.0
|
||||||
|
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
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net7.0
|
@ -0,0 +1,10 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/others/csharp-complex-files
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/form-multipart-binary-array.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
targetFramework: netstandard2.0
|
||||||
|
useCompareNetObjects: "true"
|
||||||
|
globalProperties:
|
||||||
|
skipFormModel: "false"
|
@ -0,0 +1,12 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization
|
||||||
|
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: '{fa96c953-af24-457d-8a01-f2fd2a7547a9}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: netstandard2.0
|
||||||
|
conditionalSerialization: true
|
11
bin/configs/csharp-restsharp-netstandard2.0.yaml
Normal file
11
bin/configs/csharp-restsharp-netstandard2.0.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
||||||
|
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
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: netstandard2.0
|
8
bin/configs/csharp-unityWebRequest-netstandard2.0.yaml
Normal file
8
bin/configs/csharp-unityWebRequest-netstandard2.0.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# for .net Unity
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-unityWebRequest
|
||||||
|
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: netstandard2.0
|
4
bin/configs/elm-petstore.yaml
Normal file
4
bin/configs/elm-petstore.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
generatorName: elm
|
||||||
|
outputDir: samples/client/petstore/elm
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/elm
|
@ -2,5 +2,8 @@ generatorName: go-echo-server
|
|||||||
outputDir: samples/server/petstore/go-echo-server
|
outputDir: samples/server/petstore/go-echo-server
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go-echo-server
|
templateDir: modules/openapi-generator/src/main/resources/go-echo-server
|
||||||
|
gitHost: gitlab.com
|
||||||
|
gitUserId: openapitools
|
||||||
|
gitRepoId: petstore
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
generatorName: go-server
|
generatorName: go-server
|
||||||
outputDir: samples/server/petstore/go-api-server
|
outputDir: samples/server/petstore/go-api-server
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go-server/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go-server
|
templateDir: modules/openapi-generator/src/main/resources/go-server
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
14
bin/configs/java-jersey2-8-swagger2.yaml
Normal file
14
bin/configs/java-jersey2-8-swagger2.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/openapi3/client/petstore/java/jersey2-java8-swagger2
|
||||||
|
library: jersey2
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-openapi3-jersey2-java8
|
||||||
|
hideGenerationTimestamp: true
|
||||||
|
serverPort: "8082"
|
||||||
|
dateLibrary: java8
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
gradleProperties: "\n# JVM arguments\norg.gradle.jvmargs=-Xmx2024m -XX:MaxPermSize=512m\n# set timeout\norg.gradle.daemon.idletimeout=3600000\n# show all warnings\norg.gradle.warning.mode=all"
|
||||||
|
annotationLibrary: "swagger2"
|
10
bin/configs/java-okhttp-gson-nullable-required.yaml
Normal file
10
bin/configs/java-okhttp-gson-nullable-required.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/okhttp-gson-nullable-required
|
||||||
|
library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: nullable-required-okhttp-gson
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
12
bin/configs/java-okhttp-gson-swagger2.yaml
Normal file
12
bin/configs/java-okhttp-gson-swagger2.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/okhttp-gson-swagger2
|
||||||
|
library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-okhttp-gson
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
annotationLibrary: "swagger2"
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/okhttp-gson
|
outputDir: samples/client/petstore/java/okhttp-gson
|
||||||
library: okhttp-gson
|
library: okhttp-gson
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature-okhttp-gson.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-okhttp-gson
|
artifactId: petstore-okhttp-gson
|
||||||
|
10
bin/configs/java-resttemplate-swagger2.yaml
Normal file
10
bin/configs/java-resttemplate-swagger2.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/resttemplate-swagger2
|
||||||
|
library: resttemplate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-resttemplate
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
annotationLibrary: "swagger2"
|
||||||
|
java8: true
|
10
bin/configs/java-webclient-swagger2.yaml
Normal file
10
bin/configs/java-webclient-swagger2.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/webclient-swagger2
|
||||||
|
library: webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-webclient
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
containerDefaultToNull: "true"
|
||||||
|
annotationLibrary: "swagger2"
|
@ -0,0 +1,13 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-petstore-server
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
|
useMicroProfileOpenAPIAnnotations: "true"
|
||||||
|
library: "quarkus"
|
||||||
|
dateLibrary: "java8-localdatetime"
|
8
bin/configs/kotlin-jvm-ktor-kotlinx_serialization.yaml
Normal file
8
bin/configs/kotlin-jvm-ktor-kotlinx_serialization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization
|
||||||
|
library: jvm-ktor
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-jvm-ktor-kotlinx_serialization
|
||||||
|
serializationLibrary: kotlinx_serialization
|
9
bin/configs/kotlin-jvm-spring-2-webclient.yaml
Normal file
9
bin/configs/kotlin-jvm-spring-2-webclient.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-spring-2-webclient
|
||||||
|
library: jvm-spring-webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-spring-webclient
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: jackson
|
10
bin/configs/kotlin-jvm-spring-3-webclient.yaml
Normal file
10
bin/configs/kotlin-jvm-spring-3-webclient.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-spring-3-webclient
|
||||||
|
library: jvm-spring-webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-spring-webclient
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: jackson
|
||||||
|
useSpringBoot3: true
|
12
bin/configs/kotlin-spring-cloud.yaml
Normal file
12
bin/configs/kotlin-spring-cloud.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/client/petstore/kotlin-spring-cloud
|
||||||
|
library: spring-cloud
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: none
|
||||||
|
useSwaggerUI: "false"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
interfaceOnly: "true"
|
9
bin/configs/n4js-petstore.yaml
Normal file
9
bin/configs/n4js-petstore.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
generatorName: n4js
|
||||||
|
outputDir: samples/client/petstore/n4js
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/n4js
|
||||||
|
additionalProperties:
|
||||||
|
apiPackage: "api"
|
||||||
|
modelPackage: "model"
|
||||||
|
fetchExecuterConstName: "FETCH_EXEC"
|
||||||
|
fetchExecuterConstImplPath: "FetchExecuterMock"
|
4
bin/configs/postman-collection.yaml
Normal file
4
bin/configs/postman-collection.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
generatorName: postman-collection
|
||||||
|
outputDir: samples/schema/postman-collection
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/postman-collection/SampleProject.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/postman-collection
|
@ -1,4 +1,8 @@
|
|||||||
generatorName: python-aiohttp
|
generatorName: python
|
||||||
outputDir: samples/server/petstore/python-aiohttp
|
outputDir: samples/openapi3/client/petstore/python-aiohttp
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-aiohttp
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
|
library: asyncio
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
|
mapNumberTo: float
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
generatorName: python-legacy
|
|
||||||
outputDir: samples/client/petstore/python-asyncio
|
|
||||||
library: asyncio
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-legacy
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
6
bin/configs/python-echo-api.yaml
Normal file
6
bin/configs/python-echo-api.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
generatorName: python
|
||||||
|
outputDir: samples/client/echo_api/python
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
@ -1,6 +1,6 @@
|
|||||||
generatorName: python-fastapi
|
generatorName: python-fastapi
|
||||||
outputDir: samples/server/petstore/python-fastapi
|
outputDir: samples/server/petstore/python-fastapi
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/python-fastapi/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-fastapi
|
templateDir: modules/openapi-generator/src/main/resources/python-fastapi
|
||||||
sourceFolder: "src"
|
sourceFolder: "src"
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
generatorName: python
|
|
||||||
outputDir: samples/openapi3/client/features/dynamic-servers/python/
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/features/dynamic-servers.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
|
||||||
additionalProperties:
|
|
||||||
packageName: dynamic_servers
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user