Skip to content

Commit ab48454

Browse files
committed
Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator into spring_fix_4245
� Conflicts: � modules/openapi-generator/src/main/resources/Java/libraries/vertx/pom.mustache � samples/client/petstore/java/retrofit2-play24/pom.xml � samples/client/petstore/java/retrofit2-play25/pom.xml � samples/client/petstore/java/retrofit2-play26/pom.xml � samples/client/petstore/java/vertx/pom.xml
2 parents de2af1e + 68a291e commit ab48454

File tree

2,077 files changed

+83142
-24387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,077 files changed

+83142
-24387
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ packages/
3030
.vagrant/
3131
.vscode/
3232
**/.vs
33-
bin
3433
.factorypath
3534

3635
.settings

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ before_cache:
1111
- rm -fr $HOME/.m2/repository/org/openapitools/
1212

1313
cache:
14+
yarn: true
1415
directories:
1516
- $HOME/.m2
1617
- $HOME/.ivy2
@@ -56,6 +57,8 @@ addons:
5657
- petstore.swagger.io
5758

5859
before_install:
60+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
61+
- export PATH="$HOME/.yarn/bin:$PATH"
5962
# install rust
6063
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
6164
# required when sudo: required for the Ruby petstore tests
@@ -108,7 +111,7 @@ before_install:
108111
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
109112
gpg --check-trustdb ;
110113
fi;
111-
- pushd .; cd website; npm install; popd
114+
- pushd .; cd website; yarn install; popd
112115

113116
install:
114117
# Add Godeps dependencies to GOPATH and PATH
@@ -184,8 +187,8 @@ after_success:
184187
git config --global user.name "${GH_NAME}";
185188
git config --global user.email "${GH_EMAIL}";
186189
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
187-
npm install;
188-
GIT_USER="${GH_NAME}" npm run-script publish-gh-pages;
190+
yarn install;
191+
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
189192
fi;
190193

191194
env:

CI/.drone.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ steps:
1818
image: haskell:8.6.5
1919
commands:
2020
- (cd samples/client/petstore/haskell-http-client/ && stack --install-ghc --no-haddock-deps haddock --fast && stack test --fast)
21+
# below dart tests moved to circle ci
2122
# test Dart 2.x petstore client
22-
- name: dart2x-test
23-
image: google/dart
24-
commands:
25-
- (cd samples/client/petstore/dart-jaguar/openapi && pub get && pub run build_runner build --delete-conflicting-outputs)
26-
- (cd samples/client/petstore/dart-jaguar/flutter_petstore/openapi && pub get && pub run build_runner build --delete-conflicting-outputs)
27-
- (cd samples/client/petstore/dart2/petstore && pub get && pub run test)
23+
#- name: dart2x-test
24+
# image: google/dart
25+
# commands:
26+
# - (cd samples/client/petstore/dart-jaguar/openapi && pub get && pub run build_runner build --delete-conflicting-outputs)
27+
# - (cd samples/client/petstore/dart-jaguar/flutter_petstore/openapi && pub get && pub run build_runner build --delete-conflicting-outputs)
28+
# - (cd samples/client/petstore/dart2/petstore && pub get && pub run test)
2829
# test Java 11 HTTP client
2930
- name: java11-test
3031
image: openjdk:11.0

CI/circle_parallel.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set -e
99

1010
if [ "$NODE_INDEX" = "1" ]; then
1111
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
12-
#cp CI/pom.xml.circleci pom.xml
1312
java -version
13+
1414
mvn --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
1515
mvn --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
1616

@@ -46,13 +46,23 @@ elif [ "$NODE_INDEX" = "2" ]; then
4646
# install curl
4747
sudo apt-get -y build-dep libcurl4-gnutls-dev
4848
sudo apt-get -y install libcurl4-gnutls-dev
49+
4950
# run integration tests
5051
mvn --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
5152
else
5253
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
5354
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
5455
java -version
55-
#cp CI/pom.xml.circleci.java7 pom.xml
56+
57+
# install dart2
58+
sudo apt-get update
59+
sudo apt-get install apt-transport-https
60+
sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
61+
sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
62+
sudo apt-get update
63+
sudo apt-get install dart
64+
export PATH="$PATH:/usr/lib/dart/bin"
65+
5666
mvn --quiet verify -Psamples.circleci.jdk7 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
5767
fi
5868

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,19 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
5252
[<img src="https://openapi-generator.tech/img/companies/docspring.png" width="128" height="128">](https://docspring.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
5353

5454

55-
#### Thank you GoDaddy for sponsoring the domain names and Linode for sponsoring the VPS
55+
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS and Checkly for sponsoring the API monitoring
5656

5757
[<img src="https://openapi-generator.tech/img/companies/godaddy.png" width="150">](https://www.godaddy.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
5858
[![Linode](https://www.linode.com/media/images/logos/standard/light/linode-logo_standard_light_small.png)](https://www.linode.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
59+
[<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRAhEYadUyZYzGUotZiSdXkVMqqLGuohyixLl4eUpUV6pAbUULL" width="150">](https://checklyhq.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
5960

6061

6162
## Overview
6263
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:
6364

6465
| | Languages/Frameworks |
6566
|-|-|
66-
**API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.0, .NET Core 2.0), **C++** (cpp-restsdk, Qt5, Tizen), **Clojure**, **Dart (1.x, 2.x)**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (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), **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 8.x), Aurelia, Axios, Fetch, Inversify, jQuery, Node, Rxjs)
67+
**API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.0, .NET Core 2.0), **C++** (cpp-restsdk, Qt5, Tizen), **Clojure**, **Dart (1.x, 2.x)**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (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), **k6**, **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 8.x), Aurelia, Axios, Fetch, Inversify, jQuery, Node, Rxjs)
6768
**Server stubs** | **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin), **Haskell** (Servant), **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/)), **Kotlin** (Spring Boot, Ktor, Vertx), **PHP** (Laravel, Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra)
6869
**API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**
6970
**Configuration files** | [**Apache2**](https://httpd.apache.org/)
@@ -565,6 +566,7 @@ Here is a list of community-conitributed IDE plug-ins that integrate with OpenAP
565566
Here are some companies/projects (alphabetical order) using OpenAPI Generator in production. To add your company/project to the list, please visit [README.md](README.md) and click on the icon to edit the page.
566567

567568
- [Adaptant Solutions AG](https://www.adaptant.io/)
569+
- [Agoda](https://www.agoda.com/)
568570
- [Angular.Schule](https://angular.schule/)
569571
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
570572
- [ASKUL](https://www.askul.co.jp)
@@ -601,11 +603,13 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
601603
- [Here](https://developer.here.com/)
602604
- [IBM](https://www.ibm.com/)
603605
- [JustStar](https://www.juststarinfo.com)
606+
- [k6.io](https://k6.io/)
604607
- [Klarna](https://www.klarna.com/)
605608
- [Kronsoft Development](https://www.kronsoft.ro/home/)
606609
- [Kubernetes](https://kubernetes.io)
607610
- [Linode](https://www.linode.com/)
608611
- [Logicdrop](https://www.logicdrop.com)
612+
- [MailSlurp](https://www.mailslurp.com)
609613
- [Médiavision](https://www.mediavision.fr/)
610614
- [Metaswitch](https://www.metaswitch.com/)
611615
- [Myworkout](https://myworkout.com)
@@ -732,6 +736,14 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
732736
- 2020-01-30 - [OpenAPI Generatorへのコントリビュート](https://www.yutaka0m.work/entry/2020/01/30/163905) by [yutaka0m](https://github.com/yutaka0m)
733737
- 2020-02-01 - [Using OpenAPI to Maximise Your Pulp 3 Experience](https://fosdem.org/2020/schedule/event/openapi/) by [Dennis Kliban](https://github.com/dkliban/) at [FOSDEM](https://fosdem.org/)
734738
- 2020-02-07 - [Why you should use OpenAPI for your API design](https://www.youtube.com/watch?v=zhb7vUApLW8&t=927s) by [Nick Van Hoof](https://apiconference.net/speaker/nick-van-hoof/) at [API Conference](https://apiconference.net/)
739+
- 2020-02-17 - [Rubynetes: using OpenAPI to validate Kubernetes configs](https://www.brightbox.com/blog/2020/02/17/using-openapi-to-validate-kubernetes-configs/) by Neil Wilson at [Brightbox](https://www.brightbox.com/)
740+
- 2020-02-20 - [Building SDKs for the future](https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6) by [Sid Maestre (Xero)](https://twitter.com/sidneyallen)
741+
- 2020-02-27 - [Nuxt利用プロダクトでIE11と仲良くするためのE2E](https://tech.medpeer.co.jp/entry/e2e-ie11) at [Medpeer.co.jp Tech Blog](https://tech.medpeer.co.jp/)
742+
- 2020-02-29 - [Providing Support to IoT Devices Deployed in Disconnected Rural Environment (Conference paper)](https://link.springer.com/chapter/10.1007/978-3-030-41494-8_14) by Sergio Laso, Daniel Flores-Martín, Juan Luis HerreraCarlos, CanalJuan Manuel, MurilloJavier Berrocal
743+
- 2020-03-02 - [How To Generate Angular & Spring Code From OpenAPI Specification](https://www.mokkapps.de/blog/how-to-generate-angular-and-spring-code-from-open-api-specification/) by [Michael Hoffmann](https://www.mokkapps.de/)
744+
- 2020-03-02 - [OpenAPI Generator + TypeScript で始める自動生成の型に守られた豊かなクライアント生活](https://gift-tech.co.jp/articles/openapi-generator-typescript) by [五百蔵 直樹](https://gift-tech.co.jp/members/naokiioroi) at [GiFT株式会社
745+
](https://gift-tech.co.jp/)
746+
735747

736748
## [6 - About Us](#table-of-contents)
737749

@@ -809,6 +821,7 @@ Here is a list of template creators:
809821
* Rust (rust-server): @metaswitch
810822
* Scala (scalaz & http4s): @tbrown1979
811823
* Scala (Akka): @cchafer
824+
* Scala (sttp): @chameleon82
812825
* Swift: @tkqubo
813826
* Swift 3: @hexelon
814827
* Swift 4: @ehyche
@@ -869,6 +882,7 @@ Here is a list of template creators:
869882
* Confluence Wiki: @jhitchcock
870883
* Configuration
871884
* Apache2: @stkrwork
885+
* k6: @mostafa
872886
* Schema
873887
* Avro: @sgadouar
874888
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
@@ -941,7 +955,7 @@ If you want to join the committee, please kindly apply by sending an email to te
941955
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
942956
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
943957
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) @richardwhiuk (2019/07) |
944-
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03) |
958+
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03) |
945959
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
946960
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) |
947961

bin/k6-petstore.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=`ls -ld "$SCRIPT"`
8+
link=`expr "$ls" : '.*-> \(.*\)$'`
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=`dirname "$SCRIPT"`/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=`dirname "$SCRIPT"`/..
18+
APP_DIR=`cd "${APP_DIR}"; pwd`
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn -B clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate -g k6 -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o samples/client/petstore/k6 $@"
31+
32+
java $JAVA_OPTS -jar $executable $ags

bin/kotlin-client-all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

33
./bin/kotlin-client-gson.sh
4+
./bin/kotlin-client-jackson.sh
45
./bin/kotlin-client-moshi-codegen.sh
56
./bin/kotlin-client-nonpublic.sh
67
./bin/kotlin-client-okhttp3.sh

bin/kotlin-client-jackson.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=$(ls -ld "$SCRIPT")
8+
link=$(expr "$ls" : '.*-> \(.*\)$')
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=$(dirname "$SCRIPT")/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=$(dirname "$SCRIPT")/..
18+
APP_DIR=$(cd "${APP_DIR}"; pwd)
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn -B clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-jackson --additional-properties serializationLibrary=jackson --additional-properties enumPropertyNaming=UPPERCASE -o samples/client/petstore/kotlin-jackson $@"
31+
32+
java ${JAVA_OPTS} -jar ${executable} ${ags}

bin/openapi3/python-flask-petstore-python2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ then
2626
fi
2727

2828
# if you've executed sbt assembly previously it will use that instead.
29-
input=modules/openapi-generator/src/test/resources/3_0/petstore.yaml
29+
input=modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml
3030
out_folder=samples/openapi3/server/petstore/python-flask-python2
3131
resources=modules/openapi-generator/src/main/resources/python-flask
3232

bin/openapi3/python-flask-petstore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ then
2626
fi
2727

2828
# if you've executed sbt assembly previously it will use that instead.
29-
input=modules/openapi-generator/src/test/resources/3_0/petstore.yaml
29+
input=modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml
3030
out_folder=samples/openapi3/server/petstore/python-flask
3131
resources=modules/openapi-generator/src/main/resources/python-flask
3232

bin/openapi3/scala-sttp-petstore.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
SCRIPT="$0"
4+
echo "# START SCRIPT: $SCRIPT"
5+
6+
while [ -h "$SCRIPT" ] ; do
7+
ls=`ls -ld "$SCRIPT"`
8+
link=`expr "$ls" : '.*-> \(.*\)$'`
9+
if expr "$link" : '/.*' > /dev/null; then
10+
SCRIPT="$link"
11+
else
12+
SCRIPT=`dirname "$SCRIPT"`/"$link"
13+
fi
14+
done
15+
16+
if [ ! -d "${APP_DIR}" ]; then
17+
APP_DIR=`dirname "$SCRIPT"`/..
18+
APP_DIR=`cd "${APP_DIR}"; pwd`
19+
fi
20+
21+
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
22+
23+
if [ ! -f "$executable" ]
24+
then
25+
mvn clean package
26+
fi
27+
28+
# if you've executed sbt assembly previously it will use that instead.
29+
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30+
ags="generate --artifact-id 'scala-sttp-petstore' -t modules/openapi-generator/src/main/resources/scala-sttp -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-sttp -o samples/openapi3/client/petstore/scala-sttp $@"
31+
32+
java $JAVA_OPTS -jar $executable $ags
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
2+
3+
If Not Exist %executable% (
4+
mvn clean package
5+
)
6+
7+
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
8+
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples\openapi3\client\petstore\csharp-netcore\OpenAPIClientCore --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true,targetFramework=netcoreapp2.0
9+
10+
java %JAVA_OPTS% -jar %executable% %ags%
11+
12+
REM restore csproj file
13+
echo "restore csproject file: CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj"
14+
copy /b/v/y CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\openapi3\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
2+
3+
If Not Exist %executable% (
4+
mvn clean package
5+
)
6+
7+
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
8+
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples\openapi3\client\petstore\csharp-netcore\OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true
9+
10+
java %JAVA_OPTS% -jar %executable% %ags%
11+
12+
REM restore csproj file
13+
echo "restore csproject file: CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj"
14+
copy /b/v/y CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\openapi3\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\

bin/openapi3/windows/python-experimental-petstore.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ If Not Exist %executable% (
55
)
66

77
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
8-
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g python-experimental -o samples\openapi3\client\petstore\python-experimental --additional-properties packageName=petstore_api
8+
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml -g python-experimental -o samples\openapi3\client\petstore\python-experimental --additional-properties packageName=petstore_api
99

1010
java %JAVA_OPTS% -jar %executable% %ags%
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
2+
3+
If Not Exist %executable% (
4+
mvn clean package
5+
)
6+
7+
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
8+
set ags=generate --artifact-id "scala-sttp-petstore" -t modules\openapi-generator\src\main\resources\scala-sttp -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g scala-sttp -o samples\openapi3\client\petstore\scala-sttp
9+
10+
java %JAVA_OPTS% -jar %executable% %ags%

0 commit comments

Comments
 (0)