Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
ceffa84
#3285 ModelNamePre- and Suffixes should not be applied to Types.
Jul 4, 2016
41df857
#3285 Check for typeMapper types inside getSwaggerType instead of toM…
Jul 6, 2016
41a7aaf
Support passing custom RequestInit options in typescript-fetch client…
alechill Oct 17, 2016
a9069e8
add perform beanvalidation flag to ok-http-gson #2549
jfiala Nov 12, 2016
1d305b1
add tests for java client performBeanValidation #2549
jfiala Nov 12, 2016
9d8c419
update generated petstore for ok-http-gson #2549
jfiala Nov 12, 2016
a7252e7
update check for performBeanValidation #2549
jfiala Nov 12, 2016
4a196a9
[Spring] Use tag operation grouping for spring-cloud
cbornet Nov 15, 2016
39ffc0a
[Ruby] remove apache2 license from ruby api client (#4149)
wing328 Nov 16, 2016
90512e6
Remove Apache license from API client generators (#4197)
wing328 Nov 16, 2016
63c3133
Remove Apache license from document generator (#4199)
wing328 Nov 16, 2016
88227e0
Remove Apache license from server stub generators (#4200)
wing328 Nov 16, 2016
bd06a62
fix(swift3): multi-level inheritance support
gierschv Nov 16, 2016
9772243
Add missing enums to properties
bshamblen Nov 16, 2016
d6e8fb0
Merge pull request #4204 from bshamblen/master
wing328 Nov 17, 2016
d548a80
add taskdata
wing328 Nov 17, 2016
e5daa68
add models support to flask
cbornet Nov 13, 2016
1e6cab8
[Flask] Use x-swagger-router-controller in swagger.yaml for operation…
cbornet Nov 15, 2016
2dafdff
Allow multiple requests in parallel in Python client (#4187)
hermansc Nov 18, 2016
61f6c94
update readme description (#4207)
sanjeewa-malalgoda Nov 18, 2016
3d476de
Merge pull request #4178 from cbornet/flask
wing328 Nov 18, 2016
b7e9603
jaxrs-cxf-cdi :: Add a basic JAX-RS Application and CDI fixes (#4196)
nickcmaynard Nov 18, 2016
5baa715
Remove opening PHP tag from PHP code sample (#4212)
Nov 18, 2016
9e08b63
fix(swift3): rename reserved enum values (#4201)
gierschv Nov 18, 2016
359e52b
Merge pull request #4188 from cbornet/flask_operations
wing328 Nov 18, 2016
da13613
add http://www.intenthq.com
wing328 Nov 18, 2016
cde24f1
Merge pull request #4189 from cbornet/spring_cloud_operations
wing328 Nov 18, 2016
a260636
#3908 make a copy of vendorExtensions map instead of copying the refe…
RaphC Nov 18, 2016
9c6fbad
add Flat (https://flat.io)
wing328 Nov 18, 2016
0a5b0bb
Add test for file response schema
www2k Oct 30, 2016
e14be8b
Support file response schema
www2k Oct 30, 2016
ed1b607
Add file response support for typescript-node
www2k Oct 30, 2016
7a7eb11
address unused parameters and possible-nullity warnings (#4210)
baronfel Nov 19, 2016
95ac238
[Typescript] Add Error to the list of reserved words that must be esc…
baronfel Nov 19, 2016
b02d505
Refine CXF Add Spring Annotation-Config + Jboss flag for CXF/Resteasy…
jfiala Nov 19, 2016
df15799
[Flask] Add generated tests (#4209)
cbornet Nov 19, 2016
4ae3e57
Merge branch 'beanval_2549' of https://github.com/jfiala/swagger-code…
wing328 Nov 19, 2016
89ee2b1
fix JDK 1.7 issue with generics by casting to Set #2549
jfiala Nov 19, 2016
e4f27bc
make test invocations compileable #2549
jfiala Nov 19, 2016
5a2ec03
fix(javascript): added check to see if the parsed response is really …
jordanyaker Nov 19, 2016
9322c8f
[Flask] fix parameter naming
cbornet Nov 18, 2016
e7e99eb
add ErrorResponse as reserved word in Swift generators
wing328 Nov 20, 2016
6ad3887
[ObjC] version update for ISO8601 (#4220)
wing328 Nov 20, 2016
1968bea
Merge pull request #4221 from wing328/swift_generator
wing328 Nov 20, 2016
7696559
Issue #2449 SubClass annotations are missing from the base class (#4085)
szakrewsky Nov 21, 2016
515e723
Allow TypeScript noImplicitAny: true (#4205)
martinmcwhorter Nov 21, 2016
9dc809b
Add two override points inside AlamofireRequestBuilder in the Swift 3…
ewanmellor Nov 21, 2016
1104ce8
add docker image for swagger-codegen-cli
wing328 Nov 22, 2016
474dae0
update NodeJS readme to remove oudated doc (#4232)
wing328 Nov 22, 2016
fbc0315
add Balance Internet
wing328 Nov 22, 2016
58b66a0
python code style enhancement (#4238)
wing328 Nov 22, 2016
4e2c037
[Java] fix Java (Jersey1.x) test case (#4239)
wing328 Nov 22, 2016
6ebc2fc
Fix support for 'class' properties in Java codegen (#4237)
menchauser Nov 22, 2016
932dc5f
add [Riffyn](https://riffyn.com)
wing328 Nov 22, 2016
ba194ba
Added support for string responses (#4057)
plankswert Nov 23, 2016
4c05d5f
Allow Java source formatting mvn formatter:format (#4214)
nickcmaynard Nov 23, 2016
2f80568
Refactor code to make it more readable. (#4224)
sreeshas Nov 23, 2016
44ca30d
Merge pull request #4215 from cbornet/flask_param_name
wing328 Nov 23, 2016
5f372ef
Merge pull request #4219 from jordanyaker/master
wing328 Nov 23, 2016
bcc7e69
[Flask] Add packaging support
cbornet Nov 23, 2016
a7ecaa2
Merge pull request #4249 from cbornet/flask_package
wing328 Nov 24, 2016
c15743b
Issue4254 (#4255)
Danielku15 Nov 24, 2016
1ea9865
[PHP] Fix discriminator handling (#4246)
RobertBiehl Nov 25, 2016
97525b9
add http://leica-geosystems.com
wing328 Nov 25, 2016
8cd881f
disable appveyor cache (which seems broken) (#4260)
wing328 Nov 25, 2016
a61f98a
add travis test file for objc, swift (#4268)
wing328 Nov 28, 2016
5b90276
Merge pull request #4202 from gierschv/fix-swift3-inheritance
wing328 Nov 28, 2016
e7397d2
Fix linting issues
ChrisJamesC Nov 28, 2016
6472baa
Fix typos in CONTRIBUTING.md
ChrisJamesC Nov 28, 2016
5b4f81f
Merge pull request #4276 from ChrisJamesC/cc-fix-lint
wing328 Nov 29, 2016
ae08517
Merge pull request #4277 from ChrisJamesC/cc-fix-typo
wing328 Nov 29, 2016
d2e0883
Fix typo in the README
ChrisJamesC Nov 29, 2016
7c5b703
Merge pull request #4283 from ChrisJamesC/cc-readme
wing328 Nov 29, 2016
67e0c92
added my company name to the list of companies.
kpradeepkumarreddy Nov 29, 2016
32daf05
Merge pull request #4286 from kpradeepkumarreddy/patch-2
wing328 Nov 29, 2016
1925928
Merge pull request #4038 from alechill/4025-typescript-fecth-request-…
wing328 Nov 29, 2016
b733334
[Typescript/fetch][Issue4284] Handle query parameters containing colo…
ChrisJamesC Nov 30, 2016
a603ccb
[Dart] add auto-generated documentation (#4291)
wing328 Nov 30, 2016
1658111
add swagger codegen evangelist program
wing328 Nov 30, 2016
c6aea46
fix import in sample code (dart) (#4292)
wing328 Nov 30, 2016
9bd685d
add davidkiss as template creator
wing328 Nov 30, 2016
12c75a9
Added VMware to list of Companies
alanrenouf Nov 30, 2016
fbe4fee
Merge pull request #4299 from alanrenouf/patch-1
wing328 Dec 1, 2016
0a97b9c
make sure to camelize properly before checking for reserved words (#4…
jaz-ah Dec 1, 2016
af0d217
Fix basePath set to null when generating API files. (#4304)
sreeshas Dec 1, 2016
564e061
add Object as reserved keyword in Android
wing328 Dec 1, 2016
87cb779
[Typscript][Angular2] Remove tab in TS Angular2 template (#4294)
wing328 Dec 1, 2016
fdb6d30
Merge pull request #4305 from wing328/android_object_reserved_word
wing328 Dec 1, 2016
31d31b9
[Ruby] use hasConsumes, hasProduces in ruby client (#4310)
wing328 Dec 2, 2016
18420dd
add serialVersionUID to java model (#4311)
wing328 Dec 2, 2016
964a9a9
Support for standalone enums in Typescript-Angular2
SamuelBeliveau Dec 2, 2016
2b240a4
Use JavaScript codegen in JavaScript test (instead of Java) (#4316)
alechenninger Dec 5, 2016
79a71fd
Update docs for Java code generation (#4303)
tadhgpearson Dec 5, 2016
648f8df
Fix for missing headers (#4328)
sebastianhaas Dec 6, 2016
8e1eeaa
[csharp] Remove generatePropertyChanged when explicitly false (#4280)
jimschubert Dec 6, 2016
8153f0e
Fix test spec issue (#4334)
wing328 Dec 7, 2016
b7984e5
[Swift3][bug#4318] Bug when handling java date (#4332)
zxy198717 Dec 7, 2016
f781f1d
comment out xctool installation
wing328 Dec 7, 2016
162352c
Fix maximum, minimum for `Integer` (#4335)
wing328 Dec 7, 2016
56d5b54
add tests for swift3 client in travis objc/swift config
wing328 Dec 7, 2016
a2c2a77
Added Saritasa to list of Companies (#4343)
skondratov Dec 8, 2016
939a805
[Java] Uncomment @Max @Min syntax in bean validation files (#4340)
wing328 Dec 8, 2016
a0c4b58
add guid mapping for c# 2.0 (#4347)
wing328 Dec 8, 2016
a3d3082
[Typescript/Fetch] Fix tslint issues in generated code (#4313)
ChrisJamesC Dec 8, 2016
535b233
Fix for #4344 - update compile.mustache with new dependencies (#4345)
jjwilliams42 Dec 8, 2016
af2db27
remove trailing space in ts fetech api, add npm test to ci (#4348)
wing328 Dec 8, 2016
9051848
minor fix to petstore test spec
wing328 Dec 8, 2016
a0f2b23
[C#] fix build.sh for PropertyChanged feature in C# API client (#4349)
wing328 Dec 8, 2016
ceb9cb7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 8, 2016
73bf589
add swagger codegen evangelist
wing328 Dec 9, 2016
c3571b2
Some code cleanings of problems reported by SonarQube. (#4324)
burberius Dec 9, 2016
2e80d2f
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 9, 2016
4d2a130
[Python] Make the code look Pythonic (#4352)
frol Dec 9, 2016
7a97c3c
Still respect super.equals even for models without own vars (#4259)
j4velin Dec 9, 2016
b68e4b0
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 9, 2016
6e578f4
add keyword (sdk generation)
wing328 Dec 9, 2016
56eda63
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 9, 2016
c83c813
Refactor Boolean properties to boolean. (#4326)
sreeshas Dec 9, 2016
130161f
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 9, 2016
78e2435
Add Shine Solutions to list of companies using Swagger Codegen (#4363)
cliffano Dec 11, 2016
2e6eb43
add SRC
wing328 Dec 11, 2016
8e20097
[typescript-angular2] build to dist folder
zhenwenc Dec 11, 2016
516c21c
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 12, 2016
c2a4c55
add delete cmd for appveyor
wing328 Dec 12, 2016
562ff1a
Minor fix to issue with Appveyor (#4365)
wing328 Dec 12, 2016
f4fb798
Add CircleCI configuration in preparation for CI test migration (#4367)
wing328 Dec 12, 2016
bf50ea1
fix the value for @Generated java annotation (#4366)
trigan-d Dec 12, 2016
d9de3b5
Merge branch 'beanval_2549' of https://github.com/jfiala/swagger-code…
wing328 Dec 12, 2016
62aabfc
Merge branch 'jfiala-beanval_2549'
wing328 Dec 12, 2016
77b92d7
Fix go client auth UserName var issue (#4245)
paulvollmer Dec 12, 2016
0b5a6f2
[typescript-angular2] access token function (#4361)
chris-putnam Dec 12, 2016
15a8425
added Upwork to users list (#4378)
trigan-d Dec 13, 2016
da9d64d
Fix for issue #4370 - Cpprest does not set Content-Type header on POS…
sdrichter Dec 13, 2016
beeb02a
[html] Add type anchor to body param block (#4368)
wy-z Dec 13, 2016
7719bc8
add https://github.com/bbatsov/clojure-style-guide
wing328 Dec 13, 2016
5818f2c
[C++] better code format for `cpprest` templates (#4379)
wing328 Dec 13, 2016
e55664c
Remove invalid code from mustache for arrays. (#4266)
antihax Dec 13, 2016
b33d4ec
add enum_outer_doc.mustache for android (#4381)
wing328 Dec 13, 2016
a291d31
[Android] better code format for Android (volley) API client (#4384)
wing328 Dec 13, 2016
83adcf5
Update README.md (#4390)
Dec 14, 2016
dbb66af
[C#] Add auto-generated doc for c# 2.0 generator (#4354)
wing328 Dec 14, 2016
4fa3595
[typescript-angular2] Fix syntax error (#4383)
chris-putnam Dec 14, 2016
90cf1ca
Date type should not include time (#4385)
bmsantos Dec 14, 2016
5867728
[JaxRS-CXF][bug #4330] support containers in return types (#4339)
MatanRubin Dec 14, 2016
3957a1d
Merge branch 'feature/file-response' of https://github.com/www2k/swag…
wing328 Dec 14, 2016
43515ba
Merge branch 'www2k-feature/file-response'
wing328 Dec 14, 2016
0df8bd2
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 14, 2016
a13dee7
[Java] Play! Framework 2.4 WS client support + retrofit2 (#4270)
lukoyanov Dec 14, 2016
a143e9c
add int/long check for @min/@max in java model (#4395)
wing328 Dec 14, 2016
7b7e5e2
Merge branch 'angular2-standalone-enums-support' of https://github.co…
wing328 Dec 14, 2016
f63d962
update ts angular2 sample
wing328 Dec 14, 2016
c1f498f
Merge branch 'SamuelBeliveau-angular2-standalone-enums-support'
wing328 Dec 14, 2016
7fc8b24
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Dec 14, 2016
3bc3a40
[java] Add licenseName and licenseUrl options.
cliffano Dec 13, 2016
870c745
minor fix to java client options test
wing328 Dec 15, 2016
131cbeb
remove generation timestamp
wing328 Dec 15, 2016
c383cfb
Merge pull request #4403 from wing328/cherrypick_4380
wing328 Dec 15, 2016
ffbead3
Merge branch 'master' into typescript-angular2-build-to-dist-folder
wing328 Dec 15, 2016
218d106
list all supported clients/frameworks/doc
wing328 Dec 15, 2016
733cdb0
formatting for list of api clients/servers
wing328 Dec 15, 2016
3757088
Merge pull request #4364 from zhenwenc/typescript-angular2-build-to-d…
wing328 Dec 15, 2016
91af806
boolean values from JSON are treated as strings (#4229)
yohanakh Dec 16, 2016
6ade001
CodegenResponse.isListContainer is false for array types. (#4400)
theoriginalgri Dec 16, 2016
bd81f32
[html2] Fix import statements for most languages (#4243)
bshamblen Dec 16, 2016
2bf3d05
update html2 sample
wing328 Dec 16, 2016
c6c8ffe
Do not NPE when array properties items are not specified (#4063)
Dec 16, 2016
6af43dc
[csharp] Escape special characters in the API doc (#4183)
hamedrnik Dec 16, 2016
2172cfe
add warning message for null inner type (map/array) (#4408)
wing328 Dec 16, 2016
41c4934
rename api documentation generator
wing328 Dec 16, 2016
6bf721f
add parameter as reserved keyword (#4410)
wing328 Dec 16, 2016
537dcbe
fix https://github.com/airbnb/javascript/
wing328 Dec 16, 2016
7e67307
Add AYLIEN company to the list (#4412)
hamedrnik Dec 17, 2016
8ccf982
[Python] add hasConsumes/hasProduces to Python API template (#4419)
wing328 Dec 18, 2016
7fd895b
fix isPrimitiveType for file
wing328 Dec 18, 2016
da1e07a
Update DefaultGenerator.java to call close()
chasetec Dec 19, 2016
43ff85d
Merge pull request #4421 from wing328/fix_isfile_boolean
wing328 Dec 20, 2016
4c398a4
Merge pull request #4434 from chasetec/master
wing328 Dec 20, 2016
ff70105
Fix CSV collection parameter issues for scalatra server (#4426)
jtnystrom Dec 20, 2016
36b97c2
Fix warning docs return type (#4429)
gregra81 Dec 20, 2016
7f980cd
fix(swift3): lowercase enum value before checking reserved words (#4357)
gierschv Dec 20, 2016
4870cf4
Merge branch 'Ignore_Javatypes_On_ModelPre_and_Suffixes' of https://g…
wing328 Dec 20, 2016
c4ccf49
Merge branch 'd0x-Ignore_Javatypes_On_ModelPre_and_Suffixes'
wing328 Dec 20, 2016
204c054
[ObjC] minor code style enhancement to ObjC API client (#4437)
wing328 Dec 20, 2016
79fa53a
Added Autodesk as a swagger codegen user
gregra81 Dec 20, 2016
ba28575
Merge pull request #4438 from gregra81/patch-1
wing328 Dec 21, 2016
d7afb22
Fix Integer stub value defaulting to String in nodejs-server if forma…
Dec 21, 2016
d52f5a3
update swagger pasrer to 1.0.25-SNAPSHOT
wing328 Dec 22, 2016
e189388
[Ruby] Add Rakefile and Gemfile (#4448)
ezkl Dec 22, 2016
41701a1
Fix typo. Creactor -> Creator (#4443)
antonvasin Dec 22, 2016
27f1b6e
Introduce NodeJS codegen for Google Cloud Functions. (#4406)
jmuk Dec 22, 2016
aed21bb
better code format for nodejs server (#4411)
wing328 Dec 22, 2016
fb3d4e6
roll back to latest working version of swagger paresr for codegen
wing328 Dec 29, 2016
0252d1a
Update to latest swagger-core, parser versions (#4472)
fehguy Jan 3, 2017
c94e18a
[codegen ignore] normalize path separator for Windows, add *.ext test…
jimschubert Jan 3, 2017
cb9a1b3
[csharp] Use default rather than null in ctor (#4145)
jimschubert Jan 3, 2017
3f66e27
Only updated README.md file (#4485)
ajainy Jan 4, 2017
42a0491
add https://www.fastly.com/
wing328 Jan 5, 2017
ce899e3
Merge remote-tracking branch 'origin/master' into 2.3.0
wing328 Jan 5, 2017
db03c35
fix pom for feign and okhttp-gson java api client
wing328 Jan 5, 2017
aae7e2c
fix optional parameters and collection format in go api client
wing328 Jan 5, 2017
a7e4f54
fix feign pom
wing328 Jan 5, 2017
a8bc090
update feign pom version
wing328 Jan 5, 2017
7335816
remove problem class files from java api clients
wing328 Jan 5, 2017
52ee4ac
fix ts fetch method signature
wing328 Jan 5, 2017
b8f9985
fix ts fetch missing , before options
wing328 Jan 5, 2017
15cdbcc
fix code styling in ts
wing328 Jan 5, 2017
27b5347
resolve merge conflicts in ts fetch test cases
wing328 Jan 5, 2017
864d22b
comment out ts fetch default test
wing328 Jan 5, 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
  •  
  •  
  •  
57 changes: 57 additions & 0 deletions .travis.objc_swift_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
sudo: required
language: objective-c
osx_image: xcode7.3

cache:
directories:
- $HOME/.m2
- $HOME/.gem
- $HOME/.rvm
- $HOME/.cocoapods
- swagger-api/swagger-codegen/samples/client/petstore/objc/default/SwaggerClientTests/Pods
- swagger-api/swagger-codegen/samples/client/petstore/objc/core-data/SwaggerClientTests/Pods
- swagger-api/swagger-codegen/samples/client/petstore/swift/default/SwaggerClientTests/Pods
- swagger-api/swagger-codegen/samples/client/petstore/swift/promisekit/SwaggerClientTests/Pods

services:
- docker

addons:
hosts:
- petstore.swagger.io

before_install:
- export SW=`pwd`
# show host table to confirm petstore.swagger.io is mapped to localhost
- cat /private/etc/hosts
#- rvm install 2.2.2 > /dev/null 2>&1
- rvm use 2.2.4
- gem environment
- gem install cocoapods -v 1.0.1 -N --no-ri --no-rdoc
- gem install xcpretty -N --no-ri --no-rdoc
- pod --version
- pod setup --silent > /dev/null
# xctool already pre-installed
#- brew install xctool
- git clone https://github.com/wing328/swagger-samples
- cd swagger-samples/java/java-jersey-jaxrs && sudo mvn -q jetty:run &

install:

script:
# test default objc client
- cd $SW/samples/client/petstore/objc/default/SwaggerClientTests && pod install && xctool -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient-Example" -destination platform='iOS Simulator',OS=8.4,name='iPhone 6' test -test-sdk iphonesimulator CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# test objc client with coredata
- cd $SW/samples/client/petstore/objc/core-data/SwaggerClientTests && pod install && xctool -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient-Example" -destination platform='iOS Simulator',OS=8.4,name='iPhone 6' test -test-sdk iphonesimulator CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- set -o pipefail
# test swift client with promisekit
- cd $SW/samples/client/petstore/swift/promisekit/SwaggerClientTests && pod install && xcodebuild clean test -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
# test default swift client
- cd $SW/samples/client/petstore/swift/default/SwaggerClientTests && pod install && xcodebuild clean test -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
# test swift3 client with promisekit
- cd $SW/samples/client/petstore/swift3/promisekit/SwaggerClientTests && pod install && xcodebuild clean test -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
# test default swift3 client
- cd $SW/samples/client/petstore/swift3/default/SwaggerClientTests && pod install && xcodebuild clean test -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty

env:
- DOCKER_IMAGE_NAME=swaggerapi/swagger-generator
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ 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 langauages:
Code change should conform to the programming style guide of the respective languages:
- Android: https://source.android.com/source/code-style.html
- C#: https://msdn.microsoft.com/en-us/library/vstudio/ff926074.aspx
- C++: https://google.github.io/styleguide/cppguide.html
- Clojure: https://github.com/bbatsov/clojure-style-guide
- 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/tree/master/es5
- JavaScript: https://github.com/airbnb/javascript/
- 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
Expand All @@ -52,8 +53,8 @@ You may find the current code base not 100% conform to the coding style and we w

For [Vendor Extensions](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#vendorExtensions), please follow the naming convention below:
- For general vendor extension, use lower case and hyphen. e.g. `x-is-unique`, `x-content-type`
- For language-specified vendor extension, put it in the form of `x-{lang}-{extension-name}`. e.g. `x-objc-operation-id`, `x-java-feign-retry-limit`
- For a list of existing vendor extensions in use, please refer to https://github.com/swagger-api/swagger-codegen/wiki/Vendor-Extensions. If you've addaed new vendor extensions as part of your PR, please update the wiki page.
- For language-specified vendor extension, put it in the form of `x-{lang}-{extension-name}`. e.g. `x-objc-operation-id`, `x-java-feign-retry-limit`
- For a list of existing vendor extensions in use, please refer to https://github.com/swagger-api/swagger-codegen/wiki/Vendor-Extensions. If you've added new vendor extensions as part of your PR, please update the wiki page.

### Testing

Expand Down
108 changes: 77 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
:warning: If the OpenAPI/Swagger spec is obtained from an untrusted source, please make sure you've reviewed the spec before using Swagger Codegen to generate the API client, server stub or documentation as [code injection](https://en.wikipedia.org/wiki/Code_injection) may occur :warning:

## Overview
This is the swagger codegen project, which allows generation of API client libraries, server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification).
This is the swagger codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported:

Check out [Swagger-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the Swagger project, including additional libraries with support for other languages and more.
- **API clients**: **ActionScript**, **C#** (.net 2.0, 4.0 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Go**, **Groovy**, **Haskell**, **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign), **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **Python**, **Ruby**, **Scala**, **Swift** (2.x, 3.x), **Typescript** (Angular1.x, Angular2.x, Fetch, Node)
- **Server stubs**: **C#** (ASP.NET Core, NancyFx), **Erlang**, **Go**, **Haskell**, **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy), **PHP** (Lumen, Slim, Silex), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Scala** (Scalatra)
- **API documentation generators**: **HTML**, **Confluence Wiki**
- **Others**: **JMeter**

Check out [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) for additional information about the OpenAPI project.

# Table of contents

Expand Down Expand Up @@ -52,11 +57,12 @@ Check out [Swagger-Spec](https://github.com/OAI/OpenAPI-Specification) for addit
- [Guidelines for Contribution](https://github.com/swagger-api/swagger-codegen/wiki/Guidelines-for-Contribution)
- [Companies/Projects using Swagger Codegen](#companiesprojects-using-swagger-codegen)
- [Swagger Codegen Core Team](#swagger-codegen-core-team)
- [Swagger Codegen Evangelist](#swagger-codegen-evangelist)
- [License](#license)


## Compatibility
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The swagger-codegen project has the following compatibilies with the OpenAPI Specification:
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The swagger-codegen project has the following compatibilities with the OpenAPI Specification:

Swagger Codegen Version | Release Date | OpenAPI Spec compatibility | Notes
-------------------------- | ------------ | -------------------------- | -----
Expand Down Expand Up @@ -128,7 +134,8 @@ cd /vagrant

#### Public Docker image

https://hub.docker.com/r/swaggerapi/swagger-generator/
- https://hub.docker.com/r/swaggerapi/swagger-generator/ (official)
- https://hub.docker.com/r/jimschubert/swagger-codegen-cli/ (unofficial)

### Homebrew
To install, run `brew install swagger-codegen`
Expand Down Expand Up @@ -550,10 +557,10 @@ CONFIG OPTIONS

library
library template (sub-template) to use:
<default> - HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2
jersey1 - HTTP client: Jersey client 1.18. JSON processing: Jackson 2.4.2
jersey2 - HTTP client: Jersey client 2.6
feign - HTTP client: Netflix Feign 8.1.1. JSON processing: Jackson 2.6.3
okhttp-gson - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1
okhttp-gson (default) - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1
retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0)
retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2)
```
Expand Down Expand Up @@ -664,7 +671,7 @@ You can use the [swagger-codegen-maven-plugin](modules/swagger-codegen-maven-plu
To push the auto-generated SDK to GitHub, we provide `git_push.sh` to streamline the process. For example:

1) Create a new repository in GitHub (Ref: https://help.github.com/articles/creating-a-new-repository/)

2) Generate the SDK
```
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
Expand Down Expand Up @@ -747,7 +754,10 @@ Here are some companies/projects using Swagger Codegen in production. To add you
- [Activehours](https://www.activehours.com/)
- [Acunetix](https://www.acunetix.com/)
- [Atlassian](https://www.atlassian.com/)
- [Autodesk](http://www.autodesk.com/)
- [Avenida Compras S.A.](https://www.avenida.com.ar)
- [AYLIEN](http://aylien.com/)
- [Balance Internet](https://www.balanceinternet.com.au/)
- [beemo](http://www.beemo.eu)
- [bitly](https://bitly.com)
- [Bufferfly Network](https://www.butterflynetinc.com/)
Expand All @@ -765,6 +775,8 @@ Here are some companies/projects using Swagger Codegen in production. To add you
- [eureka](http://eure.jp/)
- [everystory.us](http://everystory.us)
- [Expected Behavior](http://www.expectedbehavior.com/)
- [Fastly](https://www.fastly.com/)
- [Flat](https://flat.io)
- [Finder](http://en.finder.pl/)
- [FH Münster - University of Applied Sciences](http://www.fh-muenster.de)
- [Gear Zero Network](https://www.gearzero.ca)
Expand All @@ -773,15 +785,18 @@ Here are some companies/projects using Swagger Codegen in production. To add you
- [GraphHopper](https://graphhopper.com/)
- [Gravitate Solutions](http://gravitatesolutions.com/)
- [IMS Health](http://www.imshealth.com/en/solution-areas/technology-and-applications)
- [Intent HQ](http://www.intenthq.com)
- [Interactive Intelligence](http://developer.mypurecloud.com/)
- [LANDR Audio](https://www.landr.com/)
- [Lascaux](http://www.lascaux.it/)
- [LiveAgent](https://www.ladesk.com/)
- [Kabuku](http://www.kabuku.co.jp/en)
- [Kuroi](http://kuroiwebdesign.com/)
- [Kuary](https://kuary.com/)
- [LANDR Audio](https://www.landr.com/)
- [Lascaux](http://www.lascaux.it/)
- [Leica Geosystems AG](http://leica-geosystems.com)
- [LiveAgent](https://www.ladesk.com/)
- [LXL Tech](http://lxltech.com)
- [Mindera](http://mindera.com/)
- [Mporium](http://mporium.com/)
- [Mporium](http://mporium.com/)
- [nViso](http://www.nviso.ch/)
- [Okiok](https://www.okiok.com)
- [Onedata](http://onedata.org)
Expand All @@ -792,20 +807,29 @@ Here are some companies/projects using Swagger Codegen in production. To add you
- [Plexxi](http://www.plexxi.com)
- [Pixoneye](http://www.pixoneye.com/)
- [PostAffiliatePro](https://www.postaffiliatepro.com/)
- [Prill Tecnologia](http://www.prill.com.br)
- [QAdept](http://qadept.com/)
- [QuantiModo](https://quantimo.do/)
- [Rapid7](https://rapid7.com/)
- [Reload! A/S](https://reload.dk/)
- [Reload! A/S](https://reload.dk/)
- [REstore](https://www.restore.eu)
- [Revault Sàrl](http://revault.ch)
- [Riffyn](https://riffyn.com)
- [Royal Bank of Canada (RBC)](http://www.rbc.com/canada.html)
- [Saritasa](https://www.saritasa.com/)
- [SCOOP Software GmbH](http://www.scoop-software.de)
- [Shine Solutions](https://shinesolutions.com/)
- [Skurt](http://www.skurt.com)
- [SmartRecruiters](https://www.smartrecruiters.com/)
- [snapCX](https://snapcx.io)
- [SRC](https://www.src.si/)
- [StyleRecipe](http://stylerecipe.co.jp)
- [Svenska Spel AB](https://www.svenskaspel.se/)
- [TaskData](http://www.taskdata.com/)
- [ThoughtWorks](https://www.thoughtworks.com)
- [Upwork](http://upwork.com/)
- [uShip](https://www.uship.com/)
- [VMware](https://vmware.com/)
- [W.UP](http://wup.hu/?siteLang=en)
- [Wealthfront](https://www.wealthfront.com/)
- [WEXO A/S](https://www.wexo.dk/)
Expand All @@ -818,8 +842,8 @@ Here are some companies/projects using Swagger Codegen in production. To add you
Swagger Codegen core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.

## API Clients
| Languages | Core Team (join date) |
|:-------------|:-------------|
| Languages | Core Team (join date) |
|:-------------|:-------------|
| ActionScript | |
| C++ | |
| C# | @jimschubert (2016/05/01) | |
Expand All @@ -829,21 +853,21 @@ Swagger Codegen core team members are contributors who have been making signific
| Go | @guohuang (2016/05/01) @neilotoole (2016/05/01) |
| Java | @cbornet (2016/05/01) @xhh (2016/05/01) @epaul (2016/06/04) |
| Java (Spring Cloud) | @cbornet (2016/07/19) |
| NodeJS/Javascript | @xhh (2016/05/01) |
| NodeJS/Javascript | @xhh (2016/05/01) |
| ObjC | @mateuszmackowiak (2016/05/09) |
| Perl | @wing328 (2016/05/01) |
| PHP | @arnested (2016/05/01) |
| Python | @scottrw93 (2016/05/01) |
| Ruby | @wing328 (2016/05/01) @zlx (2016/05/22) |
| Scala | |
| Swift | @jaz-ah (2016/05/01) @Edubits (2016/05/01) |
| TypeScript (Node) | @Vrolijkx (2016/05/01) |
| TypeScript (Angular1) | @Vrolijkx (2016/05/01) |
| TypeScript (Node) | @Vrolijkx (2016/05/01) |
| TypeScript (Angular1) | @Vrolijkx (2016/05/01) |
| TypeScript (Angular2) | @Vrolijkx (2016/05/01) |
| TypeScript (Fetch) | |
## Server Stubs
| Languages | Core Team (date joined) |
|:------------- |:-------------|
| Languages | Core Team (date joined) |
|:------------- |:-------------|
| C# ASP.NET5 | @jimschubert (2016/05/01) |
| Go Server | @guohuang (2016/06/13) |
| Haskell Servant | |
Expand All @@ -862,24 +886,26 @@ Swagger Codegen core team members are contributors who have been making signific
## Template Creator
Here is a list of template creators:
* API Clients:
* Akka-Scala: @cchafer
* Akka-Scala: @cchafer
* C++ REST: @Danielku15
* C# (.NET 2.0): @who
* Clojure: @xhh
* Dart: @yissachar
* Groovy: @victorgit
* Go: @wing328
* Dart: @yissachar
* Groovy: @victorgit
* Go: @wing328
* Java (Feign): @davidkiss
* Java (Retrofit): @0legg
* Java (Retrofi2): @emilianobonassi
* Java (Jersey2): @xhh
* Java (Jersey2): @xhh
* Java (okhttp-gson): @xhh
* Javascript/NodeJS: @jfiala
* Javascript/NodeJS: @jfiala
* Javascript (Closure-annotated Angular) @achew22
* JMeter @davidkiss
* Perl: @wing328
* Swift: @tkqubo
* Swift 3: @hexelon
* TypeScript (Node): @mhardorf
* TypeScript (Angular1): @mhardorf
* TypeScript (Node): @mhardorf
* TypeScript (Angular1): @mhardorf
* TypeScript (Fetch): @leonyu
* TypeScript (Angular2): @roni-frantchi
* Server Stubs
Expand All @@ -896,7 +922,7 @@ Here is a list of template creators:
* JAX-RS CXF (CDI): @nickcmaynard
* PHP Lumen: @abcsum
* PHP Slim: @jfastnacht
* Ruby on Rails 5: @zlx
* Ruby on Rails 5: @zlx
* Documentation
* HTML Doc 2: @jhitchcock
* Confluence Wiki: @jhitchcock
Expand All @@ -905,16 +931,36 @@ Here is a list of template creators:

Here are the requirements to become a core team member:
- rank within top 50 in https://github.com/swagger-api/swagger-codegen/graphs/contributors
- to contribute, here are some good [starting points](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22Need+community+contribution%22)
- to contribute, here are some good [starting points](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22Need+community+contribution%22)
- regular contributions to the project
- about 3 hours per week
- for contribution, it can be addressing issues, reviewing PRs submitted by others, submitting PR to fix bugs or make enhancements, etc

To join the core team, please reach out to wing328hk@gmail.com (@wing328) for more information.

To become a Template Creator, simply submit a PR for new API client (e.g. Rust, Elixir) or server stub (e.g. Ruby Grape) generator.

## License information on Generated Code
# Swagger Codegen Evangelist

Swagger Codegen Evangelist shoulders one or more of the following responsibilities:

- publishes articles on the benefit of Swagger Codegen
- organizes local Meetups
- presents the benefits of Swagger Codegen in local Meetups or conferences
- actively answers questions from others in [Github](https://github.com/swagger-api/swagger-codegen/issues), [StackOverflow](stackoverflow.com/search?q=%5Bswagger%5D)
- submits PRs to improve Swagger Codegen
- reviews PRs submitted by the others
- ranks within top 100 in the [contributor list](https://github.com/swagger-api/swagger-codegen/graphs/contributors)

If you want to be a Swagger Codegen Evangelist, please kindly apply by sending an email to wing328hk@gmail.com (@wing328)

### List of Swagger Codegen Evangelists

- Cliffano Subagio (@cliffano from Australia joined on Dec 9, 2016)
- [Building An AEM API Clients Ecosystem](http://www.slideshare.net/cliffano/building-an-aem-api-clients-ecosystem)
- [Adobe Marketing Cloud Community Expo](http://blog.cliffano.com/2016/11/10/adobe-marketing-cloud-community-expo/)

# License information on Generated Code

The Swagger Codegen project is intended as a benefit for users of the Swagger / Open API Specification. The project itself has the [License](#license) as specified. In addition, please understand the following points:

Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ install:
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5
- cmd: dir/w
# - cmd: RMDIR "C:\projects\swagger-codegen\swagger-samples" /S /Q
- 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"
build_script:
Expand All @@ -37,6 +39,6 @@ test_script:

# generate all petstore clients
- .\bin\windows\run-all-petstore.cmd
cache:
#cache:
# - C:\maven\
# - C:\Users\appveyor\.m2
2 changes: 1 addition & 1 deletion bin/dart-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +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.yaml -l dart -o samples/client/petstore/dart/swagger"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/dart -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l dart -o samples/client/petstore/dart/swagger"

# then options to generate the library for vm would be:
#ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l dart -o samples/client/petstore/dart/swagger_vm -DbrowserClient=false -DpubName=swagger_vm"
Expand Down
Loading