Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Baikal14 #1

Merged
merged 205 commits into from
Oct 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
845f54d
[Java] fix bug to only remove "CustomInstantDeserializer" for Play v2…
wing328 Sep 6, 2017
5658445
[Swift3/Swift4] update all cocoapods for swift3/swift4 (#6441)
jaz-ah Sep 6, 2017
29a3a4b
[Java] Handle Long in enum correctly (#6342)
dariota Sep 6, 2017
0cf82d7
[All generators] Supports of hyphen-case to camelCase (#6399)
JFCote Sep 7, 2017
3cd3b90
[ANDROID][volley] Handle UnsupportedEncodingException in invokeAPI (#…
ecolleu Sep 7, 2017
4310ea3
[haskell-http-client] update readme; improve lens generation; fix dat…
jonschoning Sep 7, 2017
5c547d5
add jfastnacht to php tech comm
wing328 Sep 8, 2017
dcca115
Genesys acquired Interactive Intelligence (#6453)
carltonwhitehead Sep 8, 2017
4fb612c
[haskell-http-client] update documentation; refactoring; add 'strictF…
jonschoning Sep 9, 2017
35cf429
add note to deprecate swift generator
wing328 Sep 9, 2017
a2cb35b
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Sep 9, 2017
bbb9015
[C#] Enabled inheritance to prevent property duplication (#6335)
IvanovJohn Sep 9, 2017
e733bfa
update c# petstore samples
wing328 Sep 9, 2017
94f5250
add presentation by Jesse Collis
wing328 Sep 9, 2017
29bd1d9
add square blog post by roykachouh, retrofit post
wing328 Sep 9, 2017
afb75d6
fix NPE in get swagger type (#6462)
wing328 Sep 9, 2017
5b004de
add R to the list of supported languages
wing328 Sep 10, 2017
665545a
add more links to presentations, blog posts, etc
wing328 Sep 10, 2017
753ba93
add https://pycon.jp/2017/ja/ presentation
wing328 Sep 10, 2017
f678753
add more blog posts
wing328 Sep 11, 2017
a6d6432
[Python][Flask] Upgraded connxion to 1.1.15 (now supports multi colle…
lhannest Sep 11, 2017
9e0911b
[ObjC] fix NPE when getting swagger type (#6465)
wing328 Sep 11, 2017
591149b
Better logic to handle tags with special characters (#6466)
wing328 Sep 12, 2017
d639b38
fix link to fehguy twitter account
wing328 Sep 12, 2017
8067612
Handle when response is a file URL. (#6469)
ehyche Sep 12, 2017
b807f6f
Support object schemas with only additionalProperties. (#6492)
ehyche Sep 18, 2017
5f56625
Add support for reserved-words-mappings to cpprest (#6501)
bandrews-spirent Sep 18, 2017
d928617
[haskell-http-client] use katip logger, default strict (#6478)
jonschoning Sep 18, 2017
f3c41e8
[Python] Add configuration.{connection_pool_maxsize, assert_hostname}…
mbohlool Sep 18, 2017
5443c0a
[QT5][CPP] Fixing issue with maps in models (#6479)
stkrwork Sep 19, 2017
146b107
Eliminate all Java compilation warnings for swift4 codegen module (#6…
ehyche Sep 19, 2017
65d7883
[6313] Add imports to perl objects. (#6500)
lbordowitz Sep 19, 2017
e27d457
update perl petstore sample
wing328 Sep 19, 2017
594b390
[PHP] Fix #6474: Bug with 'format: date' when using --model-name-pref…
ackintosh Sep 19, 2017
7f6bccb
[Java] Added Play! WS filters support for retrofit2 client (#6499)
lukoyanov Sep 20, 2017
d08149b
Fix abcsum with abcsun
wing328 Sep 21, 2017
ae6d34d
various readme update
wing328 Sep 21, 2017
e626afa
add https://www.elastic.co/ to list of co using sw
wing328 Sep 21, 2017
bcfd145
Fixing conversion when it's an item of a collection + add missing isU…
JFCote Sep 21, 2017
6267869
Add Jenkins World 2017 talk. (#6542)
cliffano Sep 22, 2017
ffd8c4a
update elasticsearch to elastic
wing328 Sep 22, 2017
c74c31b
produce correct enum for jaxrs resteasy eap (#6489)
TheCK Sep 23, 2017
ccc980e
Add link to Gradle Swagger Generator Plugin (#6481)
int128 Sep 23, 2017
c5c639b
Zend Expressive fix and upgrade to version 2 (#6461)
BradCrumb Sep 23, 2017
8698444
Propsed fix for the ApiClient runtime crash (#6523)
WendellDuncan Sep 23, 2017
b1e7a4f
update cpprest petstore samples
wing328 Sep 23, 2017
07df075
[TypeScript][Angular] Better support for "Accept", "Content-Type" (#6…
stoetti Sep 23, 2017
16678b8
update ts angular v2, v4 petstore samples
wing328 Sep 23, 2017
1baa5fc
[Typescript-jQuery] Fix for issue #6505 (#6541)
JFCote Sep 23, 2017
209158a
update ts jquery petstore samples
wing328 Sep 23, 2017
4a89d23
[typescript-angular] apply encodeURIComponent to path-parameter (#6525)
macjohnny Sep 23, 2017
8f85154
[PHP] Improve Model template (#6460)
ackintosh Sep 23, 2017
639f889
[Java][RESTEasy] fix resteasy dependency issue in pom.xml (#6556)
wing328 Sep 24, 2017
ac99fe6
fix #6353 (#6514)
alex347 Sep 24, 2017
b31a804
[PHP] Improve Api template (#6507)
ackintosh Sep 24, 2017
f5bc5ec
[Scala] Decommission "async-scala" generator (#6552)
wing328 Sep 24, 2017
c501103
add ackintosh to php tech committee
wing328 Sep 24, 2017
2d44d7f
use parameter name as description if not defined (#6557)
wing328 Sep 24, 2017
53d34ca
add scala test, rearrange test order
wing328 Sep 24, 2017
e85353d
Merge branch 'scala_ci'
wing328 Sep 24, 2017
4b03144
Bugfix: Handle all different types of security (#6528)
kenjones-cisco Sep 24, 2017
672cc29
[Bash] Add test setting for Bash client (#6558)
wing328 Sep 25, 2017
419ee1c
Add class prefix to tag with numbers (#6561)
wing328 Sep 25, 2017
96137e5
add encodeURIComponent to encode path parameters (#6551)
wing328 Sep 25, 2017
d75e4ae
add link to netflix blog
wing328 Sep 25, 2017
c09c7d2
add new item to copy technical committee in PR
wing328 Sep 26, 2017
d325c6e
revise wording for PR template
wing328 Sep 26, 2017
0a9e378
[Scala] Add support for PATCH via X-HTTP-Method-Override (#6539)
gmarz Sep 26, 2017
e2916fd
[Java] Play! framework + retrofit2 client exception converter, bug fi…
lukoyanov Sep 26, 2017
d2b9107
[python] Add default Configuration (#6554)
mbohlool Sep 26, 2017
c53ebf6
add "npm run build" to ts angular
wing328 Sep 26, 2017
451218b
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Sep 26, 2017
5e9d977
Bugfix: Resolve lint errors for generated client (#6563)
kenjones-cisco Sep 26, 2017
e3ba06c
Fix some bugs for the R client (#6535)
jschelbert Sep 26, 2017
2a284fa
add SAP blog post by Radu Simen
wing328 Sep 27, 2017
2917829
add links to https://shinesolutions.com/
wing328 Sep 27, 2017
28a3206
update swift link, add kotlin, powershell
wing328 Sep 27, 2017
3ac2b80
[Elixir] Add Elixir Petstore sample to Shippable CI (#6575)
wing328 Sep 27, 2017
4b9ee1f
[Elixir] Improve Elixir client (#6550)
chingor13 Sep 28, 2017
bd5b586
Use valid JS RegEx (#6584)
yissachar Sep 28, 2017
2c7dcbe
fix elixir model naming
wing328 Sep 27, 2017
d04b764
Feature: Adds doc generation (#6570)
kenjones-cisco Sep 28, 2017
4c31983
fix JS help text
wing328 Sep 28, 2017
32b5f8d
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Sep 28, 2017
87a9caa
Bugfix: Path replacement regex not working (#6580)
kenjones-cisco Sep 28, 2017
16045a1
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Sep 28, 2017
25812fc
Swift3: non dictionary body type (#6531)
anozaki Sep 28, 2017
39908eb
add jvelilla to eiffel tech committee
wing328 Sep 29, 2017
8e854dc
add kenjones-cisco to bash tech comm
wing328 Sep 29, 2017
924a8e5
[CPPREST] Fixed multipart files upload implementation (#6518)
frol Sep 29, 2017
063e885
[Scala] format the Scala code style templete (#6532)
shijinkui Sep 29, 2017
634dc07
update tech comm, fix broken link to 2.0.17
wing328 Sep 29, 2017
e3c61cd
add cbornet to python tech committee
wing328 Sep 30, 2017
da37f40
Add optional support for HttpClient (#6295)
bedag-moo Sep 30, 2017
f3e19e0
fix comma in method without parameters
wing328 Sep 30, 2017
82b6e81
use String() to convert num, update TS angular samples
wing328 Sep 30, 2017
c32281c
add haskell to shippable ci (#6600)
wing328 Oct 1, 2017
8bd7d39
[haskell-http-client] fixes for fake-endpoints (#6597)
jonschoning Oct 1, 2017
6e7ad13
Pre-calculate type aliases before processing models (#6559)
bbdouglas Oct 2, 2017
1f4013e
[NancyFx] provide option to override package context (#6593)
craffael Oct 2, 2017
44bf1d6
Fix for self-referential imports in typescript-angular client (#6450)
Bols Oct 2, 2017
b5200ba
cache stack in shippable ci
wing328 Oct 2, 2017
bb91934
cache elixir deps
wing328 Oct 2, 2017
900aad6
add links to blog posts in techium.jp
wing328 Oct 2, 2017
28a5b74
add partial header to haskell http client (#6606)
wing328 Oct 2, 2017
1896e96
[nancyfx] fix interface prefix (#6595)
craffael Oct 3, 2017
74e3169
CsharpDotNet2Client - Use clientPackage in additionalProperties (#6581)
pierredeman Oct 3, 2017
f62b81f
add link to ntt presentation
wing328 Oct 3, 2017
5175281
rename silex-PHP to php-silex (#6612)
wing328 Oct 3, 2017
bf74e33
rename CsharpDotNet2 to csharp-dotnet2 (#6611)
wing328 Oct 3, 2017
f7bd2c5
add new language "ada"
wing328 Oct 4, 2017
90010da
[Ada] Adding Ada support for client code generator (#6602)
stcarrez Oct 4, 2017
e49e7a0
Typo error fix (#6620)
albator1932 Oct 4, 2017
61b910f
[R] Added ApiClient and fixed other issues (#6571)
brnleehng Oct 4, 2017
2e5289c
add link to MS machine learning server
wing328 Oct 5, 2017
2644adb
Note precisely which clients and servers can be used with Haskell. (#…
garetht Oct 6, 2017
86803c0
[Elixir] Improve Elixir Client about primitive type spec (#6623)
niku Oct 6, 2017
2f98ade
fix inconsistent java naming (#6624)
wing328 Oct 6, 2017
42313af
[PHP] Fix: Type object not handled properly in setParameterExampleVal…
ackintosh Oct 6, 2017
567ae3f
[GO CLIENT] Fix issue with generating code for API key (#6630)
garetht Oct 7, 2017
0db4b32
[objc] Let the developer specify the timezone to be used for date ser…
SirBif Oct 7, 2017
5b32e88
[haskell-http-client] add support for auth methods (#6622)
jonschoning Oct 7, 2017
cc756b5
[Scala] Properly handle csv collectionFormat (#6540)
gmarz Oct 7, 2017
eab9c72
represent swagger enums as union of literal types (#6233)
bedag-moo Oct 7, 2017
7a7dd6d
add ada style guide
wing328 Oct 8, 2017
cdc83ff
[Ada] Adding Ada client samples (#6634)
stcarrez Oct 8, 2017
8a7940f
Issue 5431 Support jaxrs client api interfaces (#6412)
jarlesat Oct 8, 2017
1f9f8c5
[JavaScript] Fix licenseNames (#6605)
hisener Oct 8, 2017
1dc3fb4
remove unused JS files
wing328 Oct 8, 2017
73b38dd
#3904 Inheritance support java client retrofit gson (#4729)
konopski Oct 8, 2017
41b7950
Fix class path for DeferredResult (#6452)
sasavilic Oct 8, 2017
81e0357
fix NPE reported in #6519 (#6635)
wing328 Oct 8, 2017
164f5bb
fix underscore to handle spaces (#6637)
wing328 Oct 9, 2017
07c71e3
add link to ada's article
wing328 Oct 9, 2017
e90a40b
use japanese name of taxpon
wing328 Oct 9, 2017
e6d4362
Fix for regression in issue: https://github.com/swagger-api/swagger-c…
JFCote Oct 9, 2017
3b13431
add java version to pom in resteasy eap java8
wing328 Oct 9, 2017
d054a43
update java server samples
wing328 Oct 9, 2017
39ae041
Merge branch 'update_java_server_samples'
wing328 Oct 9, 2017
676af62
Updated feign library dependency to io.github.openfeign (#6652)
jihlee Oct 10, 2017
1bdb104
Add Serializable import to JaxRS-spec models if serializableModel is …
Oct 10, 2017
02d25f5
Swift4: Fix inline enum issue (#6640)
ehyche Oct 10, 2017
dc88ed9
[angular-typescript] fix using form data (#6574)
macjohnny Oct 10, 2017
db67840
[haskell-http-client] bug fixes; path & newtype generation issues (#6…
jonschoning Oct 10, 2017
b5a01b5
comment out swift test due to build image changes
wing328 Oct 11, 2017
30a1761
revise wordings for powershell generator
wing328 Oct 11, 2017
02a053e
Update README.md (#6656)
juntaki Oct 12, 2017
3bd24c3
Updated api client, Required parameters {{#required}} .. {{/required}…
jvelilla Oct 12, 2017
590754f
[kotlin] Fix syntax errors on localVariableHeader in api.mustache (#6…
ejithon Oct 12, 2017
b716b37
Swift4: Add additional initializer for initializing model object with…
ehyche Oct 12, 2017
5ffdee4
[PHP][Symfony] Generate valid PHP code (#6578)
naelrashdeen Oct 12, 2017
278bcfe
add Edubits to swift tech comm
wing328 Oct 12, 2017
e9f49ab
add back petstore test (#6663)
wing328 Oct 12, 2017
b22fb30
add jaz-ah to swift, android tech committee
wing328 Oct 12, 2017
eb45379
golang: trailing whitespace fails gofmt (#6669)
vbatts Oct 13, 2017
96444d3
update go petstore samples
wing328 Oct 13, 2017
027fb2f
- Removed unnecessary line in in Restbed Codegen Constructor (#6675)
stkrwork Oct 15, 2017
1f97caf
Included Open Systems International in the list of companies using Sw…
gustavoapaz Oct 16, 2017
3f7f6b8
Add operationId as nickname to @ApiOperation (#6688)
wingsofovnia Oct 16, 2017
3067da2
Swagger eiffel:fix (#6674)
jvelilla Oct 16, 2017
8bcceb4
[kotlin] Fix causing NoClassDefFoundError at runtime on Android devic…
ejithon Oct 16, 2017
12a85bb
Add enum support for flask (#6684)
lpatino10 Oct 16, 2017
619c391
update python flask petstore samples
wing328 Oct 16, 2017
8b70f24
There was no validation when a required field was null, creating cras…
JFCote Oct 16, 2017
1050aa9
Added support for enums in Dart. (#6516)
pylaligand Oct 16, 2017
488aa98
Adding a new Scala client codegen (#6572)
Oct 16, 2017
1545075
add tbrown1979 as template creator for scalaz
wing328 Oct 16, 2017
62794c1
add scalaz to cirleci
wing328 Oct 16, 2017
5c14f90
add beta to scalaz generator
wing328 Oct 16, 2017
381acd2
Add http://www.nttdata.com (#6713)
int128 Oct 17, 2017
07b408a
[PHP] Fix #5338: InvalidArgumentException (#6685)
ackintosh Oct 17, 2017
62627f2
[Elixir Client]Improve elixir client typings (#6665)
niku Oct 17, 2017
5143fb5
revise go header, minor formatting fix (#6695)
wing328 Oct 17, 2017
abe1be1
JAXRS-SPEC: fix container return type (#6659)
carnevalegiacomo Oct 17, 2017
d093a34
add jaxrs-spec-interface to circle ci
wing328 Oct 17, 2017
27850d9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Oct 17, 2017
be3e33f
[C++] Sanitize operation ids. (#6664)
fvarose Oct 17, 2017
ff9c723
ContentType selection fix for csharp. (#6633)
alex-fisher Oct 17, 2017
c4d5ba1
Prefix local vars to prevent conflict with params (#6717)
masaeedu Oct 18, 2017
c783ec1
update all petstore security samples
wing328 Oct 18, 2017
7f9ae63
add resteasy-all shell script
wing328 Oct 18, 2017
1ac04ae
new files genreated by security shell scripts
wing328 Oct 18, 2017
5219035
[haskell-http-client] handle Alias models + refactoring. (#6712)
jonschoning Oct 18, 2017
e4abddf
Fix spring api operation annotation (#6700)
wneild Oct 18, 2017
d378941
[Java][JAX-RS-CXF] Add JsonProperty to POJO (#6710)
gustavoapaz Oct 19, 2017
1d89ab6
[New Generator] Rust API client/server generator (#6613)
BenjaminGill-Metaswitch Oct 19, 2017
3472c68
bug fixes (#6743)
ramnov Oct 19, 2017
f0b7dae
[Rust] rename rust2 to rust-server (#6747)
wing328 Oct 19, 2017
8a5c361
Bugfix/6750 name clash between npm request and parameter called reque…
pgrm Oct 20, 2017
d0ec683
revert changes to fakes yaml (#6758)
jonschoning Oct 20, 2017
649811d
[JavaScript] Handle custom request.agent (#6737)
kinok Oct 20, 2017
36f14ab
update JS petstore samples
wing328 Oct 20, 2017
4d994a2
update ruby petstore samples
wing328 Oct 20, 2017
af20897
Fixed link to open issues (correct label is 'help wanted') (#6779)
giuliopulina Oct 21, 2017
d2eb7cb
remove unused files from Ruby petstore client
wing328 Oct 22, 2017
7cbd36e
[Java][JAXRS-CXF] Improve API documentation in the CXF Server stub an…
gustavoapaz Oct 22, 2017
c71aa9d
Add Metaswitch to list of companies (#6773)
bjgill Oct 22, 2017
18b16c7
Update README.md (#6783)
kinok Oct 23, 2017
c6b6249
Fixed Python client docstrings (#6780)
arcward Oct 23, 2017
a63e3f1
[TypeScript-Angular] Path URI Encoding Update (#6769)
defmonk0 Oct 23, 2017
b034e44
[PHP][Symfony] Enhancements (#6615)
naelrashdeen Oct 23, 2017
fe5c2e6
Allow using help command with run-in-docker.sh (#6706)
tgifford-webfirst Oct 23, 2017
3b9ecc1
Change version
Oct 23, 2017
c1e18e4
Add baikal repositories
Oct 23, 2017
e900787
Merge branch 'stable/baikal' into baikal14
Oct 23, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

- [ ] Read the [contribution guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md).
- [ ] Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the change. (For instance, only need to run `./bin/{LANG}-petstore.sh` and `./bin/security/{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\`.
- [ ] Filed the PR against the correct branch: master for non-breaking changes and `3.0.0` branch for breaking (non-backward compatible) changes.
- [ ] Filed the PR against the correct branch: `3.0.0` branch for changes related to OpenAPI spec 3.0. Default: `master`.
- [ ] Copied the [technical committee](https://github.com/swagger-api/swagger-codegen/#swagger-codegen-technical-committee) to review the pull request if your PR is targeting a particular programming langauge.

### Description of the PR

Expand Down
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ samples/client/petstore/silex/SwaggerServer/venodr/
**/vendor/
**/composer.lock

#PHP-Symfony
samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/cache/
samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/logs/


# Perl
samples/client/petstore/perl/deep_module_test/

Expand Down Expand Up @@ -174,3 +179,11 @@ samples/client/petstore/kotlin/src/main/kotlin/test/
.stack-work
.cabal-sandbox
cabal.project.local

# R
.Rproj.user

# elixir
samples/client/petstore/elixir/_build/
samples/client/petstore/elixir/deps/
samples/client/petstore/elixir/mix.lock
37 changes: 37 additions & 0 deletions .travis.yml.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
sudo: required
language: java
jdk:
- openjdk8

cache:
directories:
- $HOME/.m2
- $HOME/.ivy2

services:
- docker

addons:
hosts:
- petstore.swagger.io

before_install:
# to run petstore server locally via docker
- docker pull 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
# Add bats test framework and cURL for Bash script integration tests
- sudo add-apt-repository ppa:duggan/bats --yes
- sudo apt-get update -qq
- sudo apt-get install -qq bats
- sudo apt-get install -qq curl

# show host table to confirm petstore.swagger.io is mapped to localhost
- cat /etc/hosts

script:
# fail fast
- set -e
# run integration tests defined in maven pom.xml
- cp pom.xml.bash pom.xml
- mvn --batch-mode verify -Psamples
5 changes: 4 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ For a list of variables available in the template, please refer to this [page](h

### Style guide
Code change should conform to the programming style guide of the respective languages:
- Ada: https://en.wikibooks.org/wiki/Ada_Style_Guide/Source_Code_Presentation
- Android: https://source.android.com/source/code-style.html
- Bash: https://github.com/bahamas10/bash-style-guide
- C#: https://msdn.microsoft.com/en-us/library/vstudio/ff926074.aspx
Expand All @@ -47,16 +48,18 @@ Code change should conform to the programming style guide of the respective lang
- Haskell: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
- Java: https://google.github.io/styleguide/javaguide.html
- JavaScript: https://github.com/airbnb/javascript/
- Kotlin: https://kotlinlang.org/docs/reference/coding-conventions.html
- Groovy: http://groovy-lang.org/style-guide.html
- Go: https://github.com/golang/go/wiki/CodeReviewComments
- ObjC: https://github.com/NYTimes/objective-c-style-guide
- Perl: http://perldoc.perl.org/perlstyle.html
- 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
- Python: https://www.python.org/dev/peps/pep-0008/
- R: https://google.github.io/styleguide/Rguide.xml
- Ruby: https://github.com/bbatsov/ruby-style-guide
- Scala: http://docs.scala-lang.org/style/
- Swift: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html
- Swift: [Apple Developer](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html)
- TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines

For other languages, feel free to suggest.
Expand Down
88 changes: 63 additions & 25 deletions README.md

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions bin/ada-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash

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/swagger-codegen-cli/target/swagger-codegen-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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
model="modules/swagger-codegen/src/test/resources/2_0/petstore.yaml"
ags="$@ generate --template-dir modules/swagger-codegen/src/main/resources/Ada -l ada"
ags="$ags -i $model -t modules/swagger-codegen/src/main/resources/Ada -o samples/client/petstore/ada"
ags="$ags -DprojectName=Petstore --model-package Samples.Petstore"

java $JAVA_OPTS -jar $executable $ags
rm -rf samples/client/petstore/ada/src/server
2 changes: 1 addition & 1 deletion bin/csharp-dotnet2-petstore.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l CsharpDotNet2 -o samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient --additional-properties hideGenerationTimestamp=true"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient --additional-properties hideGenerationTimestamp=true"

java $JAVA_OPTS -jar $executable $ags
5 changes: 5 additions & 0 deletions bin/elixir-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ then
mvn clean package
fi

# remove existing lib and model file
echo "removing existing lib, model files"
rm -Rf "samples/client/petstore/elixir/lib/swagger_petstore/model/"
rm -Rf "samples/client/petstore/elixir/lib/swagger_petstore/lib/"

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
args="$@ generate -t modules/swagger-codegen/src/main/resources/elixir -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l elixir -o samples/client/petstore/elixir"
Expand Down
6 changes: 4 additions & 2 deletions bin/haskell-http-client-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/haskell-http-client -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l haskell-http-client -o samples/client/petstore/haskell-http-client"

java $JAVA_OPTS -jar $executable $ags
args="$@ generate -t modules/swagger-codegen/src/main/resources/haskell-http-client -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l haskell-http-client -o samples/client/petstore/haskell-http-client"

echo "java ${JAVA_OPTS} -jar ${executable} ${args}"
java $JAVA_OPTS -jar $executable $args
8 changes: 8 additions & 0 deletions bin/java-petstore-resteasy-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

./bin/java-petstore-resteasy.sh
./bin/jaxrs-resteasy-eap-petstore-server.sh
./bin/jaxrs-resteasy-eap-java8-petstore-server.sh
./bin/jaxrs-resteasy-joda-petstore-server.sh
./bin/jaxrs-resteasy-eap-joda-petstore-server.sh
./bin/jaxrs-resteasy-petstore-server.sh*
34 changes: 34 additions & 0 deletions bin/jaxrs-spec-petstore-server-interface.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/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/swagger-codegen-cli/target/swagger-codegen-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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs-spec -o samples/server/petstore/jaxrs-spec-interface
-DhideGenerationTimestamp=true
-DserializableModel=true
-DinterfaceOnly=true"

java $JAVA_OPTS -jar $executable $ags
3 changes: 2 additions & 1 deletion bin/jaxrs-spec-petstore-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs-spec -o samples/server/petstore/jaxrs-spec
-DhideGenerationTimestamp=true"
-DhideGenerationTimestamp=true
-DserializableModel=true"

java $JAVA_OPTS -jar $executable $ags
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/silex -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l silex-PHP -o samples/server/petstore/silex"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/php-silex -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l php-silex -o samples/server/petstore/php-silex"

java $JAVA_OPTS -jar $executable $ags
41 changes: 41 additions & 0 deletions bin/php-symfony-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

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

# Make sure that the working directory is the root dir
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${SCRIPT_DIR}/../"

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

# Make sure that we are regenerating the sample by removing any existing target directory
TARGET_DIR="$SCRIPT_DIR/../samples/server/petstore/php-symfony"
if [ -d "$TARGET_DIR" ]; then
rm -rf $TARGET_DIR
fi

executable="$SCRIPT_DIR/../modules/swagger-codegen-cli/target/swagger-codegen-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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t $SCRIPT_DIR/../modules/swagger-codegen/src/main/resources/php-symfony -i $SCRIPT_DIR/../modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l php-symfony -o $TARGET_DIR $@"

java $JAVA_OPTS -jar $executable $ags
4 changes: 4 additions & 0 deletions bin/python-flask-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

./bin/python-flask-petstore.sh
./bin/python-flask-petstore-python2.sh
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions bin/rust-server-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/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/swagger-codegen-cli/target/swagger-codegen-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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/rust-server -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l rust-server -o samples/server/petstore/rust-server -DpackageName=petstore_api"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/scalaz-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/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/swagger-codegen-cli/target/swagger-codegen-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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/scalaz -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l scalaz -o samples/client/petstore/scalaz"

java $JAVA_OPTS -jar $executable $ags
2 changes: 1 addition & 1 deletion bin/security/silex-petstore-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/silex -i modules/swagger-codegen/src/test/resources/2_0/petstore-security-test.yaml -l silex-PHP -o samples/server/petstore-security-test/silex"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/php-silex -i modules/swagger-codegen/src/test/resources/2_0/petstore-security-test.yaml -l php-silex -o samples/server/petstore-security-test/silex"

java $JAVA_OPTS -jar $executable $ags
2 changes: 1 addition & 1 deletion bin/security/typescript-angular2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/typescript-angular2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-security-test.yaml -l typescript-angular -o samples/client/petstore-security-test/typescript-angular2"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-security-test.yaml -l typescript-angular -o samples/client/petstore-security-test/typescript-angular2"

java $JAVA_OPTS -jar $executable $ags
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/asyncscala -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l async-scala -o samples/client/petstore/async-scala"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v4.3/npm --additional-properties ngVersion=4.3"

java $JAVA_OPTS -jar $executable $ags
2 changes: 1 addition & 1 deletion bin/windows/csharp-dotnet2-petstore.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ If Not Exist %executable% (
)

REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l CsharpDotNet2 -o samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient --additional-properties hideGenerationTimestamp=true
set ags=generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient --additional-properties hideGenerationTimestamp=true

java %JAVA_OPTS% -jar %executable% %ags%
10 changes: 10 additions & 0 deletions bin/windows/php-silex-petstore.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set executable=.\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar

If Not Exist %executable% (
mvn clean package
)

REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l php-silex -o samples\server\petstore\php-silex

java %JAVA_OPTS% -jar %executable% %ags%
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ If Not Exist %executable% (
)

REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l async-scala -o samples\client\petstore\async-scala
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -l rust-server -o samples\server\petstore\rust-server

java %JAVA_OPTS% -jar %executable% %ags%
Loading