Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
d9bd82a
Add (single) example
gcatanese May 19, 2023
09c1378
Fetch single example when available
gcatanese May 19, 2023
7443c95
[lua] fix use of isBasic condition (#15529)
tiffmaelite May 20, 2023
2d8ec8b
[xojo] fix use of isBasic condition (#15526)
tiffmaelite May 20, 2023
b754688
[eiffel] fix use of isBasic condition (#15533)
tiffmaelite May 20, 2023
9d6f80a
[android] fix use of isBasic condition (#15528)
tiffmaelite May 20, 2023
b7a9373
[powershell] fix use of isBasic condition (#15525)
tiffmaelite May 20, 2023
7eeb7f6
[PHP] fix use of isBasic condition (#15520)
tiffmaelite May 20, 2023
e83640c
[perl] fix use of isBasic condition (#15524)
tiffmaelite May 20, 2023
3e10c5d
[bash] fix use of isBasic condition (#15521)
tiffmaelite May 20, 2023
89e4b24
[Ada] [Java] fix Codegen copies (#15513)
tiffmaelite May 20, 2023
e7039f4
[cpp C++] fix use of isBasic condition (#15535)
tiffmaelite May 20, 2023
08bb0f4
Fixed additional property omitGradleWrapper for kotlin generator (#15…
stefankoppier May 20, 2023
e758e4a
Improve Appveyor tests (#15585)
wing328 May 21, 2023
6142315
Revert "fix#14119 property generateApis=false not working (#14126)" (…
wing328 May 21, 2023
5018d3c
Update to JDK11 (#15553)
wing328 May 21, 2023
5e800d9
Update pom.xml with new plugin, setting (#15590)
wing328 May 21, 2023
7881482
[Ktor] Update generator to latest Ktor version #14061 (#14296)
rsinukov1 May 21, 2023
605cc7b
Set maven to 3.9 in Github workflow (#15592)
wing328 May 22, 2023
2af661d
used default cancellation token (#15594)
devhl-labs May 22, 2023
ad5cc82
remove fullJavaUtil (#15033)
martin-mfg May 22, 2023
216e2c4
[dart] fix use of isBasic condition (#15523)
tiffmaelite May 22, 2023
cbcf3d3
[Java] [Kotlin] (#14876) fix use of isBasic conditions - do not use H…
tiffmaelite May 22, 2023
273be46
Update Enforcer (maven plugin) rule (#15575)
wing328 May 22, 2023
5299935
[csharp-netcore] Removed .netcore 3.1 (#15605)
devhl-labs May 23, 2023
9358ab9
[kotlin] New 'jvm-spring-webclient' library (#15568)
stefankoppier May 23, 2023
833f649
[Kotlin] minor enhancements, remove KotlinServerDeprecatedGenerator (…
wing328 May 23, 2023
f5903bc
[swift5] fix use of isBasic condition (#15613)
tiffmaelite May 23, 2023
1a483b2
fix variable name (#15623)
changhc May 24, 2023
358397f
[rust] fix use of isBasic condition (#15532)
tiffmaelite May 24, 2023
5b5cb1f
[groovy] support enum generation in groovy client (#15619)
dyadyaJora May 24, 2023
48ef91a
[python] Add test for nullable property with pattern (#15625)
wing328 May 24, 2023
9890f07
[kotlin-server] add support for jakarta ee namespace (#15593)
stephan-strate May 24, 2023
0e8d997
[rust-client]: fix for collectionFormat=multi (#15626)
wing328 May 24, 2023
15604b3
fix go server string compare (#15589)
wing328 May 24, 2023
2042fb2
CASS-399: Adds {{>partial_header}} to missing mustache files in aspne…
aramflo May 24, 2023
3990b73
remove scala-httpclient client generator (deprecated) (#15627)
wing328 May 24, 2023
80c85ef
[Haskell] fix use of isBasic condition (#15612)
tiffmaelite May 24, 2023
2b9677a
Adds operation null check avoid null exception (#15599)
racsus May 24, 2023
765628f
Fix extensions handling for allOf with single schema (#15632)
borsch May 25, 2023
63c26fc
upgarded test project framework (#15634)
devhl-labs May 25, 2023
d52e3fb
spring: fix multiline tag description (#15112) (fix #12474)
gonzalad May 25, 2023
1145197
Add workflow to tests C# projects with .net 6 (#15629)
wing328 May 25, 2023
db795a2
[csharp-netcore] Removed deprecated package (#15595)
devhl-labs May 25, 2023
8aa8a60
[typescript] fix use of isBasic condition (#15531)
tiffmaelite May 25, 2023
ce587c7
[C] fix use of isBasic condition (#15534)
tiffmaelite May 25, 2023
910e463
update C# samples
wing328 May 26, 2023
68a4348
Bump actions/setup-dotnet from 3.0.3 to 3.1.0 (#15648)
dependabot[bot] May 26, 2023
b94952b
Add link to find more variables (#15635)
alphashuro May 26, 2023
3db7169
[python-fastapi] Added a base class for the actual implementation (#1…
krjakbrjak May 26, 2023
1f4cbb8
Add multiple parameter examples to CodegenParameter (#15647)
gcatanese May 26, 2023
6213d39
update doc
wing328 May 26, 2023
bbb6f4e
[go-server] Update Dockerfile go version to 1.19 (#15596)
wing328 May 26, 2023
4c7963c
remove deprecated options in kotlin client generator (#15651)
wing328 May 26, 2023
8457dbf
[gradle enterprise] various enhancements (#15607)
wing328 May 26, 2023
b3b672f
[Kotlin-client][jvm-spring-webclient] Added support for spring boot 3…
stefankoppier May 26, 2023
fe6e4e4
[java] support required nullable properties on java okhttp-gson gener…
samypr100 May 26, 2023
af917f8
Fix run-in-docker.sh for JDK 11+ (#15655)
halostatue May 27, 2023
4d52bf6
[csharp-netcore][generichost] Reduce null warnings (#15656)
devhl-labs May 27, 2023
5afa339
Add tests for Dockerfile, run-in-docker.sh (#15657)
wing328 May 27, 2023
e4bf068
Update swagger parser to 2.1.14 (#15644)
wing328 May 27, 2023
7fc23dd
fixes a warning (#15661)
devhl-labs May 28, 2023
f793d62
Update dart workflow java version to 11 (#15660)
wing328 May 28, 2023
0350d0e
fixed example values (#15666)
devhl-labs May 28, 2023
9e8805d
remove-more-null-warnings (#15664)
devhl-labs May 28, 2023
29223e0
[csharp-netore][generichost] Renamed ToModel to AsModel (#15662)
devhl-labs May 28, 2023
784c700
[csharp] Fix property names (#13681)
devhl-labs May 28, 2023
431cc2e
Fix bugs (string comparison) in csharp generators (#15663)
wing328 May 29, 2023
8e2fa82
[kotlin-server] cleanup KotlinServerCodegen configuration (#15653)
stephan-strate May 29, 2023
7006b38
Update go-gin dockerfile to newer version: 1.19 (#15597)
wing328 May 29, 2023
8bad27e
update python fastapi server dependencies (#15650)
wing328 May 29, 2023
8a0f374
spring: fix spring pageable used without any config (#15113) (fix #13…
gonzalad May 30, 2023
1d5b1b0
Bump actions/setup-dotnet from 3.1.0 to 3.2.0 (#15679)
dependabot[bot] May 30, 2023
10c270f
fix date isinstance check (#15675)
wing328 May 30, 2023
d7d57e2
fixed null reference exception (#15680)
devhl-labs May 30, 2023
1e1e786
created partial method to format arguments (#15677)
devhl-labs May 30, 2023
0bcf9d8
patch all property collections (#15678)
devhl-labs May 30, 2023
ff414dd
[Spring] Defaulting for Spring HTTP Interface library (#15689) (fix #…
borsch May 31, 2023
1561c33
[JAVA] Generate client files with multiple enum `oneOf` types (#12687)
l3ender May 31, 2023
1ad8316
minor updates to readme (#15700)
wing328 May 31, 2023
4d4477e
update maven wrapper to 3.9.0 (#15694)
wing328 May 31, 2023
c8a1607
rename ts codegen method (#15696)
wing328 May 31, 2023
3ee2eee
removed hotfix (#15703)
devhl-labs Jun 1, 2023
5fae4f5
add go api key example in README.md (#15705)
chrisimcevoy Jun 1, 2023
63a311a
update go samples
wing328 Jun 1, 2023
f769070
removed warnings (#15706)
devhl-labs Jun 1, 2023
c2f635a
fix use of isBasic and isBasicBasic and isBasicBearer and isHttpSigna…
tiffmaelite Jun 1, 2023
e593591
cleanup new generator documentation (#15359)
tiffmaelite Jun 1, 2023
6504eaf
[BUG][typescript-fetch] fix npe when debuggingModels (#15577) (#15578)
Serranya Jun 1, 2023
3943e97
Introduce option 'importFileExtension' to typescript-fetch (#15439) (…
stephanpelikan Jun 1, 2023
fc76944
Update maven plugins, use maven 3.8.8 in CI (#15713)
wing328 Jun 1, 2023
9c611b8
update readme to use maven wrapper (#15711)
wing328 Jun 1, 2023
0d4e399
Do JSON serialization only if requested by mime-type (#13456) (#15676)
stephanpelikan Jun 1, 2023
eb41941
set mvnw to 3.8.8 (#15724)
wing328 Jun 2, 2023
f331cb0
removed more hotfixes (#15723)
devhl-labs Jun 2, 2023
7466d06
fix property name comparison in C# (#15697)
wing328 Jun 2, 2023
421bcd1
Decommission `csharp` client generator (#15708)
wing328 Jun 2, 2023
f0a624a
Documentation update (#15728)
stefankoppier Jun 2, 2023
2db7b0b
removed more more warnings (#15737)
devhl-labs Jun 3, 2023
05b9a89
add support for dry-run flag to Maven and Gradle plugins, fixes #1572…
nebulon42 Jun 3, 2023
65bee03
Use gitHost instead of github.com (#15720)
osechet Jun 3, 2023
a953eb7
[Powershell] fix security features listed in documentation (#15717)
tiffmaelite Jun 3, 2023
eb0fe1b
[R] fix security features listed in documentation (#15716)
tiffmaelite Jun 3, 2023
5e6e99b
do not skip jacoco report in linux workflow (#15738)
wing328 Jun 3, 2023
a9536d6
minor fix readme md (#15739)
wing328 Jun 3, 2023
2cc3e78
[Go] fix security features listed in documentation (#15714)
tiffmaelite Jun 3, 2023
7ab636d
[JavaScript][javascript-flowtyped] fix security features listed in do…
tiffmaelite Jun 3, 2023
fad23df
[Rust] fix security features listed in documentation (#15718)
tiffmaelite Jun 3, 2023
2b9d94c
add missing quote (#15732)
ctamisier Jun 3, 2023
0943e50
[csharp-netcore][generichost] Improved spacing (#15740)
devhl-labs Jun 3, 2023
961b831
Fixed default for string query param (#15686)
Beaueve Jun 4, 2023
7295c97
remove EOL in template file
wing328 Jun 4, 2023
fbb0d6d
add a test case for python-fastapi query parameter default value (#15…
wing328 Jun 4, 2023
e5531c1
improved spacing (#15741)
devhl-labs Jun 4, 2023
3cff040
used name in camel case (#15742)
devhl-labs Jun 4, 2023
e06e2cc
fixed more warnings and spacing issues (#15743)
devhl-labs Jun 4, 2023
4604bf0
fixed casing (#15748)
devhl-labs Jun 5, 2023
db3ef13
used partial methods for logging (#15749)
devhl-labs Jun 5, 2023
9bf7524
[PHP] fix security features listed in documentation (#15750)
tiffmaelite Jun 5, 2023
0d9ca8a
[C# csharp] fix security features listed in documentation (#15687)
tiffmaelite Jun 5, 2023
d244601
[TypeScript] fix security features listed in documentation (#15751)
tiffmaelite Jun 5, 2023
bc7bdca
support nullable check for OAS 3.1 (#15698)
karzang Jun 5, 2023
374499e
Add (single) example
gcatanese May 19, 2023
4a32322
Fetch single example when available
gcatanese May 19, 2023
bf933ec
Add test
gcatanese Jun 5, 2023
18c29b0
Merge branch 'request-inline-example' of https://github.com/gcatanese…
gcatanese Jun 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ commands: # a reusable command with parameters
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
# 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:
command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
command: java -version
- run:
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
- run:
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/run-samples/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ inputs:
runs:
using: "composite"
steps:
- run: mvn --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
shell: bash
- run: mvn clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
shell: bash
101 changes: 0 additions & 101 deletions .github/workflows/check-supported-versions.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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/
2 changes: 1 addition & 1 deletion .github/workflows/gradle-plugin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
run: |
mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
Expand Down
108 changes: 108 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Linux tests

on:
push:
branches:
- master
- '[5-9]+.[0-9]+.x'
pull_request:
branches:
- master
- '[5-9]+.[0-9]+.x'

jobs:
build:
name: 'Build: JDK ${{ matrix.java }} (${{ matrix.os }})'
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [11, 17]
os: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}

- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Setup Maven
uses: s4u/setup-maven-action@v1.7.0
with:
java-version: ${{ matrix.java }}
maven-version: 3.8.8

- name: Build with Maven
shell: bash
run: mvn clean -nsu -B --quiet -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress install --file pom.xml
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}

- name: Upload Maven build artifact
uses: actions/upload-artifact@v3
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
with:
name: artifact
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar

- name: Test Gradle plugin usage
shell: bash
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace

- name: Test Maven plugin integration
if: matrix.java == '11'
shell: bash
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
run: |
cd modules/openapi-generator-maven-plugin
mvn clean verify -Pintegration

verify:
name: Verify outputs on ${{ matrix.os }}
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Maven
uses: s4u/setup-maven-action@v1.7.0
with:
java-version: 11
maven-version: 3.8.8
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: artifact
- name: Run Ensures Script
shell: bash
run: |
git config --global core.fileMode false
git config --global core.safecrlf false
git config --global core.autocrlf true
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
20 changes: 10 additions & 10 deletions .github/workflows/openapi-generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
- name: Cache maven dependencies
uses: actions/cache@v3
Expand All @@ -36,7 +36,7 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- name: Run maven
run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
run: mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- run: ls -la modules/openapi-generator-cli/target
Expand All @@ -54,10 +54,10 @@ jobs:
- build
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
- name: Cache maven dependencies
uses: actions/cache@v3
Expand All @@ -74,7 +74,7 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- name: Run unit tests
run: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
run: mvn clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Publish unit test reports
Expand All @@ -91,10 +91,10 @@ jobs:
- build
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
- name: Download openapi-generator-cli.jar artifact
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 8
java-version: 11
distribution: 'temurin'
- name: Download openapi-generator-cli.jar artifact
uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/samples-dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
java-version: 11
- name: Cache maven dependencies
uses: actions/cache@v3
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/samples-dotnet-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 3.1.*
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/samples-dotnet.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Samples C# .Net 6
name: Samples C# .Net 7

on:
push:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3.0.3
- uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: '7.0.x'
- name: Build
Expand Down
Loading