Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4541 commits
Select commit Hold shift + click to select a range
899e11e
added date library option
fehguy Jan 15, 2016
8e85263
fixed templates
fehguy Jan 15, 2016
de6d69f
fix null apiclient in .net (windows)
wing328 Jan 17, 2016
e2ce58b
add binary mapping for code generator
wing328 Jan 17, 2016
2153105
fix indent, update perl & python sample
wing328 Jan 17, 2016
b2567f9
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
hiveship Jan 18, 2016
03018c5
update tostring to use sanitizeforserialization
wing328 Jan 18, 2016
fc77a39
fix empty object serialization issue
wing328 Jan 18, 2016
8e76673
Merge pull request #1916 from wing328/php_model_str_to_json
wing328 Jan 18, 2016
9da15c6
add api test and model test files
wing328 Jan 18, 2016
92f6bf3
fix post, put, delete and patch when body is null [android-volley-lib…
Shyri Jan 18, 2016
ab461ca
fix networ error excetption for synchronous requests [android-volley-…
Shyri Jan 18, 2016
25ee3e0
add test dependencies [android-volley-library]
Shyri Jan 18, 2016
37f50f5
fix typo
wing328 Jan 19, 2016
f1588bf
fix typo Configuraiton
wing328 Jan 19, 2016
839aea7
add test template for php
wing328 Jan 19, 2016
22cf657
add comments
wing328 Jan 19, 2016
53e774f
Make JavaScript client work in both Node.js and browser
xhh Jan 19, 2016
6f687ec
Some cleanup
xhh Jan 19, 2016
5c38346
fix byte[] in spring mvc and java inflector
wing328 Jan 19, 2016
0d26ee5
fix silex shell script
wing328 Jan 19, 2016
1fada7c
make slim sh executable
wing328 Jan 19, 2016
13134d4
Merge pull request #1923 from wing328/java_server_fix_binary
wing328 Jan 20, 2016
960266c
CSharp: Optionally build csproj file
jhancock93 Jan 13, 2016
92624f0
Fix project file option handling
jhancock93 Jan 20, 2016
5601ded
Merge pull request #1921 from wing328/php_generate_test
wing328 Jan 20, 2016
c6bd741
Set accept header for JavaScript client
xhh Jan 20, 2016
42d8e64
Use String for "binary" as a workaronud
xhh Jan 20, 2016
c5ff0d9
Add style guide for JS
wing328 Jan 20, 2016
770c4be
Merge pull request #1912 from wing328/csharp_update_test2
wing328 Jan 20, 2016
ac523d4
Try fixing occasional testing failuers in Java client
xhh Jan 20, 2016
b71402b
update csharp readme
wing328 Jan 20, 2016
287a547
Fix tests of UserAPI
xhh Jan 20, 2016
ab60831
Fix Ruby tests of the Petstore sample
xhh Jan 20, 2016
8387b83
Merge pull request #1925 from wing328/csharp_update_readme
wing328 Jan 20, 2016
0fa2a6c
add test cases for findPetsByTags
wing328 Jan 20, 2016
85e270a
Merge pull request #1922 from xhh/javascript-nodejs
wing328 Jan 20, 2016
42da8f4
remove var_dump
wing328 Jan 20, 2016
82b345b
Merge pull request #1930 from wing328/php_fix_deserialization
wing328 Jan 20, 2016
a7efa35
fix ApiKeyAuth applyToHeader when no api-key is provided
Shyri Jan 20, 2016
81f4999
Added configurable timeout
Shyri Jan 20, 2016
868a46b
Added PetApiTest [android-volley]
Shyri Jan 20, 2016
9f4cbc8
Add OAuth stub [androiod-volley]
Shyri Jan 20, 2016
891a18f
Merge branch 'master' into java-binary-support
xhh Jan 21, 2016
47116b9
Ruby: support binary (byte array) for body parameter and response
xhh Jan 21, 2016
fc36b13
update csharp configuration to avoid circular dependency, deprecate
wing328 Jan 18, 2016
2c045f5
update comment in csharp test
wing328 Jan 18, 2016
712d8b3
update tostring to use sanitizeforserialization
wing328 Jan 18, 2016
e51a9a6
fix empty object serialization issue
wing328 Jan 18, 2016
323369a
add api test and model test files
wing328 Jan 18, 2016
ab65af7
fix typo
wing328 Jan 19, 2016
034b999
fix typo Configuraiton
wing328 Jan 19, 2016
c9c893b
add test template for php
wing328 Jan 19, 2016
c72bab5
add comments
wing328 Jan 19, 2016
ee8b8d6
Make JavaScript client work in both Node.js and browser
xhh Jan 19, 2016
2ff12ec
Some cleanup
xhh Jan 19, 2016
65b89e9
fix byte[] in spring mvc and java inflector
wing328 Jan 19, 2016
4a1448f
fix silex shell script
wing328 Jan 19, 2016
6ac4426
make slim sh executable
wing328 Jan 19, 2016
d92bfb3
Set accept header for JavaScript client
xhh Jan 20, 2016
79ea2c7
Use String for "binary" as a workaronud
xhh Jan 20, 2016
d0e98a1
Add style guide for JS
wing328 Jan 20, 2016
7f223e1
Try fixing occasional testing failuers in Java client
xhh Jan 20, 2016
ad95271
update csharp readme
wing328 Jan 20, 2016
4e6518e
Fix tests of UserAPI
xhh Jan 20, 2016
934da8b
Fix Ruby tests of the Petstore sample
xhh Jan 20, 2016
09d9bd7
add test cases for findPetsByTags
wing328 Jan 20, 2016
1a846fd
remove var_dump
wing328 Jan 20, 2016
9bc87ea
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into f…
hiveship Jan 21, 2016
876b34a
Merge branch 'java-support-uuid-generation' into fix-java-warnings
hiveship Jan 21, 2016
796bd73
Merge branch 'master' into fix-java-warnings
hiveship Jan 21, 2016
ebfa364
Merge pull request #1898 from xhh/java-binary-support
wing328 Jan 21, 2016
de08649
Fix assembly references in project file generation
jhancock93 Jan 22, 2016
00deb02
Merge pull request #1920 from Shyri/android-volley-library
wing328 Jan 22, 2016
14a3a99
JavaScript: fix constructFromObject for Array fields
xhh Jan 22, 2016
5fd7574
Remove defaultValue from project guid cliOption because the guid is a…
jhancock93 Jan 22, 2016
ca11000
JavaScript: fix model name in initialization and import
xhh Jan 22, 2016
61323c6
Update JavaScript style guide's link to ES5
xhh Jan 22, 2016
b3fd492
Run docker in vagrant
Jan 22, 2016
e24fa66
Merge branch 'master' into vagrant_new
Jan 22, 2016
475a3fb
add sh script for go, add binary mapping for go, fix format
wing328 Jan 22, 2016
8d6da90
update test case, add beta to go help
wing328 Jan 22, 2016
1e23e83
Remove useless tests
Jan 22, 2016
d86a029
Merge pull request #1747 from wing328/add_golang
wing328 Jan 22, 2016
41bd755
Merge pull request #1945 from wizardbyron/remove_wrong_tests
wing328 Jan 22, 2016
d59b872
Merge pull request #1942 from xhh/javascript-fixes
wing328 Jan 22, 2016
8b69fe6
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into f…
hiveship Jan 22, 2016
1561eaf
JavaScript: add default headers and some tests
xhh Jan 22, 2016
9696610
Namespace is missing for SplFileObject reference
akkie Jan 22, 2016
d2a6efc
Merge pull request #1950 from akkie/master
wing328 Jan 22, 2016
905bf2a
#1955 fix command in README: flaskConnexion -> python-flask
hjacobs Jan 22, 2016
6aef647
Merge pull request #1957 from hjacobs/bugfix/issue-1955-readme-fix-py…
fehguy Jan 22, 2016
6d4d6cd
Updated the spring mvc server template to springfox 2.3.1
dilipkrish Jan 22, 2016
4e9dd85
tweak FlaskConnexionCodegen help string
hjacobs Jan 22, 2016
fefb910
Updated the generated sample server
dilipkrish Jan 22, 2016
d280c56
fix flaskConnexion README template to use correct URLs (contextPath i…
hjacobs Jan 22, 2016
58752ea
fix code formatting of flaskConnexion app.py and use more intuitive r…
hjacobs Jan 22, 2016
eb32681
re-generate flaskConnexion sample server with latest changes
hjacobs Jan 22, 2016
b6cfca9
partial fix for #1956
fehguy Jan 22, 2016
23433c0
Merge pull request #1958 from hjacobs/minor-python-flask-clean-up
fehguy Jan 22, 2016
69bebc4
Syntax highlighting
vanillajonathan Jan 23, 2016
b9072f4
Merge pull request #1962 from vanillajonathan/patch-1
webron Jan 23, 2016
10c2c50
Merge pull request #1900 from hiveship/fix-java-warnings
fehguy Jan 23, 2016
9a12023
switched from `paramName` to `baseName` to avoid changing format
fehguy Jan 23, 2016
cd1ffb3
add badges for PR and issue stats
wing328 Jan 23, 2016
d0d2276
build status badge updated to svg
wing328 Jan 23, 2016
fad8ad4
Update CONTRIBUTING.md
wing328 Jan 23, 2016
c0dd0bb
Fix csproj to use framework 4.5 instead of 4.5.2 and fix project file…
jhancock93 Jan 24, 2016
e20cbc6
Merge pull request #1941 from jhancock93/projectfile2
wing328 Jan 24, 2016
64f5fbc
[csharp] Options: useCollection, returnICollection
jimschubert Jan 23, 2016
730d63e
Merge branch 'master' of github.com:swagger-api/swagger-codegen into …
jimschubert Jan 24, 2016
704e976
Add mustache template files for Apache CXF support
hiveship Jan 15, 2016
ce55087
Add CXF codegen
hiveship Jan 15, 2016
50b27e4
merge resolution
hiveship Jan 18, 2016
d79578b
Unit test correction
hiveship Jan 18, 2016
c2d2cea
Work almost finish
hiveship Jan 20, 2016
d1a5f02
Finish
hiveship Jan 21, 2016
fe9dacb
rename codegen names
hiveship Jan 22, 2016
a49f7f2
Include JAX-RS CXF in the readme
hiveship Jan 24, 2016
68f0667
resolve minor issue after rebase
wing328 Jan 24, 2016
ef9e8fe
Merge pull request #1960 from dilipkrish/master
wing328 Jan 25, 2016
cb27dfb
[csharp] Collections options tests, fix model using directive
jimschubert Jan 24, 2016
b7b6cad
Merge branch 'master' into csharp_List_to_ICollection
jimschubert Jan 25, 2016
468389f
Handle "binary" as String in Ruby client
xhh Jan 25, 2016
eb7d035
Merge branch 'master' into ruby-binary
xhh Jan 25, 2016
84f164e
Merge pull request #1964 from jimschubert/csharp_List_to_ICollection
wing328 Jan 25, 2016
2c93162
Remove retrofit remnant from javascript client code generator
kungfoo Jan 20, 2016
7791119
Add 'useRxJava' option to retrofit2 java client generator
kungfoo Jan 20, 2016
758f0e9
Add script for sample generation and adapt gradle and pom templates
kungfoo Jan 22, 2016
564afd9
Add sample client usage for retrofit2 with rx adapter and java 8
kungfoo Jan 22, 2016
bc53ffa
Add retrofit2rx sample to samples profile
kungfoo Jan 22, 2016
27a6fea
Change templates and test code so that the sample is 1.7 compatible
kungfoo Jan 22, 2016
46421b2
Change the artifact identifier for the retrofit2-rx sample
kungfoo Jan 22, 2016
52c26c9
add shell script for jaxrs-cxf
wing328 Jan 25, 2016
470acdb
[csharp] Model tests for List/Collection options
jimschubert Jan 25, 2016
092ac38
Added missing cliOptions for the StaticHtmlGenerator and
evigeant Jan 26, 2016
4446698
Added missing cliOptions for JaxRSServerCodegen
evigeant Jan 26, 2016
0f35855
Fixed options provider for all classes where cliOptions were added
evigeant Jan 26, 2016
939e6cb
Removed a duplicate cliOptions (it is already added by the base class)
evigeant Jan 26, 2016
5fcd365
Merge pull request #1947 from xhh/javascript-default-headers
wing328 Jan 26, 2016
86e1fab
refactored for access in maven plugin
fehguy Jan 26, 2016
2e2fee2
fix for #1976, added missing types
fehguy Jan 26, 2016
7e481c1
Merge pull request #1977 from swagger-api/issue-1976
fehguy Jan 26, 2016
0e4d7d0
Merge pull request #1969 from jimschubert/csharp_List_to_ICollection_…
wing328 Jan 26, 2016
93d0795
ts add option for model property naming
wing328 Jan 24, 2016
f586755
update ts samples
wing328 Jan 24, 2016
82db09a
fix test case
wing328 Jan 24, 2016
ef0072b
remove unused default value
wing328 Jan 25, 2016
4b4e9ba
add default help text for new ts option
wing328 Jan 25, 2016
b847133
update based on discussion on
wing328 Jan 26, 2016
637a791
rename jarxs generator
wing328 Jan 26, 2016
2e8f395
Merge pull request #1967 from wing328/support-jaxrs-cxf-2
wing328 Jan 26, 2016
4d28120
Merge pull request #1928 from ergon/feature/retrofit2-rx
wing328 Jan 26, 2016
607e82c
Merge pull request #1965 from wing328/ts_option_property_naming
wing328 Jan 26, 2016
dd118e7
double quote model property in ts
wing328 Jan 26, 2016
cb59a2c
add auto-generated test case for ruby
wing328 Jan 26, 2016
c8c2609
Typo in README
tambykojak Jan 26, 2016
ae23c4a
Merge pull request #1983 from tambykojak/patch-1
fehguy Jan 26, 2016
b735784
Merge pull request #1979 from wing328/ts_property_double_quote
wing328 Jan 27, 2016
daf0ae5
Lock version for superagent to 1.7.1
xhh Jan 27, 2016
3b6c985
Merge pull request #1986 from xhh/javascript-superagent-version
wing328 Jan 27, 2016
7040a09
Merge pull request #1980 from wing328/ruby_add_test
wing328 Jan 27, 2016
d7dfc61
Merge pull request #1943 from wizardbyron/vagrant_new
wing328 Jan 27, 2016
f4fc4e7
update instruction for running docker in vagrant
wing328 Jan 27, 2016
3efda59
update clone URL
wing328 Jan 27, 2016
4f66a3a
Using logger instead of System.out
rostskadat Jan 11, 2016
32ca469
Use LOGGER instead of LOG
rostskadat Jan 12, 2016
8ff9b79
Fiexd some indentation problem
rostskadat Jan 12, 2016
cf19d1e
Fixed some more indentations problems
rostskadat Jan 12, 2016
49e035b
Some more...
rostskadat Jan 12, 2016
a171ecc
Changing to INFO level in order for the following switches to work as
Jan 25, 2016
5d0fcad
use logger.info to display command line result
wing328 Jan 28, 2016
f2d9a89
Merge pull request #1988 from wing328/maven_build_quiet3
wing328 Jan 28, 2016
babb67d
Support file downloading in Java jersey2 client
ww-mgr Jan 28, 2016
f314660
Fix indention
ww-mgr Jan 28, 2016
f372034
Update Petstore Java jersey2 sample
ww-mgr Jan 28, 2016
9c16cbb
Add gradle IDE support plugins
Jan 28, 2016
f1d58ad
Merge remote-tracking branch 'upstream/master' into fix-cli-options
evigeant Jan 28, 2016
c606698
Add .gradle into .gitignore.
Jan 28, 2016
df9feb2
Merge branch 'master' into ruby-binary
xhh Jan 29, 2016
de03d04
Merge pull request #1975 from evigeant/fix-cli-options
wing328 Jan 29, 2016
4ff6540
Merge pull request #1934 from xhh/ruby-binary
wing328 Jan 29, 2016
7e652b4
Don't force explicit configuration of CA cert location
tsujigiri Jan 29, 2016
ac2c57f
initialize commit JaxRS-Resteasy module
chameleon82 Jan 29, 2016
734ee76
Merge pull request #2003 from ad2games/non-explicit-ca-info-config
wing328 Jan 29, 2016
71063d1
fix file support in form parameter (qt5cpp)
wing328 Jan 30, 2016
86fd304
update c# readme with command to generate DLL
wing328 Jan 30, 2016
ea4308f
add unit test files for C#
wing328 Jan 30, 2016
494384d
add test case for c# method
wing328 Jan 31, 2016
db9d504
Merge pull request #1999 from wizardbyron/gradle_ide_plugins
wing328 Jan 31, 2016
bbe0eb6
add api info as file header to ruby templates
wing328 Jan 31, 2016
6cc9a3d
Code generator for haskell-servant framework
algas Jan 31, 2016
1de721f
Merge pull request #1998 from WoodWing/master
wing328 Jan 31, 2016
f6ee4f9
Rename haskell to haskell-servant
algas Jan 31, 2016
d3f917b
Only define @DefaultValue if it's specified in the swagger spec
nickcmaynard Jan 31, 2016
b04ac95
Update samples for DefaultValue
nickcmaynard Jan 31, 2016
7eaa2ba
Rename
algas Jan 31, 2016
6102ada
Update dependencies and repository info
algas Jan 31, 2016
ad75c8e
Merge pull request #2009 from algas/support-haskell
wing328 Feb 1, 2016
090cec8
Merge pull request #2006 from wing328/qt5_file_support
wing328 Feb 1, 2016
28518ef
fix jboss context-root
chameleon82 Feb 1, 2016
e23303b
remove testFolder (not used)
wing328 Feb 1, 2016
c79e64f
update supporting JodaTime and Java8 DateTime
chameleon82 Feb 1, 2016
197c001
Merge pull request #2007 from wing328/csharp_readme
wing328 Feb 2, 2016
e7bee86
Merge pull request #2011 from nickcmaynard/defaultvalue
wing328 Feb 2, 2016
f5e0e6d
update list of generators
wing328 Feb 2, 2016
0e62809
minor fix to template location for haskell
wing328 Feb 2, 2016
7774e14
Use retrofit2-beta3 and it's dendencies in retrofit2 clients
kungfoo Feb 2, 2016
846cf70
add partial class to C# model
wing328 Feb 2, 2016
4011fd0
Merge pull request #2018 from wing328/haskell_model_notfound
wing328 Feb 2, 2016
554b951
Merge pull request #2020 from wing328/csharp_partial_model
wing328 Feb 2, 2016
17eb2be
Update maven and gradle project definition
chameleon82 Feb 2, 2016
b9b77d8
fix jaxrs links
wing328 Feb 3, 2016
52e8b87
add php slim
wing328 Feb 3, 2016
7750c74
[aspnet] Initial implementation of ASP.NET 5 server
jimschubert Feb 1, 2016
9219c34
Fix documentation merge and incorrect codegen filename
jimschubert Feb 3, 2016
c2149a4
Run docker without sudo and won't check locale settings
Feb 3, 2016
b3da644
Merge pull request #2025 from wizardbyron/master
wing328 Feb 3, 2016
6e1c9e1
JavaScript client: use brackets to access mobel properties
xhh Jan 30, 2016
3b6c080
JavaScript client: ensure a default project/module name
xhh Feb 3, 2016
c083692
Merge pull request #2019 from ergon/feature/use-retrofit-beta3
wing328 Feb 3, 2016
b2e058d
Rename folder resteasy3_0_11 to resteasy
chameleon82 Feb 3, 2016
cda4352
[aspnet] Update readme to aspnet5, add partial class support and wind…
jimschubert Feb 3, 2016
2d4da70
[aspnet] Regenerated models to reflect partial class change
jimschubert Feb 3, 2016
bdeef44
Add bin/jaxrs-resteasy-petstore-server.sh
chameleon82 Feb 3, 2016
38cdbaf
Fix ApiClient.isFileParam in browserify runtime
xhh Feb 4, 2016
f039ef6
Merge pull request #2024 from jimschubert/csharp_webapi_aspnet5_server
wing328 Feb 4, 2016
d163d8f
JavaScript client: handle response deserialization
xhh Feb 4, 2016
69fc1be
update pom to use swagger parser 1.0.17
wing328 Feb 4, 2016
19cbd47
Merge pull request #2031 from wing328/master
wing328 Feb 4, 2016
489576c
Merge pull request #2008 from wing328/license_template
wing328 Feb 4, 2016
f716e5b
Merge pull request #2030 from xhh/javascript-improvements
wing328 Feb 4, 2016
8e3b058
JavaScript client: support collectionFormat for parameters
xhh Feb 4, 2016
18ed231
Merge pull request #2021 from chameleon82/feature/jaxrs-resteasy
wing328 Feb 4, 2016
69a657b
update csharp help, fix default header
wing328 Feb 4, 2016
d7539dc
update exmaple, add toExampleValue
wing328 Feb 4, 2016
c7b9470
update sh permission, add aspnet5 bat
wing328 Feb 4, 2016
d0e7fe8
sanitize model name (C#)
wing328 Feb 4, 2016
856b4fa
Merge pull request #2034 from xhh/javascript-collection-format
wing328 Feb 4, 2016
3a2557f
fix aspnet5 batch file
wing328 Feb 4, 2016
d751ddb
Merge pull request #2035 from wing328/csharp_fix_default_header
wing328 Feb 4, 2016
5b85e8b
FIX: Fixed FLash Client library
Feb 4, 2016
3eb5000
ADD: Add Petstore sample for flash
Feb 4, 2016
92e039b
Merge pull request #2039 from glederrey/master
wing328 Feb 4, 2016
459a28c
Fix for issue #2036, python client wont upload list of files
Feb 4, 2016
322787f
Change post_param from dict to list of tuples to allow list of files
scottrw93 Feb 5, 2016
5d36c9c
Change post_param from dict to list of tuples to allow list of files
scottrw93 Feb 5, 2016
bc62277
Change form_param to list of tuples from dict
scottrw93 Feb 5, 2016
8c84b7c
Update pet-store python client files
Feb 5, 2016
4fd935b
Use more appropriate variable name
scottrw93 Feb 7, 2016
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
  •  
  •  
  •  
47 changes: 47 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
*.iml
out/
*.ipr
*.iws
classpath.txt
version.properties
.project
.classpath
lib/*
build/*
generated-files/*
generated-sources/*
generated-code/*
*.swp
*.swo

/target
/generated-files
/nbactions.xml
*.pyc
__pycache__
samples/server-generator/scalatra/output
samples/server-generator/node/output/node_modules
samples/server-generator/scalatra/target
samples/server-generator/scalatra/output/.history
samples/client/petstore/qt5cpp/PetStore/moc_*
samples/client/petstore/qt5cpp/PetStore/*.o
samples/client/petstore/objc/PetstoreClient.xcworkspace/xcuserdata
samples/client/petstore/qt5cpp/build-*
samples/client/petstore/qt5cpp/PetStore/PetStore
samples/client/petstore/qt5cpp/PetStore/Makefile
samples/client/petstore/java/hello.txt
samples/client/petstore/android/default/hello.txt
samples/client/petstore/objc/Build
samples/client/petstore/objc/Pods
samples/server/petstore/nodejs/node_modules
target
.idea
.lib
atlassian-ide-plugin.xml
.DS_Store

samples/client/petstore/php/SwaggerClient-php/composer.lock
samples/client/petstore/php/SwaggerClient-php/vendor/

samples/client/petstore/silex/SwaggerServer/composer.lock
samples/client/petstore/silex/SwaggerServer/venodr/
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,67 @@ version.properties
lib/*
build/*
generated-files/*
generated-sources/*
generated-code/*
*.swp
*.swo
*.csproj.user

/target
/generated-files
/nbactions.xml
*.pyc
__pycache__
samples/server-generator/scalatra/output
samples/server-generator/node/output/node_modules
samples/server-generator/scalatra/target
samples/server-generator/scalatra/output/.history
samples/client/petstore/qt5cpp/PetStore/moc_*
samples/client/petstore/qt5cpp/PetStore/*.o
samples/client/petstore/objc/PetstoreClient.xcworkspace/xcuserdata
samples/client/petstore/qt5cpp/build-*
samples/client/petstore/qt5cpp/PetStore/PetStore
samples/client/petstore/qt5cpp/PetStore/Makefile
samples/client/petstore/java/hello.txt
samples/client/petstore/android/default/hello.txt
samples/client/petstore/objc/SwaggerClientTests/Build
samples/client/petstore/objc/SwaggerClientTests/Pods
samples/client/petstore/objc/SwaggerClientTests/SwaggerClient.xcworkspace
samples/client/petstore/objc/SwaggerClientTests/Podfile.lock
samples/server/petstore/nodejs/node_modules
samples/client/petstore/csharp/SwaggerClientTest/.vs
samples/client/petstore/csharp/SwaggerClientTest/obj
samples/client/petstore/csharp/SwaggerClientTest/bin
target
.idea
.lib
atlassian-ide-plugin.xml
.DS_Store
packages/
.pub
.packages
.vagrant/

samples/client/petstore/php/SwaggerClient-php/composer.lock
samples/client/petstore/php/SwaggerClient-php/vendor/

samples/client/petstore/silex/SwaggerServer/composer.lock
samples/client/petstore/silex/SwaggerServer/venodr/

samples/client/petstore/perl/deep_module_test/

samples/client/petstore/python/.projectile
samples/client/petstore/python/.venv/
samples/client/petstore/python/dev-requirements.txt.log

.settings

*.mustache~
*.java~
*.pm~
*.xml~
*.t~

samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/
samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/
**/.gradle/
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: required
language: java
jdk:
- oraclejdk7
- oraclejdk8

services:
- docker

before_install:
# required when sudo: required for the Ruby petstore tests
- gem install bundler

install:

script:
- mvn verify -Psamples
- if [ $DOCKER_HUB_USERNAME ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD && docker build -t $DOCKER_IMAGE_NAME ./modules/swagger-generator && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TRAVIS_TAG; fi && docker push $DOCKER_IMAGE_NAME; fi

env:
- DOCKER_IMAGE_NAME=swaggerapi/swagger-generator
63 changes: 63 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Guidelines For Contributing

## Before submitting an issue

- Search the [open issue](https://github.com/swagger-api/swagger-codegen/issues) and [closed issue](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aissue+is%3Aclosed) to ensure no one else has reported something similar before.
- The issue should contain details on how to repeat the issue, e.g.
- the OpenAPI Spec for reproducing the issue (:bulb: use [Gist](https://gist.github.com) to share). If the OpenAPI Spec cannot be shared publicly, it will be hard for the community to help
- version of Swagger Codegen
- language (`-l` in the command line, e.g. java, csharp, php)
- You can also make a suggestion or ask a question by opening an "issue"

## Before submitting a PR

- Search the [open issue](https://github.com/swagger-api/swagger-codegen/issues) to ensure no one else has reported something similar and no one is actively working on similar proposed change.
- If no one has suggested something similar, open an ["issue"](https://github.com/swagger-api/swagger-codegen/issues) with your suggestion to gather feedback from the community.

## How to contribute

### Code generators

All the code generators can be found in [modules/swagger-codegen/src/main/java/io/swagger/codegen/languages](https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages)

### Templates

All the templates ([mustache](https://mustache.github.io/)) can be found in [modules/swagger-codegen/src/main/resources](https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen/src/main/resources).

For a list of variables available in the template, please refer to this [page](https://github.com/swagger-api/swagger-codegen/wiki/Mustache-Template-Variables)


### Style guide
Code change should conform to the programming style guide of the respective langauages:
- C#: https://msdn.microsoft.com/en-us/library/vstudio/ff926074.aspx
- Java: https://google.github.io/styleguide/javaguide.html
- JavaScript - https://github.com/airbnb/javascript/tree/master/es5
- ObjC: https://github.com/NYTimes/objective-c-style-guide
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
- Python: https://www.python.org/dev/peps/pep-0008/
- Ruby: https://github.com/bbatsov/ruby-style-guide
- TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines


For other languages, feel free to suggest.

You may find the current code base not 100% conform to the coding style and we welcome contributions to fix those.

### Testing

To add test cases (optional) covering the change in the code generator, please refer to [modules/swagger-codegen/src/test/java/io/swagger/codegen](https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen/src/test/java/io/swagger/codegen)

To test the templates, please perform the following:
- Update the [Petstore](http://petstore.swagger.io/) sample by running the shell script under `bin` folder. For example, run `./bin/ruby-petstore.sh` to update the Ruby PetStore API client under [`samples/client/petstore/ruby`](https://github.com/swagger-api/swagger-codegen/tree/master/samples/client/petstore/ruby) (For Windows, the batch files can be found under `bin\windows` folder)
- 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`
(`git add -A` if added files with new test cases)

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 Swagger-Codegen repository.

### Tips
- Smaller changes are easier to review
- [Optional] For bug fixes, provide a OpenAPI Spec to repeat the issue so that the reviewer can use it to confirm the fix
- Add test case(s) to cover the change
- Document the fix in the code to make the code more readable
- Make sure test cases passed after the change (one way is to leverage https://travis-ci.org/ to run the CI tests)
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM maven:3.3-jdk-7

WORKDIR /src
VOLUME /src
VOLUME /root/.m2/repository

ADD . /opt/swagger-codegen

RUN cd /opt/swagger-codegen && mvn package

ENTRYPOINT ["java", "-jar", "/opt/swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"]

CMD ["help"]
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright 2016 SmartBear Software

Licensed under the Apache License, Version 2.0 (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](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading