forked from loafle/openapi-generator-original
Compare commits
1 Commits
go-server-
...
fix-websit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78f82ddc5a |
@@ -31,10 +31,8 @@ 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: java -version
|
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 docker info >/dev/null 2>&1 || sudo service docker start; '
|
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
||||||
- run:
|
- run:
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "OpenAPIGenerator",
|
|
||||||
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
|
||||||
"features": {
|
|
||||||
"ghcr.io/devcontainers/features/java:1": {
|
|
||||||
"version": "11",
|
|
||||||
"installMaven": true
|
|
||||||
},
|
|
||||||
"ghcr.io/devcontainers/features/node:1": {
|
|
||||||
"version": "lts"
|
|
||||||
},
|
|
||||||
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {}
|
|
||||||
},
|
|
||||||
// Configure tool-specific properties.
|
|
||||||
"customizations": {
|
|
||||||
// Configure properties specific to VS Code.
|
|
||||||
"vscode": {
|
|
||||||
// Set *default* container specific settings.json values on container create.
|
|
||||||
"settings": {
|
|
||||||
"java.configuration.runtimes": [
|
|
||||||
{
|
|
||||||
"name": "JavaSE-11",
|
|
||||||
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms",
|
|
||||||
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip",
|
|
||||||
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
|
|
||||||
"default": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
// Add the IDs of extensions you want installed when the container is created.
|
|
||||||
"extensions": [
|
|
||||||
"vscjava.vscode-java-pack",
|
|
||||||
"attilabuti.mustache-syntax-vscode",
|
|
||||||
"formulahendry.code-runner",
|
|
||||||
"visualstudioexptteam.vscodeintellicode",
|
|
||||||
"42crunch.vscode-openapi",
|
|
||||||
"mermade.openapi-lint"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
||||||
// "forwardPorts": [],
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
|
||||||
// "postCreateCommand": "mvn clean package -DskipTests",
|
|
||||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
||||||
"remoteUser": "vscode"
|
|
||||||
}
|
|
||||||
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
|
./bin/utils/ensure-up-to-date.sh
|
||||||
```
|
```
|
||||||
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)
|
||||||
|
|||||||
4
.github/actions/run-samples/action.yaml
vendored
4
.github/actions/run-samples/action.yaml
vendored
@@ -15,5 +15,5 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: mvn clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
- run: mvn --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
||||||
shell: bash
|
shell: bash
|
||||||
97
.github/workflows/check-supported-versions.yaml
vendored
Normal file
97
.github/workflows/check-supported-versions.yaml
vendored
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
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
|
||||||
37
.github/workflows/docker.yaml
vendored
37
.github/workflows/docker.yaml
vendored
@@ -1,37 +0,0 @@
|
|||||||
name: Docker tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- Dockerfile
|
|
||||||
- run-in-docker.sh
|
|
||||||
- pom.xml
|
|
||||||
- modules/openapi-generator-online/pom.xml
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- Dockerfile
|
|
||||||
- run-in-docker.sh
|
|
||||||
- pom.xml
|
|
||||||
- modules/openapi-generator-online/pom.xml
|
|
||||||
|
|
||||||
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/
|
|
||||||
4
.github/workflows/gradle-plugin-tests.yaml
vendored
4
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -35,10 +35,8 @@ 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 clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --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)
|
||||||
|
|||||||
46
.github/workflows/java-helidon-functional-tests.yaml
vendored
Normal file
46
.github/workflows/java-helidon-functional-tests.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
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
108
.github/workflows/linux.yaml
vendored
@@ -1,108 +0,0 @@
|
|||||||
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.7.0
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
maven-version: 3.9.0
|
|
||||||
|
|
||||||
- name: Build with Maven
|
|
||||||
shell: bash
|
|
||||||
run: mvn clean -nsu -B --quiet -Djacoco.skip=true -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.7.0
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
maven-version: 3.9.0
|
|
||||||
- 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/go-petstore.yaml -- --global-property debugSupportingFiles
|
|
||||||
2
.github/workflows/maven-plugin-tests.yaml
vendored
2
.github/workflows/maven-plugin-tests.yaml
vendored
@@ -34,8 +34,6 @@ 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
|
mvn 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
|
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.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 11
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 8
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -36,9 +36,7 @@ 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 clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: mvn --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
|
||||||
@@ -54,10 +52,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 8
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -74,9 +72,7 @@ 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 clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: mvn --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
|
||||||
@@ -91,10 +87,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 8
|
||||||
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
|
||||||
@@ -130,10 +126,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 8
|
||||||
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
|
||||||
|
|||||||
6
.github/workflows/samples-cpp-qt-client.yaml
vendored
6
.github/workflows/samples-cpp-qt-client.yaml
vendored
@@ -23,16 +23,12 @@ 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: cmake . && cmake --build .
|
run: ./build-and-test.bash
|
||||||
|
|||||||
4
.github/workflows/samples-dart.yaml
vendored
4
.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: 11
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
|
||||||
- uses: dart-lang/setup-dart@v1
|
- uses: dart-lang/setup-dart@v1
|
||||||
with:
|
with:
|
||||||
sdk: 2.15.0
|
sdk: 2.14.0
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: ./.github/actions/run-samples
|
uses: ./.github/actions/run-samples
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-dotnet@v3.1.0
|
- uses: actions/setup-dotnet@v3.0.3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
13
.github/workflows/samples-dotnet.yaml
vendored
13
.github/workflows/samples-dotnet.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Samples C# .Net 7
|
name: Samples C# .Net 6
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,18 +7,12 @@ on:
|
|||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
||||||
- '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/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useNewtonsoft/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
||||||
- '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
|
||||||
@@ -36,12 +30,9 @@ jobs:
|
|||||||
- 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.1.0
|
- uses: actions/setup-dotnet@v3.0.3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
75
.github/workflows/samples-dotnet6-client.yaml
vendored
75
.github/workflows/samples-dotnet6-client.yaml
vendored
@@ -1,75 +0,0 @@
|
|||||||
name: Samples C# .Net 6
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
# build C# API client (multiple frameworks)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/**
|
|
||||||
# build C# API client (httpclient)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/**
|
|
||||||
# build C# API client (generichost)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/**
|
|
||||||
# build C# API client (netcore)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient/**
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/**
|
|
||||||
# build C# API client (.net framework 4.7)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/**
|
|
||||||
# build C# API client (.net framework 4.8)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/**
|
|
||||||
# build C# API client (.net 5.0)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/**
|
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
# build C# API client (multiple frameworks)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/**
|
|
||||||
# build C# API client (httpclient)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/**
|
|
||||||
# build C# API client (generichost)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/**
|
|
||||||
# build C# API client (netcore)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient/**
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/**
|
|
||||||
# build C# API client (.net framework 4.7)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/**
|
|
||||||
# build C# API client (.net framework 4.8)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/**
|
|
||||||
# build C# API client (.net 5.0)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/**
|
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
- samples/client/petstore/csharp-netcore/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-netcore/OpenAPIClientCoreAndNet47/
|
|
||||||
# build C# API client (httpclient)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/
|
|
||||||
# build C# API client (generichost)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/
|
|
||||||
# build C# API client (netcore)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient/
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/
|
|
||||||
# build C# API client (.net framework 4.7)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/
|
|
||||||
# build C# API client (.net framework 4.8)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/
|
|
||||||
# build C# API client (.net 5.0)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/
|
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-dotnet@v3.1.0
|
|
||||||
with:
|
|
||||||
dotnet-version: '6.0.x'
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
|
||||||
42
.github/workflows/samples-dotnet6-server.yaml
vendored
42
.github/workflows/samples-dotnet6-server.yaml
vendored
@@ -1,42 +0,0 @@
|
|||||||
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/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useNewtonsoft/**'
|
|
||||||
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.1.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
35
.github/workflows/samples-elm.yaml
vendored
@@ -1,35 +0,0 @@
|
|||||||
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
|
|
||||||
35
.github/workflows/samples-erlang.yaml
vendored
35
.github/workflows/samples-erlang.yaml
vendored
@@ -1,35 +0,0 @@
|
|||||||
name: Samples Erlang
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
# comment out due to errors
|
|
||||||
# ===> Compiling src/openapi_pet_handler.erl failed
|
|
||||||
# src/openapi_pet_handler.erl:278: function is_authorized/2 already defined
|
|
||||||
#- samples/server/petstore/erlang-server/**
|
|
||||||
- samples/client/petstore/erlang-client/**
|
|
||||||
- samples/client/petstore/erlang-proper/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
#- samples/server/petstore/erlang-server/**
|
|
||||||
- samples/client/petstore/erlang-client/**
|
|
||||||
- samples/client/petstore/erlang-proper/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Erlang projects
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
#- samples/server/petstore/erlang-server/
|
|
||||||
- samples/client/petstore/erlang-client/
|
|
||||||
- samples/client/petstore/erlang-proper/
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: erlef/setup-beam@v1
|
|
||||||
with:
|
|
||||||
otp-version: '22.2'
|
|
||||||
rebar3-version: '3.14.3'
|
|
||||||
- run: rebar3 compile
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
16
.github/workflows/samples-go.yaml
vendored
16
.github/workflows/samples-go.yaml
vendored
@@ -5,12 +5,10 @@ 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:
|
||||||
@@ -22,13 +20,17 @@ 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@v3
|
||||||
with:
|
with:
|
||||||
go-version: "stable"
|
go-version: '>=1.17.0'
|
||||||
- run: go version
|
- run: go version
|
||||||
- name: Run test
|
- name: Install
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: go test -mod=mod -v
|
run: |
|
||||||
|
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
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.m2
|
~/.m2
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build with Maven
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package
|
run: mvn clean package
|
||||||
- name: Build with Gradle
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: gradle clean build
|
|
||||||
|
|||||||
41
.github/workflows/samples-java-helidon.yaml
vendored
41
.github/workflows/samples-java-helidon.yaml
vendored
@@ -1,41 +0,0 @@
|
|||||||
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,7 +38,6 @@ 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
|
||||||
|
|||||||
3
.github/workflows/samples-kotlin-client.yaml
vendored
3
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -56,9 +56,6 @@ jobs:
|
|||||||
- 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
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
name: Python Client (Echo API)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/python/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/python/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Test Python client
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/echo_api/python
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.7'
|
|
||||||
- name: Setup node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
- name: Run echo server
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
||||||
(cd http-echo-server && npm install && npm start &)
|
|
||||||
- name: Install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install -r test-requirements.txt
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: python -m pytest
|
|
||||||
27
.github/workflows/samples-python-server.yaml
vendored
27
.github/workflows/samples-python-server.yaml
vendored
@@ -1,27 +0,0 @@
|
|||||||
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
|
|
||||||
10
.github/workflows/samples-spring.yaml
vendored
10
.github/workflows/samples-spring.yaml
vendored
@@ -22,30 +22,26 @@ jobs:
|
|||||||
- samples/openapi3/client/petstore/spring-cloud
|
- samples/openapi3/client/petstore/spring-cloud
|
||||||
- samples/client/petstore/spring-cloud-date-time
|
- samples/client/petstore/spring-cloud-date-time
|
||||||
- samples/openapi3/client/petstore/spring-cloud-date-time
|
- samples/openapi3/client/petstore/spring-cloud-date-time
|
||||||
|
- samples/client/petstore/spring-stubs
|
||||||
- samples/openapi3/client/petstore/spring-stubs
|
- samples/openapi3/client/petstore/spring-stubs
|
||||||
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
- samples/openapi3/client/petstore/spring-cloud-async
|
|
||||||
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
- samples/openapi3/server/petstore/springboot
|
- samples/openapi3/server/petstore/springboot
|
||||||
- samples/server/petstore/springboot-beanvalidation
|
- samples/server/petstore/springboot-beanvalidation
|
||||||
- samples/server/petstore/springboot-useoptional
|
- samples/server/petstore/springboot-useoptional
|
||||||
|
- samples/openapi3/server/petstore/springboot-useoptional
|
||||||
- samples/server/petstore/springboot-reactive
|
- samples/server/petstore/springboot-reactive
|
||||||
|
- samples/openapi3/server/petstore/springboot-reactive
|
||||||
- samples/server/petstore/springboot-implicitHeaders
|
- samples/server/petstore/springboot-implicitHeaders
|
||||||
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
||||||
- samples/server/petstore/springboot-delegate
|
- samples/server/petstore/springboot-delegate
|
||||||
- samples/server/petstore/springboot-delegate-no-response-entity
|
|
||||||
- samples/openapi3/server/petstore/springboot-delegate
|
- samples/openapi3/server/petstore/springboot-delegate
|
||||||
- samples/server/petstore/spring-boot-nullable-set
|
- samples/server/petstore/spring-boot-nullable-set
|
||||||
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
- samples/openapi3/server/petstore/spring-boot-oneof
|
- samples/openapi3/server/petstore/spring-boot-oneof
|
||||||
- samples/server/petstore/springboot-virtualan
|
- samples/server/petstore/springboot-virtualan
|
||||||
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
|
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
|
||||||
- samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8
|
|
||||||
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
|
||||||
- samples/server/petstore/springboot-spring-pageable-without-j8
|
|
||||||
- samples/server/petstore/springboot-spring-pageable
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
54
.github/workflows/windows.yaml
vendored
54
.github/workflows/windows.yaml
vendored
@@ -1,54 +0,0 @@
|
|||||||
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.7.0
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
maven-version: 3.9.0
|
|
||||||
- name: Run maven
|
|
||||||
run: mvn clean --no-snapshot-updates --batch-mode --quiet install
|
|
||||||
env:
|
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
|
||||||
- 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
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -35,8 +35,6 @@ packages/
|
|||||||
nbproject/
|
nbproject/
|
||||||
nbactions.xml
|
nbactions.xml
|
||||||
nb-configuration.xml
|
nb-configuration.xml
|
||||||
.direnv/
|
|
||||||
**/:w
|
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
<?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>
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
<?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>
|
|
||||||
23
.travis.yml
23
.travis.yml
@@ -1,7 +1,7 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk11
|
- openjdk8
|
||||||
|
|
||||||
# See https://docs.travis-ci.com/user/languages/java/#caching
|
# See https://docs.travis-ci.com/user/languages/java/#caching
|
||||||
before_cache:
|
before_cache:
|
||||||
@@ -150,15 +150,14 @@ script:
|
|||||||
- docker buildx version
|
- docker buildx version
|
||||||
# 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
|
#- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
- mvn -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
|
#- 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 --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
mvn clean deploy -DskipTests=true -B -U -P release --settings CI/settings.xml;
|
||||||
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 +166,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 --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
mvn clean deploy --settings CI/settings.xml;
|
||||||
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;
|
||||||
@@ -217,14 +216,12 @@ after_success:
|
|||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
||||||
#- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- cd website;
|
||||||
# cd website;
|
git config --global user.name "${GH_NAME}";
|
||||||
# git config --global user.name "${GH_NAME}";
|
git config --global user.email "${GH_EMAIL}";
|
||||||
# git config --global user.email "${GH_EMAIL}";
|
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
||||||
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
yarn install;
|
||||||
# yarn install;
|
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
||||||
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
|
||||||
# fi;
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
||||||
|
|||||||
@@ -35,11 +35,11 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
#sudo apt-get -y build-dep libcurl4-gnutls-dev
|
#sudo apt-get -y build-dep libcurl4-gnutls-dev
|
||||||
#sudo apt-get -y install libcurl4-gnutls-dev
|
#sudo apt-get -y install libcurl4-gnutls-dev
|
||||||
|
|
||||||
# Install golang version 1.18
|
# Install golang version 1.14
|
||||||
go version
|
go version
|
||||||
sudo mkdir /usr/local/go1.18
|
sudo mkdir /usr/local/go1.14
|
||||||
wget -c https://dl.google.com/go/go1.18.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.18
|
wget -c https://dl.google.com/go/go1.14.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.14
|
||||||
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
export PATH="/usr/local/go1.14/go/bin:$PATH"
|
||||||
go version
|
go version
|
||||||
|
|
||||||
# run integration tests
|
# run integration tests
|
||||||
@@ -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 #python2 no longer supported
|
pyenv install 2.7.14
|
||||||
pyenv global 3.7.12
|
pyenv global 3.7.12
|
||||||
|
|
||||||
# Install node@stable (for angular 6)
|
# Install node@stable (for angular 6)
|
||||||
@@ -78,10 +78,9 @@ 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)
|
||||||
# comment out due to ModuleNotFoundError: No module named 'urllib3.request'
|
(cd samples/openapi3/client/petstore/python-prior && make test)
|
||||||
#(cd samples/openapi3/client/petstore/python-prior && make test)
|
(cd samples/openapi3/client/3_0_3_unit_test/python && 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 ..."
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ 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.
|
||||||
|
|
||||||
|
|||||||
81
README.md
81
README.md
@@ -15,11 +15,18 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.0.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`6.4.0`):
|
||||||
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
||||||
[](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)
|
||||||
|
[](https://github.com/OpenAPITools/openapi-generator/actions?query=workflow%3A%22Check+Supported+Java+Versions%22)
|
||||||
|
|
||||||
|
[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>
|
||||||
|
|
||||||
@@ -70,13 +77,13 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
## Overview
|
## Overview
|
||||||
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**, **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 (2.x - 15.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo** |
|
| **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, 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 - 13.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs) |
|
||||||
| **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) |
|
| **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) |
|
||||||
| **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** |
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
@@ -114,8 +121,9 @@ 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/) | May/Jun 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/) | Feb/Mar 2023 | Major release with breaking changes (no 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.4.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.3.0-SNAPSHOT/) | 05.12.2022 | 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) |
|
||||||
|
|
||||||
@@ -123,8 +131,6 @@ OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
|||||||
|
|
||||||
For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page.
|
For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page.
|
||||||
|
|
||||||
For decomissioned generators/libraries/frameworks, please refer to [the "Decommission" label](https://github.com/OpenAPITools/openapi-generator/issues?q=label%3ADecommission+is%3Amerged+) in the pull request page.
|
|
||||||
|
|
||||||
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
||||||
|
|
||||||
You can find our released artifacts on maven central:
|
You can find our released artifacts on maven central:
|
||||||
@@ -175,16 +181,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
|
|||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
|
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
|
||||||
|
|
||||||
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
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
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
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.6.0/openapi-generator-cli-6.6.0.jar
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
@@ -256,20 +262,6 @@ If you don't have maven installed, you may directly use the included [maven wrap
|
|||||||
./mvnw clean install
|
./mvnw clean install
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Nix users
|
|
||||||
|
|
||||||
If you're a nix user, you can enter OpenAPI Generator shell, by typing:
|
|
||||||
```sh
|
|
||||||
nix develop
|
|
||||||
```
|
|
||||||
It will enter a shell with Java 8 and Maven installed.
|
|
||||||
|
|
||||||
Direnv supports automatically loading of the nix developer shell, so if you're using direnv too, type:
|
|
||||||
```sh
|
|
||||||
direnv allow
|
|
||||||
```
|
|
||||||
and have `java` and `mvn` set up with correct versions each time you enter project directory.
|
|
||||||
|
|
||||||
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
|
```sh
|
||||||
@@ -423,7 +415,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.6.0
|
openapi-generator-cli version-manager set 6.3.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -447,7 +439,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.6.0/openapi-generator-cli-6.6.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.3.0/openapi-generator-cli-6.3.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`
|
||||||
@@ -595,9 +587,8 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Angular.Schule](https://angular.schule/)
|
- [Angular.Schule](https://angular.schule/)
|
||||||
- [Aqovia](https://aqovia.com/)
|
- [Aqovia](https://aqovia.com/)
|
||||||
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
|
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
|
||||||
- [Arduino](https://www.arduino.cc/)
|
|
||||||
- [ASKUL](https://www.askul.co.jp)
|
- [ASKUL](https://www.askul.co.jp)
|
||||||
- [Amazon Web Services (AWS)](https://aws.amazon.com/)
|
- [Arduino](https://www.arduino.cc/)
|
||||||
- [b<>com](https://b-com.com/en)
|
- [b<>com](https://b-com.com/en)
|
||||||
- [百度营销](https://e.baidu.com)
|
- [百度营销](https://e.baidu.com)
|
||||||
- [Bandwidth](https://dev.bandwidth.com)
|
- [Bandwidth](https://dev.bandwidth.com)
|
||||||
@@ -621,7 +612,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [DB Systel](https://www.dbsystel.de)
|
- [DB Systel](https://www.dbsystel.de)
|
||||||
- [Deeporute.ai](https://www.deeproute.ai/)
|
- [Deeporute.ai](https://www.deeproute.ai/)
|
||||||
- [Devsupply](https://www.devsupply.com/)
|
- [Devsupply](https://www.devsupply.com/)
|
||||||
- [dmTECH GmbH](https://www.dmTECH.de)
|
|
||||||
- [DocSpring](https://docspring.com/)
|
- [DocSpring](https://docspring.com/)
|
||||||
- [dwango](https://dwango.co.jp/)
|
- [dwango](https://dwango.co.jp/)
|
||||||
- [Edge Impulse](https://www.edgeimpulse.com/)
|
- [Edge Impulse](https://www.edgeimpulse.com/)
|
||||||
@@ -673,7 +663,6 @@ 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/)
|
||||||
@@ -887,7 +876,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
||||||
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
||||||
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
||||||
- 2022-06-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)
|
||||||
@@ -897,12 +885,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-10-26 - [Quarkus Insights #106: Quarkiverse Extension Spotlight: OpenApi Generator](https://www.youtube.com/watch?v=_s_if69t2iQ) by [Quarkusio](https://www.youtube.com/c/Quarkusio)
|
- 2022-10-26 - [Quarkus Insights #106: Quarkiverse Extension Spotlight: OpenApi Generator](https://www.youtube.com/watch?v=_s_if69t2iQ) by [Quarkusio](https://www.youtube.com/c/Quarkusio)
|
||||||
- 2022-11-28 - [The REST API implementation flow](https://tmsvr.com/openapi-code-generation-for-rest-apis/) by [Imre Tömösvári](https://tmsvr.com/author/imre/)
|
- 2022-11-28 - [The REST API implementation flow](https://tmsvr.com/openapi-code-generation-for-rest-apis/) by [Imre Tömösvári](https://tmsvr.com/author/imre/)
|
||||||
- 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-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)
|
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@@ -972,7 +954,7 @@ Here is a list of template creators:
|
|||||||
* Java (Google APIs Client Library): @charlescapps
|
* Java (Google APIs Client Library): @charlescapps
|
||||||
* Java (Rest-assured): @viclovsky
|
* Java (Rest-assured): @viclovsky
|
||||||
* Java (Java 11 Native HTTP client): @bbdouglas
|
* Java (Java 11 Native HTTP client): @bbdouglas
|
||||||
* Java (Apache HttpClient 5.x): @harrywhite4 @andrevegas
|
* Java (Apache HttpClient): @harrywhite4
|
||||||
* Java (Helidon): @spericas @tjquinno @tvallin
|
* Java (Helidon): @spericas @tjquinno @tvallin
|
||||||
* Javascript/NodeJS: @jfiala
|
* Javascript/NodeJS: @jfiala
|
||||||
* JavaScript (Apollo DataSource): @erithmetic
|
* JavaScript (Apollo DataSource): @erithmetic
|
||||||
@@ -984,9 +966,7 @@ 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)
|
||||||
@@ -1019,7 +999,6 @@ 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)
|
||||||
@@ -1033,7 +1012,6 @@ 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
|
||||||
@@ -1138,7 +1116,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) @lwj5 (2023/04) |
|
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) |
|
||||||
| GraphQL | @renepardon (2018/12) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
| Groovy | |
|
| Groovy | |
|
||||||
| Haskell | |
|
| Haskell | |
|
||||||
@@ -1149,7 +1127,6 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| 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) |
|
||||||
| 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,14 +1134,13 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
||||||
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
|
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
|
||||||
| PowerShell | @wing328 (2020/05) |
|
| PowerShell | @wing328 (2020/05) |
|
||||||
| Python | @spacether (2019/11) [:heart:][spacether sponsorship] @krjakbrjak (2023/02) |
|
| Python | @spacether (2019/11) [:heart:][spacether sponsorship] |
|
||||||
| 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) |
|
||||||
| 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) |
|
||||||
| 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:
|
||||||
@@ -1250,4 +1226,3 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
81
appveyor.yml
81
appveyor.yml
@@ -3,45 +3,64 @@ 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
|
||||||
- cmd: docker pull swaggerapi/petstore
|
- git clone https://github.com/wing328/swagger-samples --depth 1
|
||||||
- cmd: docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 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"
|
||||||
- ps: Start-Sleep -s 120
|
- ps: Start-Sleep -s 15
|
||||||
- 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-netcore\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-netcore\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-netcore\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-netcore\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCore\Org.OpenAPITools.sln
|
- dotnet build samples\client\petstore\csharp-netcore\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-netcore\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-netcore\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-netcore\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-netcore\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
||||||
|
|
||||||
## build C# API client
|
## build C# API client
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
#- 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"
|
#- msbuild samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
@@ -51,6 +70,10 @@ build_script:
|
|||||||
# build C# .net standard 1.3+ API client
|
# build C# .net standard 1.3+ API client
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
|
#- 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"
|
#- 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-netcore\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
@@ -60,7 +83,7 @@ test_script:
|
|||||||
- 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-netcore\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-netcore\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-netcore\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-netcore\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)
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -9,4 +9,3 @@ additionalProperties:
|
|||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: net47
|
targetFramework: net47
|
||||||
skipOneOfAnyOfGetter: true
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -4,5 +4,5 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with
|
|||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
targetFramework: net7.0
|
targetFramework: netcoreapp3.1
|
||||||
useCompareNetObjects: "true"
|
useCompareNetObjects: "true"
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -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/go-server/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/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"
|
||||||
|
|||||||
@@ -15,4 +15,3 @@ additionalProperties:
|
|||||||
camelUseDefaultValidationErrorProcessor: true
|
camelUseDefaultValidationErrorProcessor: true
|
||||||
camelRestClientRequestValidation: true
|
camelRestClientRequestValidation: true
|
||||||
camelSecurityDefinitions: true
|
camelSecurityDefinitions: true
|
||||||
implicitHeaders: true
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -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-okhttp-gson.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature-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
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: jaxrs-cxf-cdi
|
generatorName: jaxrs-cxf-cdi
|
||||||
outputDir: samples/server/petstore/jaxrs-cxf-cdi
|
outputDir: samples/server/petstore/jaxrs-cxf-cdi
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/jaxrs/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
generatorName: jaxrs-spec
|
|
||||||
outputDir: samples/server/petstore/jaxrs-spec-jakarta
|
|
||||||
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-jakarta
|
|
||||||
serializableModel: "true"
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
implicitHeadersRegex: (api_key|enum_header_string)
|
|
||||||
generateBuilders: "true"
|
|
||||||
useJakartaEe: "true"
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
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"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
generatorName: jaxrs-spec
|
|
||||||
outputDir: samples/server/petstore/jaxrs-spec-required-and-readonly-property
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/required-and-readonly-property.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"
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
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"
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
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"
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
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,8 +1,4 @@
|
|||||||
generatorName: python
|
generatorName: python-aiohttp
|
||||||
outputDir: samples/openapi3/client/petstore/python-aiohttp
|
outputDir: samples/server/petstore/python-aiohttp
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
templateDir: modules/openapi-generator/src/main/resources/python-aiohttp
|
||||||
library: asyncio
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
mapNumberTo: float
|
|
||||||
|
|||||||
7
bin/configs/python-asyncio.yaml
Normal file
7
bin/configs/python-asyncio.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
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
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
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"
|
|
||||||
6
bin/configs/python-features-dynamic-servers.yaml
Normal file
6
bin/configs/python-features-dynamic-servers.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
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
|
||||||
6
bin/configs/python-legacy-oas2.yaml
Normal file
6
bin/configs/python-legacy-oas2.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: python-legacy
|
||||||
|
outputDir: samples/client/petstore/python-legacy
|
||||||
|
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-legacy.yaml
Normal file
6
bin/configs/python-legacy.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: python-legacy
|
||||||
|
outputDir: samples/openapi3/client/petstore/python-legacy
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python-legacy
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
7
bin/configs/python-nextgen-aiohttp.yaml
Normal file
7
bin/configs/python-nextgen-aiohttp.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: python-nextgen
|
||||||
|
outputDir: samples/openapi3/client/petstore/python-nextgen-aiohttp
|
||||||
|
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-nextgen
|
||||||
|
library: asyncio
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
8
bin/configs/python-nextgen.yaml
Normal file
8
bin/configs/python-nextgen.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: python-nextgen
|
||||||
|
outputDir: samples/openapi3/client/petstore/python-nextgen
|
||||||
|
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-nextgen
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
6
bin/configs/python-prior-extensions-x-auth-id-alias.yaml
Normal file
6
bin/configs/python-prior-extensions-x-auth-id-alias.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: python-prior
|
||||||
|
outputDir: samples/openapi3/client/extensions/x-auth-id-alias/python-prior/
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/extensions/x-auth-id-alias.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
|
additionalProperties:
|
||||||
|
packageName: x_auth_id_alias
|
||||||
10
bin/configs/python-prior-oas2.yaml
Normal file
10
bin/configs/python-prior-oas2.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# this file exists because in this file we omit setting disallowAdditionalPropertiesIfNotPresent
|
||||||
|
# which makes it default to false
|
||||||
|
# that false setting is needed for composed schemas to work
|
||||||
|
# Composed schemas are schemas that contain the allOf/oneOf/anyOf keywords. v2 specs only support the allOf keyword.
|
||||||
|
generatorName: python-prior
|
||||||
|
outputDir: samples/client/petstore/python-prior
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/python-prior/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python-prior
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: python-prior
|
||||||
|
outputDir: samples/client/petstore/python-prior_disallowAdditionalPropertiesIfNotPresent
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/python-prior/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python-prior
|
||||||
|
additionalProperties:
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: "true"
|
||||||
|
packageName: petstore_api
|
||||||
8
bin/configs/python-prior.yaml
Normal file
8
bin/configs/python-prior.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: python-prior
|
||||||
|
outputDir: samples/openapi3/client/petstore/python-prior
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/python-prior/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python-prior
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
|
recursionLimit: "1234"
|
||||||
|
initRequiredVars: false
|
||||||
7
bin/configs/python-tornado.yaml
Normal file
7
bin/configs/python-tornado.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: python-legacy
|
||||||
|
outputDir: samples/client/petstore/python-tornado
|
||||||
|
library: tornado
|
||||||
|
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
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
generatorName: python
|
generatorName: python
|
||||||
outputDir: samples/openapi3/client/petstore/python
|
outputDir: samples/openapi3/client/petstore/python
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore_api
|
packageName: petstore_api
|
||||||
useOneOfDiscriminatorLookup: "true"
|
recursionLimit: "1234"
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
mapNumberTo: StrictFloat
|
|
||||||
|
|||||||
6
bin/configs/python_3_0_3_unit_test.yaml
Normal file
6
bin/configs/python_3_0_3_unit_test.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: python
|
||||||
|
outputDir: samples/openapi3/client/3_0_3_unit_test/python
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/unit_test_spec/3_0_3_unit_test_spec.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
|
additionalProperties:
|
||||||
|
packageName: unit_test_api
|
||||||
9
bin/configs/scala-legacy.yaml
Normal file
9
bin/configs/scala-legacy.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# This is for generating scala legacy client
|
||||||
|
generatorName: scala-httpclient-deprecated
|
||||||
|
outputDir: samples/client/petstore/scala-httpclient-deprecated
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/scala-httpclient
|
||||||
|
additionalProperties:
|
||||||
|
apiPackage: org.openapitools.example.api
|
||||||
|
invokerPackage: org.openapitools.example.invoker
|
||||||
|
artifactId: scala-legacy-petstore
|
||||||
13
bin/configs/spring-boot-beanvalidation-no-nullable-oas3.yaml
Normal file
13
bin/configs/spring-boot-beanvalidation-no-nullable-oas3.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/openapi3/server/petstore/springboot-beanvalidation-no-nullable
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
|
documentationProvider: springdoc
|
||||||
|
java8: "false"
|
||||||
|
useBeanValidation: true
|
||||||
|
artifactId: spring-boot-beanvalidation-no-nullable
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
openApiNullable: "false"
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-beanvalidation-no-nullable
|
outputDir: samples/server/petstore/springboot-beanvalidation-no-nullable
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
java8: "false"
|
java8: "false"
|
||||||
useBeanValidation: true
|
useBeanValidation: true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-beanvalidation
|
outputDir: samples/server/petstore/springboot-beanvalidation
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
outputDir: samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: spring-boot-defaultInterface-unhandledException
|
artifactId: spring-boot-defaultInterface-unhandledException
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-delegate-j8
|
outputDir: samples/server/petstore/springboot-delegate-j8
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/server/petstore/springboot-delegate-no-response-entity
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
documentationProvider: springfox
|
|
||||||
artifactId: springboot-delegate-no-response-entity
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
java8: true
|
|
||||||
delegatePattern: "true"
|
|
||||||
useResponseEntity: "false"
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-delegate
|
outputDir: samples/openapi3/server/petstore/springboot-delegate
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-delegate
|
outputDir: samples/server/petstore/springboot-delegate
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-implicitHeaders
|
outputDir: samples/openapi3/server/petstore/springboot-implicitHeaders
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-implicitHeaders
|
outputDir: samples/server/petstore/springboot-implicitHeaders
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: springboot-implicitHeaders
|
artifactId: springboot-implicitHeaders
|
||||||
|
|||||||
11
bin/configs/spring-boot-reactive-oas3.yaml
Normal file
11
bin/configs/spring-boot-reactive-oas3.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/openapi3/server/petstore/springboot-reactive
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
|
documentationProvider: springdoc
|
||||||
|
artifactId: springboot-reactive
|
||||||
|
reactive: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
delegatePattern: "true"
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-reactive
|
outputDir: samples/server/petstore/springboot-reactive
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
|
||||||
artifactId: springboot-reactive
|
artifactId: springboot-reactive
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
reactive: "true"
|
reactive: "true"
|
||||||
|
|||||||
10
bin/configs/spring-boot-useoptional-oas3.yaml
Normal file
10
bin/configs/spring-boot-useoptional-oas3.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/openapi3/server/petstore/springboot-useoptional
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
|
documentationProvider: springdoc
|
||||||
|
useOptional: true
|
||||||
|
artifactId: spring-boot-useoptional
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-useoptional
|
outputDir: samples/server/petstore/springboot-useoptional
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
useOptional: true
|
useOptional: true
|
||||||
artifactId: spring-boot-useoptional
|
artifactId: spring-boot-useoptional
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-virtualan
|
outputDir: samples/server/petstore/springboot-virtualan
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springdoc
|
documentationProvider: springdoc
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot
|
outputDir: samples/server/petstore/springboot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-cloud-async
|
outputDir: samples/openapi3/client/petstore/spring-cloud-async
|
||||||
library: spring-cloud
|
library: spring-cloud
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
11
bin/configs/spring-cloud-async.yaml
Normal file
11
bin/configs/spring-cloud-async.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/client/petstore/spring-cloud-async
|
||||||
|
library: spring-cloud
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: springfox
|
||||||
|
async: "true"
|
||||||
|
java8: "true"
|
||||||
|
artifactId: petstore-spring-cloud
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
library: spring-cloud
|
library: spring-cloud
|
||||||
outputDir: samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi
|
outputDir: samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
@@ -10,4 +10,3 @@ additionalProperties:
|
|||||||
interfaceOnly: "true"
|
interfaceOnly: "true"
|
||||||
singleContentTypes: "true"
|
singleContentTypes: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
generatedConstructorWithRequiredArgs: "false"
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
outputDir: samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
||||||
library: spring-cloud
|
library: spring-cloud
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-spring-pageable.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/client/petstore/spring-cloud-spring-pageable
|
||||||
|
library: spring-cloud
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: springfox
|
||||||
|
artifactId: spring-cloud-spring-pageable
|
||||||
|
hideGenerationTimestamp: 'true'
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
library: spring-http-interface
|
library: spring-http-interface
|
||||||
outputDir: samples/client/petstore/spring-http-interface-reactive
|
outputDir: samples/client/petstore/spring-http-interface-reactive
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: spring-http-interface-reactive
|
artifactId: spring-http-interface-reactive
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
library: spring-http-interface
|
library: spring-http-interface
|
||||||
outputDir: samples/client/petstore/spring-http-interface
|
outputDir: samples/client/petstore/spring-http-interface
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: spring-http-interface
|
artifactId: spring-http-interface
|
||||||
snapshotVersion: "true"
|
snapshotVersion: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
modelNameSuffix: 'Dto'
|
modelNameSuffix: 'Dto'
|
||||||
generatedConstructorWithRequiredArgs: "false"
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-stubs
|
outputDir: samples/openapi3/client/petstore/spring-stubs
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
outputDir: samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
10
bin/configs/spring-stubs.yaml
Normal file
10
bin/configs/spring-stubs.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/server/petstore/spring-stubs
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: springfox
|
||||||
|
artifactId: spring-stubs
|
||||||
|
interfaceOnly: "true"
|
||||||
|
singleContentTypes: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8
|
outputDir: samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
delegatePattern: true
|
delegatePattern: true
|
||||||
java8: false
|
java8: false
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user