forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_17831
- Loading branch information
Showing
1,084 changed files
with
31,156 additions
and
11,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Samples Go | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'samples/server/petstore/go-gin-api-server/**' | ||
- 'samples/server/petstore/go-gin-api-server-interface-only/**' | ||
pull_request: | ||
paths: | ||
- 'samples/server/petstore/go-gin-api-server/**' | ||
- 'samples/server/petstore/go-gin-api-server-interface-only/**' | ||
|
||
jobs: | ||
build: | ||
name: Build Go | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
- samples/server/petstore/go-gin-api-server/ | ||
- samples/server/petstore/go-gin-api-server-interface-only/ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "stable" | ||
- run: go version | ||
- name: Run test | ||
working-directory: ${{ matrix.sample }} | ||
run: go test -mod=mod -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Kotlin Client (Echo API) JDK17 | ||
|
||
on: | ||
push: | ||
paths: | ||
- samples/client/echo_api/kotlin** | ||
pull_request: | ||
paths: | ||
- samples/client/echo_api/kotlin** | ||
env: | ||
GRADLE_VERSION: 7.4 | ||
jobs: | ||
build: | ||
name: Build Kotlin Client JDK17 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
# clients | ||
- samples/client/echo_api/kotlin-jvm-spring-3-restclient | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Cache maven dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: maven-repository | ||
with: | ||
path: | | ||
~/.gradle | ||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
- name: Install Gradle wrapper | ||
uses: eskatos/gradle-command-action@v3 | ||
with: | ||
gradle-version: ${{ env.GRADLE_VERSION }} | ||
build-root-directory: ${{ matrix.sample }} | ||
arguments: wrapper | ||
- name: Setup node.js | ||
uses: actions/setup-node@v4 | ||
- name: Run echo server | ||
run: | | ||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server | ||
(cd http-echo-server && npm install && npm start &) | ||
- name: Build | ||
working-directory: ${{ matrix.sample }} | ||
run: ./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Python FastAPI Server | ||
|
||
on: | ||
push: | ||
paths: | ||
- samples/server/petstore/python-fastapi/** | ||
pull_request: | ||
paths: | ||
- samples/server/petstore/python-fastapi/** | ||
jobs: | ||
build: | ||
name: Test Python FastAPI server | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
# servers | ||
- samples/server/petstore/python-fastapi/ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
- name: Install dependencies | ||
working-directory: ${{ matrix.sample }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pytest | ||
- name: Test | ||
working-directory: ${{ matrix.sample }} | ||
run: PYTHONPATH=src pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
bin/configs/go-gin-server-go-gin-api-server-interface-only.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
generatorName: go-gin-server | ||
outputDir: samples/server/petstore/go-gin-api-server-interface-only | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/go-gin-server | ||
additionalProperties: | ||
hideGenerationTimestamp: "true" | ||
packageName: petstoreserver | ||
interfaceOnly: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
generatorName: rust | ||
outputDir: samples/client/others/rust/hyper/emptyObject | ||
library: hyper | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/empty-object.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/rust | ||
additionalProperties: | ||
supportAsync: "false" | ||
packageName: empty-object-hyper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
generatorName: rust | ||
outputDir: samples/client/others/rust/reqwest/emptyObject | ||
library: reqwest | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/empty-object.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/rust | ||
additionalProperties: | ||
supportAsync: "false" | ||
packageName: empty-object-reqwest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.