forked from loafle/openapi-generator-original
Compare commits
170 Commits
swift_null
...
v4.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34070bd151 | ||
|
|
d624b28c96 | ||
|
|
4958ad74e7 | ||
|
|
33f63d6163 | ||
|
|
2188e0feda | ||
|
|
ec3569e922 | ||
|
|
284c9dc6c5 | ||
|
|
73db23a2d7 | ||
|
|
3082eda27e | ||
|
|
eaca7b8d48 | ||
|
|
b1984f3c49 | ||
|
|
9c46973bcb | ||
|
|
6795434469 | ||
|
|
a2b37d67c0 | ||
|
|
c8465c40ff | ||
|
|
ae798d9433 | ||
|
|
5dcde3f855 | ||
|
|
28a87b0bde | ||
|
|
0ab273f6a6 | ||
|
|
c2df761772 | ||
|
|
2df7ce5012 | ||
|
|
4ac2738f0a | ||
|
|
73c55c11dd | ||
|
|
c0bc8b4934 | ||
|
|
e37d8bcb2e | ||
|
|
d92d84bb12 | ||
|
|
0f2272d9a4 | ||
|
|
4543c21030 | ||
|
|
13ee0a10ec | ||
|
|
2d2a266d12 | ||
|
|
288c69f2de | ||
|
|
8c276dbe60 | ||
|
|
5a7b471511 | ||
|
|
d5b09cff2a | ||
|
|
66be33a37b | ||
|
|
3144e0d576 | ||
|
|
2969f0764a | ||
|
|
d9416e35fa | ||
|
|
2da22dddf8 | ||
|
|
bf5db10837 | ||
|
|
7901ae2306 | ||
|
|
9cf186cfd8 | ||
|
|
c3666e9350 | ||
|
|
652b0f5bf6 | ||
|
|
84c6a7c1e7 | ||
|
|
e85f6c577e | ||
|
|
2bf708d938 | ||
|
|
5766fca98b | ||
|
|
b56a9d907c | ||
|
|
620aa4fd5e | ||
|
|
fbf3d593df | ||
|
|
3e880ae0ce | ||
|
|
a1ff5ab674 | ||
|
|
6e8515af7a | ||
|
|
5e564a51f7 | ||
|
|
73421f79e8 | ||
|
|
cf58a427b6 | ||
|
|
00c6e0a64b | ||
|
|
9fe2f4d3ef | ||
|
|
5d7bb17cc6 | ||
|
|
a38527d8b6 | ||
|
|
c68389ef47 | ||
|
|
8e78b14e28 | ||
|
|
956029165b | ||
|
|
ebde14c0c4 | ||
|
|
fb570ef7d7 | ||
|
|
1052ebaced | ||
|
|
ea76a94001 | ||
|
|
90c7f53a1b | ||
|
|
ba04939c7a | ||
|
|
893f16ad3c | ||
|
|
fefa327531 | ||
|
|
d05bbf6ca7 | ||
|
|
f43c720b08 | ||
|
|
fd24088dda | ||
|
|
0abb910dbc | ||
|
|
dd64241f8f | ||
|
|
930edeadea | ||
|
|
1cf228f5f6 | ||
|
|
d75d089bc9 | ||
|
|
ab0b3d9795 | ||
|
|
be0fc7e49f | ||
|
|
5a222bb570 | ||
|
|
51cff82bf0 | ||
|
|
c2ad14ea02 | ||
|
|
3f3559020a | ||
|
|
f8d3b9826a | ||
|
|
b7eedda696 | ||
|
|
080991823a | ||
|
|
6af234f79a | ||
|
|
f901a84743 | ||
|
|
c32fa5d012 | ||
|
|
9eb3c4fa7a | ||
|
|
0e1ce6bb63 | ||
|
|
60d601ee26 | ||
|
|
f763b6dce3 | ||
|
|
7756bb5b74 | ||
|
|
d71b1cf49e | ||
|
|
095fa719b3 | ||
|
|
1786e75490 | ||
|
|
f195f8ff7a | ||
|
|
428102b5e3 | ||
|
|
3fbd59b95a | ||
|
|
9d606804be | ||
|
|
672a7e9c60 | ||
|
|
23727befa7 | ||
|
|
83fdc6e752 | ||
|
|
755a6f4445 | ||
|
|
756984adc9 | ||
|
|
dd08ea7a6b | ||
|
|
c1d5fe0c77 | ||
|
|
3693d60840 | ||
|
|
450153d4e0 | ||
|
|
5de0f01150 | ||
|
|
fead3eef76 | ||
|
|
dfabb1503a | ||
|
|
9c6b94c292 | ||
|
|
cb2bf4d2bf | ||
|
|
2cab048d41 | ||
|
|
5a9e5642cb | ||
|
|
c231675a05 | ||
|
|
ec4ac07dfe | ||
|
|
e6fcfdf184 | ||
|
|
07d145828f | ||
|
|
dee6de7778 | ||
|
|
7b794f0139 | ||
|
|
d09146d359 | ||
|
|
e2eea606fd | ||
|
|
7a22b14df2 | ||
|
|
10e42461f5 | ||
|
|
594446b8d5 | ||
|
|
3274592e29 | ||
|
|
3cd74f4a8d | ||
|
|
60a3746bb7 | ||
|
|
958d7e47a3 | ||
|
|
4d32e65c24 | ||
|
|
a13543e859 | ||
|
|
9f82755696 | ||
|
|
b69b8cdd31 | ||
|
|
3141e483ef | ||
|
|
ceb021cc54 | ||
|
|
661fb42a06 | ||
|
|
0d91be3a72 | ||
|
|
54d7e8c488 | ||
|
|
081383c886 | ||
|
|
e24030be52 | ||
|
|
8cc708011b | ||
|
|
e9a0a51b50 | ||
|
|
08613691e8 | ||
|
|
7a369d3b02 | ||
|
|
87c77076ef | ||
|
|
4e47426224 | ||
|
|
d8c3b4d342 | ||
|
|
bbfcd3bf64 | ||
|
|
cf38c56aa6 | ||
|
|
25596cf8f0 | ||
|
|
28e9cf5d3c | ||
|
|
682af7c4f3 | ||
|
|
c2833000f1 | ||
|
|
991e0bf821 | ||
|
|
0526ccef3a | ||
|
|
c5e0ecf57b | ||
|
|
5234139814 | ||
|
|
6082dd217d | ||
|
|
f96ed69c26 | ||
|
|
a979fd8e13 | ||
|
|
25e1f5e1c3 | ||
|
|
bf9f47c760 | ||
|
|
61abe6332b | ||
|
|
e0c389fa83 |
92
.github/.test/samples.json
vendored
92
.github/.test/samples.json
vendored
@@ -134,7 +134,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "csharp-refactor-petstore.sh",
|
||||
"input": "csharp-netcore-petstore.sh",
|
||||
"matches": [
|
||||
"Client: C-Sharp"
|
||||
]
|
||||
@@ -151,6 +151,12 @@
|
||||
"Client: Dart"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "dart-dio-petstore.sh",
|
||||
"matches": [
|
||||
"Client: Dart"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "dart-petstore.sh",
|
||||
"matches": [
|
||||
@@ -212,7 +218,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "finch-petstore-server.sh",
|
||||
"input": "scala-finch-petstore-server.sh",
|
||||
"matches": [
|
||||
"Server: Scala"
|
||||
]
|
||||
@@ -254,7 +260,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "graphql-server-petstore.sh",
|
||||
"input": "graphql-nodejs-express-server.sh",
|
||||
"matches": [
|
||||
"Server: GraphQL"
|
||||
]
|
||||
@@ -819,13 +825,13 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "python-flask-petstore-python2.sh",
|
||||
"input": "python-server-flask-petstore-python2.sh",
|
||||
"matches": [
|
||||
"Server: Python"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "python-flask-petstore.sh",
|
||||
"input": "python-server-flask-petstore.sh",
|
||||
"matches": [
|
||||
"Server: Python"
|
||||
]
|
||||
@@ -872,12 +878,6 @@
|
||||
"Client: Rust"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "rust-reqwest-petstore.sh",
|
||||
"matches": [
|
||||
"Client: Rust"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "rust-server-petstore.sh",
|
||||
"matches": [
|
||||
@@ -1305,6 +1305,76 @@
|
||||
"matches": [
|
||||
"Announcement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-angular] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-angularjs] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-aurelia] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-axios] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-fetch] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-inversify] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-jquery] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-node] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-rxjs] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "Should not auto-label for typescript outside of brackets.",
|
||||
"matches": []
|
||||
}
|
||||
]
|
||||
}
|
||||
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,11 +1,10 @@
|
||||
<!-- Enter details of the change here. Include additional tests that have been done, reference to the issue for tracking, etc. -->
|
||||
|
||||
<!-- Please check the completed items below -->
|
||||
### PR checklist
|
||||
|
||||
- [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md).
|
||||
- [ ] Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the change. (For instance, only need to run `./bin/{LANG}-petstore.sh`, `./bin/openapi3/{LANG}-petstore.sh` if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in `.\bin\windows\`. If contributing template-only or documentation-only changes which will change sample output, be sure to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) first.
|
||||
- [ ] Filed the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`, `4.1.x`, `5.0.x`. Default: `master`.
|
||||
- [ ] Copied the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language.
|
||||
|
||||
### Description of the PR
|
||||
|
||||
(details of the change, additional tests that have been done, reference to the issue for tracking, etc)
|
||||
|
||||
- [ ] If contributing template-only or documentation-only changes which will change sample output, [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) before.
|
||||
- [ ] Run the shell script(s) under `./bin/` (or Windows batch scripts under`.\bin\windows`) to update Petstore samples related to your fix. This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run `./bin/{LANG}-petstore.sh`, `./bin/openapi3/{LANG}-petstore.sh` if updating the code or mustache templates for a language (`{LANG}`) (e.g. php, ruby, python, etc).
|
||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`, `4.1.x`, `5.0.x`. Default: `master`.
|
||||
- [ ] Copy the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language.
|
||||
|
||||
1
.github/auto-labeler.yml
vendored
1
.github/auto-labeler.yml
vendored
@@ -138,6 +138,7 @@ labels:
|
||||
- '\s*?-[gl] swift[34]+\s*?'
|
||||
- '\s*?-[gl] swift2-deprecated\s*?'
|
||||
'Client: TypeScript':
|
||||
- '\s*?\[typescript\]\s*?'
|
||||
- '\s*?\[typescript-[\-a-z]+\]\s*?'
|
||||
- '\s*?-[gl] typescript-[\-a-z]+\s*?'
|
||||
# 'Client: VB/VB.net': # NOTE: Not yet implemented
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -188,6 +188,7 @@ samples/openapi3/client/petstore/kotlin/build
|
||||
samples/server/petstore/kotlin-server/ktor/build
|
||||
samples/server/petstore/kotlin-springboot/build
|
||||
samples/client/petstore/kotlin-multiplatform/build/
|
||||
samples/client/petstore/kotlin-okhttp3/build/
|
||||
\?
|
||||
|
||||
# haskell
|
||||
|
||||
22
.travis.yml
22
.travis.yml
@@ -71,10 +71,10 @@ before_install:
|
||||
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
||||
- docker ps -a
|
||||
# Add bats test framework and cURL for Bash script integration tests
|
||||
#- sudo add-apt-repository ppa:duggan/bats --yes
|
||||
#- sudo apt-get update -qq
|
||||
#- sudo apt-get install -qq bats
|
||||
#- sudo apt-get install -qq curl
|
||||
- sudo add-apt-repository ppa:duggan/bats --yes
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -qq bats
|
||||
- sudo apt-get install -qq curl
|
||||
# install dart
|
||||
#- sudo apt-get update
|
||||
#- sudo apt-get install apt-transport-https
|
||||
@@ -94,15 +94,11 @@ before_install:
|
||||
# - Rely on `kerl` for [pre-compiled versions available](https://docs.travis-ci.com/user/languages/erlang#Choosing-OTP-releases-to-test-against). Rely on installation path chosen by [`travis-erlang-builder`](https://github.com/travis-ci/travis-erlang-builder/blob/e6d016b1a91ca7ecac5a5a46395bde917ea13d36/bin/compile#L18).
|
||||
# - . ~/otp/18.2.1/activate && erl -version
|
||||
#- curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
|
||||
# install valgrind for C++ memory test
|
||||
- sudo apt-get install valgrind
|
||||
# install Qt 5.10
|
||||
- sudo add-apt-repository --yes ppa:beineri/opt-qt-5.10.1-trusty
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install qt510-meta-minimal
|
||||
- source /opt/qt510/bin/qt510-env.sh
|
||||
- qmake -v
|
||||
|
||||
# install C++ tools
|
||||
- sudo apt install -y --no-install-recommends valgrind cmake build-essential
|
||||
# install Qt5
|
||||
- sudo apt install -y --no-install-recommends qt5-default
|
||||
- cmake --version
|
||||
# show host table to confirm petstore.swagger.io is mapped to localhost
|
||||
- cat /etc/hosts
|
||||
# show java version
|
||||
|
||||
@@ -21,6 +21,13 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
||||
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
||||
java -version
|
||||
|
||||
# install elm-format
|
||||
npm install -g elm-format
|
||||
|
||||
# clear any changes to the samples
|
||||
git checkout -- .
|
||||
|
||||
# look for outdated samples
|
||||
./bin/utils/ensure-up-to-date
|
||||
fi
|
||||
#elif [ "$NODE_INDEX" = "3" ]; then
|
||||
|
||||
@@ -15,33 +15,57 @@ public class ApiKeyAuthTest {
|
||||
public void testApplyToParamsInQuery() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||
auth.setApiKey("my-api-key");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
assertEquals(1, queryParams.size());
|
||||
for (Pair queryParam : queryParams) {
|
||||
assertEquals("my-api-key", queryParam.getValue());
|
||||
}
|
||||
|
||||
// no changes to header parameters
|
||||
// no changes to header or cookie parameters
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInHeaderWithPrefix() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
|
||||
assertEquals(1, headerParams.size());
|
||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInCookieWithPrefix() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query or header parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
|
||||
assertEquals(1, cookieParams.size());
|
||||
assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,13 +22,15 @@ public class HttpBasicAuthTest {
|
||||
public void testApplyToParams() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword("my-password");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(1, headerParams.size());
|
||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||
@@ -36,7 +38,7 @@ public class HttpBasicAuthTest {
|
||||
|
||||
// null username should be treated as empty string
|
||||
auth.setUsername(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||
assertEquals(expected, headerParams.get("Authorization"));
|
||||
@@ -44,7 +46,7 @@ public class HttpBasicAuthTest {
|
||||
// null password should be treated as empty string
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||
expected = "Basic bXktdXNlcm5hbWU6";
|
||||
assertEquals(expected, headerParams.get("Authorization"));
|
||||
|
||||
@@ -15,33 +15,55 @@ public class ApiKeyAuthTest {
|
||||
public void testApplyToParamsInQuery() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||
auth.setApiKey("my-api-key");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
assertEquals(1, queryParams.size());
|
||||
for (Pair queryParam : queryParams) {
|
||||
assertEquals("my-api-key", queryParam.getValue());
|
||||
}
|
||||
|
||||
// no changes to header parameters
|
||||
// no changes to header or cookie parameters
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInHeaderWithPrefix() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(1, headerParams.size());
|
||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInCookieWithPrefix() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query or header parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(1, cookieParams.size());
|
||||
assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,10 +22,11 @@ public class HttpBasicAuthTest {
|
||||
public void testApplyToParams() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword("my-password");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
@@ -36,7 +37,7 @@ public class HttpBasicAuthTest {
|
||||
|
||||
// null username should be treated as empty string
|
||||
auth.setUsername(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||
assertEquals(expected, headerParams.get("Authorization"));
|
||||
@@ -44,7 +45,7 @@ public class HttpBasicAuthTest {
|
||||
// null password should be treated as empty string
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||
expected = "Basic bXktdXNlcm5hbWU6";
|
||||
assertEquals(expected, headerParams.get("Authorization"));
|
||||
|
||||
@@ -61,6 +61,7 @@ public class PetApiTest {
|
||||
ApiClient oldClient = api.getApiClient();
|
||||
|
||||
ApiClient newClient = new ApiClient();
|
||||
newClient.setVerifyingSsl(true);
|
||||
newClient.setBasePath("http://example.com");
|
||||
newClient.setDebugging(true);
|
||||
|
||||
|
||||
@@ -15,46 +15,52 @@ public class ApiKeyAuthTest {
|
||||
public void testApplyToParamsInQuery() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||
auth.setApiKey("my-api-key");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
assertEquals(1, queryParams.size());
|
||||
for (Pair queryParam : queryParams) {
|
||||
assertEquals("my-api-key", queryParam.getValue());
|
||||
}
|
||||
|
||||
// no changes to header parameters
|
||||
// no changes to header or cookie parameters
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInQueryWithNullValue() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||
auth.setApiKey(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInHeaderWithPrefix() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(1, headerParams.size());
|
||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
||||
}
|
||||
@@ -63,14 +69,51 @@ public class ApiKeyAuthTest {
|
||||
public void testApplyToParamsInHeaderWithNullValue() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||
auth.setApiKey(null);
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInCookieWithPrefix() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query or header parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(1, cookieParams.size());
|
||||
assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInCookieWithNullValue() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN");
|
||||
auth.setApiKey(null);
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,13 +22,15 @@ public class HttpBasicAuthTest {
|
||||
public void testApplyToParams() {
|
||||
List<Pair> queryParams = new ArrayList<Pair>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
||||
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword("my-password");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(1, headerParams.size());
|
||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||
@@ -36,7 +38,7 @@ public class HttpBasicAuthTest {
|
||||
|
||||
// null username should be treated as empty string
|
||||
auth.setUsername(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||
assertEquals(expected, headerParams.get("Authorization"));
|
||||
@@ -44,7 +46,7 @@ public class HttpBasicAuthTest {
|
||||
// null password should be treated as empty string
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||
expected = "Basic bXktdXNlcm5hbWU6";
|
||||
assertEquals(expected, headerParams.get("Authorization"));
|
||||
@@ -54,7 +56,7 @@ public class HttpBasicAuthTest {
|
||||
headerParams = new HashMap<String, String>();
|
||||
auth.setUsername(null);
|
||||
auth.setPassword(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// no changes to parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
|
||||
@@ -17,31 +17,53 @@ public class ApiKeyAuthTest {
|
||||
public void testApplyToParamsInQuery() {
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
HttpHeaders headerParams = new HttpHeaders();
|
||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||
auth.setApiKey("my-api-key");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
assertEquals(1, queryParams.size());
|
||||
assertEquals("my-api-key", queryParams.get("api_key").get(0));
|
||||
|
||||
// no changes to header parameters
|
||||
// no changes to header or cookie parameters
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInHeaderWithPrefix() {
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
HttpHeaders headerParams = new HttpHeaders();
|
||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(1, headerParams.size());
|
||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN").get(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testApplyToParamsInCookieWithPrefix() {
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
HttpHeaders headerParams = new HttpHeaders();
|
||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
||||
|
||||
ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN");
|
||||
auth.setApiKey("my-api-token");
|
||||
auth.setApiKeyPrefix("Token");
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, headerParams.size());
|
||||
assertEquals(1, cookieParams.size());
|
||||
assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN").get(0));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,13 +24,15 @@ public class HttpBasicAuthTest {
|
||||
public void testApplyToParams() {
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
HttpHeaders headerParams = new HttpHeaders();
|
||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
||||
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword("my-password");
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
|
||||
// no changes to query parameters
|
||||
// no changes to query or cookie parameters
|
||||
assertEquals(0, queryParams.size());
|
||||
assertEquals(0, cookieParams.size());
|
||||
assertEquals(1, headerParams.size());
|
||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||
@@ -38,7 +40,7 @@ public class HttpBasicAuthTest {
|
||||
|
||||
// null username should be treated as empty string
|
||||
auth.setUsername(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||
assertEquals(expected, headerParams.get("Authorization").get(1));
|
||||
@@ -46,7 +48,7 @@ public class HttpBasicAuthTest {
|
||||
// null password should be treated as empty string
|
||||
auth.setUsername("my-username");
|
||||
auth.setPassword(null);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||
expected = "Basic bXktdXNlcm5hbWU6";
|
||||
assertEquals(expected, headerParams.get("Authorization").get(2));
|
||||
|
||||
@@ -85,7 +85,7 @@ For [Vendor Extensions](https://github.com/OAI/OpenAPI-Specification/blob/master
|
||||
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
||||
|
||||
To test the templates, please perform the following:
|
||||
- Update the Petstore sample by running the shell scripts under `bin` and `bin/openapi3` folder. For example, run `./bin/python-client-petstore.sh` and `./bin/openapi3/python-client-petstore.sh` to update the Python PetStore API client under [`samples/client/petstore/python`](https://github.com/openapitools/openapi-generator/tree/master/samples/client/petstore/python) and [`samples/openapi3/client/petstore/python`](https://github.com/openapitools/openapi-generator/tree/master/samples/openapi3/client/petstore/python). For Windows, the batch files can be found under `bin\windows` folder. (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI spec from time to time. If you've questions or concerns, please open a ticket to start a discussion)
|
||||
- Update the Petstore sample by running the shell scripts under `bin` and `bin/openapi3` folder. For example, run `./bin/python-petstore.sh` and `./bin/openapi3/python-petstore.sh` to update the Python PetStore API client under [`samples/client/petstore/python`](https://github.com/openapitools/openapi-generator/tree/master/samples/client/petstore/python) and [`samples/openapi3/client/petstore/python`](https://github.com/openapitools/openapi-generator/tree/master/samples/openapi3/client/petstore/python). For Windows, the batch files can be found under `bin\windows` folder. (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI spec from time to time. If you've questions or concerns, please open a ticket to start a discussion)
|
||||
- Run the tests in the sample folder using maven `mvn integration-test -rf :<artifactId>`, e.g. open a shell in `samples/client/petstore/python`, run `mvn integration-test -rf :PythonPetstoreClientTests`. The artifactId of the project can be found in the pom.xml file. (some languages may not contain unit testing for Petstore and we're looking for contribution from the community to implement those tests)
|
||||
- Finally, git commit the updated samples files: `git commit -a`
|
||||
(`git add -A` if added files with new test cases)
|
||||
|
||||
68
README.md
68
README.md
@@ -2,18 +2,12 @@
|
||||
|
||||
<div align="center">
|
||||
|
||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`4.1.3-SNAPSHOT`): [](https://travis-ci.org/OpenAPITools/openapi-generator)
|
||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`4.2.0-SNAPSHOT`): [](https://travis-ci.org/OpenAPITools/openapi-generator)
|
||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||
[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
|
||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
|
||||
[](https://cloud.drone.io/OpenAPITools/openapi-generator)
|
||||
|
||||
[`4.2.x`](https://github.com/OpenAPITools/openapi-generator/tree/4.2.x) branch: [](https://travis-ci.org/OpenAPITools/openapi-generator)
|
||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||
[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
|
||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
|
||||
[](https://cloud.drone.io/OpenAPITools/openapi-generator)
|
||||
|
||||
[`5.0.x`](https://github.com/OpenAPITools/openapi-generator/tree/5.0.x) branch: [](https://travis-ci.org/OpenAPITools/openapi-generator)
|
||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||
[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
|
||||
@@ -66,7 +60,7 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
||||
| | Languages/Frameworks |
|
||||
|-|-|
|
||||
**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), **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), **Typescript** (AngularJS, Angular (2.x - 8.x), Aurelia, Axios, Fetch, Inversify, jQuery, Node, Rxjs)
|
||||
**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)), **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)
|
||||
**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)
|
||||
**API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**
|
||||
**Configuration files** | [**Apache2**](https://httpd.apache.org/)
|
||||
**Others** | **GraphQL**, **JMeter**, **MySQL Schema**, **Protocol Buffer**
|
||||
@@ -90,6 +84,7 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
||||
- [3.2 - Workflow Integration](#32---workflow-integration-maven-gradle-github-cicd)
|
||||
- [3.3 - Online Generators](#33---online-openapi-generator)
|
||||
- [3.4 - License Information on Generated Code](#34---license-information-on-generated-code)
|
||||
- [3.5 - IDE Integration](#35---ide-integration)
|
||||
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator)
|
||||
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
|
||||
- [6 - About Us](#6---about-us)
|
||||
@@ -108,8 +103,7 @@ OpenAPI Generator Version | Release Date | Notes
|
||||
---------------------------- | ------------ | -----
|
||||
5.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/5.0.0-SNAPSHOT/)| 13.05.2020 | Major release with breaking changes (no fallback)
|
||||
4.2.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.2.0-SNAPSHOT/)| 09.10.2019 | Minor release (breaking changes with fallbacks)
|
||||
4.1.3 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.1.3-SNAPSHOT/)| 30.09.2019 | Patch release (bug fixes, enhancements)
|
||||
[4.1.2](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.1.2) (latest stable release) | 12.09.2019 | Patch release (bug fixes, enhancements)
|
||||
[4.1.3](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.1.3) (latest stable release) | 04.10.2019 | Patch release (bug fixes, enhancements)
|
||||
|
||||
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
||||
|
||||
@@ -165,16 +159,16 @@ See the different versions of the [openapi-generator-cli](https://mvnrepository.
|
||||
<!-- 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):
|
||||
|
||||
JAR location: `http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.1.3/openapi-generator-cli-4.1.3.jar`
|
||||
JAR location: `http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.2.0/openapi-generator-cli-4.2.0.jar`
|
||||
|
||||
For **Mac/Linux** users:
|
||||
```sh
|
||||
wget http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.1.3/openapi-generator-cli-4.1.3.jar -O openapi-generator-cli.jar
|
||||
wget http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.2.0/openapi-generator-cli-4.2.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.
|
||||
```
|
||||
Invoke-WebRequest -OutFile openapi-generator-cli.jar http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.1.3/openapi-generator-cli-4.1.3.jar
|
||||
Invoke-WebRequest -OutFile openapi-generator-cli.jar http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.2.0/openapi-generator-cli-4.2.0.jar
|
||||
```
|
||||
|
||||
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
||||
@@ -389,10 +383,10 @@ openapi-generator version
|
||||
```
|
||||
|
||||
<!-- RELEASE_VERSION -->
|
||||
Or install a particular OpenAPI Generator version (e.g. v4.1.3):
|
||||
Or install a particular OpenAPI Generator version (e.g. v4.2.0):
|
||||
|
||||
```sh
|
||||
npm install @openapitools/openapi-generator-cli@cli-4.1.3 -g
|
||||
npm install @openapitools/openapi-generator-cli@cli-4.2.0 -g
|
||||
```
|
||||
|
||||
Or install it as dev-dependency:
|
||||
@@ -416,7 +410,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/2_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
||||
|
||||
<!-- RELEASE_VERSION -->
|
||||
You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.1.3/openapi-generator-cli-4.1.3.jar)
|
||||
You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/4.2.0/openapi-generator-cli-4.2.0.jar)
|
||||
<!-- /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`
|
||||
@@ -544,48 +538,76 @@ The OpenAPI Generator project is intended as a benefit for users of the Open API
|
||||
* Generated code is intentionally _not_ subject to the parent project license
|
||||
|
||||
When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate.
|
||||
|
||||
### [3.5 - IDE Integration](#table-of-contents)
|
||||
|
||||
Here is a list of community-conitributed IDE plug-ins that integrate with OpenAPI Generator:
|
||||
|
||||
- Eclipse: [Codewind OpenAPI Tools for Eclipse](https://www.eclipse.org/codewind/open-api-tools-for-eclipse.html) by [IBM](https://www.ibm.com)
|
||||
- IntelliJ IDEA: [OpenAPI Generator](https://plugins.jetbrains.com/plugin/8433-openapi-generator) by [Jim Schubert](https://jimschubert.us/#/)
|
||||
- IntelliJ IDEA: [Senya Editor](https://plugins.jetbrains.com/plugin/10690-senya-editor) by [senya.io](https://senya.io)
|
||||
- [RepreZen API Studio](https://www.reprezen.com/)
|
||||
- Visual Studio: [REST API Client Code Generator](https://marketplace.visualstudio.com/items?itemName=ChristianResmaHelle.ApiClientCodeGenerator) by [Christian Resma Helle](https://christian-helle.blogspot.com/)
|
||||
- Visual Studio Code: [Codewind OpenAPI Tools](https://marketplace.visualstudio.com/items?itemName=IBM.codewind-openapi-tools) by [IBM](https://marketplace.visualstudio.com/publishers/IBM)
|
||||
|
||||
|
||||
## [4 - Companies/Projects using OpenAPI Generator](#table-of-contents)
|
||||
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.
|
||||
|
||||
- [Adaptant Solutions AG](https://www.adaptant.io/)
|
||||
- [Angular.Schule](https://angular.schule/)
|
||||
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
|
||||
- [ASKUL](https://www.askul.co.jp)
|
||||
- [Arduino](https://www.arduino.cc/)
|
||||
- [b<>com](https://b-com.com/en)
|
||||
- [Banzai Cloud](https://banzaicloud.com)
|
||||
- [BIMData.io](https://bimdata.io)
|
||||
- [Bithost GmbH](https://www.bithost.ch)
|
||||
- [Bosch Connected Industry](https://www.bosch-connected-industry.com)
|
||||
- [Boxever](https://www.boxever.com/)
|
||||
- [California State University, Northridge](https://www.csun.edu)
|
||||
- [CAM](https://www.cam-inc.co.jp/)
|
||||
- [Camptocamp](https://www.camptocamp.com/en)
|
||||
- [codecentric AG](https://www.codecentric.de/)
|
||||
- [Commencis](https://www.commencis.com/)
|
||||
- [Cupix](https://www.cupix.com/)
|
||||
- [DB Systel](https://www.dbsystel.de)
|
||||
- [dwango](https://dwango.co.jp/)
|
||||
- [Edge Impulse](https://www.edgeimpulse.com/)
|
||||
- [Element AI](https://www.elementai.com/)
|
||||
- [Fenergo](https://www.fenergo.com/)
|
||||
- [FormAPI](https://formapi.io/)
|
||||
- [Fuse](https://www.fuse.no/)
|
||||
- [Gantner](https://www.gantner.com)
|
||||
- [GenFlow](https://github.com/RepreZen/GenFlow)
|
||||
- [GMO Pepabo](https://pepabo.com/en/)
|
||||
- [GoDaddy](https://godaddy.com)
|
||||
- [Here](https://developer.here.com/)
|
||||
- [IBM](https://www.ibm.com/)
|
||||
- [JustStar](https://www.juststarinfo.com)
|
||||
- [Klarna](https://www.klarna.com/)
|
||||
- [Médiavision](https://www.mediavision.fr/)
|
||||
- [Metaswitch](https://www.metaswitch.com/)
|
||||
- [Myworkout](https://myworkout.com)
|
||||
- [NamSor](https://www.namsor.com/)
|
||||
- [Openet](https://www.openet.com/)
|
||||
- [Paxos](https://www.paxos.com)
|
||||
- [Ponicode](https://ponicode.dev/)
|
||||
- [Pricefx](https://www.pricefx.com/)
|
||||
- [Prometheus/Alertmanager](https://github.com/prometheus/alertmanager)
|
||||
- [Raiffeisen Schweiz Genossenschaft](https://www.raiffeisen.ch)
|
||||
- [RedHat](https://www.redhat.com)
|
||||
- [RepreZen API Studio](https://www.reprezen.com/swagger-openapi-code-generation-api-first-microservices-enterprise-development)
|
||||
- [REST United](https://restunited.com)
|
||||
- [Stingray](http://www.stingray.com)
|
||||
- [Suva](https://www.suva.ch/)
|
||||
- [Telstra](https://dev.telstra.com)
|
||||
- [TravelTime platform](https://www.traveltimeplatform.com/)
|
||||
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
||||
- [unblu inc.](https://www.unblu.com/)
|
||||
- [Veamly](https://www.veamly.com/)
|
||||
- [WSO2](https://wso2.com/)
|
||||
- [Vouchery.io](https://vouchery.io)
|
||||
- [Xero](https://www.xero.com/)
|
||||
- [Yelp](https://www.yelp.com/)
|
||||
- [Zalando](https://www.zalando.com)
|
||||
@@ -648,7 +670,13 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
||||
- 2019-09-22 - [RESTful APIs: Tutorial of OpenAPI Specification](https://medium.com/@amirm.lavasani/restful-apis-tutorial-of-openapi-specification-eeada0e3901d) by [Amir Lavasani](https://medium.com/@amirm.lavasani)
|
||||
- 2019-09-22 - [Redefining SDKs as software diversity kits](https://devrel.net/dev-rel/redefining-sdks-as-software-diversity-kits) by [Sid Maestre (Xero)](https://twitter.com/sidneyallen) at [DevRelCon San Francisco 2019](https://sf2019.devrel.net/)
|
||||
- 2019-09-23 - [swaggerからOpenApi GeneratorでSpringのコードを自動生成](https://qiita.com/littleFeet/items/492df2ad68a0799a5e5e) by [@littleFeet](https://qiita.com/littleFeet) at [Qiita](https://qiita.com/)
|
||||
|
||||
- 2019-09-24 - [Eine Stunde was mit Api First!](https://www.slideshare.net/JanWeinschenker/eine-stunde-was-mit-api-first) by [@janweinschenker](https://twitter.com/janweinschenker) at [Java Forum Nord](https://javaforumnord.de/)
|
||||
- 2019-10-09 - [openapi-generator で生成した Go クライアントで Bearer 認証をする](https://autopp-tech.hatenablog.com/entry/2019/10/09/222039) by [Akira Tanimura](https://github.com/autopp)
|
||||
- 2019-10-10 - [Automatic Generation of REST Clients](https://www.meetup.com/fr-FR/Criteo-Labs-Tech-Talks/events/264775768/) by Thomas Peyrard, Senior Software Engineer at Criteo in [Full-Stack Tech Talks (Meetup)](https://www.meetup.com/fr-FR/Criteo-Labs-Tech-Talks/events/264775768/)
|
||||
- 2019-10-12 - [OpenApi自动生成client](https://blog.csdn.net/wxid2798226/article/details/102527467) by [郑泽洲](https://me.csdn.net/wxid2798226)
|
||||
- 2019-10-16 - [How to ship APIs faster?](https://medium.com/@accounts_76224/how-to-ship-apis-faster-cabef2f819e4) by [Simon Guilliams @ PoniCode](https://ponicode.dev)
|
||||
- 2019-10-22 - [OpenAPI + Spring Boot(Kotlin)でファイルダウンロードAPIを作成する](https://qiita.com/boronngo/items/4b78b92526209daeaee9) by [Yuki Furukawa](https://twitter.com/yuki_furukawa5)
|
||||
- 2019-10-24 - [Microprofile OpenAPI - Code First or Design First?](https://github.com/pe-st/apidocs/blob/master/MicroProfile-OpenAPI-all-slides.pdf) by [Peter [pɛʃə] Steiner](https://twitter.com/pesche) at [eclipsecon Europe 2019](https://www.eclipsecon.org/europe2019/sessions/microprofile-openapi-code-first-or-design-first)
|
||||
|
||||
## [6 - About Us](#table-of-contents)
|
||||
|
||||
@@ -685,6 +713,7 @@ Here is a list of template creators:
|
||||
* Dart (refactor): @joernahrens
|
||||
* Dart 2: @swipesight
|
||||
* Dart (Jaguar): @jaumard
|
||||
* Dart (Dio): @athornz
|
||||
* Elixir: @niku
|
||||
* Elm: @eriktim
|
||||
* Eiffel: @jvelilla
|
||||
@@ -756,6 +785,7 @@ Here is a list of template creators:
|
||||
* Java Undertow: @stevehu
|
||||
* Java Play Framework: @JFCote
|
||||
* Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai
|
||||
* Java Vert.x: @lwlee2608
|
||||
* JAX-RS RestEasy: @chameleon82
|
||||
* JAX-RS CXF: @hiveship
|
||||
* JAX-RS CXF (CDI): @nickcmaynard
|
||||
@@ -839,8 +869,8 @@ If you want to join the committee, please kindly apply by sending an email to te
|
||||
| GraphQL | @renepardon (2018/12) |
|
||||
| Groovy | |
|
||||
| Haskell | |
|
||||
| Java | @bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) |
|
||||
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) |
|
||||
| Java | @bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) |
|
||||
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) |
|
||||
| Lua | @daurnimator (2017/08) |
|
||||
| Nim | |
|
||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||
|
||||
6
bin/ci/apex-petstore.json
Normal file
6
bin/ci/apex-petstore.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"generatorName": "apex",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/apex",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/apex"
|
||||
}
|
||||
11
bin/ci/csharp-netcore-petstore-1.json
Normal file
11
bin/ci/csharp-netcore-petstore-1.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "csharp-netcore",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/csharp-netcore/OpenAPIClientCore",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/csharp-netcore/",
|
||||
"additionalProperties": {
|
||||
"packageGuid": "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}",
|
||||
"useCompareNetObjects": true,
|
||||
"targetFramework": "netcoreapp2.0"
|
||||
}
|
||||
}
|
||||
10
bin/ci/csharp-netcore-petstore.json
Normal file
10
bin/ci/csharp-netcore-petstore.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "csharp-netcore",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/csharp-netcore/OpenAPIClient",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/csharp-netcore/",
|
||||
"additionalProperties": {
|
||||
"packageGuid": "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}",
|
||||
"useCompareNetObjects": true
|
||||
}
|
||||
}
|
||||
8
bin/ci/csharp-petstore.json
Normal file
8
bin/ci/csharp-petstore.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"generatorName": "csharp",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/csharp/OpenAPIClient",
|
||||
"additionalProperties": {
|
||||
"packageGuid": "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
|
||||
}
|
||||
}
|
||||
11
bin/ci/dart-flutter-petstore.json
Normal file
11
bin/ci/dart-flutter-petstore.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "dart",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart/flutter_petstore/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"browserClient": false,
|
||||
"supportDart2": false
|
||||
}
|
||||
}
|
||||
10
bin/ci/dart-jaguar-petstore-1.json
Normal file
10
bin/ci/dart-jaguar-petstore-1.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "dart-jaguar",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart-jaguar/flutter_petstore/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"pubName": "openapi"
|
||||
}
|
||||
}
|
||||
11
bin/ci/dart-jaguar-petstore-2.json
Normal file
11
bin/ci/dart-jaguar-petstore-2.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "dart-jaguar",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml",
|
||||
"outputDir": "samples/client/petstore/dart-jaguar/flutter_proto_petstore/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar",
|
||||
"additionalProperties": {
|
||||
"serialization": "proto",
|
||||
"hideGenerationTimestamp": true,
|
||||
"pubName": "openapi"
|
||||
}
|
||||
}
|
||||
11
bin/ci/dart-jaguar-petstore-3.json
Normal file
11
bin/ci/dart-jaguar-petstore-3.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "dart-jaguar",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml",
|
||||
"outputDir": "samples/client/petstore/dart-jaguar/openapi_proto",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar",
|
||||
"additionalProperties": {
|
||||
"serialization": "proto",
|
||||
"hideGenerationTimestamp": true,
|
||||
"pubName": "openapi"
|
||||
}
|
||||
}
|
||||
10
bin/ci/dart-jaguar-petstore.json
Normal file
10
bin/ci/dart-jaguar-petstore.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "dart-jaguar",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart-jaguar/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"pubName": "openapi"
|
||||
}
|
||||
}
|
||||
11
bin/ci/dart-petstore-flutter.json
Normal file
11
bin/ci/dart-petstore-flutter.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "dart",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart/flutter_petstore/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"browserClient": false,
|
||||
"supportDart2": false
|
||||
}
|
||||
}
|
||||
11
bin/ci/dart-petstore-openapi-browser-client.json
Normal file
11
bin/ci/dart-petstore-openapi-browser-client.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "dart",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart/openapi-browser-client",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"browserClient": true,
|
||||
"supportDart2": false
|
||||
}
|
||||
}
|
||||
11
bin/ci/dart-petstore.json
Normal file
11
bin/ci/dart-petstore.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "dart",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"browserClient": false,
|
||||
"supportDart2": false
|
||||
}
|
||||
}
|
||||
9
bin/ci/dart2-petstore.json
Normal file
9
bin/ci/dart2-petstore.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "dart",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/dart2/openapi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/dart2",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/elixir-petstore.json
Normal file
9
bin/ci/elixir-petstore.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "elixir",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/elixir/",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/elixir",
|
||||
"additionalProperties": {
|
||||
"invokerPackage": "OpenapiPetstore"
|
||||
}
|
||||
}
|
||||
10
bin/ci/go-gin-petstore-server.json
Normal file
10
bin/ci/go-gin-petstore-server.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "go-gin-server",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/go-gin-api-server",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/go-gin-server",
|
||||
"additionalProperties": {
|
||||
"packageName": "petstoreserver",
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/go-petstore-withxml.json
Normal file
11
bin/ci/go-petstore-withxml.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "go",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/go/go-petstore-withXml",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/go",
|
||||
"additionalProperties": {
|
||||
"packageName": "petstore",
|
||||
"withXml": true,
|
||||
"withGoCodegenComment": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/go-petstore.json
Normal file
9
bin/ci/go-petstore.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "go",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/go/go-petstore",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/go",
|
||||
"additionalProperties": {
|
||||
"packageName": "petstore"
|
||||
}
|
||||
}
|
||||
9
bin/ci/groovy-petstore.json
Normal file
9
bin/ci/groovy-petstore.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "groovy",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/groovy",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Groovy/",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
6
bin/ci/haskell-http-client-petstore.json
Normal file
6
bin/ci/haskell-http-client-petstore.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"generatorName": "haskell-http-client",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/haskell-http-client",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/haskell-http-client"
|
||||
}
|
||||
11
bin/ci/java-feign.json
Normal file
11
bin/ci/java-feign.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-feign-9x.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/feign",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/feign",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"booleanGetterPrefix": "is"
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-feign10x.json
Normal file
11
bin/ci/java-feign10x.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-feign-10x.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/feign10x",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/feign",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"booleanGetterPrefix": "is"
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-google-api-client.json
Normal file
10
bin/ci/java-google-api-client.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-google-api-client.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/google-api-client",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/google-api-client",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
12
bin/ci/java-jaxrs-cxf-annotated-base-path.json
Normal file
12
bin/ci/java-jaxrs-cxf-annotated-base-path.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"artifactId": "cxf-annotated-basepath",
|
||||
"generatorName": "jaxrs-cxf",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-cxf-annotated-base-path",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"useAnnotatedBasePath": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-jaxrs-cxf-cdi.json
Normal file
9
bin/ci/java-jaxrs-cxf-cdi.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "jaxrs-cxf-cdi",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-cxf-cdi",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
12
bin/ci/java-jaxrs-cxf-non-spring-app.json
Normal file
12
bin/ci/java-jaxrs-cxf-non-spring-app.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"artifactId": "cxf-server-non-spring",
|
||||
"generatorName": "jaxrs-cxf",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-cxf-non-spring-app",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"generateNonSpringApplication": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-jaxrs-cxf.json
Normal file
10
bin/ci/java-jaxrs-cxf.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "jaxrs-cxf",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-cxf",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jaxrs-datelib-j8.json
Normal file
11
bin/ci/java-jaxrs-datelib-j8.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "./bin/jaxrs-datelib-j8.json",
|
||||
"generatorName": "jaxrs-jersey",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-datelib-j8/",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-jaxrs-jersey.json
Normal file
10
bin/ci/java-jaxrs-jersey.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"artifactId": "openapiv3-jaxrs-jersey-petstore-server",
|
||||
"generatorName": "jaxrs-jersey",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-jersey",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
13
bin/ci/java-jaxrs-jersey1-useTags.json
Normal file
13
bin/ci/java-jaxrs-jersey1-useTags.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"artifactId": "jaxrs-jersey1-useTags",
|
||||
"generatorName": "jaxrs-jersey",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"library": "jersey1",
|
||||
"outputDir": "samples/server/petstore/jaxrs/jersey1-useTags",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082",
|
||||
"useTags": true
|
||||
}
|
||||
}
|
||||
12
bin/ci/java-jaxrs-jersey1.json
Normal file
12
bin/ci/java-jaxrs-jersey1.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"artifactId": "jaxrs-jersey1-server",
|
||||
"generatorName": "jaxrs-jersey",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"library": "jersey1",
|
||||
"outputDir": "samples/server/petstore/jaxrs/jersey1",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
12
bin/ci/java-jaxrs-jersey2-useTags.json
Normal file
12
bin/ci/java-jaxrs-jersey2-useTags.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"artifactId": "jaxrs-jersey2-useTags",
|
||||
"generatorName": "jaxrs-jersey",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs/jersey2-useTags",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082",
|
||||
"useTags": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jaxrs-jersey2.json
Normal file
11
bin/ci/java-jaxrs-jersey2.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"artifactId": "jaxrs-jersey-petstore-server",
|
||||
"generatorName": "jaxrs-jersey",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs/jersey2",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jaxrs-resteasy-eap-java8-server.json
Normal file
11
bin/ci/java-jaxrs-resteasy-eap-java8-server.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "./bin/jaxrs-resteasy-eap-java8-petstore-server.json",
|
||||
"artifactId": "jaxrs-resteasy-eap-java8-server",
|
||||
"generatorName": "jaxrs-resteasy-eap",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-resteasy/eap-java8",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jaxrs-resteasy-eap-joda-server.json
Normal file
11
bin/ci/java-jaxrs-resteasy-eap-joda-server.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "./bin/jaxrs-resteasy-eap-joda-petstore-server.json",
|
||||
"artifactId": "jaxrs-resteasy-eap-joda-server",
|
||||
"generatorName": "jaxrs-resteasy-eap",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-resteasy/eap-joda",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-jaxrs-resteasy-eap.json
Normal file
9
bin/ci/java-jaxrs-resteasy-eap.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "jaxrs-resteasy-eap",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-resteasy/eap",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jaxrs-resteasy-joda-server.json
Normal file
11
bin/ci/java-jaxrs-resteasy-joda-server.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "./bin/jaxrs-resteasy-joda-petstore-server.json",
|
||||
"artifactId": "jaxrs-resteasy-joda-server",
|
||||
"generatorName": "jaxrs-resteasy",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-resteasy/joda",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-jaxrs-resteasy.json
Normal file
9
bin/ci/java-jaxrs-resteasy.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "jaxrs-resteasy",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-resteasy/default",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jaxrs-spec-interface.json
Normal file
11
bin/ci/java-jaxrs-spec-interface.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"artifactId": "jaxrs-spec-interface-petstore-server",
|
||||
"generatorName": "jaxrs-spec",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-spec-interface",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serializableModel": true,
|
||||
"interfaceOnly": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-jaxrs-spec.json
Normal file
10
bin/ci/java-jaxrs-spec.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"artifactId": "jaxrs-spec-petstore-server",
|
||||
"generatorName": "jaxrs-spec",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/jaxrs-spec",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serializableModel": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jersey1.json
Normal file
11
bin/ci/java-jersey1.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"artifactId": "petstore-java-client-jersey1",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"library": "jersey1",
|
||||
"outputDir": "samples/client/petstore/java/jersey1",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
12
bin/ci/java-jersey2-java6.json
Normal file
12
bin/ci/java-jersey2-java6.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-jersey2.json",
|
||||
"artifactId": "petstore-jersey2-java6",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/jersey2-java6",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"supportJava6": true,
|
||||
"booleanGetterPrefix": "is"
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-jersey2-java8.json
Normal file
11
bin/ci/java-jersey2-java8.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java8-petstore-jersey2.json",
|
||||
"artifactId": "petstore-jersey2-java8",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/jersey2-java8",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serverPort": "8082"
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-jersey2.json
Normal file
9
bin/ci/java-jersey2.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-jersey2.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/jersey2",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-msf4j-petstore-server.json
Normal file
10
bin/ci/java-msf4j-petstore-server.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-msf4j",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/java-msf4j/",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/java-msf4j-server",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"artifactId": "java-msf4j-server"
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-native.json
Normal file
10
bin/ci/java-native.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-native.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/native",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/native",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
12
bin/ci/java-okhttp-gson-parcelableModel.json
Normal file
12
bin/ci/java-okhttp-gson-parcelableModel.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-okhttp-gson.json",
|
||||
"artifactId": "petstore-okhttp-gson-parcelableModel",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/okhttp-gson-parcelableModel",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"parcelableModel": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-okhttp-gson.json
Normal file
10
bin/ci/java-okhttp-gson.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-okhttp-gson.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/okhttp-gson",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-petstore-feign-10x.json
Normal file
11
bin/ci/java-petstore-feign-10x.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/feign",
|
||||
"outputDir": "samples/client/petstore/java/feign10x",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"booleanGetterPrefix": "is"
|
||||
},
|
||||
"!include": "bin/java-petstore-feign-10x.json"
|
||||
}
|
||||
10
bin/ci/java-play-framework-api-package-override.json
Normal file
10
bin/ci/java-play-framework-api-package-override.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-api-package-override",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"apiPackage": "com.puppies.store.apis"
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-async.json
Normal file
10
bin/ci/java-play-framework-async.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-play-framework-petstore-server-async.json",
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-async",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-controller-only.json
Normal file
10
bin/ci/java-play-framework-controller-only.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-controller-only",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"controllerOnly": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-play-framework-fake-endpoints.json
Normal file
9
bin/ci/java-play-framework-fake-endpoints.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-fake-endpoints",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-no-bean-validation.json
Normal file
10
bin/ci/java-play-framework-no-bean-validation.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-no-bean-validation",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"useBeanValidation": false
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-no-exception-handling.json
Normal file
10
bin/ci/java-play-framework-no-exception-handling.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-no-exception-handling",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"handleExceptions": false
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-no-interface.json
Normal file
10
bin/ci/java-play-framework-no-interface.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-no-interface",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"useInterfaces": false
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-no-swagger-ui.json
Normal file
10
bin/ci/java-play-framework-no-swagger-ui.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-no-swagger-ui",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"useSwaggerUI": false
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-play-framework-no-wrap-calls.json
Normal file
10
bin/ci/java-play-framework-no-wrap-calls.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework-no-wrap-calls",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"wrapCalls": false
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-play-framework.json
Normal file
9
bin/ci/java-play-framework.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "java-play-framework",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/java-play-framework",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-rest-assured.json
Normal file
11
bin/ci/java-rest-assured.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-rest-assured.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/rest-assured",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/rest-assured",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"booleanGetterPrefix": "is"
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-resteasy.json
Normal file
9
bin/ci/java-resteasy.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-resteasy.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/resteasy",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-resttemplate-withXml.json
Normal file
11
bin/ci/java-resttemplate-withXml.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-resttemplate.json",
|
||||
"artifactId": "petstore-resttemplate-withxml",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/resttemplate-withXml",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"withXml": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-resttemplate.json
Normal file
9
bin/ci/java-resttemplate.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-resttemplate.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/resttemplate",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-retrofit.json
Normal file
10
bin/ci/java-retrofit.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"dateLibrary": "joda"
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-retrofit2-play24.json
Normal file
10
bin/ci/java-retrofit2-play24.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit2-play24.json",
|
||||
"artifactId": "petstore-java-client-retrofit2-play24",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit2-play24",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-retrofit2-play25.json
Normal file
10
bin/ci/java-retrofit2-play25.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit2-play25.json",
|
||||
"artifactId": "petstore-java-client-retrofit2-play25",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit2-play25",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-retrofit2-play26.json
Normal file
10
bin/ci/java-retrofit2-play26.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit2-play26.json",
|
||||
"artifactId": "petstore-java-client-retrofit2-play26",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit2-play26",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-retrofit2.json
Normal file
10
bin/ci/java-retrofit2.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit2.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit2",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/retrofit2",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-retrofit2rx.json
Normal file
11
bin/ci/java-retrofit2rx.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit2rx.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit2rx",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/retrofit2",
|
||||
"additionalProperties": {
|
||||
"useRxJava": true,
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/java-retrofit2rx2.json
Normal file
11
bin/ci/java-retrofit2rx2.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-retrofit2rx2.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/retrofit2rx2",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/retrofit2",
|
||||
"additionalProperties": {
|
||||
"useRxJava2": true,
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/java-vertx.json
Normal file
10
bin/ci/java-vertx.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-vertx.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/vertx",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/vertx",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
9
bin/ci/java-webclient.json
Normal file
9
bin/ci/java-webclient.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"!include": "bin/java-petstore-webclient.json",
|
||||
"generatorName": "java",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/java/webclient",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true
|
||||
}
|
||||
}
|
||||
11
bin/ci/javascript-petstore-1.json
Normal file
11
bin/ci/javascript-petstore-1.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "javascript",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/javascript-promise",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Javascript",
|
||||
"additionalProperties": {
|
||||
"usePromises": true,
|
||||
"useES6": false,
|
||||
"appName": "PetstoreClient"
|
||||
}
|
||||
}
|
||||
9
bin/ci/javascript-petstore-2.json
Normal file
9
bin/ci/javascript-petstore-2.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"generatorName": "javascript",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/javascript-es6",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Javascript/es6",
|
||||
"additionalProperties": {
|
||||
"appName": "PetstoreClient"
|
||||
}
|
||||
}
|
||||
11
bin/ci/javascript-petstore-3.json
Normal file
11
bin/ci/javascript-petstore-3.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "javascript",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/javascript-promise-es6",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Javascript/es6",
|
||||
"additionalProperties": {
|
||||
"appName": "PetstoreClient",
|
||||
"usePromises": true,
|
||||
"useES6": true
|
||||
}
|
||||
}
|
||||
10
bin/ci/javascript-petstore.json
Normal file
10
bin/ci/javascript-petstore.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generatorName": "javascript",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/client/petstore/javascript",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/Javascript",
|
||||
"additionalProperties": {
|
||||
"appName": "PetstoreClient",
|
||||
"useES6": false
|
||||
}
|
||||
}
|
||||
11
bin/ci/kotlin-client-petstore-multiplatform.json
Normal file
11
bin/ci/kotlin-client-petstore-multiplatform.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"artifactId": "kotlin-client-petstore-multiplatform",
|
||||
"generatorName": "kotlin",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/kotlin-multiplatform",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-client",
|
||||
"library": "multiplatform",
|
||||
"additionalProperties": {
|
||||
"dateLibrary": "java8"
|
||||
}
|
||||
}
|
||||
11
bin/ci/kotlin-client-petstore.json
Normal file
11
bin/ci/kotlin-client-petstore.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"artifactId": "kotlin-petstore-client",
|
||||
"generatorName": "kotlin",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/kotlin",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-client",
|
||||
"additionalProperties": {
|
||||
"dateLibrary": "java8",
|
||||
"serializableModel": "true"
|
||||
}
|
||||
}
|
||||
11
bin/ci/kotlin-client-string.json
Normal file
11
bin/ci/kotlin-client-string.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"artifactId": "kotlin-petstore-string",
|
||||
"generatorName": "kotlin",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/kotlin-string",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-client",
|
||||
"additionalProperties": {
|
||||
"dateLibrary": "string",
|
||||
"serializableModel": "true"
|
||||
}
|
||||
}
|
||||
10
bin/ci/kotlin-client-threetenbp.json
Normal file
10
bin/ci/kotlin-client-threetenbp.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"artifactId": "kotlin-petstore-threetenbp",
|
||||
"generatorName": "kotlin",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/client/petstore/kotlin-threetenbp",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-client",
|
||||
"additionalProperties": {
|
||||
"dateLibrary": "threetenbp"
|
||||
}
|
||||
}
|
||||
11
bin/ci/kotlin-server-petstore.json
Normal file
11
bin/ci/kotlin-server-petstore.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"generatorName": "kotlin-server",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"library": "ktor",
|
||||
"outputDir": "samples/server/petstore/kotlin-server/ktor",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-server",
|
||||
"additionalProperties": {
|
||||
"hideGenerationTimestamp": true,
|
||||
"serializableModel": "true"
|
||||
}
|
||||
}
|
||||
13
bin/ci/kotlin-springboot-petstore-server-reactive.json
Normal file
13
bin/ci/kotlin-springboot-petstore-server-reactive.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"generatorName": "kotlin-spring",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/kotlin-springboot-reactive",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-spring",
|
||||
"additionalProperties": {
|
||||
"library": "spring-boot",
|
||||
"beanValidations": true,
|
||||
"swaggerAnnotations": true,
|
||||
"serviceImplementation": true,
|
||||
"reactive": true
|
||||
}
|
||||
}
|
||||
12
bin/ci/kotlin-springboot-petstore-server.json
Normal file
12
bin/ci/kotlin-springboot-petstore-server.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"generatorName": "kotlin-spring",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml",
|
||||
"outputDir": "samples/server/petstore/kotlin-springboot",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/kotlin-spring",
|
||||
"additionalProperties": {
|
||||
"library": "spring-boot",
|
||||
"beanValidations": true,
|
||||
"swaggerAnnotations": true,
|
||||
"serviceImplementation": true
|
||||
}
|
||||
}
|
||||
6
bin/ci/mysql-schema-petstore.json
Normal file
6
bin/ci/mysql-schema-petstore.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"generatorName": "mysql-schema",
|
||||
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
|
||||
"outputDir": "samples/schema/petstore/mysql",
|
||||
"templateDir": "modules/openapi-generator/src/main/resources/mysql-schema"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user