mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 03:36:11 +00:00
Compare commits
3 Commits
v4.3.0
...
nodejs-fas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
605030dfeb | ||
|
|
ecb11fbe7f | ||
|
|
5cd3a16e56 |
116
.github/.test/samples.json
vendored
116
.github/.test/samples.json
vendored
@@ -134,7 +134,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "csharp-netcore-petstore.sh",
|
"input": "csharp-refactor-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Client: C-Sharp"
|
"Client: C-Sharp"
|
||||||
]
|
]
|
||||||
@@ -146,13 +146,13 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "dart-jaguar-petstore.sh",
|
"input": "dart-flutter-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Client: Dart"
|
"Client: Dart"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "dart-dio-petstore.sh",
|
"input": "dart-jaguar-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Client: Dart"
|
"Client: Dart"
|
||||||
]
|
]
|
||||||
@@ -218,7 +218,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "scala-finch-petstore-server.sh",
|
"input": "finch-petstore-server.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Server: Scala"
|
"Server: Scala"
|
||||||
]
|
]
|
||||||
@@ -260,7 +260,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "graphql-nodejs-express-server.sh",
|
"input": "graphql-server-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Server: GraphQL"
|
"Server: GraphQL"
|
||||||
]
|
]
|
||||||
@@ -825,13 +825,13 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "python-server-flask-petstore-python2.sh",
|
"input": "python-flask-petstore-python2.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Server: Python"
|
"Server: Python"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "python-server-flask-petstore.sh",
|
"input": "python-flask-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Server: Python"
|
"Server: Python"
|
||||||
]
|
]
|
||||||
@@ -878,6 +878,12 @@
|
|||||||
"Client: Rust"
|
"Client: Rust"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"input": "rust-reqwest-petstore.sh",
|
||||||
|
"matches": [
|
||||||
|
"Client: Rust"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"input": "rust-server-petstore.sh",
|
"input": "rust-server-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
@@ -921,7 +927,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": "spring-all-petstore.sh",
|
"input": "spring-all-pestore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
"Server: Spring"
|
"Server: Spring"
|
||||||
]
|
]
|
||||||
@@ -1255,30 +1261,6 @@
|
|||||||
"matches": [
|
"matches": [
|
||||||
"Client: TypeScript"
|
"Client: TypeScript"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "typescript-rxjs-petstore-interfaces.sh",
|
|
||||||
"matches": [
|
|
||||||
"Client: TypeScript"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "typescript-rxjs-petstore-target-es6.sh",
|
|
||||||
"matches": [
|
|
||||||
"Client: TypeScript"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "typescript-rxjs-petstore-with-npm-version.sh",
|
|
||||||
"matches": [
|
|
||||||
"Client: TypeScript"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "typescript-rxjs-petstore.sh",
|
|
||||||
"matches": [
|
|
||||||
"Client: TypeScript"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"text": [
|
"text": [
|
||||||
@@ -1305,76 +1287,6 @@
|
|||||||
"matches": [
|
"matches": [
|
||||||
"Announcement"
|
"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": []
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
30
.github/CODEOWNERS
vendored
30
.github/CODEOWNERS
vendored
@@ -1,30 +0,0 @@
|
|||||||
## Core team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/auth/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/config/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/ignore/**/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/serializer/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/**/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/**/*.java @OpenAPITools/generator-core-team
|
|
||||||
modules/openapi-generator-core/**/* @OpenAPITools/generator-core-team
|
|
||||||
|
|
||||||
# No need for auto-generated subdirectories (reduces noise)
|
|
||||||
docs/ @OpenAPITools/generator-core-team
|
|
||||||
|
|
||||||
## Individual interests
|
|
||||||
.github/**/* @jimschubert
|
|
||||||
scripts/**/* @jimschubert
|
|
||||||
website/**/* @jimschubert
|
|
||||||
bin/ci/**/* @jimschubert
|
|
||||||
|
|
||||||
## Bulid related
|
|
||||||
CI/**/* @OpenAPITools/build
|
|
||||||
.mvn/**/* @OpenAPITools/build
|
|
||||||
bin/utils/**/* @OpenAPITools/build
|
|
||||||
|
|
||||||
## Module-specific
|
|
||||||
modules/openapi-generator-cli/**/* @jimschubert
|
|
||||||
modules/openapi-generator-gradle-plugin/**/* @jimschubert
|
|
||||||
modules/openapi-generator-maven-plugin/**/* @jimschubert
|
|
||||||
|
|
||||||
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
|||||||
open_collective: openapi_generator
|
|
||||||
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,10 +1,11 @@
|
|||||||
<!-- 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
|
### PR checklist
|
||||||
|
|
||||||
- [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md).
|
- [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md).
|
||||||
- [ ] 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.
|
- [ ] 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\`.
|
||||||
- [ ] 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).
|
- [ ] Filed the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`~~, `3.4.x`, `4.0.x`~~. Default: `master`.
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`, `4.3.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.
|
||||||
- [ ] 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.
|
|
||||||
|
### Description of the PR
|
||||||
|
|
||||||
|
(details of the change, additional tests that have been done, reference to the issue for tracking, etc)
|
||||||
|
|
||||||
|
|||||||
3
.github/auto-labeler.yml
vendored
3
.github/auto-labeler.yml
vendored
@@ -138,7 +138,6 @@ labels:
|
|||||||
- '\s*?-[gl] swift[34]+\s*?'
|
- '\s*?-[gl] swift[34]+\s*?'
|
||||||
- '\s*?-[gl] swift2-deprecated\s*?'
|
- '\s*?-[gl] swift2-deprecated\s*?'
|
||||||
'Client: TypeScript':
|
'Client: TypeScript':
|
||||||
- '\s*?\[typescript\]\s*?'
|
|
||||||
- '\s*?\[typescript-[\-a-z]+\]\s*?'
|
- '\s*?\[typescript-[\-a-z]+\]\s*?'
|
||||||
- '\s*?-[gl] typescript-[\-a-z]+\s*?'
|
- '\s*?-[gl] typescript-[\-a-z]+\s*?'
|
||||||
# 'Client: VB/VB.net': # NOTE: Not yet implemented
|
# 'Client: VB/VB.net': # NOTE: Not yet implemented
|
||||||
@@ -247,7 +246,7 @@ labels:
|
|||||||
'Server: Java':
|
'Server: Java':
|
||||||
- '\s*?\[java-.*?\]\s*?'
|
- '\s*?\[java-.*?\]\s*?'
|
||||||
- '\s*?-[gl] java-.*?\s*?'
|
- '\s*?-[gl] java-.*?\s*?'
|
||||||
- '\s*?-[gl] jaxrs-.*?\s*?'
|
- '\s*?-[gl] jaxrx-.*?\s*?'
|
||||||
'Server: Kotlin':
|
'Server: Kotlin':
|
||||||
- '\s*?\[ktor]\s*?'
|
- '\s*?\[ktor]\s*?'
|
||||||
- '\s*?\[kotlin-spring]\s*?'
|
- '\s*?\[kotlin-spring]\s*?'
|
||||||
|
|||||||
24
.github/workflows/sonar.yml
vendored
24
.github/workflows/sonar.yml
vendored
@@ -1,24 +0,0 @@
|
|||||||
name: Sonar CI
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- '[4-9]+.[0-9]+.x'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Set up JDK 1.8
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 1.8
|
|
||||||
- name: Compile with Maven
|
|
||||||
run: mvn clean package jacoco:report
|
|
||||||
- name: Jacoco Aggregate
|
|
||||||
run: mvn jacoco:report-aggregate
|
|
||||||
- name: Publish to Sonar
|
|
||||||
run: mvn -B -q sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}
|
|
||||||
30
.gitignore
vendored
30
.gitignore
vendored
@@ -1,5 +1,3 @@
|
|||||||
.mvn/.gradle-enterprise/
|
|
||||||
.scannerwork/
|
|
||||||
.vscode
|
.vscode
|
||||||
*.iml
|
*.iml
|
||||||
out/
|
out/
|
||||||
@@ -30,7 +28,6 @@ packages/
|
|||||||
.vagrant/
|
.vagrant/
|
||||||
.vscode/
|
.vscode/
|
||||||
**/.vs
|
**/.vs
|
||||||
.factorypath
|
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
@@ -42,13 +39,7 @@ packages/
|
|||||||
|
|
||||||
/target
|
/target
|
||||||
/generated-files
|
/generated-files
|
||||||
test-output/
|
|
||||||
nbactions.xml
|
nbactions.xml
|
||||||
test-output/
|
|
||||||
|
|
||||||
# website
|
|
||||||
website/build/
|
|
||||||
website/package-lock.json
|
|
||||||
|
|
||||||
# scalatra
|
# scalatra
|
||||||
samples/server-generator/scalatra/output
|
samples/server-generator/scalatra/output
|
||||||
@@ -91,9 +82,6 @@ samples/client/petstore/java/jersey2/build/
|
|||||||
samples/client/petstore/java/okhttp-gson/.gradle/
|
samples/client/petstore/java/okhttp-gson/.gradle/
|
||||||
samples/client/petstore/java/okhttp-gson/build/
|
samples/client/petstore/java/okhttp-gson/build/
|
||||||
samples/client/petstore/java/feign/build/
|
samples/client/petstore/java/feign/build/
|
||||||
samples/client/petstore/java/feign10x/build/
|
|
||||||
samples/client/petstore/java/feign/project/
|
|
||||||
samples/client/petstore/java/feign10x/project/
|
|
||||||
samples/client/petstore/java/retrofit/build/
|
samples/client/petstore/java/retrofit/build/
|
||||||
samples/client/petstore/java/retrofit2/build/
|
samples/client/petstore/java/retrofit2/build/
|
||||||
samples/client/petstore/java/retrofit2/hello.txt
|
samples/client/petstore/java/retrofit2/hello.txt
|
||||||
@@ -174,24 +162,25 @@ samples/client/petstore/python-asyncio/.pytest_cache/
|
|||||||
samples/client/petstore/python-tornado/.venv/
|
samples/client/petstore/python-tornado/.venv/
|
||||||
|
|
||||||
# ts
|
# ts
|
||||||
|
samples/client/petstore/typescript-node/npm/node_modules
|
||||||
|
samples/client/petstore/typescript-node/**/typings
|
||||||
|
samples/client/petstore/typescript-angular/**/typings
|
||||||
|
samples/client/petstore/typescript-fetch/**/dist/
|
||||||
|
samples/client/petstore/typescript-fetch/**/typings
|
||||||
samples/client/petstore/typescript-angular2/npm/npm-debug.log
|
samples/client/petstore/typescript-angular2/npm/npm-debug.log
|
||||||
samples/client/petstore/typescript-node/npm/npm-debug.log
|
samples/client/petstore/typescript-node/npm/npm-debug.log
|
||||||
|
samples/client/petstore/typescript-aurelia/**/dist/
|
||||||
samples/client/petstore/typescript-angular/tsd-debug.log
|
samples/client/petstore/typescript-angular/tsd-debug.log
|
||||||
samples/client/petstore/typescript-fetch/tests/**/dist/
|
|
||||||
|
|
||||||
# aspnetcore
|
# aspnetcore
|
||||||
samples/server/petstore/aspnetcore/.vs/
|
samples/server/petstore/aspnetcore/.vs/
|
||||||
effective.pom
|
effective.pom
|
||||||
|
|
||||||
# kotlin
|
# kotlin
|
||||||
samples/client/petstore/kotlin/src/main/kotlin/test/
|
samples/client/petstore/kotlin/src/main/kotlin/test/
|
||||||
samples/client/petstore/kotlin-threetenbp/build
|
samples/client/petstore/kotlin-threetenbp/build
|
||||||
samples/client/petstore/kotlin-string/build
|
samples/client/petstore/kotlin-string/build
|
||||||
samples/openapi3/client/petstore/kotlin/build
|
|
||||||
samples/server/petstore/kotlin-server/ktor/build
|
samples/server/petstore/kotlin-server/ktor/build
|
||||||
samples/server/petstore/kotlin-springboot/build
|
samples/openapi3/client/petstore/kotlin/build
|
||||||
samples/client/petstore/kotlin-multiplatform/build/
|
|
||||||
samples/client/petstore/kotlin-okhttp3/build/
|
|
||||||
\?
|
\?
|
||||||
|
|
||||||
# haskell
|
# haskell
|
||||||
@@ -227,7 +216,6 @@ samples/server/petstore/erlang-server/rebar.lock
|
|||||||
samples/client/petstore/dart/petstore/packages
|
samples/client/petstore/dart/petstore/packages
|
||||||
samples/client/petstore/dart/flutter_petstore/test/packages
|
samples/client/petstore/dart/flutter_petstore/test/packages
|
||||||
samples/client/petstore/dart/petstore/test/packages
|
samples/client/petstore/dart/petstore/test/packages
|
||||||
**/.dart_tool
|
|
||||||
|
|
||||||
# JS
|
# JS
|
||||||
samples/client/petstore/javascript/package-lock.json
|
samples/client/petstore/javascript/package-lock.json
|
||||||
@@ -238,7 +226,3 @@ samples/client/petstore/elm/index.html
|
|||||||
# C
|
# C
|
||||||
samples/client/petstore/c/build
|
samples/client/petstore/c/build
|
||||||
samples/client/petstore/c/*.so
|
samples/client/petstore/c/*.so
|
||||||
|
|
||||||
# Ruby
|
|
||||||
samples/openapi3/client/petstore/ruby/Gemfile.lock
|
|
||||||
samples/openapi3/client/petstore/ruby-faraday/Gemfile.lock
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ WORKDIR ${TARGET_DIR}
|
|||||||
|
|
||||||
COPY --from=builder ${GEN_DIR}/modules/openapi-generator-online/target/openapi-generator-online.jar ${TARGET_DIR}/openapi-generator-online.jar
|
COPY --from=builder ${GEN_DIR}/modules/openapi-generator-online/target/openapi-generator-online.jar ${TARGET_DIR}/openapi-generator-online.jar
|
||||||
|
|
||||||
ENV GENERATOR_HOST=""
|
ENV GENERATOR_HOST=http://localhost
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.8
|
oracle64-1.8.0.152
|
||||||
68
.travis.yml
68
.travis.yml
@@ -3,15 +3,7 @@ language: java
|
|||||||
jdk:
|
jdk:
|
||||||
- openjdk8
|
- openjdk8
|
||||||
|
|
||||||
# See https://docs.travis-ci.com/user/languages/java/#caching
|
|
||||||
before_cache:
|
|
||||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
||||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
||||||
# Avoid caching our built dependencies between runs.
|
|
||||||
- rm -fr $HOME/.m2/repository/org/openapitools/
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
yarn: true
|
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
- $HOME/.ivy2
|
- $HOME/.ivy2
|
||||||
@@ -57,15 +49,13 @@ addons:
|
|||||||
- petstore.swagger.io
|
- petstore.swagger.io
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
|
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
|
||||||
# install rust
|
# install rust
|
||||||
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
||||||
# required when sudo: required for the Ruby petstore tests
|
# required when sudo: required for the Ruby petstore tests
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
- npm install -g typescript
|
- npm install -g typescript
|
||||||
- npm install -g npm
|
- npm install -g npm
|
||||||
#- npm install -g elm@0.18.0-exp5
|
- npm install -g elm@0.18.0-exp5
|
||||||
- npm config set registry http://registry.npmjs.org/
|
- npm config set registry http://registry.npmjs.org/
|
||||||
# set python 3.6.3 as default
|
# set python 3.6.3 as default
|
||||||
- source ~/virtualenv/python3.6/bin/activate
|
- source ~/virtualenv/python3.6/bin/activate
|
||||||
@@ -74,10 +64,10 @@ before_install:
|
|||||||
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
# Add bats test framework and cURL for Bash script integration tests
|
# Add bats test framework and cURL for Bash script integration tests
|
||||||
- sudo add-apt-repository ppa:duggan/bats --yes
|
#- sudo add-apt-repository ppa:duggan/bats --yes
|
||||||
- sudo apt-get update -qq
|
#- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq bats
|
#- sudo apt-get install -qq bats
|
||||||
- sudo apt-get install -qq curl
|
#- sudo apt-get install -qq curl
|
||||||
# install dart
|
# install dart
|
||||||
#- sudo apt-get update
|
#- sudo apt-get update
|
||||||
#- sudo apt-get install apt-transport-https
|
#- sudo apt-get install apt-transport-https
|
||||||
@@ -97,11 +87,7 @@ 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).
|
# - 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
|
# - . ~/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"
|
#- curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
|
||||||
# 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
|
# show host table to confirm petstore.swagger.io is mapped to localhost
|
||||||
- cat /etc/hosts
|
- cat /etc/hosts
|
||||||
# show java version
|
# show java version
|
||||||
@@ -111,7 +97,7 @@ before_install:
|
|||||||
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
||||||
gpg --check-trustdb ;
|
gpg --check-trustdb ;
|
||||||
fi;
|
fi;
|
||||||
- pushd .; cd website; yarn install; popd
|
- pushd .; cd website; npm install; popd
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Add Godeps dependencies to GOPATH and PATH
|
# Add Godeps dependencies to GOPATH and PATH
|
||||||
@@ -135,45 +121,28 @@ script:
|
|||||||
# fail if generators contain tab '\t'
|
# fail if generators contain tab '\t'
|
||||||
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
|
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
|
||||||
# run integration tests defined in maven pom.xml
|
# run integration tests defined in maven pom.xml
|
||||||
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
- ./run-in-docker.sh mvn --quiet --batch-mode clean install
|
||||||
- mvn --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
- mvn --quiet --batch-mode verify -Psamples
|
||||||
- mvn --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
# test maven plugin
|
|
||||||
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
# test gradle plugin
|
|
||||||
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk)
|
|
||||||
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
|
||||||
after_success:
|
after_success:
|
||||||
# push to maven repo
|
# push to maven repo
|
||||||
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
if [ "$TRAVIS_BRANCH" = "master" ]; then
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
|
||||||
mvn clean deploy -DskipTests=true -B -U -P release --settings CI/settings.xml;
|
mvn clean deploy -DskipTests=true -B -U -P release --settings CI/settings.xml;
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishMavenJavaPublicationToNexusRepository closeAndReleaseRepository --no-daemon;
|
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" uploadArchives --no-daemon;
|
||||||
echo "Finished ./gradlew publishPluginMavenPublicationToNexusRepository closeAndReleaseRepository";
|
echo "Finished ./gradlew uploadArchives";
|
||||||
popd;
|
popd;
|
||||||
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
elif ([[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]) ; then
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
|
||||||
mvn clean deploy --settings CI/settings.xml;
|
mvn clean deploy --settings CI/settings.xml;
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToNexusRepository closeAndReleaseRepository --no-daemon;
|
|
||||||
echo "Finished ./gradlew publishPluginMavenPublicationToNexusRepository closeAndReleaseRepository";
|
|
||||||
popd;
|
|
||||||
fi;
|
|
||||||
if [ -n $TRAVIS_TAG ] && [[ "$TRAVIS_TAG" =~ ^[v][0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
||||||
echo "Publishing the gradle plugin to Gradle Portal on tag $TRAVIS_TAG (only)";
|
|
||||||
pushd .;
|
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
|
||||||
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET --no-daemon;
|
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET --no-daemon;
|
||||||
echo "Finished ./gradlew publishPlugins (plugin portal)";
|
echo "Finished ./gradlew publishPlugins (plugin portal)";
|
||||||
|
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" uploadArchives --no-daemon;
|
||||||
|
echo "Finished ./gradlew uploadArchives";
|
||||||
popd;
|
popd;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
@@ -187,10 +156,9 @@ after_success:
|
|||||||
git config --global user.name "${GH_NAME}";
|
git config --global user.name "${GH_NAME}";
|
||||||
git config --global user.email "${GH_EMAIL}";
|
git config --global user.email "${GH_EMAIL}";
|
||||||
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
||||||
yarn install;
|
npm install;
|
||||||
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
GIT_USER="${GH_NAME}" npm run-script publish-gh-pages;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
||||||
|
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
# test ocaml petstore client
|
|
||||||
- name: ocaml-test
|
|
||||||
image: ocaml/opam2:4.07
|
|
||||||
commands:
|
|
||||||
- sudo apt-get -y install m4
|
|
||||||
- cd samples/client/petstore/ocaml
|
|
||||||
- opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix
|
|
||||||
- opam pin add ocaml-migrate-parsetree 1.3.1
|
|
||||||
- eval $(opam env)
|
|
||||||
- sudo chmod -R 777 .
|
|
||||||
- dune build --build-dir=./_build
|
|
||||||
# test haskell client
|
|
||||||
- name: haskell-client-test
|
|
||||||
image: haskell:8.6.5
|
|
||||||
commands:
|
|
||||||
- (cd samples/client/petstore/haskell-http-client/ && stack --install-ghc --no-haddock-deps haddock --fast && stack test --fast)
|
|
||||||
# below dart tests moved to circle ci
|
|
||||||
# test Dart 2.x petstore client
|
|
||||||
#- name: dart2x-test
|
|
||||||
# image: google/dart
|
|
||||||
# commands:
|
|
||||||
# - (cd samples/client/petstore/dart-jaguar/openapi && pub get && pub run build_runner build --delete-conflicting-outputs)
|
|
||||||
# - (cd samples/client/petstore/dart-jaguar/flutter_petstore/openapi && pub get && pub run build_runner build --delete-conflicting-outputs)
|
|
||||||
# - (cd samples/client/petstore/dart2/petstore && pub get && pub run test)
|
|
||||||
# test Java 11 HTTP client
|
|
||||||
- name: java11-test
|
|
||||||
image: openjdk:11.0
|
|
||||||
commands:
|
|
||||||
- ./mvnw -quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- ./mvnw --quiet verify -Psamples.droneio -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
# test all generators with fake petstore spec (2.0, 3.0)
|
|
||||||
- /bin/bash bin/utils/test-fake-petstore-for-all.sh
|
|
||||||
# generate test scripts
|
|
||||||
- /bin/bash bin/tests/run-all-test
|
|
||||||
# generate all petstore samples (client, servers, doc)
|
|
||||||
- /bin/bash bin/run-all-petstore
|
|
||||||
# generate all petstore samples (openapi3)
|
|
||||||
- /bin/bash bin/openapi3/run-all-petstore
|
|
||||||
@@ -1,25 +1,55 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: objective-c
|
language: objective-c
|
||||||
osx_image: xcode10.3
|
osx_image: xcode8.1
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.m2
|
||||||
|
- $HOME/.ivy2
|
||||||
|
- $HOME/.gradle/caches/
|
||||||
|
- $HOME/.gradle/wrapper/
|
||||||
|
- $HOME/.stack
|
||||||
|
- $HOME/samples/client/petstore/php/OpenAPIToolsClient-php/vendor
|
||||||
|
- $HOME/samples/client/petstore/ruby/venodr/bundle
|
||||||
|
- $HOME/samples/client/petstore/python/.venv/
|
||||||
|
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
|
||||||
|
- $HOME/samples/client/petstore/typescript-node/npm/typings/
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/tests/default/node_modules
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/tests/default/typings
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/builds/default/node_modules
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/builds/default/typings
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/builds/es6-target/node_modules
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/builds/es6-target/typings
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/builds/with-npm-version/node_modules
|
||||||
|
- $HOME/samples/client/petstore/typescript-fetch/npm/with-npm-version/typings
|
||||||
|
- $HOME/samples/client/petstore/typescript-angularjs/node_modules
|
||||||
|
- $HOME/samples/client/petstore/typescript-angularjs/typings
|
||||||
|
- $HOME/.cocoapods/repos/master
|
||||||
|
timeout: 1000
|
||||||
|
|
||||||
|
# comment out the host table change to use the public petstore server
|
||||||
|
addons:
|
||||||
|
hosts:
|
||||||
|
- petstore.swagger.io
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export SW=`pwd`
|
- export SW=`pwd`
|
||||||
- rvm list
|
- rvm list
|
||||||
#- rvm use 2.3.3
|
- rvm use 2.3.3
|
||||||
- gem environment
|
- gem environment
|
||||||
- gem install bundler -N
|
- gem install bundler -N --no-ri --no-rdoc
|
||||||
- gem install cocoapods -v 1.2.1 -N
|
- gem install cocoapods -v 1.2.1 -N --no-ri --no-rdoc
|
||||||
- gem install xcpretty -N
|
- gem install xcpretty -N --no-ri --no-rdoc
|
||||||
- pod --version
|
- pod --version
|
||||||
# comment out below to avoid errors
|
# comment out below to avoid errors
|
||||||
#- pod repo update
|
#- pod repo update
|
||||||
#- pod setup --silent > /dev/null
|
- pod setup --silent > /dev/null
|
||||||
#- mkdir -p ~/.local/bin
|
- mkdir -p ~/.local/bin
|
||||||
#- export PATH=$HOME/.local/bin:$PATH
|
- export PATH=$HOME/.local/bin:$PATH
|
||||||
## start local petstore server
|
# start local petstore server
|
||||||
#- git clone -b docker --single-branch https://github.com/wing328/swagger-samples
|
- git clone -b docker --single-branch https://github.com/wing328/swagger-samples
|
||||||
#- cd swagger-samples/java/java-jersey-jaxrs
|
- cd swagger-samples/java/java-jersey-jaxrs
|
||||||
#- sudo mvn jetty:run &
|
- sudo mvn jetty:run &
|
||||||
#- cd $SW
|
- cd $SW
|
||||||
|
|
||||||
# show host table to confirm petstore.swagger.io is mapped to localhost
|
# show host table to confirm petstore.swagger.io is mapped to localhost
|
||||||
- cat /etc/hosts
|
- cat /etc/hosts
|
||||||
@@ -34,4 +64,4 @@ before_install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
# run integration tests defined in maven pom.xml
|
# run integration tests defined in maven pom.xml
|
||||||
- mvn -q --batch-mode verify -Psamples.ios -Dmaven.javadoc.skip=true
|
- mvn -q --batch-mode verify -Psamples
|
||||||
|
|||||||
@@ -1,79 +0,0 @@
|
|||||||
---
|
|
||||||
format_version: '8'
|
|
||||||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
|
|
||||||
project_type: other
|
|
||||||
trigger_map:
|
|
||||||
- push_branch: "*"
|
|
||||||
workflow: primary
|
|
||||||
- pull_request_source_branch: "*"
|
|
||||||
workflow: primary
|
|
||||||
workflows:
|
|
||||||
primary:
|
|
||||||
steps:
|
|
||||||
- git-clone@4.0.17: {}
|
|
||||||
- brew-install@0.10.2:
|
|
||||||
inputs:
|
|
||||||
- packages: maven
|
|
||||||
- script@1.1.5:
|
|
||||||
title: Install Cocoapods
|
|
||||||
inputs:
|
|
||||||
- content: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
sudo gem install cocoapods
|
|
||||||
- script@1.1.5:
|
|
||||||
inputs:
|
|
||||||
- content: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mvn package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
title: Build openapi-generator
|
|
||||||
- script@1.1.5:
|
|
||||||
title: Update Swift4 samples
|
|
||||||
inputs:
|
|
||||||
- content: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
sh bin/swift4-all.sh
|
|
||||||
- script@1.1.5:
|
|
||||||
title: Run Swift4 tests
|
|
||||||
inputs:
|
|
||||||
- content: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
./samples/client/petstore/swift4/swift4_test_all.sh
|
|
||||||
./samples/client/test/swift4/swift4_test_all.sh
|
|
||||||
- script@1.1.5:
|
|
||||||
title: Update Swift5 samples
|
|
||||||
inputs:
|
|
||||||
- content: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
sh bin/swift5-all.sh
|
|
||||||
- script@1.1.5:
|
|
||||||
title: Run Swift5 tests
|
|
||||||
inputs:
|
|
||||||
- content: |
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
./samples/client/petstore/swift5/swift5_test_all.sh
|
|
||||||
./samples/client/test/swift5/swift5_test_all.sh
|
|
||||||
- script@1.1.5:
|
|
||||||
title: Run all bin scripts
|
|
||||||
inputs:
|
|
||||||
- content: |-
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
./bin/run-all-petstore
|
|
||||||
@@ -7,40 +7,17 @@ NODE_INDEX=${CIRCLE_NODE_INDEX:-0}
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function cleanup {
|
|
||||||
# Show logs of 'petstore.swagger' container to troubleshoot Unit Test failures, if any.
|
|
||||||
docker logs petstore.swagger # container name specified in circle.yml
|
|
||||||
}
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
if [ "$NODE_INDEX" = "1" ]; then
|
if [ "$NODE_INDEX" = "1" ]; then
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
||||||
|
#cp CI/pom.xml.circleci pom.xml
|
||||||
java -version
|
java -version
|
||||||
# Install golang version 1.14
|
mvn --quiet verify -Psamples.circleci
|
||||||
go version
|
|
||||||
sudo mkdir /usr/local/go1.14
|
|
||||||
wget -c https://dl.google.com/go/go1.14.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.14
|
|
||||||
export PATH="/usr/local/go1.14/go/bin:$PATH"
|
|
||||||
go version
|
|
||||||
|
|
||||||
mvn --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
mvn --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
# run ensure-up-to-date sample script on SNAPSHOT version only
|
# run ensure-up-to-date sample script on SNAPSHOT version only
|
||||||
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
|
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
|
||||||
if [[ $project_version == *"-SNAPSHOT" ]]; then
|
if [[ $project_version == *"-SNAPSHOT" ]]; then
|
||||||
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
||||||
java -version
|
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
|
./bin/utils/ensure-up-to-date
|
||||||
fi
|
fi
|
||||||
#elif [ "$NODE_INDEX" = "3" ]; then
|
#elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
@@ -59,24 +36,14 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
# install curl
|
# install curl
|
||||||
sudo apt-get -y build-dep libcurl4-gnutls-dev
|
sudo apt-get -y build-dep libcurl4-gnutls-dev
|
||||||
sudo apt-get -y install libcurl4-gnutls-dev
|
sudo apt-get -y install libcurl4-gnutls-dev
|
||||||
|
|
||||||
# run integration tests
|
# run integration tests
|
||||||
mvn --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --quiet verify -Psamples.misc
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
|
||||||
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
||||||
java -version
|
java -version
|
||||||
|
#cp CI/pom.xml.circleci.java7 pom.xml
|
||||||
# install dart2
|
mvn --quiet verify -Psamples.circleci.jdk7
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install apt-transport-https
|
|
||||||
sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
|
|
||||||
sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install dart
|
|
||||||
export PATH="$PATH:/usr/lib/dart/bin"
|
|
||||||
|
|
||||||
mvn --quiet verify -Psamples.circleci.jdk7 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
|
||||||
https://maven.apache.org/xsd/settings-1.0.0.xsd">
|
|
||||||
<!-- This directory matches what is defined in run-in-docker.sh -->
|
|
||||||
<localRepository>/var/maven/.m2/repository</localRepository>
|
|
||||||
</settings>
|
|
||||||
@@ -24,8 +24,13 @@ OpenAPI spec version: 1.0.0
|
|||||||
<EmbeddedResource Include="linux-logo.png" />
|
<EmbeddedResource Include="linux-logo.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CompareNETObjects" Version="4.57.0" />
|
||||||
|
<PackageReference Include="JsonSubTypes" Version="1.5.2" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
||||||
<PackageReference Include="xunit" Version="2.4.1" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||||
|
<PackageReference Include="RestSharp" Version="106.6.7" />
|
||||||
|
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -24,8 +24,13 @@ OpenAPI spec version: 1.0.0
|
|||||||
<EmbeddedResource Include="linux-logo.png" />
|
<EmbeddedResource Include="linux-logo.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CompareNETObjects" Version="4.57.0" />
|
||||||
|
<PackageReference Include="JsonSubTypes" Version="1.5.2" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
||||||
<PackageReference Include="xunit" Version="2.4.1" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||||
|
<PackageReference Include="RestSharp" Version="106.6.7" />
|
||||||
|
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -47,16 +47,16 @@ OpenAPI spec version: 1.0.0
|
|||||||
<Reference Include="System.Runtime.Serialization" />
|
<Reference Include="System.Runtime.Serialization" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="Newtonsoft.Json">
|
<Reference Include="Newtonsoft.Json">
|
||||||
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="JsonSubTypes">
|
<Reference Include="JsonSubTypes">
|
||||||
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\JsonSubTypes.1.2.0\lib\net45\JsonSubTypes.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\packages')">..\packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
|
<HintPath Condition="Exists('..\packages')">..\packages\JsonSubTypes.1.2.0\lib\net45\JsonSubTypes.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\..\packages')">..\..\packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
|
<HintPath Condition="Exists('..\..\packages')">..\..\packages\JsonSubTypes.1.2.0\lib\net45\JsonSubTypes.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\JsonSubTypes.1.2.0\lib\net45\JsonSubTypes.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="RestSharp">
|
<Reference Include="RestSharp">
|
||||||
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
|
||||||
@@ -65,10 +65,10 @@ OpenAPI spec version: 1.0.0
|
|||||||
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="nunit.framework">
|
<Reference Include="nunit.framework">
|
||||||
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\packages')">..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
|
<HintPath Condition="Exists('..\packages')">..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
|
<HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ version = '1.0.0'
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter {
|
jcenter {
|
||||||
url "https://jcenter.bintray.com/"
|
url "http://jcenter.bintray.com/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -102,7 +102,7 @@ ext {
|
|||||||
jersey_version = "2.6"
|
jersey_version = "2.6"
|
||||||
commons_io_version=2.5
|
commons_io_version=2.5
|
||||||
commons_lang3_version=3.6
|
commons_lang3_version=3.6
|
||||||
junit_version = "4.13"
|
junit_version = "4.12"
|
||||||
threetenbp_version = "2.6.4"
|
threetenbp_version = "2.6.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,57 +15,33 @@ public class ApiKeyAuthTest {
|
|||||||
public void testApplyToParamsInQuery() {
|
public void testApplyToParamsInQuery() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||||
auth.setApiKey("my-api-key");
|
auth.setApiKey("my-api-key");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
assertEquals(1, queryParams.size());
|
assertEquals(1, queryParams.size());
|
||||||
for (Pair queryParam : queryParams) {
|
for (Pair queryParam : queryParams) {
|
||||||
assertEquals("my-api-key", queryParam.getValue());
|
assertEquals("my-api-key", queryParam.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
// no changes to header or cookie parameters
|
// no changes to header parameters
|
||||||
assertEquals(0, headerParams.size());
|
assertEquals(0, headerParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testApplyToParamsInHeaderWithPrefix() {
|
public void testApplyToParamsInHeaderWithPrefix() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||||
auth.setApiKey("my-api-token");
|
auth.setApiKey("my-api-token");
|
||||||
auth.setApiKeyPrefix("Token");
|
auth.setApiKeyPrefix("Token");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query or cookie parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
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,15 +22,13 @@ public class HttpBasicAuthTest {
|
|||||||
public void testApplyToParams() {
|
public void testApplyToParams() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword("my-password");
|
auth.setPassword("my-password");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query or cookie parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
||||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||||
@@ -38,7 +36,7 @@ public class HttpBasicAuthTest {
|
|||||||
|
|
||||||
// null username should be treated as empty string
|
// null username should be treated as empty string
|
||||||
auth.setUsername(null);
|
auth.setUsername(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
@@ -46,7 +44,7 @@ public class HttpBasicAuthTest {
|
|||||||
// null password should be treated as empty string
|
// null password should be treated as empty string
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword(null);
|
auth.setPassword(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||||
expected = "Basic bXktdXNlcm5hbWU6";
|
expected = "Basic bXktdXNlcm5hbWU6";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
|
|||||||
@@ -15,55 +15,33 @@ public class ApiKeyAuthTest {
|
|||||||
public void testApplyToParamsInQuery() {
|
public void testApplyToParamsInQuery() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||||
auth.setApiKey("my-api-key");
|
auth.setApiKey("my-api-key");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
assertEquals(1, queryParams.size());
|
assertEquals(1, queryParams.size());
|
||||||
for (Pair queryParam : queryParams) {
|
for (Pair queryParam : queryParams) {
|
||||||
assertEquals("my-api-key", queryParam.getValue());
|
assertEquals("my-api-key", queryParam.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
// no changes to header or cookie parameters
|
// no changes to header parameters
|
||||||
assertEquals(0, headerParams.size());
|
assertEquals(0, headerParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testApplyToParamsInHeaderWithPrefix() {
|
public void testApplyToParamsInHeaderWithPrefix() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||||
auth.setApiKey("my-api-token");
|
auth.setApiKey("my-api-token");
|
||||||
auth.setApiKeyPrefix("Token");
|
auth.setApiKeyPrefix("Token");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
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,11 +22,10 @@ public class HttpBasicAuthTest {
|
|||||||
public void testApplyToParams() {
|
public void testApplyToParams() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword("my-password");
|
auth.setPassword("my-password");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
@@ -37,7 +36,7 @@ public class HttpBasicAuthTest {
|
|||||||
|
|
||||||
// null username should be treated as empty string
|
// null username should be treated as empty string
|
||||||
auth.setUsername(null);
|
auth.setUsername(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
@@ -45,7 +44,7 @@ public class HttpBasicAuthTest {
|
|||||||
// null password should be treated as empty string
|
// null password should be treated as empty string
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword(null);
|
auth.setPassword(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||||
expected = "Basic bXktdXNlcm5hbWU6";
|
expected = "Basic bXktdXNlcm5hbWU6";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import java.util.TimeZone;
|
|||||||
|
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import static org.hamcrest.CoreMatchers.*;
|
|
||||||
|
|
||||||
|
|
||||||
public class ApiClientTest {
|
public class ApiClientTest {
|
||||||
@@ -330,18 +329,24 @@ public class ApiClientTest {
|
|||||||
assertEquals("sun.gif", apiClient.sanitizeFilename(".\\sun.gif"));
|
assertEquals("sun.gif", apiClient.sanitizeFilename(".\\sun.gif"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNewHttpClient() {
|
public void testInterceptorCleanupWithNewClient() {
|
||||||
OkHttpClient oldClient = apiClient.getHttpClient();
|
OkHttpClient oldClient = apiClient.getHttpClient();
|
||||||
apiClient.setHttpClient(oldClient.newBuilder().build());
|
assertEquals(1, oldClient.networkInterceptors().size());
|
||||||
assertThat(apiClient.getHttpClient(), is(not(oldClient)));
|
|
||||||
|
OkHttpClient newClient = new OkHttpClient();
|
||||||
|
apiClient.setHttpClient(newClient);
|
||||||
|
assertEquals(1, apiClient.getHttpClient().networkInterceptors().size());
|
||||||
|
apiClient.setHttpClient(newClient);
|
||||||
|
assertEquals(1, apiClient.getHttpClient().networkInterceptors().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Test
|
||||||
* Tests the invariant that the HttpClient for the ApiClient must never be null
|
public void testInterceptorCleanupWithSameClient() {
|
||||||
*/
|
OkHttpClient oldClient = apiClient.getHttpClient();
|
||||||
@Test(expected = NullPointerException.class)
|
assertEquals(1, oldClient.networkInterceptors().size());
|
||||||
public void testNullHttpClient() {
|
apiClient.setHttpClient(oldClient);
|
||||||
apiClient.setHttpClient(null);
|
assertEquals(1, apiClient.getHttpClient().networkInterceptors().size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,12 +28,9 @@ import java.util.concurrent.TimeUnit;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ThreadLocalRandom;
|
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
|
|
||||||
@@ -45,16 +42,12 @@ import static org.junit.Assert.*;
|
|||||||
public class PetApiTest {
|
public class PetApiTest {
|
||||||
|
|
||||||
private PetApi api = new PetApi();
|
private PetApi api = new PetApi();
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(PetApiTest.class);
|
|
||||||
// In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io to 127.0.0.1
|
|
||||||
private static String basePath = "http://petstore.swagger.io:80/v2";
|
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setup() {
|
public void setup() {
|
||||||
// setup authentication
|
// setup authentication
|
||||||
ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key");
|
ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key");
|
||||||
apiKeyAuth.setApiKey("special-key");
|
apiKeyAuth.setApiKey("special-key");
|
||||||
api.getApiClient().setBasePath(basePath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -62,13 +55,12 @@ public class PetApiTest {
|
|||||||
// the default api client is used
|
// the default api client is used
|
||||||
assertEquals(Configuration.getDefaultApiClient(), api.getApiClient());
|
assertEquals(Configuration.getDefaultApiClient(), api.getApiClient());
|
||||||
assertNotNull(api.getApiClient());
|
assertNotNull(api.getApiClient());
|
||||||
assertEquals(basePath, api.getApiClient().getBasePath());
|
assertEquals("http://petstore.swagger.io:80/v2", api.getApiClient().getBasePath());
|
||||||
assertFalse(api.getApiClient().isDebugging());
|
assertFalse(api.getApiClient().isDebugging());
|
||||||
|
|
||||||
ApiClient oldClient = api.getApiClient();
|
ApiClient oldClient = api.getApiClient();
|
||||||
|
|
||||||
ApiClient newClient = new ApiClient();
|
ApiClient newClient = new ApiClient();
|
||||||
newClient.setVerifyingSsl(true);
|
|
||||||
newClient.setBasePath("http://example.com");
|
newClient.setBasePath("http://example.com");
|
||||||
newClient.setDebugging(true);
|
newClient.setDebugging(true);
|
||||||
|
|
||||||
@@ -81,7 +73,7 @@ public class PetApiTest {
|
|||||||
// set api client via setter method
|
// set api client via setter method
|
||||||
api.setApiClient(oldClient);
|
api.setApiClient(oldClient);
|
||||||
assertNotNull(api.getApiClient());
|
assertNotNull(api.getApiClient());
|
||||||
assertEquals(basePath, api.getApiClient().getBasePath());
|
assertEquals("http://petstore.swagger.io:80/v2", api.getApiClient().getBasePath());
|
||||||
assertFalse(api.getApiClient().isDebugging());
|
assertFalse(api.getApiClient().isDebugging());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,7 +84,6 @@ public class PetApiTest {
|
|||||||
|
|
||||||
Pet fetched = api.getPetById(pet.getId());
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
assertPetMatches(pet, fetched);
|
assertPetMatches(pet, fetched);
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -106,7 +97,6 @@ public class PetApiTest {
|
|||||||
Pet fetched = resp.getData();
|
Pet fetched = resp.getData();
|
||||||
|
|
||||||
assertPetMatches(pet, fetched);
|
assertPetMatches(pet, fetched);
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -137,6 +127,8 @@ public class PetApiTest {
|
|||||||
//empty
|
//empty
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// the API call should be executed asynchronously, so result should be empty at the moment
|
||||||
|
assertTrue(result.isEmpty());
|
||||||
|
|
||||||
// wait for the asynchronous call to finish (at most 10 seconds)
|
// wait for the asynchronous call to finish (at most 10 seconds)
|
||||||
final int maxTry = 10;
|
final int maxTry = 10;
|
||||||
@@ -153,15 +145,6 @@ public class PetApiTest {
|
|||||||
}
|
}
|
||||||
} while (result.isEmpty());
|
} while (result.isEmpty());
|
||||||
assertPetMatches(pet, fetched);
|
assertPetMatches(pet, fetched);
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testCreateAndGetPetAsyncInvalidID() throws Exception {
|
|
||||||
Pet pet = createPet();
|
|
||||||
api.addPet(pet);
|
|
||||||
// to store returned Pet or error message/exception
|
|
||||||
final Map<String, Object> result = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
// test getting a nonexistent pet
|
// test getting a nonexistent pet
|
||||||
result.clear();
|
result.clear();
|
||||||
@@ -188,11 +171,8 @@ public class PetApiTest {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// wait for the asynchronous call to finish (at most 10 seconds)
|
// wait for the asynchronous call to finish (at most 10 seconds)
|
||||||
final int maxTry = 10;
|
tryCount = 1;
|
||||||
int tryCount = 1;
|
|
||||||
Pet fetched = null;
|
|
||||||
ApiException exception = null;
|
ApiException exception = null;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds");
|
if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds");
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
@@ -207,7 +187,6 @@ public class PetApiTest {
|
|||||||
assertEquals(404, exception.getCode());
|
assertEquals(404, exception.getCode());
|
||||||
assertEquals("Not Found", exception.getMessage());
|
assertEquals("Not Found", exception.getMessage());
|
||||||
assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0));
|
assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0));
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -266,31 +245,26 @@ public class PetApiTest {
|
|||||||
final ApiException exception = getCallback3.getException();
|
final ApiException exception = getCallback3.getException();
|
||||||
assertNotNull(exception);
|
assertNotNull(exception);
|
||||||
assertEquals(404, exception.getCode());
|
assertEquals(404, exception.getCode());
|
||||||
api.deletePet(pet1.getId(), null);
|
|
||||||
api.deletePet(pet2.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdatePet() throws Exception {
|
public void testUpdatePet() throws Exception {
|
||||||
Pet pet = createPet();
|
Pet pet = createPet();
|
||||||
api.addPet(pet);
|
|
||||||
pet.setName("programmer");
|
pet.setName("programmer");
|
||||||
|
|
||||||
api.updatePet(pet);
|
api.updatePet(pet);
|
||||||
|
|
||||||
Pet fetched = api.getPetById(pet.getId());
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
assertPetMatches(pet, fetched);
|
assertPetMatches(pet, fetched);
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFindPetsByStatus() throws Exception {
|
public void testFindPetsByStatus() throws Exception {
|
||||||
assertEquals(basePath, api.getApiClient().getBasePath());
|
|
||||||
Pet pet = createPet();
|
Pet pet = createPet();
|
||||||
api.addPet(pet);
|
|
||||||
pet.setName("programmer");
|
pet.setName("programmer");
|
||||||
pet.setStatus(Pet.StatusEnum.PENDING);
|
pet.setStatus(Pet.StatusEnum.PENDING);
|
||||||
|
|
||||||
api.updatePet(pet);
|
api.updatePet(pet);
|
||||||
|
|
||||||
List<Pet> pets = api.findPetsByStatus(Arrays.asList("pending"));
|
List<Pet> pets = api.findPetsByStatus(Arrays.asList("pending"));
|
||||||
@@ -351,7 +325,6 @@ public class PetApiTest {
|
|||||||
Pet updated = api.getPetById(fetched.getId());
|
Pet updated = api.getPetById(fetched.getId());
|
||||||
|
|
||||||
assertEquals(updated.getName(), "furt");
|
assertEquals(updated.getName(), "furt");
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -360,13 +333,12 @@ public class PetApiTest {
|
|||||||
api.addPet(pet);
|
api.addPet(pet);
|
||||||
|
|
||||||
Pet fetched = api.getPetById(pet.getId());
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
api.deletePet(pet.getId(), null);
|
api.deletePet(fetched.getId(), null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fetched = api.getPetById(fetched.getId());
|
fetched = api.getPetById(fetched.getId());
|
||||||
fail("expected an error");
|
fail("expected an error");
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
LOG.info("Code: {}. Message: {}", e.getCode(), e.getMessage());
|
|
||||||
assertEquals(404, e.getCode());
|
assertEquals(404, e.getCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -382,7 +354,6 @@ public class PetApiTest {
|
|||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath()));
|
api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath()));
|
||||||
api.deletePet(pet.getId(), null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -415,7 +386,7 @@ public class PetApiTest {
|
|||||||
|
|
||||||
private Pet createPet() {
|
private Pet createPet() {
|
||||||
Pet pet = new Pet();
|
Pet pet = new Pet();
|
||||||
pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE));
|
pet.setId(1234567L);
|
||||||
pet.setName("gorilla");
|
pet.setName("gorilla");
|
||||||
|
|
||||||
Category category = new Category();
|
Category category = new Category();
|
||||||
@@ -442,16 +413,16 @@ public class PetApiTest {
|
|||||||
assertEquals(expected.getId(), actual.getId());
|
assertEquals(expected.getId(), actual.getId());
|
||||||
assertNotNull(actual.getCategory());
|
assertNotNull(actual.getCategory());
|
||||||
assertEquals(expected.getCategory().getName(),
|
assertEquals(expected.getCategory().getName(),
|
||||||
actual.getCategory().getName());
|
actual.getCategory().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assert that the given upload/download progress list satisfies the
|
* Assert that the given upload/download progress list satisfies the
|
||||||
* following constraints:
|
* following constraints:
|
||||||
* <p>
|
*
|
||||||
* - List is not empty
|
* - List is not empty
|
||||||
* - Byte count should be nondecreasing
|
* - Byte count should be nondecreasing
|
||||||
* - The last element, and only the last element, should have done=true
|
* - The last element, and only the last element, should have done=true
|
||||||
*/
|
*/
|
||||||
private void assertValidProgress(List<Progress> progressList) {
|
private void assertValidProgress(List<Progress> progressList) {
|
||||||
assertFalse(progressList.isEmpty());
|
assertFalse(progressList.isEmpty());
|
||||||
@@ -462,7 +433,7 @@ public class PetApiTest {
|
|||||||
if (prev != null) {
|
if (prev != null) {
|
||||||
if (prev.done || prev.bytes > progress.bytes) {
|
if (prev.done || prev.bytes > progress.bytes) {
|
||||||
fail("Progress list out of order at index " + index
|
fail("Progress list out of order at index " + index
|
||||||
+ ": " + progressList);
|
+ ": " + progressList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prev = progress;
|
prev = progress;
|
||||||
@@ -478,9 +449,9 @@ public class PetApiTest {
|
|||||||
|
|
||||||
private final CountDownLatch latch;
|
private final CountDownLatch latch;
|
||||||
private final ConcurrentLinkedQueue<Progress> uploadProgress =
|
private final ConcurrentLinkedQueue<Progress> uploadProgress =
|
||||||
new ConcurrentLinkedQueue<Progress>();
|
new ConcurrentLinkedQueue<Progress>();
|
||||||
private final ConcurrentLinkedQueue<Progress> downloadProgress =
|
private final ConcurrentLinkedQueue<Progress> downloadProgress =
|
||||||
new ConcurrentLinkedQueue<Progress>();
|
new ConcurrentLinkedQueue<Progress>();
|
||||||
|
|
||||||
private boolean done;
|
private boolean done;
|
||||||
private boolean success;
|
private boolean success;
|
||||||
|
|||||||
@@ -15,52 +15,46 @@ public class ApiKeyAuthTest {
|
|||||||
public void testApplyToParamsInQuery() {
|
public void testApplyToParamsInQuery() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||||
auth.setApiKey("my-api-key");
|
auth.setApiKey("my-api-key");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
assertEquals(1, queryParams.size());
|
assertEquals(1, queryParams.size());
|
||||||
for (Pair queryParam : queryParams) {
|
for (Pair queryParam : queryParams) {
|
||||||
assertEquals("my-api-key", queryParam.getValue());
|
assertEquals("my-api-key", queryParam.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
// no changes to header or cookie parameters
|
// no changes to header parameters
|
||||||
assertEquals(0, headerParams.size());
|
assertEquals(0, headerParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testApplyToParamsInQueryWithNullValue() {
|
public void testApplyToParamsInQueryWithNullValue() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||||
auth.setApiKey(null);
|
auth.setApiKey(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to parameters
|
// no changes to parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, headerParams.size());
|
assertEquals(0, headerParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testApplyToParamsInHeaderWithPrefix() {
|
public void testApplyToParamsInHeaderWithPrefix() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||||
auth.setApiKey("my-api-token");
|
auth.setApiKey("my-api-token");
|
||||||
auth.setApiKeyPrefix("Token");
|
auth.setApiKeyPrefix("Token");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query or cookie parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN"));
|
||||||
}
|
}
|
||||||
@@ -69,51 +63,14 @@ public class ApiKeyAuthTest {
|
|||||||
public void testApplyToParamsInHeaderWithNullValue() {
|
public void testApplyToParamsInHeaderWithNullValue() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||||
auth.setApiKey(null);
|
auth.setApiKey(null);
|
||||||
auth.setApiKeyPrefix("Token");
|
auth.setApiKeyPrefix("Token");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to parameters
|
// no changes to parameters
|
||||||
assertEquals(0, queryParams.size());
|
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());
|
assertEquals(0, headerParams.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,15 +22,13 @@ public class HttpBasicAuthTest {
|
|||||||
public void testApplyToParams() {
|
public void testApplyToParams() {
|
||||||
List<Pair> queryParams = new ArrayList<Pair>();
|
List<Pair> queryParams = new ArrayList<Pair>();
|
||||||
Map<String, String> headerParams = new HashMap<String, String>();
|
Map<String, String> headerParams = new HashMap<String, String>();
|
||||||
Map<String, String> cookieParams = new HashMap<String, String>();
|
|
||||||
|
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword("my-password");
|
auth.setPassword("my-password");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query or cookie parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
||||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||||
@@ -38,7 +36,7 @@ public class HttpBasicAuthTest {
|
|||||||
|
|
||||||
// null username should be treated as empty string
|
// null username should be treated as empty string
|
||||||
auth.setUsername(null);
|
auth.setUsername(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
@@ -46,7 +44,7 @@ public class HttpBasicAuthTest {
|
|||||||
// null password should be treated as empty string
|
// null password should be treated as empty string
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword(null);
|
auth.setPassword(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||||
expected = "Basic bXktdXNlcm5hbWU6";
|
expected = "Basic bXktdXNlcm5hbWU6";
|
||||||
assertEquals(expected, headerParams.get("Authorization"));
|
assertEquals(expected, headerParams.get("Authorization"));
|
||||||
@@ -56,7 +54,7 @@ public class HttpBasicAuthTest {
|
|||||||
headerParams = new HashMap<String, String>();
|
headerParams = new HashMap<String, String>();
|
||||||
auth.setUsername(null);
|
auth.setUsername(null);
|
||||||
auth.setPassword(null);
|
auth.setPassword(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// no changes to parameters
|
// no changes to parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, headerParams.size());
|
assertEquals(0, headerParams.size());
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ public class ArrayOfArrayOfNumberOnlyTest {
|
|||||||
List<BigDecimal> arrayArrayNumber = new ArrayList<BigDecimal>();
|
List<BigDecimal> arrayArrayNumber = new ArrayList<BigDecimal>();
|
||||||
arrayArrayNumber.add(b1);
|
arrayArrayNumber.add(b1);
|
||||||
arrayArrayNumber.add(b2);
|
arrayArrayNumber.add(b2);
|
||||||
model.setArrayArrayNumber(new ArrayList<List<BigDecimal>>());
|
|
||||||
model.getArrayArrayNumber().add(arrayArrayNumber);
|
model.getArrayArrayNumber().add(arrayArrayNumber);
|
||||||
|
|
||||||
// create another instance for comparison
|
// create another instance for comparison
|
||||||
@@ -63,7 +62,6 @@ public class ArrayOfArrayOfNumberOnlyTest {
|
|||||||
List<BigDecimal> arrayArrayNumber2 = new ArrayList<BigDecimal>();
|
List<BigDecimal> arrayArrayNumber2 = new ArrayList<BigDecimal>();
|
||||||
arrayArrayNumber2.add(b1);
|
arrayArrayNumber2.add(b1);
|
||||||
arrayArrayNumber2.add(b2);
|
arrayArrayNumber2.add(b2);
|
||||||
model2.setArrayArrayNumber(new ArrayList<List<BigDecimal>>());
|
|
||||||
model2.getArrayArrayNumber().add(arrayArrayNumber2);
|
model2.getArrayArrayNumber().add(arrayArrayNumber2);
|
||||||
|
|
||||||
Assert.assertTrue(model2.equals(model));
|
Assert.assertTrue(model2.equals(model));
|
||||||
|
|||||||
@@ -17,53 +17,31 @@ public class ApiKeyAuthTest {
|
|||||||
public void testApplyToParamsInQuery() {
|
public void testApplyToParamsInQuery() {
|
||||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||||
HttpHeaders headerParams = new HttpHeaders();
|
HttpHeaders headerParams = new HttpHeaders();
|
||||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
ApiKeyAuth auth = new ApiKeyAuth("query", "api_key");
|
||||||
auth.setApiKey("my-api-key");
|
auth.setApiKey("my-api-key");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
assertEquals(1, queryParams.size());
|
assertEquals(1, queryParams.size());
|
||||||
assertEquals("my-api-key", queryParams.get("api_key").get(0));
|
assertEquals("my-api-key", queryParams.get("api_key").get(0));
|
||||||
|
|
||||||
// no changes to header or cookie parameters
|
// no changes to header parameters
|
||||||
assertEquals(0, headerParams.size());
|
assertEquals(0, headerParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testApplyToParamsInHeaderWithPrefix() {
|
public void testApplyToParamsInHeaderWithPrefix() {
|
||||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||||
HttpHeaders headerParams = new HttpHeaders();
|
HttpHeaders headerParams = new HttpHeaders();
|
||||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
|
||||||
|
|
||||||
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN");
|
||||||
auth.setApiKey("my-api-token");
|
auth.setApiKey("my-api-token");
|
||||||
auth.setApiKeyPrefix("Token");
|
auth.setApiKeyPrefix("Token");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query or cookie parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN").get(0));
|
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,15 +24,13 @@ public class HttpBasicAuthTest {
|
|||||||
public void testApplyToParams() {
|
public void testApplyToParams() {
|
||||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||||
HttpHeaders headerParams = new HttpHeaders();
|
HttpHeaders headerParams = new HttpHeaders();
|
||||||
MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();
|
|
||||||
|
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword("my-password");
|
auth.setPassword("my-password");
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
|
|
||||||
// no changes to query or cookie parameters
|
// no changes to query parameters
|
||||||
assertEquals(0, queryParams.size());
|
assertEquals(0, queryParams.size());
|
||||||
assertEquals(0, cookieParams.size());
|
|
||||||
assertEquals(1, headerParams.size());
|
assertEquals(1, headerParams.size());
|
||||||
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix
|
||||||
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ=";
|
||||||
@@ -40,7 +38,7 @@ public class HttpBasicAuthTest {
|
|||||||
|
|
||||||
// null username should be treated as empty string
|
// null username should be treated as empty string
|
||||||
auth.setUsername(null);
|
auth.setUsername(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
// the string below is base64-encoded result of ":my-password" with the "Basic " prefix
|
||||||
expected = "Basic Om15LXBhc3N3b3Jk";
|
expected = "Basic Om15LXBhc3N3b3Jk";
|
||||||
assertEquals(expected, headerParams.get("Authorization").get(1));
|
assertEquals(expected, headerParams.get("Authorization").get(1));
|
||||||
@@ -48,7 +46,7 @@ public class HttpBasicAuthTest {
|
|||||||
// null password should be treated as empty string
|
// null password should be treated as empty string
|
||||||
auth.setUsername("my-username");
|
auth.setUsername("my-username");
|
||||||
auth.setPassword(null);
|
auth.setPassword(null);
|
||||||
auth.applyToParams(queryParams, headerParams, cookieParams);
|
auth.applyToParams(queryParams, headerParams);
|
||||||
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
// the string below is base64-encoded result of "my-username:" with the "Basic " prefix
|
||||||
expected = "Basic bXktdXNlcm5hbWU6";
|
expected = "Basic bXktdXNlcm5hbWU6";
|
||||||
assertEquals(expected, headerParams.get("Authorization").get(2));
|
assertEquals(expected, headerParams.get("Authorization").get(2));
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.openapitools</groupId>
|
|
||||||
<artifactId>TypeScriptAngularBuildPestoreClientTests</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<name>TS Fetch Multiple Parameters Petstore Client</name>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>copy-dependencies</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>org.openapitools</groupId>
|
|
||||||
<artifactId>TypeScriptFetchBuildPrefixParameterInterfacesPestoreClientTests</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<name>TS Fetch Petstore Client (with namespacing for parameter interfaces)</name>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>copy-dependencies</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
|
||||||
<version>1.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>npm-install</id>
|
|
||||||
<phase>integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>npm</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>install</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>npm-build</id>
|
|
||||||
<phase>integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>npm</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>run</argument>
|
|
||||||
<argument>build</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>npm-test</id>
|
|
||||||
<phase>integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>npm</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>test</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
@@ -31,8 +31,6 @@ Please file the pull request against the correct branch, e.g. `master` for non-b
|
|||||||
|
|
||||||
All the code generators can be found in [modules/openapi-generator/src/main/java/org/openapitools/codegen/languages](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages)
|
All the code generators can be found in [modules/openapi-generator/src/main/java/org/openapitools/codegen/languages](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages)
|
||||||
|
|
||||||
If you want to add a new generator, follow the [new-generator](https://openapi-generator.tech/docs/new-generator) guide.
|
|
||||||
|
|
||||||
### Templates
|
### Templates
|
||||||
|
|
||||||
All the templates ([mustache](https://mustache.github.io/)) can be found in [modules/openapi-generator/src/main/resources](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources).
|
All the templates ([mustache](https://mustache.github.io/)) can be found in [modules/openapi-generator/src/main/resources](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources).
|
||||||
@@ -61,7 +59,7 @@ Code change should conform to the programming style guide of the respective lang
|
|||||||
- Go: https://github.com/golang/go/wiki/CodeReviewComments
|
- Go: https://github.com/golang/go/wiki/CodeReviewComments
|
||||||
- ObjC: https://github.com/NYTimes/objective-c-style-guide
|
- ObjC: https://github.com/NYTimes/objective-c-style-guide
|
||||||
- Perl: http://perldoc.perl.org/perlstyle.html
|
- Perl: http://perldoc.perl.org/perlstyle.html
|
||||||
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md
|
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
|
||||||
- PowerShell: https://msdn.microsoft.com/en-us/library/dd878270(v=vs.85).aspx
|
- PowerShell: https://msdn.microsoft.com/en-us/library/dd878270(v=vs.85).aspx
|
||||||
- Python: https://www.python.org/dev/peps/pep-0008/
|
- Python: https://www.python.org/dev/peps/pep-0008/
|
||||||
- R: https://google.github.io/styleguide/Rguide.xml
|
- R: https://google.github.io/styleguide/Rguide.xml
|
||||||
@@ -85,18 +83,13 @@ 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 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:
|
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-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)
|
- Update the Petstore sample by running the shell script under `bin` folder. For example, run `./bin/ruby-client-petstore.sh` to update the Ruby PetStore API client under [`samples/client/petstore/ruby`](https://github.com/openapitools/openapi-generator/tree/master/samples/client/petstore/ruby) 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)
|
- Run the tests in the sample folder, e.g. in `samples/client/petstore/ruby`, run `mvn integration-test -rf :RubyPetstoreClientTests`. (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`
|
- Finally, git commit the updated samples files: `git commit -a`
|
||||||
(`git add -A` if added files with new test cases)
|
(`git add -A` if added files with new test cases)
|
||||||
- For new test cases, please add to the [Fake Petstore spec](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml)
|
- For new test cases, please add to the [Fake Petstore spec](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml)
|
||||||
|
|
||||||
To start the CI tests, you can:
|
To start the CI tests, you can run `mvn verify -Psamples` (assuming you've all the required tools installed to run tests for different languages) or you can leverage http://travis-ci.org to run the CI tests by adding your own openapi-generator repository.
|
||||||
- Run `mvn verify -Psamples`, assuming you have all the required tools installed to run tests for different languages.
|
|
||||||
- Leverage http://travis-ci.org to run the CI tests by adding your own openapi-generator repository.
|
|
||||||
- Run some of the CI tests in your local workspace.
|
|
||||||
|
|
||||||
See [OpenAPI Tools wiki](https://github.com/OpenAPITools/openapi-generator/wiki/Integration-Tests) for more information about the integration tests.
|
|
||||||
|
|
||||||
### Tips
|
### Tips
|
||||||
- Smaller changes are easier to review
|
- Smaller changes are easier to review
|
||||||
@@ -106,5 +99,5 @@ See [OpenAPI Tools wiki](https://github.com/OpenAPITools/openapi-generator/wiki/
|
|||||||
- Make sure test cases passed after the change (one way is to leverage https://travis-ci.org/ to run the CI tests)
|
- Make sure test cases passed after the change (one way is to leverage https://travis-ci.org/ to run the CI tests)
|
||||||
- File a PR with meaningful title, description and commit messages.
|
- File a PR with meaningful title, description and commit messages.
|
||||||
- Recommended git settings
|
- Recommended git settings
|
||||||
- `git config core.autocrlf input` to tell Git convert CRLF to LF on commit but not the other way around
|
- `git config --global core.autocrlf input` to tell Git convert CRLF to LF on commit but not the other way around
|
||||||
- To close an issue (e.g. issue 1542) automatically after a PR is merged, use keywords "fix", "close", "resolve" in the PR description, e.g. `fix #1542`. (Ref: [closing issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
|
- To close an issue (e.g. issue 1542) automatically after a PR is merged, use keywords "fix", "close", "resolve" in the PR description, e.g. `fix #1542`. (Ref: [closing issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-genera
|
|||||||
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
|
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
|
||||||
COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
|
COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
|
||||||
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
|
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
|
||||||
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
|
|
||||||
COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
|
COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
|
||||||
COPY ./pom.xml ${GEN_DIR}
|
COPY ./pom.xml ${GEN_DIR}
|
||||||
|
|
||||||
@@ -27,7 +26,6 @@ RUN mvn -am -pl "modules/openapi-generator-cli" package
|
|||||||
|
|
||||||
# This exists at the end of the file to benefit from cached layers when modifying docker-entrypoint.sh.
|
# This exists at the end of the file to benefit from cached layers when modifying docker-entrypoint.sh.
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-generator
|
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -193,7 +193,7 @@
|
|||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
|||||||
382
README.md
382
README.md
@@ -2,25 +2,17 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`4.3.0`): [](https://travis-ci.org/OpenAPITools/openapi-generator)
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`4.0.0`): [](https://travis-ci.org/OpenAPITools/openapi-generator)
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||||
[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
|
[](https://app.shippable.com/github/OpenAPITools/openapi-generator)
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
|
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
|
||||||
[](https://cloud.drone.io/OpenAPITools/openapi-generator)
|
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
|
||||||
|
|
||||||
[`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)
|
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
|
|
||||||
[](https://cloud.drone.io/OpenAPITools/openapi-generator)
|
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM)
|
[](https://gitter.im/OpenAPITools/openapi-generator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
||||||
[](https://twitter.com/oas_generator)
|
[](https://twitter.com/oas_generator)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -33,7 +25,7 @@
|
|||||||
|
|
||||||
:notebook_with_decorative_cover: For more information, please refer to the [Wiki page](https://github.com/openapitools/openapi-generator/wiki) and [FAQ](https://github.com/openapitools/openapi-generator/wiki/FAQ) :notebook_with_decorative_cover:
|
:notebook_with_decorative_cover: For more information, please refer to the [Wiki page](https://github.com/openapitools/openapi-generator/wiki) and [FAQ](https://github.com/openapitools/openapi-generator/wiki/FAQ) :notebook_with_decorative_cover:
|
||||||
|
|
||||||
:notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gum.co/openapi_generator_ebook) is a good starting point for beginners :notebook_with_decorative_cover:
|
:notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for beginners :notebook_with_decorative_cover:
|
||||||
|
|
||||||
:warning: If the OpenAPI spec, templates or any input (e.g. options, environment variables) is obtained from an untrusted source or environment, please make sure you've reviewed these inputs before using OpenAPI Generator to generate the API client, server stub or documentation to avoid potential security issues (e.g. [code injection](https://en.wikipedia.org/wiki/Code_injection)) :warning:
|
:warning: If the OpenAPI spec, templates or any input (e.g. options, environment variables) is obtained from an untrusted source or environment, please make sure you've reviewed these inputs before using OpenAPI Generator to generate the API client, server stub or documentation to avoid potential security issues (e.g. [code injection](https://en.wikipedia.org/wiki/Code_injection)) :warning:
|
||||||
|
|
||||||
@@ -41,34 +33,16 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
## Sponsors
|
|
||||||
|
|
||||||
If you find OpenAPI Generator useful for work, please consider asking your company to support this Open Source project by [becoming a sponsor](https://opencollective.com/openapi_generator). You can also individually sponsor the project by [becoming a backer](https://opencollective.com/openapi_generator).
|
|
||||||
|
|
||||||
#### Thank you to our bronze sponsors!
|
|
||||||
|
|
||||||
[](https://www.namsor.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
|
||||||
[](https://www.lightbow.net/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
|
||||||
[<img src="https://openapi-generator.tech/img/companies/docspring.png" width="128" height="128">](https://docspring.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
|
||||||
|
|
||||||
|
|
||||||
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS and Checkly for sponsoring the API monitoring
|
|
||||||
|
|
||||||
[<img src="https://openapi-generator.tech/img/companies/godaddy.png" width="150">](https://www.godaddy.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
|
||||||
[](https://www.linode.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
|
||||||
[<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRAhEYadUyZYzGUotZiSdXkVMqqLGuohyixLl4eUpUV6pAbUULL" width="150">](https://checklyhq.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
|
||||||
|
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
||||||
|
|
||||||
| | Languages/Frameworks |
|
| | 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, MicroProfile Rest Client), **k6**, **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 8.x), Aurelia, Axios, Fetch, Inversify, jQuery, Node, Rxjs) |
|
**API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, 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**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types) **Objective-C**, **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 - 7.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), [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) |
|
**Server stubs** | **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go** (net/http, Gin), **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin** (Spring Boot, Ktor), **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** |
|
**API documentation generators** | **HTML**, **Confluence Wiki**
|
||||||
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
**Configuration files** | [**Apache2**](https://httpd.apache.org/)
|
||||||
| **Others** | **GraphQL**, **JMeter**, **MySQL Schema**, **Protocol Buffer** |
|
**Others** | **GraphQL**, **JMeter**, **MySQL Schema**
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
@@ -89,7 +63,6 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
- [3.2 - Workflow Integration](#32---workflow-integration-maven-gradle-github-cicd)
|
- [3.2 - Workflow Integration](#32---workflow-integration-maven-gradle-github-cicd)
|
||||||
- [3.3 - Online Generators](#33---online-openapi-generator)
|
- [3.3 - Online Generators](#33---online-openapi-generator)
|
||||||
- [3.4 - License Information on Generated Code](#34---license-information-on-generated-code)
|
- [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)
|
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator)
|
||||||
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
|
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
|
||||||
- [6 - About Us](#6---about-us)
|
- [6 - About Us](#6---about-us)
|
||||||
@@ -104,11 +77,10 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
|
|
||||||
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The openapi-generator project has the following compatibilities with the OpenAPI Specification:
|
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The openapi-generator project has the following compatibilities with the OpenAPI Specification:
|
||||||
|
|
||||||
| OpenAPI Generator Version | Release Date | Notes |
|
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.0.0 (upcoming release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.0.0-SNAPSHOT/)| 20.12.2018 | Major release with breaking changes (with or without fallback)
|
||||||
| 4.3.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.3.0-SNAPSHOT/) | 27.03.2020 | Minor release (breaking changes with fallbacks) |
|
[3.3.4](https://github.com/OpenAPITools/openapi-generator/releases/tag/v3.3.4) (latest stable release) | 30.11.2018 | Bugfix release
|
||||||
| [4.3.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.0) (latest stable release) | 27.03.2019 | Backward-compatible release |
|
|
||||||
|
|
||||||
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
||||||
|
|
||||||
@@ -161,19 +133,19 @@ See the different versions of the [openapi-generator-cli](https://mvnrepository.
|
|||||||
* [Readme](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-gradle-plugin/README.adoc)
|
* [Readme](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-gradle-plugin/README.adoc)
|
||||||
|
|
||||||
### [1.3 - Download JAR](#table-of-contents)
|
### [1.3 - Download JAR](#table-of-contents)
|
||||||
<!-- 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):
|
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: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.0/openapi-generator-cli-4.3.0.jar`
|
JAR location: `http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.0/openapi-generator-cli-4.3.0.jar -O openapi-generator-cli.jar
|
wget http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.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.
|
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 https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.0/openapi-generator-cli-4.3.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
||||||
@@ -183,7 +155,7 @@ For Mac users, please make sure Java 8 is installed (Tips: run `java -version` t
|
|||||||
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
|
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
|
||||||
export PATH=${JAVA_HOME}/bin:$PATH
|
export PATH=${JAVA_HOME}/bin:$PATH
|
||||||
```
|
```
|
||||||
<!-- /RELEASE_VERSION -->
|
|
||||||
### Launcher Script
|
### Launcher Script
|
||||||
|
|
||||||
One downside to manual jar downloads is that you don't keep up-to-date with the latest released version. We have a Bash launcher script at [bin/utils/openapi-generator.cli.sh](./bin/utils/openapi-generator-cli.sh) which resolves this issue.
|
One downside to manual jar downloads is that you don't keep up-to-date with the latest released version. We have a Bash launcher script at [bin/utils/openapi-generator.cli.sh](./bin/utils/openapi-generator-cli.sh) which resolves this issue.
|
||||||
@@ -231,9 +203,9 @@ openapi-generator-cli version # is always 3.0.2, unless any of the above overrid
|
|||||||
|
|
||||||
To build from source, you need the following installed and available in your `$PATH:`
|
To build from source, you need the following installed and available in your `$PATH:`
|
||||||
|
|
||||||
* [Java 8](https://www.oracle.com/technetwork/java/index.html)
|
* [Java 8](http://java.oracle.com)
|
||||||
|
|
||||||
* [Apache Maven 3.3.4 or greater](https://maven.apache.org/)
|
* [Apache maven 3.3.4 or greater](http://maven.apache.org/)
|
||||||
|
|
||||||
After cloning the project, you can build it from source with this command:
|
After cloning the project, you can build it from source with this command:
|
||||||
```sh
|
```sh
|
||||||
@@ -245,12 +217,6 @@ If you don't have maven installed, you may directly use the included [maven wrap
|
|||||||
./mvnw clean install
|
./mvnw clean install
|
||||||
```
|
```
|
||||||
|
|
||||||
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
mvn -Pstatic-analysis clean install
|
|
||||||
```
|
|
||||||
|
|
||||||
### [1.5 - Homebrew](#table-of-contents)
|
### [1.5 - Homebrew](#table-of-contents)
|
||||||
|
|
||||||
To install, run `brew install openapi-generator`
|
To install, run `brew install openapi-generator`
|
||||||
@@ -262,17 +228,6 @@ openapi-generator generate -i https://raw.githubusercontent.com/openapitools/ope
|
|||||||
|
|
||||||
To reinstall with the latest master, run `brew uninstall openapi-generator && brew install --HEAD openapi-generator`
|
To reinstall with the latest master, run `brew uninstall openapi-generator && brew install --HEAD openapi-generator`
|
||||||
|
|
||||||
To install OpenJDK (pre-requisites), please run
|
|
||||||
```sh
|
|
||||||
brew cask install adoptopenjdk12
|
|
||||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/
|
|
||||||
```
|
|
||||||
|
|
||||||
To install Maven, please run
|
|
||||||
```sh
|
|
||||||
brew install maven
|
|
||||||
```
|
|
||||||
|
|
||||||
### [1.6 - Docker](#table-of-contents)
|
### [1.6 - Docker](#table-of-contents)
|
||||||
|
|
||||||
#### Public Pre-built Docker images
|
#### Public Pre-built Docker images
|
||||||
@@ -306,7 +261,7 @@ Example usage:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Start container at port 8888 and save the container id
|
# Start container at port 8888 and save the container id
|
||||||
> CID=$(docker run -d -p 8888:8080 openapitools/openapi-generator-online)
|
> CID=$(docker run -d -p 8888:8080 -e GENERATOR_HOST=http://localhost:8888 openapitools/openapi-generator-online)
|
||||||
|
|
||||||
# allow for startup
|
# allow for startup
|
||||||
> sleep 10
|
> sleep 10
|
||||||
@@ -373,7 +328,7 @@ Right now: no solution for this one :|
|
|||||||
#### Run Docker in Vagrant
|
#### Run Docker in Vagrant
|
||||||
Prerequisite: install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads).
|
Prerequisite: install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads).
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/openapitools/openapi-generator.git
|
git clone http://github.com/openapitools/openapi-generator.git
|
||||||
cd openapi-generator
|
cd openapi-generator
|
||||||
vagrant up
|
vagrant up
|
||||||
vagrant ssh
|
vagrant ssh
|
||||||
@@ -393,11 +348,10 @@ npm install @openapitools/openapi-generator-cli -g
|
|||||||
openapi-generator version
|
openapi-generator version
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- RELEASE_VERSION -->
|
Or install a particualar OpenAPI Generator version (e.g. v3.3.4):
|
||||||
Or install a particular OpenAPI Generator version (e.g. v4.3.0):
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install @openapitools/openapi-generator-cli@cli-4.3.0 -g
|
npm install @openapitools/openapi-generator-cli@cli-3.3.4 -g
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -405,7 +359,7 @@ Or install it as dev-dependency:
|
|||||||
```sh
|
```sh
|
||||||
npm install @openapitools/openapi-generator-cli -D
|
npm install @openapitools/openapi-generator-cli -D
|
||||||
```
|
```
|
||||||
<!-- /RELEASE_VERSION -->
|
|
||||||
## [2 - Getting Started](#table-of-contents)
|
## [2 - Getting Started](#table-of-contents)
|
||||||
|
|
||||||
To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml), please run the following
|
To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml), please run the following
|
||||||
@@ -420,9 +374,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`)
|
(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/3.3.4/openapi-generator-cli-3.3.4.jar)
|
||||||
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/4.3.0/openapi-generator-cli-4.3.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`
|
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
||||||
|
|
||||||
@@ -460,34 +412,28 @@ NAME
|
|||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
openapi-generator-cli generate
|
openapi-generator-cli generate
|
||||||
[(-a <authorization> | --auth <authorization>)]
|
[(-a <authorization> | --auth <authorization>)]
|
||||||
[--api-name-suffix <api name suffix>]
|
[--additional-properties <additional properties>...]
|
||||||
[--api-package <api package>] [--artifact-id <artifact id>]
|
[--api-package <api package>] [--artifact-id <artifact id>]
|
||||||
[--artifact-version <artifact version>]
|
[--artifact-version <artifact version>]
|
||||||
[(-c <configuration file> | --config <configuration file>)]
|
[(-c <configuration file> | --config <configuration file>)]
|
||||||
[-D <system properties>...]
|
[-D <system properties>...]
|
||||||
[(-e <templating engine> | --engine <templating engine>)]
|
|
||||||
[--enable-post-process-file]
|
|
||||||
[(-g <generator name> | --generator-name <generator name>)]
|
[(-g <generator name> | --generator-name <generator name>)]
|
||||||
[--generate-alias-as-model] [--git-repo-id <git repo id>]
|
[--git-repo-id <git repo id>] [--git-user-id <git user id>]
|
||||||
[--git-user-id <git user id>] [--group-id <group id>]
|
[--group-id <group id>] [--http-user-agent <http user agent>]
|
||||||
[--http-user-agent <http user agent>]
|
|
||||||
(-i <spec file> | --input-spec <spec file>)
|
(-i <spec file> | --input-spec <spec file>)
|
||||||
[--ignore-file-override <ignore file override location>]
|
[--ignore-file-override <ignore file override location>]
|
||||||
[--import-mappings <import mappings>...]
|
[--import-mappings <import mappings>...]
|
||||||
[--instantiation-types <instantiation types>...]
|
[--instantiation-types <instantiation types>...]
|
||||||
[--invoker-package <invoker package>]
|
[--invoker-package <invoker package>]
|
||||||
[--language-specific-primitives <language specific primitives>...]
|
[--language-specific-primitives <language specific primitives>...]
|
||||||
[--library <library>] [--log-to-stderr] [--minimal-update]
|
[--library <library>] [--log-to-stderr]
|
||||||
[--model-name-prefix <model name prefix>]
|
[--model-name-prefix <model name prefix>]
|
||||||
[--model-name-suffix <model name suffix>]
|
[--model-name-suffix <model name suffix>]
|
||||||
[--model-package <model package>]
|
[--model-package <model package>]
|
||||||
[(-o <output directory> | --output <output directory>)]
|
[(-o <output directory> | --output <output directory>)]
|
||||||
[(-p <additional properties> | --additional-properties <additional properties>)...]
|
[--release-note <release note>] [--remove-operation-id-prefix]
|
||||||
[--package-name <package name>] [--release-note <release note>]
|
|
||||||
[--remove-operation-id-prefix]
|
|
||||||
[--reserved-words-mappings <reserved word mappings>...]
|
[--reserved-words-mappings <reserved word mappings>...]
|
||||||
[(-s | --skip-overwrite)] [--server-variables <server variables>...]
|
[(-s | --skip-overwrite)] [--skip-validate-spec]
|
||||||
[--skip-validate-spec] [--strict-spec <true/false strict behavior>]
|
|
||||||
[(-t <template directory> | --template-dir <template directory>)]
|
[(-t <template directory> | --template-dir <template directory>)]
|
||||||
[--type-mappings <type mappings>...] [(-v | --verbose)]
|
[--type-mappings <type mappings>...] [(-v | --verbose)]
|
||||||
|
|
||||||
@@ -526,14 +472,14 @@ Please refer to [customization.md](docs/customization.md) on how to customize th
|
|||||||
|
|
||||||
### [3.2 - Workflow Integration (Maven, Gradle, Github, CI/CD)](#table-of-contents)
|
### [3.2 - Workflow Integration (Maven, Gradle, Github, CI/CD)](#table-of-contents)
|
||||||
|
|
||||||
Please refer to [integration.md](docs/integration.md) on how to integrate OpenAPI generator with Maven, Gradle, sbt, Bazel, Github and CI/CD.
|
Please refer to [integration.md](docs/integration.md) on how to integrate OpenAPI generator with Maven, Gradle, Github and CI/CD.
|
||||||
|
|
||||||
### [3.3 - Online OpenAPI generator](#table-of-contents)
|
### [3.3 - Online OpenAPI generator](#table-of-contents)
|
||||||
|
|
||||||
Here are the public online services:
|
Here are the public online services:
|
||||||
|
|
||||||
- latest stable version: https://api.openapi-generator.tech
|
- latest stable version: http://api.openapi-generator.tech
|
||||||
- latest master: https://api-latest-master.openapi-generator.tech (updated with latest master every hour)
|
- latest master: http://api-latest-master.openapi-generator.tech (updated with latest master every hour)
|
||||||
|
|
||||||
The server is sponsored by [Linode](https://www.linode.com/) [](https://www.linode.com/)
|
The server is sponsored by [Linode](https://www.linode.com/) [](https://www.linode.com/)
|
||||||
|
|
||||||
@@ -549,98 +495,38 @@ 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
|
* 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.
|
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)
|
## [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.
|
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/)
|
- [Adaptant Solutions AG](https://www.adaptant.io/)
|
||||||
- [Agoda](https://www.agoda.com/)
|
|
||||||
- [Angular.Schule](https://angular.schule/)
|
- [Angular.Schule](https://angular.schule/)
|
||||||
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
|
|
||||||
- [ASKUL](https://www.askul.co.jp)
|
- [ASKUL](https://www.askul.co.jp)
|
||||||
- [Arduino](https://www.arduino.cc/)
|
|
||||||
- [b<>com](https://b-com.com/en)
|
- [b<>com](https://b-com.com/en)
|
||||||
- [Banzai Cloud](https://banzaicloud.com)
|
|
||||||
- [BIMData.io](https://bimdata.io)
|
- [BIMData.io](https://bimdata.io)
|
||||||
- [Bithost GmbH](https://www.bithost.ch)
|
- [Bithost GmbH](https://www.bithost.ch)
|
||||||
- [Bosch Connected Industry](https://www.bosch-connected-industry.com)
|
|
||||||
- [Boxever](https://www.boxever.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)
|
|
||||||
- [Cisco](https://www.cisco.com/)
|
|
||||||
- [codecentric AG](https://www.codecentric.de/)
|
- [codecentric AG](https://www.codecentric.de/)
|
||||||
- [Commencis](https://www.commencis.com/)
|
|
||||||
- [Crossover Health](https://crossoverhealth.com/)
|
|
||||||
- [Cupix](https://www.cupix.com/)
|
- [Cupix](https://www.cupix.com/)
|
||||||
- [DB Systel](https://www.dbsystel.de)
|
- [FormAPI](https://formapi.io/)
|
||||||
- [DocSpring](https://docspring.com/)
|
|
||||||
- [dwango](https://dwango.co.jp/)
|
|
||||||
- [Edge Impulse](https://www.edgeimpulse.com/)
|
|
||||||
- [Element AI](https://www.elementai.com/)
|
|
||||||
- [Embotics](https://www.embotics.com/)
|
|
||||||
- [Fenergo](https://www.fenergo.com/)
|
|
||||||
- [freee](https://corp.freee.co.jp/en/)
|
|
||||||
- [FreshCells](https://www.freshcells.de/)
|
|
||||||
- [Fuse](https://www.fuse.no/)
|
|
||||||
- [Gantner](https://www.gantner.com)
|
|
||||||
- [GenFlow](https://github.com/RepreZen/GenFlow)
|
- [GenFlow](https://github.com/RepreZen/GenFlow)
|
||||||
- [GetYourGuide](https://www.getyourguide.com/)
|
|
||||||
- [GMO Pepabo](https://pepabo.com/en/)
|
- [GMO Pepabo](https://pepabo.com/en/)
|
||||||
- [GoDaddy](https://godaddy.com)
|
- [GoDaddy](https://godaddy.com)
|
||||||
- [Here](https://developer.here.com/)
|
|
||||||
- [IBM](https://www.ibm.com/)
|
|
||||||
- [JustStar](https://www.juststarinfo.com)
|
- [JustStar](https://www.juststarinfo.com)
|
||||||
- [k6.io](https://k6.io/)
|
|
||||||
- [Klarna](https://www.klarna.com/)
|
- [Klarna](https://www.klarna.com/)
|
||||||
- [Kronsoft Development](https://www.kronsoft.ro/home/)
|
|
||||||
- [Kubernetes](https://kubernetes.io)
|
|
||||||
- [Linode](https://www.linode.com/)
|
|
||||||
- [Logicdrop](https://www.logicdrop.com)
|
|
||||||
- [MailSlurp](https://www.mailslurp.com)
|
|
||||||
- [Médiavision](https://www.mediavision.fr/)
|
|
||||||
- [Metaswitch](https://www.metaswitch.com/)
|
- [Metaswitch](https://www.metaswitch.com/)
|
||||||
- [Myworkout](https://myworkout.com)
|
- [Myworkout](https://myworkout.com)
|
||||||
- [NamSor](https://www.namsor.com/)
|
|
||||||
- [Openet](https://www.openet.com/)
|
|
||||||
- [Oracle](https://www.oracle.com/)
|
|
||||||
- [Paxos](https://www.paxos.com)
|
|
||||||
- [Ponicode](https://ponicode.dev/)
|
|
||||||
- [Pricefx](https://www.pricefx.com/)
|
|
||||||
- [Prometheus/Alertmanager](https://github.com/prometheus/alertmanager)
|
- [Prometheus/Alertmanager](https://github.com/prometheus/alertmanager)
|
||||||
- [QEDIT](https://qed-it.com)
|
|
||||||
- [Qulix Systems](https://www.qulix.com)
|
|
||||||
- [Raiffeisen Schweiz Genossenschaft](https://www.raiffeisen.ch)
|
- [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)
|
- [RepreZen API Studio](https://www.reprezen.com/swagger-openapi-code-generation-api-first-microservices-enterprise-development)
|
||||||
- [REST United](https://restunited.com)
|
- [REST United](https://restunited.com)
|
||||||
- [Robotinfra](https://www.robotinfra.com)
|
|
||||||
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
|
||||||
- [Stingray](http://www.stingray.com)
|
- [Stingray](http://www.stingray.com)
|
||||||
- [Suva](https://www.suva.ch/)
|
- [Suva](https://www.suva.ch/)
|
||||||
- [Telstra](https://dev.telstra.com)
|
- [Telstra](https://dev.telstra.com)
|
||||||
- [TravelTime platform](https://www.traveltimeplatform.com/)
|
|
||||||
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
||||||
- [unblu inc.](https://www.unblu.com/)
|
- [unblu inc.](https://www.unblu.com/)
|
||||||
- [Veamly](https://www.veamly.com/)
|
- [Veamly](https://www.veamly.com/)
|
||||||
- [Woleet](https://www.woleet.io/)
|
|
||||||
- [WSO2](https://wso2.com/)
|
|
||||||
- [Vouchery.io](https://vouchery.io)
|
|
||||||
- [Xero](https://www.xero.com/)
|
- [Xero](https://www.xero.com/)
|
||||||
- [Yahoo Japan](https://www.yahoo.co.jp/)
|
|
||||||
- [Yelp](https://www.yelp.com/)
|
|
||||||
- [Zalando](https://www.zalando.com)
|
- [Zalando](https://www.zalando.com)
|
||||||
|
|
||||||
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
|
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
|
||||||
@@ -650,7 +536,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2018/05/15 - [REST API仕様からAPIクライアントやスタブサーバを自動生成する「OpenAPI Generator」オープンソースで公開。Swagger Codegenからのフォーク](https://www.publickey1.jp/blog/18/rest_apiapiopenapi_generatorswagger_generator.html) by [Publickey](https://www.publickey1.jp)
|
- 2018/05/15 - [REST API仕様からAPIクライアントやスタブサーバを自動生成する「OpenAPI Generator」オープンソースで公開。Swagger Codegenからのフォーク](https://www.publickey1.jp/blog/18/rest_apiapiopenapi_generatorswagger_generator.html) by [Publickey](https://www.publickey1.jp)
|
||||||
- 2018/06/08 - [Swagger Codegen is now OpenAPI Generator](https://angular.schule/blog/2018-06-swagger-codegen-is-now-openapi-generator) by [JohannesHoppe](https://github.com/JohannesHoppe)
|
- 2018/06/08 - [Swagger Codegen is now OpenAPI Generator](https://angular.schule/blog/2018-06-swagger-codegen-is-now-openapi-generator) by [JohannesHoppe](https://github.com/JohannesHoppe)
|
||||||
- 2018/06/21 - [Connect your JHipster apps to the world of APIs with OpenAPI and gRPC](https://fr.slideshare.net/chbornet/jhipster-conf-2018-connect-your-jhipster-apps-to-the-world-of-apis-with-openapi-and-grpc) by [Christophe Bornet](https://github.com/cbornet) at [JHipster Conf 2018](https://jhipster-conf.github.io/)
|
- 2018/06/21 - [Connect your JHipster apps to the world of APIs with OpenAPI and gRPC](https://fr.slideshare.net/chbornet/jhipster-conf-2018-connect-your-jhipster-apps-to-the-world-of-apis-with-openapi-and-grpc) by [Christophe Bornet](https://github.com/cbornet) at [JHipster Conf 2018](https://jhipster-conf.github.io/)
|
||||||
- 2018/06/22 - [OpenAPI Generator で Gatling Client を生成してみた](https://rohki.hatenablog.com/entry/2018/06/22/073000) at [ソモサン](https://rohki.hatenablog.com/)
|
|
||||||
- 2018/06/27 - [Lessons Learned from Leading an Open-Source Project Supporting 30+ Programming Languages](https://speakerdeck.com/wing328/lessons-learned-from-leading-an-open-source-project-supporting-30-plus-programming-languages) - [William Cheng](https://github.com/wing328) at [LinuxCon + ContainerCon + CloudOpen China 2018](http://bit.ly/2waDKKX)
|
- 2018/06/27 - [Lessons Learned from Leading an Open-Source Project Supporting 30+ Programming Languages](https://speakerdeck.com/wing328/lessons-learned-from-leading-an-open-source-project-supporting-30-plus-programming-languages) - [William Cheng](https://github.com/wing328) at [LinuxCon + ContainerCon + CloudOpen China 2018](http://bit.ly/2waDKKX)
|
||||||
- 2018/07/19 - [OpenAPI Generator Contribution Quickstart - RingCentral Go SDK](https://medium.com/ringcentral-developers/openapi-generator-for-go-contribution-quickstart-8cc72bf37b53) by [John Wang](https://github.com/grokify)
|
- 2018/07/19 - [OpenAPI Generator Contribution Quickstart - RingCentral Go SDK](https://medium.com/ringcentral-developers/openapi-generator-for-go-contribution-quickstart-8cc72bf37b53) by [John Wang](https://github.com/grokify)
|
||||||
- 2018/08/22 - [OpenAPI Generatorのプロジェクト構成などのメモ](https://yinm.info/20180822/) by [Yusuke Iinuma](https://github.com/yinm)
|
- 2018/08/22 - [OpenAPI Generatorのプロジェクト構成などのメモ](https://yinm.info/20180822/) by [Yusuke Iinuma](https://github.com/yinm)
|
||||||
@@ -658,92 +543,19 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2018/10/31 - [A node package wrapper for openapi-generator](https://github.com/HarmoWatch/openapi-generator-cli)
|
- 2018/10/31 - [A node package wrapper for openapi-generator](https://github.com/HarmoWatch/openapi-generator-cli)
|
||||||
- 2018/11/03 - [OpenAPI Generator + golang + Flutter でアプリ開発](http://ryuichi111std.hatenablog.com/entry/2018/11/03/214005) by [Ryuichi Daigo](https://github.com/ryuichi111)
|
- 2018/11/03 - [OpenAPI Generator + golang + Flutter でアプリ開発](http://ryuichi111std.hatenablog.com/entry/2018/11/03/214005) by [Ryuichi Daigo](https://github.com/ryuichi111)
|
||||||
- 2018/11/15 - [基于openapi3.0的yaml文件生成java代码的一次实践](https://blog.csdn.net/yzy199391/article/details/84023982) by [焱魔王](https://me.csdn.net/yzy199391)
|
- 2018/11/15 - [基于openapi3.0的yaml文件生成java代码的一次实践](https://blog.csdn.net/yzy199391/article/details/84023982) by [焱魔王](https://me.csdn.net/yzy199391)
|
||||||
- 2018/11/18 - [Generating PHP library code from OpenAPI](https://lornajane.net/posts/2018/generating-php-library-code-from-openapi) by [Lorna Jane](https://lornajane.net/) at [LORNAJANE Blog](https://lornajane.net/blog)
|
|
||||||
- 2018/11/19 - [OpenAPIs are everywhere](https://youtu.be/-lDot4Yn7Dg) by [Jeremie Bresson (Unblu)](https://github.com/jmini) at [EclipseCon Europe 2018](https://www.eclipsecon.org/europe2018)
|
- 2018/11/19 - [OpenAPIs are everywhere](https://youtu.be/-lDot4Yn7Dg) by [Jeremie Bresson (Unblu)](https://github.com/jmini) at [EclipseCon Europe 2018](https://www.eclipsecon.org/europe2018)
|
||||||
- 2018/12/09 - [openapi-generator をカスタマイズする方法](https://qiita.com/watiko/items/0961287c02eac9211572) by [@watiko](https://qiita.com/watiko)
|
- 2018/12/09 - [openapi-generator をカスタマイズする方法](https://qiita.com/watiko/items/0961287c02eac9211572) by [@watiko](https://qiita.com/watiko)
|
||||||
- 2019/01/03 - [Calling a Swagger service from Apex using openapi-generator](https://lekkimworld.com/2019/01/03/calling-a-swagger-service-from-apex-using-openapi-generator/) by [Mikkel Flindt Heisterberg](https://lekkimworld.com)
|
- 2019/01/03 - [Calling a Swagger service from Apex using openapi-generator](https://lekkimworld.com/2019/01/03/calling-a-swagger-service-from-apex-using-openapi-generator/) by [Mikkel Flindt Heisterberg](https://lekkimworld.com)
|
||||||
- 2019/01/13 - [OpenAPI GeneratorでRESTful APIの定義書から色々自動生成する](https://ky-yk-d.hatenablog.com/entry/2019/01/13/234108) by [@ky_yk_d](https://twitter.com/ky_yk_d)
|
- 2019/01/13 - [OpenAPI GeneratorでRESTful APIの定義書から色々自動生成する](https://ky-yk-d.hatenablog.com/entry/2019/01/13/234108) by [@ky_yk_d](https://twitter.com/ky_yk_d)
|
||||||
- 2019/01/20 - [Contract-First API Development with OpenAPI Generator and Connexion](https://medium.com/commencis/contract-first-api-development-with-openapi-generator-and-connexion-b21bbf2f9244) by [Anil Can Aydin](https://github.com/anlcnydn)
|
|
||||||
- 2019/01/30 - [Rapid Application Development With API First Approach Using Open-API Generator](https://dzone.com/articles/rapid-api-development-using-open-api-generator) by [Milan Sonkar](https://dzone.com/users/828329/milan_sonkar.html)
|
- 2019/01/30 - [Rapid Application Development With API First Approach Using Open-API Generator](https://dzone.com/articles/rapid-api-development-using-open-api-generator) by [Milan Sonkar](https://dzone.com/users/828329/milan_sonkar.html)
|
||||||
- 2019/02/02 - [平静を保ち、コードを生成せよ 〜 OpenAPI Generator誕生の背景と軌跡 〜](https://speakerdeck.com/akihito_nakano/gunmaweb34) by [中野暁人](https://github.com/ackintosh) at [Gunma.web #34 スキーマ駆動開発](https://gunmaweb.connpass.com/event/113974/)
|
- 2019/02/02 - [平静を保ち、コードを生成せよ 〜 OpenAPI Generator誕生の背景と軌跡 〜](https://speakerdeck.com/akihito_nakano/gunmaweb34) by [中野暁人](https://github.com/ackintosh) at [Gunma.web #34 スキーマ駆動開発](https://gunmaweb.connpass.com/event/113974/)
|
||||||
- 2019/02/20 - [An adventure in OpenAPI V3 code generation](https://mux.com/blog/an-adventure-in-openapi-v3-api-code-generation/) by [Phil Cluff](https://mux.com/blog/author/philc/)
|
- 2019/02/20 - [An adventure in OpenAPI V3 code generation](https://mux.com/blog/an-adventure-in-openapi-v3-api-code-generation/) by [Phil Cluff](https://mux.com/blog/author/philc/)
|
||||||
- 2019/02/26 - [Building API Services: A Beginner’s Guide](https://medium.com/google-cloud/building-api-services-a-beginners-guide-7274ae4c547f) by [Ratros Y.](https://medium.com/@ratrosy) in [Google Cloud Platofrm Blog](https://medium.com/google-cloud)
|
- 2019/02/26 - [Building API Services: A Beginner’s Guide](https://medium.com/google-cloud/building-api-services-a-beginners-guide-7274ae4c547f) by [Ratros Y.](https://medium.com/@ratrosy) in [Google Cloud Platofrm Blog](https://medium.com/google-cloud)
|
||||||
- 2019/02/26 - [Building APIs with OpenAPI: Continued](https://medium.com/@ratrosy/building-apis-with-openapi-continued-5d0faaed32eb) by [Ratros Y.](https://medium.com/@ratrosy) in [Google Cloud Platofrm Blog](https://medium.com/google-cloud)
|
- 2019/02/26 - [Building APIs with OpenAPI: Continued](https://medium.com/@ratrosy/building-apis-with-openapi-continued-5d0faaed32eb) by [Ratros Y.](https://medium.com/@ratrosy) in [Google Cloud Platofrm Blog](https://medium.com/google-cloud)
|
||||||
- 2019-03-07 - [OpenAPI Generator で Spring Boot と Angular をタイプセーフに繋ぐ](https://qiita.com/chibato/items/e4a748db12409b40c02f) by [Tomofumi Chiba](https://github.com/chibat)
|
- 2019-03-07 - [OpenAPI Generator で Spring Boot と Angular をタイプセーフに繋ぐ](https://qiita.com/chibato/items/e4a748db12409b40c02f) by [Tomofumi Chiba](https://github.com/chibat)
|
||||||
- 2019-03-16 - [A Quick introduction to manual OpenAPI V3](https://vadosware.io/post/quick-intro-to-manual-openapi-v3/) by [vados](https://github.com/t3hmrman) at [VADOSWARE](https://vadosware.io)
|
|
||||||
- 2019-03-25 - [Access any REST service with the SAP S/4HANA Cloud SDK](https://blogs.sap.com/2019/03/25/integrate-sap-s4hana-cloud-sdk-with-open-api/) by [Alexander Duemont](https://people.sap.com/alexander.duemont)
|
- 2019-03-25 - [Access any REST service with the SAP S/4HANA Cloud SDK](https://blogs.sap.com/2019/03/25/integrate-sap-s4hana-cloud-sdk-with-open-api/) by [Alexander Duemont](https://people.sap.com/alexander.duemont)
|
||||||
- 2019-03-25 - [OpenAPI generatorを試してみる](https://qiita.com/amuyikam/items/e8a45daae59c68be0fc8) by [@amuyikam](https://twitter.com/amuyikam)
|
- 2019-03-25 - [OpenAPI generatorを試してみる](https://qiita.com/amuyikam/items/e8a45daae59c68be0fc8) by [@amuyikam](https://twitter.com/amuyikam)
|
||||||
- 2019-03-27 - [OpenAPI3を使ってみよう!Go言語でクライアントとスタブの自動生成まで!](https://techblog.zozo.com/entry/openapi3/go) by [@gold_kou](https://twitter.com/gold_kou)
|
|
||||||
- 2019-04-17 - [OpenAPIによるスキーマファースト開発の実施サンプルとCloud Runについて](https://tech-blog.optim.co.jp/entry/2019/04/17/174000) by [@yukey1031](https://twitter.com/yukey1031)
|
|
||||||
- 2019-04-18 - [How to use OpenAPI3 for API developer (RubyKaigi 2019)](https://speakerdeck.com/ota42y/how-to-use-openapi3-for-api-developer) by [@ota42y](https://twitter.com/ota42y) at [RubyKaigi 2019](https://rubykaigi.org/2019)
|
|
||||||
- 2019-04-29 - [A Beginner's Guide to Code Generation for REST APIs (OpenAPI Generator)](https://gum.co/openapi_generator_ebook) by [William Cheng](https://twitter.com/wing328)
|
|
||||||
- 2019-05-01 - [Design and generate a REST API from Swagger / OpenAPI in Java, Python, C# and more](https://simply-how.com/design-and-generate-api-code-from-openapi) by [Simply How](https://simply-how.com/)
|
|
||||||
- 2019-05-17 - [Generate Spring Boot REST API using Swagger/OpenAPI](https://www.47northlabs.com/knowledge-base/generate-spring-boot-rest-api-using-swagger-openapi/) by [Antonie Zafirov](https://www.47northlabs.com/author/antonie-zafirov/)
|
|
||||||
- 2019-05-22 - [REST APIs代码生成指南(OpenAPI Generator)](https://gum.co/openapi_generator_ebook_gb) by [William Cheng](https://twitter.com/wing328), [Xin Meng](https://github.com/xmeng1)
|
|
||||||
- 2019-05-24 - [REST API 代碼生成指南 (OpenAPI Generator)](https://gum.co/openapi_generator_ebook_big5) by [William Cheng](https://twitter.com/wing328)
|
|
||||||
- 2019-06-24 - [Kubernetes Clients and OpenAPI Generator](https://speakerdeck.com/wing328/kubernetes-clients-and-openapi-generator) by [William Cheng](https://twitter.com/wing328) at [Kubernetes Contributor Summits Shanghai 2019](https://www.lfasiallc.com/events/contributors-summit-china-2019/)
|
|
||||||
- 2019-06-28 [Codewind OpenAPI Tools](https://marketplace.eclipse.org/content/codewind-openapi-tools) in [Eclipse Marketplace](https://marketplace.eclipse.org/) by IBM
|
|
||||||
- 2019-06-29 [Codewind OpenAPI Tools](https://marketplace.visualstudio.com/items?itemName=IBM.codewind-openapi-tools) in [Visual Studio Marketplace](https://marketplace.visualstudio.com/) by IBM
|
|
||||||
- 2019-07-04 - [REST API のためのコード生成入門 (OpenAPI Generator)](https://gum.co/openapi_generator_ebook_big5) by [William Cheng](https://twitter.com/wing328), [中野暁人](https://github.com/ackintosh), [和田拓朗](https://github.com/taxpon)
|
|
||||||
- 2019-07-08 - [OpenAPI Generator にコントリビュートしたら社名が載った話。(CAM) - CAM TECH BLOG](https://tech.cam-inc.co.jp/entry/2019/07/08/140000) by [CAM, Inc.](https://www.cam-inc.co.jp/)
|
|
||||||
- 2019-07-14 - [OpenAPI GeneratorでPythonのクライアントライブラリを作成した](https://qiita.com/yuji38kwmt/items/dfb929316a1335a161c0) by [yuji38kwmt](https://qiita.com/yuji38kwmt)
|
|
||||||
- 2019-07-19 - [Developer Experience (DX) for Open-Source Projects: How to Engage Developers and Build a Growing Developer Community](https://speakerdeck.com/wing328/developer-experience-dx-for-open-source-projects-english-japanese) by [William Cheng](https://twitter.com/wing328), [中野暁人](https://github.com/ackintosh) at [Open Source Summit Japan 2019](https://events.linuxfoundation.org/events/open-source-summit-japan-2019/)
|
|
||||||
- 2019-08-14 - [Our OpenAPI journey with Standardizing SDKs](https://bitmovin.com/our-openapi-journey-with-standardizing-sdks/) by [Sebastian Burgstaller](https://bitmovin.com/author/sburgstaller/) at [Bitmovin](https://www.bitmovin.com)
|
|
||||||
- 2019-08-15 - [APIのコードを自動生成させたいだけならgRPCでなくてもよくない?](https://www.m3tech.blog/entry/2019/08/15/110000) by [M3, Inc.](https://corporate.m3.com/)
|
|
||||||
- 2019-08-22 - [マイクロサービスにおけるWeb APIスキーマの管理─ GraphQL、gRPC、OpenAPIの特徴と使いどころ](https://employment.en-japan.com/engineerhub/entry/2019/08/22/103000) by [@ota42y](https://twitter.com/ota42y)
|
|
||||||
- 2019-08-24 - [SwaggerドキュメントからOpenAPI Generatorを使ってモックサーバー作成](https://qiita.com/masayoshi0222/items/4845e4c715d04587c104) by [坂本正義](https://qiita.com/masayoshi0222)
|
|
||||||
- 2019-08-29 - [OpenAPI初探](https://cloud.tencent.com/developer/article/1495986) by [peakxie](https://cloud.tencent.com/developer/user/1113152) at [腾讯云社区](https://cloud.tencent.com/developer)
|
|
||||||
- 2019-08-29 - [全面进化:Kubernetes CRD 1.16 GA前瞻](https://www.servicemesher.com/blog/kubernetes-1.16-crd-ga-preview/) by [Min Kim](https://github.com/yue9944882) at [ServiceMesher Blog](https://www.servicemesher.com/blog/)
|
|
||||||
- 2019-09-01 - [Creating a PHP-Slim server using OpenAPI (Youtube video)](https://www.youtube.com/watch?v=5cJtbIrsYkg) by [Daniel Persson](https://www.youtube.com/channel/UCnG-TN23lswO6QbvWhMtxpA)
|
|
||||||
- 2019-09-06 - [Vert.x and OpenAPI](https://wissel.net/blog/2019/09/vertx-and-openapi.html) by [Stephan H Wissel](https://twitter.com/notessensei) at [wissel.net blog](https://wissel.net)
|
|
||||||
- 2019-09-09 - [Cloud-native development - Creating RESTful microservices](https://cloud.ibm.com/docs/cloud-native?topic=cloud-native-rest-api) in [IBM Cloud Docs](https://cloud.ibm.com/docs)
|
|
||||||
- 2019-09-14 - [Generating and Configuring a Mastercard API Client](https://developer.mastercard.com/platform/documentation/generating-and-configuring-a-mastercard-api-client/) at [Mastercard Developers Platform](https://developer.mastercard.com/platform/documentation/)
|
|
||||||
- 2019-09-15 - [OpenAPI(Swagger)導入下調べ](https://qiita.com/ShoichiKuraoka/items/f1f7a3c2376f7cd9c56a) by [Shoichi Kuraoka](https://qiita.com/ShoichiKuraoka)
|
|
||||||
- 2019-09-17 - [Tutorial: Documenting http4k APIs with OpenApi3](https://www.http4k.org/tutorials/documenting_apis_with_openapi/) by [http4k](https://www.http4k.org/)
|
|
||||||
- 2019-09-22 - [OpenAPI 3を完全に理解できる本](https://booth.pm/ja/items/1571902) by [@ota42y](https://twitter.com/ota42y)
|
|
||||||
- 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)
|
|
||||||
- 2019-11-06 - [Generating API clients based on OpenAPI v3 specifications](https://98elements.com/blog/generating-api-clients-based-on-openapi-v3-specifications) by [Dominik Jastrzębski @ 98elements](https://98elements.com)
|
|
||||||
- 2019-11-06 - [OpenAPIを利用して自前のAPIサーバー(Sinatra)を移植した時のメモ](https://qiita.com/YasuhiroABE/items/c73920eab2d9d6e97fd9) by [Yasuhiro ABE](https://twitter.com/YasuhiroABE)
|
|
||||||
- 2019-11-07 - [API First development with OpenAPI - You should you practise it !?](https://www.youtube.com/watch?v=F9iF3a1Z8Y8) by [Nick Van Hoof](https://www.nickvanhoof.com/) at [Devoxx Belgium 2019](https://devoxx.be/)
|
|
||||||
- 2019-11-08 - [JHipster beyond CRUD - API-First for Enterprises by Enrico Costanzi](https://www.youtube.com/watch?v=m28JFovKQ20) by [Enrico Costanzi](https://twitter.com/enricocostanzi) at [JHipster Conf 2019 in Paris](https://jhipster-conf.github.io/)
|
|
||||||
- 2019-11-11 - [TypeScript REST APIクライアント](https://qiita.com/unhurried/items/7b74f7d3c43545dadd2b) by [@unhurried](https://qiita.com/unhurried)
|
|
||||||
- 2019-11-11 - [One Spec to Rule them all - OpenAPI in Action](https://www.youtube.com/watch?v=MMay_nht8ec) by [Andreas Litt](https://github.com/littldr) at [code.talks 2019](https://www.codetalks.com/)
|
|
||||||
- 2019-11-13 - [OpenAPI 3.0 Editor And Generator With A Spring Boot Example](https://simply-how.com/design-and-generate-api-code-from-openapi) at [Simply How](https://simply-how.com/)
|
|
||||||
- 2019-11-17 - [OpenAPI Generator YouTube playlist](https://www.youtube.com/playlist?list=PLtJyHVMdzfF6fBkOUV5VDVErP23CGgHIy) at [YouTube](https://www.youtube.com)
|
|
||||||
- 2019-11-20 - [Introduction to OpenAPI](https://noti.st/lornajane/HvDH7U/introduction-to-openapi) by [Lorna Mitchell](https://twitter.com/lornajane) at [GOTO Copenhagen 2019](https://gotocph.com/2019/)
|
|
||||||
- 2019-11-20 - [How to Generate Angular code from OpenAPI specifications](https://dotnetthoughts.net/how-to-generate-angular-code-from-openapi-specifications/) by Anuraj
|
|
||||||
- 2019-11-23 - [Swagger ではない OpenAPI Specification 3.0 による API サーバー開発](https://www.slideshare.net/techblogyahoo/swagger-openapi-specification-30-api) by [Tetsuya Morimoto](https://github.com/t2y) at [JJUG CCC 2019 Fall](https://ccc2019fall.java-users.jp/)
|
|
||||||
- 2019-11-24 - [Accelerate Flutter development with OpenAPI and Dart code generation](https://medium.com/@irinasouthwell_220/accelerate-flutter-development-with-openapi-and-dart-code-generation-1f16f8329a6a) by [Irina Southwell](https://medium.com/@irinasouthwell_220)
|
|
||||||
- 2019-11-25 - [openapi-generatorで手軽にスタブサーバとクライアントの生成](https://qiita.com/pochopocho13/items/8db662e1934fb2b408b8) by [@pochopocho13](https://twitter.com/pochopocho13)
|
|
||||||
- 2019-11-26 - [CordaCon 2019 Highlights: Braid Server and OpenAPI Generator for Corda Client API’s](https://blog.b9lab.com/cordacon-2019-highlights-braid-server-and-openapi-generator-for-corda-flows-api-s-d24179ccb27c) by [Adel Rustum](https://blog.b9lab.com/@adelrestom) at [B9lab](https://blog.b9lab.com/)
|
|
||||||
- 2019-12-03 - [A Road to Less Coding: Auto-Generate APILibrary](https://www.corda.net/blog/a-road-to-less-coding-auto-generate-apilibrary/) at [Corda Blog](https://www.corda.net/blog/)
|
|
||||||
- 2019-12-04 - [Angular+NestJS+OpenAPI(Swagger)でマイクロサービスを視野に入れた環境を考える](https://qiita.com/teracy55/items/0327c7a170ec772970c6) by [てらしー](https://twitter.com/teracy55)
|
|
||||||
- 2019-12-17 - [OpenAPI Generator で OAuth2 アクセストークン発行のコードまで生成してみる](https://www.techscore.com/blog/2019/12/17/openapi-generator-oauth2-accesstoken/) by [TECHSCORE](https://www.techscore.com/blog/)
|
|
||||||
- 2019-12-23 - [Use Ada for Your Web Development](https://www.electronicdesign.com/technologies/embedded-revolution/article/21119177/use-ada-for-your-web-development) by [Stephane Carrez](https://github.com/stcarrez)
|
|
||||||
- 2019-12-23 - [OpenAPIのスキーマを分割・構造化していく方法](https://gift-tech.co.jp/articles/structured-openapi-schema) by [小飯塚達也](https://github.com/t2h5) at [GiFT, Inc](https://gift-tech.co.jp/)
|
|
||||||
- 2020-01-17 - [OpenAPI demo for Pulp 3.0 GA](https://www.youtube.com/watch?v=mFBP-M0ZPfw&t=178s) by [Pulp](https://www.youtube.com/channel/UCI43Ffs4VPDv7awXvvBJfRQ) at [Youtube](https://www.youtube.com/)
|
|
||||||
- 2020-01-19 - [Why document a REST API as code?](https://dev.to/rolfstreefkerk/why-document-a-rest-api-as-code-5e7p) by [Rolf Streefkerk](https://github.com/rpstreef) at [DEV Community](https://dev.to)
|
|
||||||
- 2020-01-28 - [Get Your Serverless Swagger Back with OpenAPI](https://dev.to/matttyler/get-your-serverless-swagger-back-with-openapi-48gc) by [Matt Tyler](https://dev.to/matttyler)
|
|
||||||
- 2020-01-30 - [OpenAPI Generatorへのコントリビュート](https://www.yutaka0m.work/entry/2020/01/30/163905) by [yutaka0m](https://github.com/yutaka0m)
|
|
||||||
- 2020-02-01 - [Using OpenAPI to Maximise Your Pulp 3 Experience](https://fosdem.org/2020/schedule/event/openapi/) by [Dennis Kliban](https://github.com/dkliban/) at [FOSDEM](https://fosdem.org/)
|
|
||||||
- 2020-02-07 - [Why you should use OpenAPI for your API design](https://www.youtube.com/watch?v=zhb7vUApLW8&t=927s) by [Nick Van Hoof](https://apiconference.net/speaker/nick-van-hoof/) at [API Conference](https://apiconference.net/)
|
|
||||||
- 2020-02-17 - [Rubynetes: using OpenAPI to validate Kubernetes configs](https://www.brightbox.com/blog/2020/02/17/using-openapi-to-validate-kubernetes-configs/) by Neil Wilson at [Brightbox](https://www.brightbox.com/)
|
|
||||||
- 2020-02-20 - [Building SDKs for the future](https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6) by [Sid Maestre (Xero)](https://twitter.com/sidneyallen)
|
|
||||||
- 2020-02-27 - [Nuxt利用プロダクトでIE11と仲良くするためのE2E](https://tech.medpeer.co.jp/entry/e2e-ie11) at [Medpeer.co.jp Tech Blog](https://tech.medpeer.co.jp/)
|
|
||||||
- 2020-02-29 - [Providing Support to IoT Devices Deployed in Disconnected Rural Environment (Conference paper)](https://link.springer.com/chapter/10.1007/978-3-030-41494-8_14) by Sergio Laso, Daniel Flores-Martín, Juan Luis HerreraCarlos, CanalJuan Manuel, MurilloJavier Berrocal
|
|
||||||
- 2020-03-02 - [How To Generate Angular & Spring Code From OpenAPI Specification](https://www.mokkapps.de/blog/how-to-generate-angular-and-spring-code-from-open-api-specification/) by [Michael Hoffmann](https://www.mokkapps.de/)
|
|
||||||
- 2020-03-02 - [OpenAPI Generator + TypeScript で始める自動生成の型に守られた豊かなクライアント生活](https://gift-tech.co.jp/articles/openapi-generator-typescript) by [五百蔵 直樹](https://gift-tech.co.jp/members/naokiioroi) at [GiFT株式会社](https://gift-tech.co.jp/)
|
|
||||||
- 2020-03-10 - [OpenAPI Generator Meetup #1](https://speakerdeck.com/akihito_nakano/openapi-generator-meetup-number-1) by [中野暁人](https://github.com/ackintosh) at [OpenAPI Generator Meetup #1](https://openapi-generator-meetup.connpass.com/event/168187/)
|
|
||||||
- 2020-03-15 - [Load Testing Your API with Swagger/OpenAPI and k6](https://k6.io/blog/load-testing-your-api-with-swagger-openapi-and-k6)
|
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@@ -756,18 +568,15 @@ OpenAPI Generator core team members are contributors who have been making signif
|
|||||||
* [@jimschubert](https://github.com/jimschubert) (2016/05) [:heart:](https://www.patreon.com/jimschubert)
|
* [@jimschubert](https://github.com/jimschubert) (2016/05) [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* [@cbornet](https://github.com/cbornet) (2016/05)
|
* [@cbornet](https://github.com/cbornet) (2016/05)
|
||||||
* [@ackintosh](https://github.com/ackintosh) (2018/02) [:heart:](https://www.patreon.com/ackintosh/overview)
|
* [@ackintosh](https://github.com/ackintosh) (2018/02) [:heart:](https://www.patreon.com/ackintosh/overview)
|
||||||
* [@jmini](https://github.com/jmini) (2018/04) [:heart:](https://www.patreon.com/jmini)
|
* [@jmini](https://github.com/jmini) (2018/04)
|
||||||
* [@etherealjoy](https://github.com/etherealjoy) (2019/06)
|
|
||||||
|
|
||||||
:heart: = Link to support the contributor directly
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
#### Template Creator
|
#### Template Creator
|
||||||
|
|
||||||
**NOTE**: Embedded templates are only supported in _Mustache_ format. Support for all other formats is experimental and subject to change at any time.
|
|
||||||
|
|
||||||
Here is a list of template creators:
|
Here is a list of template creators:
|
||||||
* API Clients:
|
* API Clients:
|
||||||
* Ada: @stcarrez
|
* Ada: @stcarrez
|
||||||
|
* Akka-Scala: @cchafer
|
||||||
* Apex: @asnelling
|
* Apex: @asnelling
|
||||||
* Bash: @bkryza
|
* Bash: @bkryza
|
||||||
* C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant)
|
* C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant)
|
||||||
@@ -780,7 +589,6 @@ Here is a list of template creators:
|
|||||||
* Dart (refactor): @joernahrens
|
* Dart (refactor): @joernahrens
|
||||||
* Dart 2: @swipesight
|
* Dart 2: @swipesight
|
||||||
* Dart (Jaguar): @jaumard
|
* Dart (Jaguar): @jaumard
|
||||||
* Dart (Dio): @athornz
|
|
||||||
* Elixir: @niku
|
* Elixir: @niku
|
||||||
* Elm: @eriktim
|
* Elm: @eriktim
|
||||||
* Eiffel: @jvelilla
|
* Eiffel: @jvelilla
|
||||||
@@ -801,53 +609,39 @@ Here is a list of template creators:
|
|||||||
* Java (Vertx): @lopesmcc
|
* Java (Vertx): @lopesmcc
|
||||||
* Java (Google APIs Client Library): @charlescapps
|
* Java (Google APIs Client Library): @charlescapps
|
||||||
* Java (Rest-assured): @viclovsky
|
* Java (Rest-assured): @viclovsky
|
||||||
* Java (Java 11 Native HTTP client): @bbdouglas
|
|
||||||
* Javascript/NodeJS: @jfiala
|
* Javascript/NodeJS: @jfiala
|
||||||
* Javascript (Apollo DataSource): @erithmetic
|
|
||||||
* Javascript (Closure-annotated Angular) @achew22
|
* Javascript (Closure-annotated Angular) @achew22
|
||||||
* Javascript (Flow types) @jaypea
|
* Javascript (Flow types) @jaypea
|
||||||
* JMeter: @davidkiss
|
* JMeter: @davidkiss
|
||||||
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Kotlin (MultiPlatform): @andrewemery
|
|
||||||
* Lua: @daurnimator
|
* Lua: @daurnimator
|
||||||
* Nim: @hokamoto
|
|
||||||
* OCaml: @cgensoul
|
|
||||||
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* PHP (Guzzle): @baartosz
|
* PHP (Guzzle): @baartosz
|
||||||
* PowerShell: @beatcracker
|
* PowerShell: @beatcracker
|
||||||
* Python-experimental: @spacether
|
|
||||||
* R: @ramnov
|
* R: @ramnov
|
||||||
* Ruby (Faraday): @meganemura @dkliban
|
|
||||||
* Rust: @farcaller
|
* Rust: @farcaller
|
||||||
* Rust (rust-server): @metaswitch
|
* Rust (rust-server): @metaswitch
|
||||||
* Scala (scalaz & http4s): @tbrown1979
|
* Scala (scalaz & http4s): @tbrown1979
|
||||||
* Scala (Akka): @cchafer
|
|
||||||
* Scala (sttp): @chameleon82
|
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
* Swift 3: @hexelon
|
* Swift 3: @hexelon
|
||||||
* Swift 4: @ehyche
|
* Swift 4: @ehyche
|
||||||
* Swift 5: @4brunu
|
|
||||||
* TypeScript (Angular1): @mhardorf
|
* TypeScript (Angular1): @mhardorf
|
||||||
* TypeScript (Angular2): @roni-frantchi
|
* TypeScript (Angular2): @roni-frantchi
|
||||||
* TypeScript (Angular6): @akehir
|
* TypeScript (Angular6): @akehir
|
||||||
* TypeScript (Angular7): @topce
|
* TypeScript (Angular7): @topce
|
||||||
* TypeScript (Axios): @nicokoenig
|
* TypeScript (Axios): @nicokoenig
|
||||||
* TypeScript (Fetch): @leonyu
|
* TypeScript (Fetch): @leonyu
|
||||||
* TypeScript (jQuery): @bherila
|
* TypeScript (jQuery): @bherila
|
||||||
* TypeScript (Node): @mhardorf
|
* TypeScript (Node): @mhardorf
|
||||||
* TypeScript (Rxjs): @denyo
|
* TypeScript (Rxjs): @denyo
|
||||||
* TypeScript (Inversify): @gualtierim
|
|
||||||
* TypeScript (redux-query): @petejohansonxo
|
|
||||||
* Server Stubs
|
* Server Stubs
|
||||||
* Ada: @stcarrez
|
* Ada: @stcarrez
|
||||||
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* C# ASP.NET5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* C# ASP.NET Core 3.0: @A-Joshi
|
|
||||||
* C# NancyFX: @mstefaniuk
|
* C# NancyFX: @mstefaniuk
|
||||||
* C++ (Qt5 QHttpEngine): @etherealjoy
|
* C++ (Qt5 QHttpEngine): @etherealjoy
|
||||||
* C++ Pistache: @sebymiano
|
* C++ Pistache: @sebymiano
|
||||||
* C++ Restbed: @stkrwork
|
* C++ Restbed: @stkrwork
|
||||||
* Erlang Server: @galaxie
|
* Erlang Server: @galaxie
|
||||||
* F# (Giraffe) Server: @nmfisher
|
|
||||||
* Go Server: @guohuang
|
* Go Server: @guohuang
|
||||||
* Go (Gin) Server: @kemokemo
|
* Go (Gin) Server: @kemokemo
|
||||||
* GraphQL Express Server: @renepardon
|
* GraphQL Express Server: @renepardon
|
||||||
@@ -857,15 +651,12 @@ Here is a list of template creators:
|
|||||||
* Java Undertow: @stevehu
|
* Java Undertow: @stevehu
|
||||||
* Java Play Framework: @JFCote
|
* Java Play Framework: @JFCote
|
||||||
* Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai
|
* Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai
|
||||||
* Java Vert.x: @lwlee2608
|
|
||||||
* JAX-RS RestEasy: @chameleon82
|
* JAX-RS RestEasy: @chameleon82
|
||||||
* JAX-RS CXF: @hiveship
|
* JAX-RS CXF: @hiveship
|
||||||
* JAX-RS CXF (CDI): @nickcmaynard
|
* JAX-RS CXF (CDI): @nickcmaynard
|
||||||
* JAX-RS RestEasy (JBoss EAP): @jfiala
|
* JAX-RS RestEasy (JBoss EAP): @jfiala
|
||||||
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Kotlin (Spring Boot): @dr4ke616
|
* Kotlin (Spring Boot): @dr4ke616
|
||||||
* Kotlin (Vertx): @Wooyme
|
|
||||||
* NodeJS Express: @YishTish
|
|
||||||
* PHP Laravel: @renepardon
|
* PHP Laravel: @renepardon
|
||||||
* PHP Lumen: @abcsun
|
* PHP Lumen: @abcsun
|
||||||
* PHP Slim: @jfastnacht
|
* PHP Slim: @jfastnacht
|
||||||
@@ -878,17 +669,13 @@ Here is a list of template creators:
|
|||||||
* Scala Lagom: @gmkumar2005
|
* Scala Lagom: @gmkumar2005
|
||||||
* Scala Play: @adigerber
|
* Scala Play: @adigerber
|
||||||
* Documentation
|
* Documentation
|
||||||
* AsciiDoc: @man-at-home
|
|
||||||
* HTML Doc 2: @jhitchcock
|
* HTML Doc 2: @jhitchcock
|
||||||
* Confluence Wiki: @jhitchcock
|
* Confluence Wiki: @jhitchcock
|
||||||
* Configuration
|
* Configuration
|
||||||
* Apache2: @stkrwork
|
* Apache2: @stkrwork
|
||||||
* k6: @mostafa
|
|
||||||
* Schema
|
* Schema
|
||||||
* Avro: @sgadouar
|
|
||||||
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
|
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* MySQL: @ybelenko
|
* MySQL: @ybelenko
|
||||||
* Protocol Buffer: @wing328
|
|
||||||
|
|
||||||
:heart: = Link to support the contributor directly
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
@@ -921,44 +708,41 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
|
|
||||||
#### Members of Technical Committee
|
#### Members of Technical Committee
|
||||||
|
|
||||||
| Languages | Member (join date) |
|
| Languages | Member (join date) |
|
||||||
| :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|:-------------|:-------------|
|
||||||
| ActionScript | |
|
| ActionScript | |
|
||||||
| Ada | @stcarrez (2018/02) @michelealbano (2018/02) |
|
| Ada | @stcarrez (2018/02) @micheleISEP (2018/02) |
|
||||||
| Android | @jaz-ah (2017/09) |
|
| Android | @jaz-ah (2017/09) |
|
||||||
| Apex | |
|
| Apex | |
|
||||||
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
||||||
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) |
|
| C | @zhemant (2018/11) |
|
||||||
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) |
|
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @fvarose (2017/11) @etherealjoy (2018/02) @martindelille (2018/03) |
|
||||||
| C# | @mandrean (2017/08), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert) @frankyjuang (2019/09) @shibayan (2020/02) |
|
| C# | @mandrean (2017/08), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert) |
|
||||||
| Clojure | |
|
| Clojure | |
|
||||||
| Dart | @ircecho (2017/07) @swipesight (2018/09) @jaumard (2018/09) @nickmeinhold (2019/09) @athornz (2019/12) @amondnet (2019/12) |
|
| Dart | @ircecho (2017/07) @swipesight (2018/09) @jaumard (2018/09) |
|
||||||
| Eiffel | @jvelilla (2017/09) |
|
| Eiffel | @jvelilla (2017/09) |
|
||||||
| Elixir | @mrmstn (2018/12) |
|
| Elixir | @mrmstn (2018/12) |
|
||||||
| Elm | @eriktim (2018/09) |
|
| Elm | @eriktim (2018/09) |
|
||||||
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
||||||
| F# | @nmfisher (2019/05) |
|
| Go | @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09 |
|
||||||
| Go | @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09) @bkabrda (2019/07) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
| GraphQL | @renepardon (2018/12) |
|
| Groovy | |
|
||||||
| Groovy | |
|
| Haskell | |
|
||||||
| Haskell | |
|
| Java | @bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) |
|
||||||
| 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) @bkabrda (2020/01) |
|
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) |
|
||||||
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||||
| Nim | |
|
| ObjC | |
|
||||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) |
|
||||||
| ObjC | |
|
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), @ackintosh (2017/09) [:heart:](https://www.patreon.com/ackintosh/overview), @ybelenko (2018/07), @renepardon (2018/12) |
|
||||||
| OCaml | @cgensoul (2019/08) |
|
| PowerShell | |
|
||||||
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
| Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) @Jyhess (2019/01) |
|
||||||
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), @ackintosh (2017/09) [:heart:](https://www.patreon.com/ackintosh/overview), @ybelenko (2018/07), @renepardon (2018/12) |
|
| R | |
|
||||||
| PowerShell | |
|
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
||||||
| Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) @Jyhess (2019/01) @slash-arun (2019/11) @spacether (2019/11) |
|
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) |
|
||||||
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03) |
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @d-date (2018/03) |
|
||||||
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) @richardwhiuk (2019/07) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) |
|
||||||
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03) |
|
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) |
|
|
||||||
|
|
||||||
:heart: = Link to support the contributor directly
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
@@ -986,13 +770,13 @@ OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/
|
|||||||
- [Jean-François Côté](https://github.com/JFCote)
|
- [Jean-François Côté](https://github.com/JFCote)
|
||||||
- [Jim Schubert](https://github.com/jimschubert)
|
- [Jim Schubert](https://github.com/jimschubert)
|
||||||
- [Jon Schoning](https://github.com/jonschoning)
|
- [Jon Schoning](https://github.com/jonschoning)
|
||||||
- [Jérémie Bresson](https://github.com/jmini) [:heart:](https://www.patreon.com/jmini)
|
- [Jérémie Bresson](https://github.com/jmini)
|
||||||
- [Jörn Ahrens](https://github.com/jayearn)
|
- [Jörn Ahrens](https://github.com/jayearn)
|
||||||
- [Keni Steward](https://github.com/kenisteward)
|
- [Keni Steward](https://github.com/kenisteward)
|
||||||
- [Marcin Stefaniuk](https://github.com/mstefaniuk)
|
- [Marcin Stefaniuk](https://github.com/mstefaniuk)
|
||||||
- [Martin Delille](https://github.com/MartinDelille)
|
- [Martin Delille](https://github.com/MartinDelille)
|
||||||
- [Masahiro Yamauchi](https://github.com/algas)
|
- [Masahiro Yamauchi](https://github.com/algas)
|
||||||
- [Michele Albano](https://github.com/michelealbano)
|
- [Michele Albano](https://github.com/micheleISEP)
|
||||||
- [Ramzi Maalej](https://github.com/ramzimaalej)
|
- [Ramzi Maalej](https://github.com/ramzimaalej)
|
||||||
- [Ravindra Nikam](https://github.com/ravinikam)
|
- [Ravindra Nikam](https://github.com/ravinikam)
|
||||||
- [Ricardo Cardona](https://github.com/ricardona)
|
- [Ricardo Cardona](https://github.com/ricardona)
|
||||||
@@ -1028,7 +812,7 @@ Copyright 2018 SmartBear Software
|
|||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
|||||||
42
appveyor.yml
42
appveyor.yml
@@ -1,3 +1,5 @@
|
|||||||
|
# for CI with appveyor.yml
|
||||||
|
# Ref: http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html
|
||||||
version: '{branch}-{build}'
|
version: '{branch}-{build}'
|
||||||
image: Visual Studio 2017
|
image: Visual Studio 2017
|
||||||
hosts:
|
hosts:
|
||||||
@@ -12,27 +14,14 @@ install:
|
|||||||
)
|
)
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
|
||||||
}
|
}
|
||||||
# install gradle
|
- cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
|
||||||
- ps: |
|
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
||||||
if (!(Test-Path -Path "C:\gradle" )) {
|
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
|
||||||
'https://services.gradle.org/distributions/gradle-5.3.1-bin.zip',
|
|
||||||
'C:\gradle-bin.zip'
|
|
||||||
)
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\gradle-bin.zip", "C:\gradle")
|
|
||||||
}
|
|
||||||
- cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;C:\gradle\gradle-5.3.1\bin;%JAVA_HOME%\bin;%PATH%
|
|
||||||
- cmd: SET MAVEN_OPTS=-Xmx4g
|
|
||||||
- cmd: SET JAVA_OPTS=-Xmx4g
|
|
||||||
- cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5
|
- cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5
|
||||||
- cmd: java -version
|
- cmd: java -version
|
||||||
- cmd: gradle -v
|
|
||||||
- cmd: dir/w
|
- cmd: dir/w
|
||||||
- git clone https://github.com/wing328/swagger-samples
|
- git clone https://github.com/wing328/swagger-samples
|
||||||
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.2.5\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs-ci"
|
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.2.5\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs-ci"
|
||||||
- ps: $PSVersionTable.PSVersion
|
|
||||||
- ps: Install-Module Pester -Force -Scope CurrentUser
|
|
||||||
build_script:
|
build_script:
|
||||||
- dotnet --info
|
- dotnet --info
|
||||||
# build C# API client (netcore)
|
# build C# API client (netcore)
|
||||||
@@ -48,9 +37,7 @@ build_script:
|
|||||||
- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
|
- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
|
||||||
- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
# install openapi-generator locally
|
# install openapi-generator locally
|
||||||
- mvn clean install --quiet -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
- mvn clean install --quiet
|
||||||
# run the locally installed openapi-generator-gradle-plugin
|
|
||||||
- gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --info
|
|
||||||
test_script:
|
test_script:
|
||||||
# restore test-related files
|
# restore test-related files
|
||||||
- copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
@@ -58,27 +45,16 @@ test_script:
|
|||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client
|
# test c# API client
|
||||||
- nunit3-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
- nunit-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
# test c# API client (with PropertyChanged)
|
# test c# API client (with PropertyChanged)
|
||||||
- nunit3-console samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
- nunit-console samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
|
|
||||||
# generate all petstore clients
|
# generate all petstore clients
|
||||||
- .\bin\windows\run-all-petstore.cmd
|
- .\bin\windows\run-all-petstore.cmd
|
||||||
|
|
||||||
# generate all petstore clients (openapi3)
|
# generate all petstore clients (openapi3)
|
||||||
- .\bin\openapi3\windows\run-all-petstore.cmd
|
- .\bin\openapi3\windows\run-all-petstore.cmd
|
||||||
# test ps pestore
|
|
||||||
- ps: |
|
|
||||||
$ErrorActionPreference = "Stop"
|
|
||||||
cd samples\client\petstore\powershell-experimental\
|
|
||||||
.\Build.ps1
|
|
||||||
Import-Module -Name '.\src\PSPetstore'
|
|
||||||
$Result = Invoke-Pester -PassThru
|
|
||||||
if ($Result.FailedCount -gt 0) {
|
|
||||||
$host.SetShouldExit($Result.FailedCount)
|
|
||||||
exit $Result.FailedCount
|
|
||||||
}
|
|
||||||
cache:
|
cache:
|
||||||
- C:\maven\
|
- C:\maven\
|
||||||
- C:\gradle\
|
|
||||||
- C:\Users\appveyor\.m2
|
- C:\Users\appveyor\.m2
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
model="modules/openapi-generator/src/test/resources/2_0/petstore.yaml"
|
model="modules/openapi-generator/src/test/resources/2_0/petstore.yaml"
|
||||||
ags="generate --template-dir modules/openapi-generator/src/main/resources/Ada -g ada $@"
|
ags="generate --template-dir modules/openapi-generator/src/main/resources/Ada -g ada $@"
|
||||||
ags="$ags -i $model -t modules/openapi-generator/src/main/resources/Ada -o samples/client/petstore/ada"
|
ags="$ags -i $model -t modules/openapi-generator/src/main/resources/Ada -o samples/client/petstore/ada"
|
||||||
ags="$ags --additional-properties projectName=Petstore --model-package Samples.Petstore"
|
ags="$ags -DprojectName=Petstore --model-package Samples.Petstore"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
rm -rf samples/client/petstore/ada/src/server
|
rm -rf samples/client/petstore/ada/src/server
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/android -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g android --additional-properties library=httpclient -o samples/client/petstore/android/httpclient $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/android -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g android -Dlibrary=httpclient -o samples/client/petstore/android/httpclient $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g android -c bin/android-petstore-volley.json -o samples/client/petstore/android/volley $@"
|
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g android -c bin/android-petstore-volley.json -o samples/client/petstore/android/volley $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -g apache2 -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o samples/config/petstore/apache2 $@"
|
ags="generate -g apache2 -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o samples/config/petstore/apache2 $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/apex -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g apex -o samples/client/petstore/apex $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/apex -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g apex -o samples/client/petstore/apex $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=$(ls -ld "$SCRIPT")
|
|
||||||
link=$(expr "$ls" : '.*-> \(.*\)$')
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=$(dirname "$SCRIPT")/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=$(dirname "$SCRIPT")/..
|
|
||||||
APP_DIR=$(cd "${APP_DIR}"; pwd)
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/asciidoc-documentation --additional-properties=specDir=modules/openapi-generator/src/main/resources/asciidoc-documentation,snippetDir=. -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g asciidoc -o samples/documentation/asciidoc $@"
|
|
||||||
|
|
||||||
java ${JAVA_OPTS} -jar ${executable} ${ags}
|
|
||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -g aspnetcore -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/aspnetcore/2.1/ -o samples/server/petstore/aspnetcore --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} $@"
|
ags="generate -g aspnetcore -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o samples/server/petstore/aspnetcore --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
args="generate -t modules/openapi-generator/src/main/resources/bash -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g bash -o samples/client/petstore/bash -c modules/openapi-generator/src/test/resources/2_0/bash-config.json --additional-properties hideGenerationTimestamp=true $@"
|
args="generate -t modules/openapi-generator/src/main/resources/bash -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g bash -o samples/client/petstore/bash -c modules/openapi-generator/src/test/resources/2_0/bash-config.json --additional-properties hideGenerationTimestamp=true $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $args
|
java $JAVA_OPTS -jar $executable $args
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"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}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"!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",
|
|
||||||
"additionalModelTypeAnnotations": "@javax.annotation.concurrent.Immutable"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"!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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"!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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"!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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"!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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"!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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user