Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge upstream #1

Merged
merged 193 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
47483e6
update version to 5.2.0-SNAPSHOT, update samples
wing328 Mar 20, 2021
3a0eb9d
update meta-codegen
wing328 Mar 20, 2021
16b141e
Merge remote-tracking branch 'origin/master' into 5.2.x
wing328 Mar 26, 2021
99ddd6d
Merge remote-tracking branch 'origin/master' into 5.2.x
wing328 Mar 30, 2021
3973d4c
Merge remote-tracking branch 'origin/master' into 5.2.x
wing328 Mar 30, 2021
6cc2706
[python] Fixes additional_properties_type for models (#8802)
spacether Mar 31, 2021
59089fe
update samples
wing328 Apr 1, 2021
917b358
Merge remote-tracking branch 'origin/master' into 5.2.x
wing328 Apr 1, 2021
71f67c3
Samples regenerated (#9154)
spacether Apr 1, 2021
1f22706
add sponsor message in F# giraffe generator (#9247)
wing328 Apr 13, 2021
13c0b2c
Use warning instead of throwing exceptions (#9188)
wing328 Apr 13, 2021
29c1688
[dart][dart-dio] Update pubspec/readme templates (#9201)
kuhnroyal Apr 13, 2021
7a1f7b2
Update model_variables.mustache (#7074)
Starkmann Apr 13, 2021
b4ea00e
[dart][dart-dio] Add built_value date support w/o timemachine (#9180)
kuhnroyal Apr 13, 2021
1b63822
camelize name in nim (#9255)
wing328 Apr 14, 2021
c285f39
switch to oas3 spec for php-symfony samples (#9248)
wing328 Apr 14, 2021
19b68f7
[Docker] support multi-arch build (#9246)
wing328 Apr 14, 2021
dbdb6c5
fix missing space in bash script
wing328 Apr 14, 2021
9edf70e
@Input and @Internal should not be apply on the same property (#9059)
vgalloy Apr 14, 2021
60dcf86
Don't include read-only properties in Python examples. (#9252)
therve Apr 14, 2021
786458e
Add missing ResponseBody import (#9239)
Apr 16, 2021
6dce817
[Kotlin] Fix (de)serialization of enum classes (kotlinx serialization…
kvn-stgl Apr 16, 2021
af992e4
[Java] [Native] Add response body to exception message (#9169)
MosheElisha Apr 16, 2021
4a63aae
[Kotlin] Fix (de)serialization of enum classes (#7917)
cschramm Apr 16, 2021
515d4a0
[Java][JavaJaxRS] Respect readOnly/writeOnly attribute markers (#9276)
wing328 Apr 16, 2021
3929aff
[csharp][netcore-httpclient] Refactor of constructors (#9145)
lucamazzanti Apr 16, 2021
b5dac42
feat(adapter): add BigDecimal kotlin support (#8880)
codymikol Apr 16, 2021
0329119
typescript-angular: Fix Cannot read property 'apiKey' of undefined (#…
EmmanuelRoux Apr 16, 2021
a9c7644
[typescript-axios] add missing baseName when using set or append on F…
themitvp Apr 17, 2021
77dfd40
[Enhancement] added support for custom type & format mapping (#9285)
wing328 Apr 17, 2021
da37e98
[Kotlin]] add support for binary response (#9284)
wing328 Apr 17, 2021
aa5adbf
update samples (#9288)
macjohnny Apr 19, 2021
51028f0
prevent NPE in constructing oneOf example (#9231)
wing328 Apr 20, 2021
28e0d9b
Support FGuid with helpers (#9291)
jwittner Apr 20, 2021
41f586b
update cpp ue4 samples
wing328 Apr 20, 2021
ef2299a
Qt5 support date format enum (#9283)
xconverge Apr 21, 2021
ebc98ec
[PowerShell] improve return type documentation (#9295)
wing328 Apr 21, 2021
d4748a7
Dockerfile for the Ruby-Sinatra generator (#9299)
YasuhiroABE Apr 21, 2021
9256108
update ruby sinatra samples
wing328 Apr 21, 2021
733a180
Add Go echo server codegen (#9224)
ph4r5h4d Apr 21, 2021
b4f1747
[PS] minor improvements to the auto-generated appveyor.yml (#9300)
wing328 Apr 21, 2021
139e9e4
Minor improvements to go-echo server (#9303)
wing328 Apr 21, 2021
3894aa4
[swift5] Add useSPMFileStructure (#9074)
aymanbagabas Apr 21, 2021
b381663
Bump actions/cache from v2.1.4 to v2.1.5 (#9249)
dependabot[bot] Apr 22, 2021
347a4ce
Bump actions/upload-artifact from v2.2.2 to v2.2.3 (#9198)
dependabot[bot] Apr 22, 2021
d44d9a3
Add a link to blog post in unibuddy tech blog (#9311)
wing328 Apr 22, 2021
d773636
add a link to twilio blog (#9312)
wing328 Apr 22, 2021
946d145
[bash] Update Bash Client Dockerfile.mustache (#9310)
wing328 Apr 22, 2021
05f3299
[Kotlin][#9317] Add parameter sorting to Kotlin client generator (as …
shanselm-ergon Apr 22, 2021
5468b22
[Kotlin][#7925] Make ApiClient in jvm-retrofit2 be able to add additi…
shanselm-ergon Apr 22, 2021
33107c1
[Swift5] escape reserved words (#9204)
aymanbagabas Apr 22, 2021
05aa956
update samples
wing328 Apr 22, 2021
ab688d4
Update documentation (#9322)
wing328 Apr 22, 2021
ee905cf
add the u of aizu to the user list (#9326)
wing328 Apr 23, 2021
22950fa
[Kotlin][#9313] Generator should support optional form parameter (#9314)
shanselm-ergon Apr 23, 2021
0f5e7d1
Swift5 models improvements (#9205)
aymanbagabas Apr 24, 2021
812d563
[Java][Jersey2]: Fixing a package import (#9336)
saigiridhar21 Apr 26, 2021
b9a1c8f
[Java][Spring] Fix for #8659 - Different in-parameter types generated…
EmhyrVarEmreis Apr 26, 2021
f7c3773
Swift5 use json type for any (#9206)
aymanbagabas Apr 26, 2021
7df0f56
update samples
wing328 Apr 26, 2021
b6197dd
[core] Add refreshUrl to CodegenSecurity (#9210)
ybelenko Apr 26, 2021
f572125
[Python] Fix exclusive min and max (#9340)
wing328 Apr 26, 2021
a62d225
[DOCS] Updated pom.xml snippet with latest version (#9342)
dersvenhesse Apr 26, 2021
ad3ecad
Move ensure up-to-date script to drone.io (#9339)
wing328 Apr 26, 2021
1f880f4
Bump actions/setup-java from v1 to v2 (#9187)
dependabot[bot] Apr 26, 2021
4f84e86
Support #9151: Default Java client to Java 8 (#9344)
toby-murray-snow-software Apr 27, 2021
4aaaae7
[Scala][Akka] Use Files.createTempFile to address security concerns (…
wing328 Apr 28, 2021
ad9e239
[PHP] Fix parentSchema conditional causing parent call when parent is…
buttilda Apr 28, 2021
83adc06
Fixes #9151: Bump OkHTTP dependency to latest (#9353)
toby-murray-snow-software Apr 28, 2021
057c108
[Codegen] Add hasDefaultResponse property (#9203)
aymanbagabas Apr 28, 2021
37eaf70
Merge remote-tracking branch 'origin/master' into 5.2.x
wing328 Apr 28, 2021
73564bc
update samples
wing328 Apr 28, 2021
53398a0
Ktor server upgrade (#9088)
rsinukov Apr 28, 2021
5d94628
Bump OkHTTP dependency to latest in build.sbt (#9361)
wing328 Apr 28, 2021
ccbb78e
Keep old Ktor server generator for backward compatibility (#9365)
rsinukov Apr 29, 2021
18cdb36
[Test] Migrate samples from 2.0 Spec to 3.0 spec (#9347)
wing328 Apr 29, 2021
1c1c6b4
[kotlin-server-deprecated] minor improvements (#9367)
wing328 Apr 29, 2021
dbb42f9
[BUG] new.sh fix generator type , issue #9320 (#9321)
AndersSpringborg Apr 29, 2021
ebc1d7b
[scala][akka] Update dependencies for scala 2.13 in scala-akka (#8624)
ex0ns Apr 29, 2021
a88313c
[Python] Avoid DeprecationWarning in inspect.getargspec on Python 3 (…
johnthagen Apr 30, 2021
3da1999
Fix typo in readme (#9387)
May 3, 2021
d21743e
[TypeScript-fetch] Fix issue 9360 (#9362)
stewe May 3, 2021
e9fa936
[csharp][netcore-httpclient] Refactor of constructors: removed obsole…
lucamazzanti May 4, 2021
4d2b022
Add VMware to users list (#9388)
shylacs May 4, 2021
8f56395
[C++] [Pistache] Model validation, general overhaul (#9251)
JulianGmp May 5, 2021
ec08571
[Erlang] migrate CI to drone.io (#9406)
wing328 May 6, 2021
45d55f6
[aspnetcore] Fix incorrect logging messages (#9405)
hauntingEcho May 6, 2021
32b2ea3
Fixes #9398: fix aspnet enum documentation (#9404)
hauntingEcho May 6, 2021
343d7eb
[cpp-ue4] Improved retry system to use Unreal's FHttpRetrySystem (#9382)
Kahncode May 6, 2021
7703c92
update doc
wing328 May 6, 2021
f4f4d5d
[kotlin][client] fix warning for non optional header parameter (#9415)
4brunu May 6, 2021
2f2e250
[csharp-netcore][httpclient] Issues managing error statuses (#9389)
lucamazzanti May 6, 2021
560bf7e
v5.1.1 release (#9421)
wing328 May 7, 2021
be214dc
Merge remote-tracking branch 'origin/master' into 5.2.x
wing328 May 7, 2021
e9a62ab
update readme
wing328 May 7, 2021
cff2286
fix distribution
wing328 May 7, 2021
a0c3db1
Merge branch '5.2.x'
wing328 May 7, 2021
85c43e7
fix incorrect date in the readme
wing328 May 10, 2021
1961c66
upgrade dart generator dependencies (#9392)
Adi1231234 May 10, 2021
a98cb97
[Javascript-Flowtyped] Handle joining uniqueItems in api template (#9…
kkellyy May 10, 2021
ae2423e
[Bash] Fix matching of header parameters (#9370)
devnev May 10, 2021
1751aa7
[crystal][client] some fix and minor improvement (#9416)
YusukeHosonuma May 10, 2021
4bb5c8a
better code format, update samples (#9438)
wing328 May 10, 2021
808c0b0
feat: add access to webclient and webclientBuilder (#9329)
UnleashSpirit May 10, 2021
85ff15a
update samples
wing328 May 10, 2021
a63912e
add --allow-different-user (#9439)
wing328 May 10, 2021
3173e0b
[kotlin][client] improve docs (#9393)
4brunu May 10, 2021
686b211
[BUG] [typescript] Duplicate parameter's names (rename options to _op…
ksvirkou-hubspot May 10, 2021
c966b5f
[python] readonly constructors (#9409)
gbmarc1 May 11, 2021
456023b
Update erlang-server dependencies (#9414)
wing328 May 12, 2021
c4c15ce
[kotlin][client] add sample for parcelizeModels (#9394)
4brunu May 12, 2021
be06541
[scala-sttp] Compilation failed when URI parameter name is not camelC…
softdevca May 12, 2021
f9cd80d
[scala-sttp] Bump minor versions of libraries, SBT and Scala (#9356)
softdevca May 12, 2021
44efb7a
[python][flask] specify flask version 1.1.2 (#9471)
YusukeHosonuma May 13, 2021
ecedd28
better code format (#9463)
wing328 May 13, 2021
e6a10ae
[swift5][client] add option to generate or not the model additional p…
4brunu May 15, 2021
5ea31b5
[crystal] Update crystal version 1.0.0 (from 0.35.1) (#9477)
YusukeHosonuma May 15, 2021
f7b79e9
Add @lucamazzanti to the C# technical committee (#9486)
wing328 May 15, 2021
2f70e6a
Add a link to powershell devops conf presentation (#9487)
wing328 May 15, 2021
2342396
reduce travis ci job runtime (#9491)
wing328 May 15, 2021
97ddcc2
Add support for Boolean in R client generator (#9469)
sneumann May 15, 2021
2f6bfb0
Update plugins.md (#9499)
amalgta May 17, 2021
69e8e07
Update ApiClient.mustache (#9492)
quarantam May 17, 2021
0846792
update samples
wing328 May 17, 2021
477926f
[crystal][client] Support authorization (#9488)
YusukeHosonuma May 17, 2021
c4f7091
partially revert 9404: avoid empty string enum value (#9501)
wing328 May 17, 2021
1c73324
fix api key (#9476)
ksvirkou-hubspot May 17, 2021
e1ef7d4
add OAuth2 to typescript template (#9466)
ksvirkou-hubspot May 17, 2021
fb3aed6
Fixes python test_fake_api tests (#9483)
spacether May 18, 2021
93166dd
fix: properly mark 'deprecated' routes in typescript-axios template #…
triforcely May 18, 2021
55b95bc
Fix CircleCI failures (#9503)
kuhnroyal May 18, 2021
9e4afb0
[C++] Rename Qt5 to Qt (#9490)
wing328 May 18, 2021
6b5794d
Fix bean validation for type Optional (#8708)
MelleD May 18, 2021
f48311d
[swift5][client] make AnyCodable optional (#9479)
4brunu May 18, 2021
0a34839
Add hashableModels to additional properties (#9495)
maoyama May 20, 2021
1ff436a
[REQ] [kotlin-client] Add uriAdapter for moshiBuilder (#9494)
chigichan24 May 20, 2021
d1b8a3f
[Kotlin] [#8809] Allow optional header parameters with Kotlin and ret…
shanselm-ergon May 20, 2021
3388121
[crystal][client] support configure method with block (#9506)
YusukeHosonuma May 21, 2021
4948ce7
update samples
wing328 May 21, 2021
ab6d661
[php-mezzio-ph] PHP 8 support (#9445)
May 21, 2021
071dc34
fix typescript node due to @types/bluebird 3.5.35 (#9533)
wing328 May 21, 2021
b8c5a64
[dart][ci] Move Dart samples from CircleCI to Github actions (#9515)
kuhnroyal May 21, 2021
2c4e79f
[csharp][httpclient] Introduce FileParameter as an abstraction (#9426)
Blackclaws May 21, 2021
696bcb3
[csharp][httpclient] Remove noncompliant post behaviour (#9427)
Blackclaws May 21, 2021
9eb9c30
[dart][dart-dio] Fix gitignore comment style (#9554)
CaptainIRS May 23, 2021
b1cba96
Revert "[Java][Spring] Fix for #8659 - Different in-parameter types g…
agilob May 23, 2021
7c152da
fix missing default values for string types (#9541)
JulianGmp May 23, 2021
1e92469
Decouple Slim4 codegen from deprecated Slim3 (#9208)
ybelenko May 24, 2021
48924eb
[dart] Improve content-type handling (#9517)
kuhnroyal May 24, 2021
be84c44
[dart][dart-dio-next] Add stacktraces to manual DioError instances (#…
kuhnroyal May 24, 2021
22db406
[ci] Move openapi-generator build/docs/samples to github actions (#9550)
kuhnroyal May 24, 2021
e360228
fix: dart2 mustache templates minor improvements (#9539)
alespour May 24, 2021
4e48dae
New generator | Arduino cpp (#9489)
AndersSpringborg May 24, 2021
6c40192
[swift5] Add support for oneOfs (#8714)
allezxandre May 24, 2021
ae430a8
[cpp][tiny] rename generator, update samples (#9560)
wing328 May 25, 2021
ab11acd
[dart][dart-dio-next] Improve support for file uploads (#9542)
kuhnroyal May 25, 2021
e09409f
Handle Deserialization Asynchronously (#9424)
Blackclaws May 25, 2021
ae03502
[swift5] Map file and binary to Data (#9419)
aymanbagabas May 26, 2021
8742228
add Aalborg university (#9588)
AndersSpringborg May 26, 2021
a1f539c
add Aalborg University to readme.md, reduce image size
wing328 May 26, 2021
163d13e
[kotlin][client] fix Android crash on API level 25 and bellow (#9578)
4brunu May 26, 2021
b204141
Change logo to English (#9591)
AndersSpringborg May 26, 2021
8134362
[cpp-ue4] Added public methods to process enums in string form (#9569)
Kahncode May 26, 2021
6e6b847
Adds isShort + isUnboundedInteger to IJsonSchemaValidationProperties …
spacether May 26, 2021
b5843f4
[swift5] update docs (#9587)
4brunu May 27, 2021
a61db6e
[swift5][client] fix binary response (#9595)
4brunu May 27, 2021
4f1d8f4
- added localVar prefix to the contentType variable defined in the ap…
desmese May 27, 2021
32d5900
update samples, docs
wing328 May 27, 2021
62a52bf
Upgrade Virtualan version with 2.2.1 -> Open API Mock service (#9598)
elans3 May 27, 2021
6edbc91
[dart][dart-dio] Update docs for dart-dio-next (#9584)
kuhnroyal May 27, 2021
5227e06
[C]: Fix enum values (#9537)
zhemant May 27, 2021
670c588
update samples
wing328 May 27, 2021
73b34ad
[cpp-restsdk] Update json double/float parse. (#9577)
adameste May 28, 2021
12c34d4
New generator: WSDL (#9545)
adessoDpd May 28, 2021
28c3e1d
update samples, docs
wing328 May 28, 2021
763f65f
[Wsdl] minor improvements, bug fixes (#9613)
wing328 May 28, 2021
1b6fd2d
[Kotlin][retrofit2] replace okhttpclient with callfactory (#9451)
shanselm-ergon May 28, 2021
f7b93eb
Update fake API to contain sample with binary body (#9610)
kuhnroyal May 29, 2021
dee2840
[swift5][client] improve docs for Data (#9605)
4brunu May 30, 2021
0da4099
New python-fastapi generator (#9611)
krjakbrjak May 30, 2021
afd65b3
Update query parameter sample to include pipe delimiter (#9590)
kuhnroyal May 30, 2021
88f279e
[ci] Build kotlin samples via github (#9609)
kuhnroyal May 31, 2021
c4df343
[Swift5] Add useClasses cli option (#9608)
aymanbagabas May 31, 2021
32a0450
[ python-fastapi] minor improvements (#9622)
wing328 May 31, 2021
173a349
Kotlin: Fix kotlinx_serialization code generation (#9576)
saschpe May 31, 2021
6cf4843
[swift5][client] update dependencies (#9633)
4brunu Jun 1, 2021
463ae10
[kotlin][client] update dependencies (#9629)
4brunu Jun 1, 2021
ae0cce0
add sponsor message to python fastapi (#9637)
wing328 Jun 1, 2021
9bce716
Swift5 namespace changes (#9624)
aymanbagabas Jun 1, 2021
0f51662
[kotlin][client] small improvements (#9640)
4brunu Jun 2, 2021
b9e7595
Add nullable annotation support to AspNetCoreServer (#9620)
janssen92 Jun 2, 2021
7bb7c72
Adding usePythonSrcRootInImports logic to AbstractPythonConnexionServ…
tray2100 Jun 2, 2021
3c866fb
Fix python generation when custom files and templates are specified (…
shylasrinivas Jun 2, 2021
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.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
- ~/.bundle
- ~/.go_workspace
- ~/.gradle
- ~/.pub-cache
- ~/.cache/bower
- ".git"
- ~/.stack
Expand Down
19 changes: 19 additions & 0 deletions .github/actions/run-samples/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Run samples'
description: 'Runs sample integration test profile with Maven'
inputs:
name:
description: 'The Maven profile name'
required: true
goal:
description: 'Maven goal'
required: false
default: 'verify'
args:
description: 'Additional maven arguments'
required: false
default: ''
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
9 changes: 5 additions & 4 deletions .github/workflows/check-supported-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ jobs:
uses: actions/checkout@v2

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

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

- uses: actions/cache@v2.1.4
- uses: actions/cache@v2.1.5
with:
path: |
~/.gradle/caches
Expand All @@ -49,7 +50,7 @@ jobs:
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@v2.2.2
uses: actions/upload-artifact@v2.2.3
if: matrix.java == '8' && matrix.os == 'ubuntu-latest'
with:
name: artifact
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/openapi-generator-test-results.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: OpenAPI Generator Test Report

on:
workflow_run:
workflows: ['OpenAPI Generator']
types:
- completed

# separate workflow required due to https://github.com/dorny/test-reporter#recommended-setup-for-public-repositories
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: surefire-test-results
name: JUnit Test results
path: '**/surefire-reports/TEST-*.xml'
reporter: java-junit
214 changes: 214 additions & 0 deletions .github/workflows/openapi-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
name: OpenAPI Generator

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

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache maven dependencies
uses: actions/cache@v2
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: Run maven
run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- run: ls -la modules/openapi-generator-cli/target
- name: Upload openapi-generator-cli.jar artifact
uses: actions/upload-artifact@v2
with:
name: openapi-generator-cli.jar
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
retention-days: 1

test:
name: Unit tests
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache maven dependencies
uses: actions/cache@v2
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: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- name: Publish unit test reports
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: surefire-test-results
path: '**/surefire-reports/TEST-*.xml'

documentation:
name: Docs up-to-date
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Download openapi-generator-cli.jar artifact
uses: actions/download-artifact@v2
with:
name: openapi-generator-cli.jar
path: modules/openapi-generator-cli/target
- name: Generate docs
run: |
bash bin/meta-codegen.sh
bash bin/utils/export_docs_generators.sh
bash bin/utils/copy-to-website.sh
bash bin/utils/export_generators_readme.sh
- name: Verify git status
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
echo "UNCOMMITTED CHANGES ERROR"
echo "There are uncommitted changes in working tree after execution of 'bin/ensure-up-to-date'"
echo "Perform git diff"
git --no-pager diff
echo "Perform git status"
git status
echo -e "\nThis script runs in pull requests against the anticipated merge commit (as if the PR was merged now)."
echo "When you see unexpected files here, it likely means that there are newer commits in master that you need to "
echo -e "rebase or merge into your branch.\n"
echo "Please run 'bin/utils/ensure-up-to-date' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
exit 1
fi

samples:
name: Samples up-to-date
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Download openapi-generator-cli.jar artifact
uses: actions/download-artifact@v2
with:
name: openapi-generator-cli.jar
path: modules/openapi-generator-cli/target
- name: Generate samples
run: bash bin/generate-samples.sh
- name: Verify git status
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
echo "UNCOMMITTED CHANGES ERROR"
echo "There are uncommitted changes in working tree after execution of 'bin/generate-samples.sh'"
echo "Perform git diff"
git --no-pager diff
echo "Perform git status"
git status
echo -e "\nThis script runs in pull requests against the anticipated merge commit (as if the PR was merged now)."
echo "When you see unexpected files here, it likely means that there are newer commits in master that you need to "
echo -e "rebase or merge into your branch.\n"
echo "Please run 'bin/generate-samples.sh' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
exit 1
fi

test-maven-plugin:
name: Maven plugin tests
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache maven dependencies
uses: actions/cache@v2
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 }}-test-maven-plugin-${{ env.cache-name }}-
${{ runner.os }}-test-maven-plugin-
- name: Run tests
run: |
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/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error

test-gradle-plugin:
name: Gradle plugin tests
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache maven dependencies
uses: actions/cache@v2
env:
cache-name: cache-maven-repository
with:
path: |
~/.m2/repository
~/.gradle
!~/.gradle/caches/modules-2/modules-2.lock
!~/.gradle/caches/*/plugin-resolution/
!~/.m2/repository/org/openapitools/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
${{ runner.os }}-test-gradle-plugin-
- name: Run tests
run: |
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk)
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
78 changes: 78 additions & 0 deletions .github/workflows/samples-dart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Samples Dart

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

jobs:
tests-dart-2-10:
name: Tests Dart 2.10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 8
- name: Cache maven dependencies
uses: actions/cache@v2
env:
cache-name: maven-repository
with:
path: |
~/.m2/repository
~/.gradle
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Cache test dependencies
uses: actions/cache@v2
env:
cache-name: pub-cache
with:
path: $PUB_CACHE
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.10.5
- name: Run tests
uses: ./.github/actions/run-samples
with:
name: samples.dart-2.10

tests-dart-2-13:
name: Tests Dart 2.13
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 8
- name: Cache maven dependencies
uses: actions/cache@v2
env:
cache-name: maven-repository
with:
path: |
~/.m2/repository
~/.gradle
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Cache test dependencies
uses: actions/cache@v2
env:
cache-name: pub-cache
with:
path: $PUB_CACHE
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.13.0
- name: Run tests
uses: ./.github/actions/run-samples
with:
name: samples.dart-2.13
Loading