Compare commits

..

7315 Commits

Author SHA1 Message Date
Tony Tam
049b1b2bcc Merge pull request #6071 from swagger-api/update-parser
updated parser
2017-07-15 15:29:21 -07:00
Tony Tam
5bf17da011 updated readme 2017-07-15 14:54:44 -07:00
Tony Tam
a17c3093f8 updated parser 2017-07-15 12:34:36 -07:00
wing328
34e94fbed0 Updated versions for 2.2.3 release and other minor enhancements (#6070)
* update pom to prepare 2.2.3 release

* add header support to qt5, update samples

* update version in java help

* update to xcode 9

* rollback to xcode8.2
2017-07-16 01:03:40 +08:00
Tony Tam
ff04f532bb Merge pull request #6067 from swagger-api/issue-5006
expose default headers, add headers to request
2017-07-14 16:52:33 -07:00
Tony Tam
9ea6e7a06b expose default headers, add headers to request 2017-07-14 16:22:09 -07:00
Tony Tam
d065a6a368 Merge pull request #6063 from zmoore-usgs/feature/move-config-options
Moving instantiationTypes, typeMappings, languageSpecificPrimitives, additionalProperties, and reservedWordsMappings out of configOptions and converting it into a list, rather than being a comma-separated string.
2017-07-14 13:55:05 -07:00
zmoore-usgs
7e723e4ae5 Updated comments 2017-07-14 14:17:12 -05:00
zmoore-usgs
4e40d370a6 Switched methods to use the list application functions rather than the string application functions. 2017-07-14 14:10:48 -05:00
zmoore-usgs
7d82b05d4c Moving instantiationTypes, typeMappings, languageSpecificPrimitives, additionalProperties, and reservedWordsMappings out of configOptions and converting it into a list, rather than being a comma-separated string. 2017-07-14 12:54:09 -05:00
wing328
c1825b417c use html-escaped description for C# (client, server), Java server (#6061) 2017-07-14 23:36:24 +08:00
Lars Wander
9c56bb63d8 [Java] Escape descriptions in javadocs (#6040)
The [java8 doclint](http://openjdk.java.net/jeps/172) rejects unescaped
HTML chars such as `<`, making some generated clients unbuildable with
java8. Seems a few property descriptions were using the `{{{` instead
of `{{` preventing those HTML chars from being escaped properly.
2017-07-14 22:07:19 +08:00
wing328
b024d86eab add location for windows batch file 2017-07-14 22:00:37 +08:00
wing328
cf2b21b57a update wording for issue template 2017-07-14 18:28:29 +08:00
wing328
fd87359a1b update c# petstore sample to remove pattern check for byte array 2017-07-14 16:17:00 +08:00
wing328
921e4a779e update c# petstore samples 2017-07-14 15:49:03 +08:00
Johan Rouve
f90249caf4 Remove jetty server port (#6049) 2017-07-14 15:28:31 +08:00
wing328
ba704e3ac8 add @summary tag to ts client (#6052) 2017-07-14 13:10:36 +08:00
Isman Usoh
fdaf8ea65f [Typescript-Angular2] add @summary JSDoc tag (#6028)
* add @summary JSDoc tag

* updatee sample and create windows script for typescript-angular2

* Fix for Review
2017-07-13 23:33:08 +08:00
wing328
2a5913c0dd Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-07-13 23:27:12 +08:00
wing328
d8bae71b8e update JS petstore samples 2017-07-13 23:26:49 +08:00
wing328
21d33c4054 skip pattern check for byte array in C# (#6048) 2017-07-13 23:25:23 +08:00
boosh
d20537b263 Clarify the Javascript README for local use (#6044)
- Add instructions for installing the generated Javascript library locally without publishing to a remote npm registry.
- Clarify what `main.js` is.
2017-07-13 23:12:56 +08:00
wing328
dd8d59bed1 add jvelilla as eiffel template creator 2017-07-13 22:55:04 +08:00
Javier Velilla
9f711ae7e8 [Eiffel] Add Eiffel API client generator (#6036)
* Initial Eiffel Client code generator
TODO API and Domain model

* Updated EiffelClientCodegen to support Eiffel code style.
Added mustaches templates for models and apis.
The last one still under development.

* Updated templates, initial API generation.
Added client request template.

* Updated api.mustache style

* Updated code generation with a new directory layout.
Added test case generation, clean code.

* Updated Code generator, added apidoc and modeldoc
Updated readme file

* Added a Basic JSON Deserializer
Updated API client to support by default a basic json (de)serializer and let
the user customize then if needed.

* Updated Eiffel code generator to use Eiffel feature name style.
Updated templates to follow Eiffel style.
Improved feature descriptions.

* Added model inheritance support.
Removed unused code.

* Updated Eiffel code templates, refactor remove obsolte feature calls.
Added Eiffel sample in samples/client/petstore/eiffel.

* Updated Java code style.

* Fixed formating, using spaces instead of tabs.

* Updated EiffelCodeGenarator typeMapping.
Added TestCases for EfiffelClientOption and ModelTest cases.
Updated sample code to use the lastest changes.

* Restore keyword `nil' in Go Language.
2017-07-13 22:51:24 +08:00
beatcracker
ef076c34b4 [csharp] Update nuget.exe URL for latest version (#6031)
* Set nuget.exe URL to latest version

Fix #6022

* Update samples
2017-07-13 22:49:56 +08:00
stkrwork
4f33a02868 Swagger version info (#6039) 2017-07-13 17:32:24 +08:00
stkrwork
9d4ebf6998 Swagger version info (#6038) 2017-07-13 17:31:23 +08:00
wing328
8a1b030ed1 add zooplus 2017-07-13 17:02:45 +08:00
wing328
38b072556a run mvn formatter:format on swagger codegen cli 2017-07-13 15:38:02 +08:00
wing328
eb498e23b8 run "mvn formatter:format" on maven plug-in 2017-07-13 15:37:15 +08:00
wing328
1e53557570 run "mvn formatter:format" on swagger-generator 2017-07-13 15:36:04 +08:00
wing328
0416b0332f Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-07-11 21:57:38 +08:00
wing328
74b0c04b2f replace tab with 4-space in restbed class 2017-07-11 21:57:00 +08:00
wing328
42b77a303b [Java][resttemplate] fixed build.gradle (#6020)
* fix build.gradle for resttemplate

* rename pom.xml id to avoid dup
2017-07-11 18:33:53 +08:00
wing328
898ead17fe add tests for resttemplate-withXml in circleci 2017-07-11 17:02:44 +08:00
mobreza
5d32edd964 Java support for application/xml (#5962)
* WIP: CodegenProperty with XML

* WIP: CodegenModel XML bits

* WIP: Jackson XML

* WIP: Java templating

* WIP: Java client withXml flag

* WIP: resttemplate work

* WIP: withXml only when Jackson is used

* WIP: Tabs to spaces

* WIP: java-petstore-resttemplate-withxml sample

* WIP: language: spring

* WIP: language "spring" using library "spring-boot" should include apiPackage in @ComponentScan to detect the API

* WIP: javax.xml for non-Jackson Java and enabled payload logging for jersey2

* WIP: updated java petstore samples

* WIP: JavaSpring with non-jackson XML

* WIP: bin/spring-all-pestore.sh
2017-07-11 17:01:51 +08:00
stkrwork
f2f303b2e8 [C++] [Restbed] Reworked Resource class names (#6017)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* Started work on restbed improvment

* - Updated samples
- Reworked Resource class names
- Added vendor extension for new formatted resource class names

* fix indention
2017-07-11 00:37:08 +08:00
Konstantin Simon Maria Möllers
d522236cec Symfony generator enhancements (#6016)
* Fix error in Symfony models #5985

* Parse Symfony params #5985

* Implement auth metods in Symfony #5985

* Make "get" to "is" in Symfony's booleans #5985

* Use `camelize` instead of `initialCaps` in Symfony #5985

* Use File.separator instead of "/" in PHP/Symfony #5985

* Improve README generation for Symfony #5985

* Create an options test for Symfony #5985
2017-07-11 00:34:43 +08:00
wing328
ca988039cc Merge branch 'phiz71-feature/java-vert.x' 2017-07-10 23:52:45 +08:00
wing328
929627722a make java vertx shell scripts executable 2017-07-10 23:52:10 +08:00
wing328
d56b7ae037 Merge branch 'feature/java-vert.x' of https://github.com/phiz71/swagger-codegen into phiz71-feature/java-vert.x 2017-07-10 23:41:47 +08:00
mmosemmle
455e53b2ae [CPP] Fix cpp escape issue part of #5949 (#5952)
* Fix cpp escape issue.

* whitespace.
2017-07-09 16:34:57 +08:00
serezha93
140826b47f minor fixes (#5981)
* Update configuration.mustache

added return tag in PHPDoc

* made sanitizeFilename as static method

* updated petstore
2017-07-09 16:23:18 +08:00
wing328
5f44486238 add swift4 to README.md 2017-07-09 01:36:12 +08:00
ehyche
2ce3365eaf Add a swift4 client generator (#6010)
* Add a swift4 client generator

* Updates per review comments:

- Changed Alamofire dependency from 4.0 to 4.5
- Added "Codable", "Encodable", and "Decodable" to list of reserved words in generator
- Ran "pod update" in default, promisekit, and rxswift samples test projects
2017-07-09 01:33:52 +08:00
Frank Fleige
0274ba79ad #6012 - fixed mustache template for lumen server (#6013) 2017-07-09 00:51:47 +08:00
wing328
b7ffad9a21 update 2.3.0 circleci badge 2017-07-08 22:25:04 +08:00
Florent Chamfroy
d044498de4 adding Vert.X Codegen
Adding the possibility to generate java Vert.X servers.
It uses Vertx-Swagger-Router project.
It can generate an Async callback version or a Rx version.
2017-07-08 16:10:07 +02:00
marcotta
7ae4146a2b [objc] Initialize default BOOL with @(YES)/@(NO). (#5982) (#5999)
This will prevent submitting integer numbers instead of booleans
when posting objects to the REST API.
2017-07-07 17:16:49 +08:00
Joel Reymont
4b9d0e6a10 Fix Erlang auth method code generation (#5994)
Broken code is generated when no authentication methods are supplied
in the API schema. Fix this by providing code to fall back to.
2017-07-07 15:14:06 +08:00
Konstantin Simon Maria Möllers
c29e16f36f Add Sponsoo to list of companies using swagger codegen (#5988) 2017-07-05 21:33:28 +08:00
wing328
18e7c6a712 add php symfony 2017-07-05 16:58:21 +08:00
Konstantin Simon Maria Möllers
8e62ef7b8c [PHP][Symfony] Add a Symfony server generator #3486 (#5973) 2017-07-05 16:43:56 +08:00
Jan
2774d47a2b fix: es6 style of Array inheritance to fix transpiler error (#5977)
* fix: es6 style of Array inheritance to fix transpiler error

* fix: rebuild of promise-es6 petstore samples with fixed mustache
style: added space between classname and bracket

* style: rebuild javascript-all to reflect style changes in mustache
2017-07-05 01:04:07 +08:00
wing328
f756bd7a72 add style guide for C++ tizen 2017-07-04 19:09:18 +08:00
Julien Fouilhé
c2b575607c fix(swift3): add en_US_POSIX locale to date formatters (#5602) 2017-07-04 11:21:25 +08:00
wing328
1187950df4 update links to snapshot 2017-07-03 22:39:31 +08:00
wing328
44d112e9c6 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-07-03 21:25:39 +08:00
wing328
bec6eaa9dc minor fix to output path in javascript-es6-petstore.bat 2017-07-03 21:25:16 +08:00
wing328
ecf924e78f [Spring] Adds feature useOptional (#5968)
* Adds Valid annotation for request body (#4847)

If useBeanValidation is active, this change will add Valid annotation to ReqeustBody

* Adds generated samples for bean vaildation in spring boot (#4847)

* Adds feature option (#3819)

When you enable the feature useOptional the JavaSpring generator will use type Optional for non required parameters.

* Adds generated sample for #3819

* Adds generated sample for #3819

* Reverts commit for bean validation

* Adds generated sample for #3819

* Reverts commit for bean validation

* Fix alignment

* update spring samples

* update pom.xml to include spring use optional samples

* update artifactId to "spring-boot-beanvalidation"

* rpelace tab with 4-space

* check mvn task result
2017-07-03 17:40:00 +08:00
wing328
e50a4cca36 update ts angular2 petstore 2017-07-02 22:39:18 +08:00
Paŭlo Ebermann
5de6f7b86e Change all sample-generators for typescript-angular2-* to use the YAML version. (#5859) 2017-07-02 22:32:58 +08:00
mmosemmle
94814176b7 [CPP] Fixing some more ordering of checks (#5951)
* Fix more ordering of checks.

* Update cpp petstores.
2017-07-02 22:30:42 +08:00
wing328
f3d83eb925 update ruby gem dependency version (#5964) 2017-07-02 21:46:04 +08:00
wing328
304a7ae19a fix regex escape forward slash (#5963) 2017-07-02 20:51:45 +08:00
wing328
011c6fd01c postpone release date to Jul/Aug 2017 2017-07-01 22:43:34 +08:00
wing328
e7d6bf5d04 add links to snapshot versions 2017-07-01 22:40:53 +08:00
wing328
7fa53773fc mvn deploy for master only (#5946) 2017-07-01 15:16:26 +08:00
stkrwork
fbd888d298 [CONFIG] [APACHE] Fix for Java7 issue (#5960)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* fix java7 issue with apache
2017-06-30 23:58:31 +08:00
wing328
b2366670d7 update ts fetch petstore samples 2017-06-29 23:06:25 +08:00
Gavin Sitthiampornphan
d210236040 fix(ts-fetch): preserve available headers (#5650) 2017-06-29 22:47:03 +08:00
rubms
6fa4853fe7 [NancyFx] Fixed bug in the generation of enum models that were generated with compilation errors (#5910) (#5913)
* NancyFx - Fixed bug in the generation of enum types in the NancyFx server, which cause enums to be generated as general classes, without the enum values and with compilation errors (#5910)

* NancyFx - Changes in the nancyfx sample after the updates in the nancyfx model.mustache template. (#5910)
2017-06-29 22:35:41 +08:00
Juan Pablo Marzetti
64df75d8b6 Docs and examples need model name to be passed as baseType (#5944) 2017-06-29 22:34:12 +08:00
Dennis Kieselhorst
407d728908 updated Spring and Spring Boot dependencies (#5948) 2017-06-29 22:28:08 +08:00
wing328
846ee63f38 [C#] Update C# API client dependencies to the latest version (#5935)
* update C# client dependency

* add back csproj file for c# petstore

* update test result

* downgrade version 1.51.3

* add logo as embedded resource
2017-06-29 21:37:24 +08:00
Dennis Kieselhorst
7a9981b350 updated swagger-ui dependency (#5945) 2017-06-29 16:12:33 +08:00
wing328
b18e003d12 update petstore script usage 2017-06-29 15:32:10 +08:00
wing328
2d058aa925 add info message for mvn clean deploy 2017-06-29 14:59:46 +08:00
wing328
9f2d800435 Merge branch 'better_ci_conflicts' 2017-06-29 14:23:01 +08:00
wing328
8015744212 update java petstore samples 2017-06-29 13:53:37 +08:00
Jordan Zimmerman
b2efb70410 Support a true "java8" option (#5864)
* Closes #5863

The "dateLibrary" option for java, sadly, sets a mustache value "java8". This change updates this so that "java" in the mustache
libraries means what it should mean - use all java8 classes. In this case, there's no need for the third party Base64 library
as java8's JDK has this built in. In my view, the "dateLibrary" should be deprecated but that should be a separate PR.

* updated samples

* fixed tests for new CLI java8

* regenerated samples after master merge

* oops - left in an end tag after master merge

* rerun checks

* rerun checks
2017-06-29 13:23:44 +08:00
wing328
7b80557363 fix file not found 2017-06-29 13:22:26 +08:00
wing328
bced355191 better detection for unresolved merge conflicts 2017-06-29 13:01:40 +08:00
Dennis Kieselhorst
a64c7d7986 updated jackson-version (#5943) 2017-06-29 10:56:12 +08:00
Dennis Kieselhorst
eb6c6d0698 use enforcer-plugin to fix Maven warning (#5940) 2017-06-29 00:22:26 +08:00
Dennis Kieselhorst
e3da4f9fde updated maven-war-plugin (#5941) 2017-06-29 00:14:16 +08:00
Bernd
cbd7301f9c Update README.md (#5942)
Added Leanix as Company using swagger codegen
2017-06-28 22:28:16 +08:00
wing328
4f404a794d add stkrwork as the owner of apache2 template 2017-06-28 18:05:53 +08:00
Paŭlo Ebermann
d31d431071 #5147: allow multiple for other plural options, too (#5860)
* Issue #5147: allow multiple occurrences for other plural options, too.

* Use two --additionalProperties parameters in sample generation script.
2017-06-28 17:55:23 +08:00
Dennis Kieselhorst
4f6e2857cc removed obsolete jersey2-version (#5933) 2017-06-28 16:22:29 +08:00
Tony Tam
a0e4a56026 Merge pull request #5934 from swagger-api/enable-snapshot-push
Enable snapshot push
2017-06-27 12:05:58 -07:00
stkrwork
3c0623cce1 ApacheConfGen for HTTP Basic Authentication Proposed implementation (#5800)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* Auto stash before merge of "master" and "origin/master"

* added missing apache2 config gen in services file

* - Added new Config Type
- Added Samples
- Added sample generating scripts
- Renamed Apache2Confgen to Apache2ConfigCodegen

* - Added Samples
- Added new config type
- Added sample generating scripts
- Renamed Apache2Confgen to Apache2ConfigCodegen
2017-06-28 02:48:53 +08:00
Tony Tam
fae3f42ba8 Update .travis.yml 2017-06-27 10:44:25 -07:00
Tony Tam
8b03baf463 added local settings 2017-06-27 09:35:38 -07:00
Tony Tam
eabc13e468 added sonatype push 2017-06-27 09:35:08 -07:00
Brendan Burns
91f470e41f Add a function for injecting your own Authentication into the Typescript-node client (#5865) 2017-06-28 00:23:40 +08:00
Tony Tam
62c0f17f98 Merge pull request #5858 from swagger-api/issue-5753
Update Swagger Codegen to v1.5.15
2017-06-26 14:20:20 -07:00
Tony Tam
73df07d64c Merge branch 'master' into issue-5753 2017-06-26 13:15:00 -07:00
Tony Tam
8237e491ac fixed order of checking 2017-06-26 13:10:31 -07:00
wing328
5fbb674cac fix retrofit okhttp version 2017-06-27 00:41:08 +08:00
wing328
522d704f7a [Java] Update dependencies for Java clients (#5926)
* update dep for java jersey1, jersey2

* update sbt dependency for jersey2

* update dep for java okhttp-gson, resteasy, resttemplate

* update dep for java retrofit 1.x, 2.x

* update java petstore samples
2017-06-26 23:18:45 +08:00
wing328
6eb987919f minor fix to js promise test cases 2017-06-26 21:48:44 +08:00
Felix Becker
9e420f2149 Use id -g for determining the gid instead of -u (#5899)
fix wrong group id lookup in run-in-docker.sh
2017-06-26 18:29:47 +08:00
Dennis Kieselhorst
68d878c244 update to latest CXF release (#5923) 2017-06-26 15:55:34 +08:00
wing328
0c5ba727f9 fix typo in java generator help text 2017-06-26 03:33:03 +08:00
Rafał Petryka
65e888519a Added one presentation to README.md (#5921) 2017-06-25 15:03:37 +08:00
wing328
e08e9cfefe set useES6 in all JS scripts/batch files 2017-06-23 22:22:05 +08:00
wing328
5b4e8a8ed5 [JavaScript] fix JS shell scripts, add log to show template version (#5907)
* fix JS shell script, add log to show es version

* change CLI option default value for useES6

* fix shell script in JS ES6 promise

* fix windows batch files

* set useES6 to false
2017-06-23 22:09:07 +08:00
Stanislav Bondarenko
69ce921371 Python - Increase range of valid status codes (#5901)
swagger-client shouldn't throw ApiException if status code in range 200-299
2017-06-23 11:31:30 +08:00
Hugo Kiyodi Oshiro
d67cb9c30b Fix wrong es6 template path (#5904) 2017-06-23 02:27:50 +08:00
stkrwork
025bf3aa80 Final fix for cpprest for issue #5862 (#5893)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* First step in fixing the cpp rest template
regenerated new samples

TODO: Fix the other functions

* Updated samples

* Added isMapContainer check

* Fixed item selection in json object for MapContainer

* - Fixed Syntax error in C++
- Fixed Syntax error in Mustache, that escaped characters
2017-06-22 23:00:54 +08:00
wing328
8507a25831 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-06-22 22:23:38 +08:00
wing328
a383daa5b0 comment out objc tests 2017-06-22 22:23:08 +08:00
wing328
d35239c661 recursively add import for parameters (#5891) 2017-06-21 21:35:45 +08:00
SiMing Weng
45519c521c add testimonial of Viavi Solutions Inc. (#5890) 2017-06-21 16:41:42 +08:00
stkrwork
8c9f377c16 [CPP] [CPPREST] isMapContainer fix for models (#5884)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* First step in fixing the cpp rest template
regenerated new samples

TODO: Fix the other functions

* Updated samples

* Added isMapContainer check

* Fixed item selection in json object for MapContainer
2017-06-21 00:59:31 +08:00
wing328
8d0c7128b0 add option to specify c# client path in powershell generator (#5887) 2017-06-21 00:58:29 +08:00
wing328
2b8e968977 remove duplicated kotlin template creator 2017-06-20 23:28:14 +08:00
wing328
4920da6ac7 add beatcracker as template creator of PowerShell 2017-06-20 23:26:19 +08:00
wing328
e53b3a03aa [PowerShell] Add PowerShell API client generator (WIP) (#5789)
* add powershell generator (wip)

* minor fix to api template

* rename model files

* Powershell generator fix (#11)

* Fix typo

pacakge -> package

* Add missing `petstore` subfolder to $ClientPath

* Resolve $ClientPath to absolute path

Start-Process needs WorkingDirectory to be absolute

* Fix spaces in variable name

${ somevar } is a vairable that literally has spaces in name. We need to
temporarily redifine mustache delimiters so we can generate var. names
without spaces.

* Fix typo

Remove stray `r`

* Fix *.ps1 import in module

Directory structure has changed + we should export functions using
manifest.

* Remove erroneous file

* various fixes and enhancements

* remove nullable for string

* change function name based on feedback by beatcracker

* set index to start at 0

* fix file type

* Powershell generator fix 1 (#12)

* Add closing curly brace

* Fix duplicated '['

* Get FunctionsToExport using AST

Discussion: swagger-api/swagger-codegen#5789

* add guid option to powershell generator

* add test files, remove docs

* fix array of items

* clean up powershell comment, update model/api test files
2017-06-20 22:20:05 +08:00
Vlad Frolov
c26b5a1e1b [JavaScript] Fixed *WithHttpInfo methods in 'usePromises' mode to be ES5 compatible (#3654) (#4902) (#5871) 2017-06-20 16:27:07 +08:00
Vlad Frolov
3546361b33 [JavaScript] Added README section for Webpack configuration (howto disable AMD) (#3466) (#5872) 2017-06-20 16:25:06 +08:00
stkrwork
8ab2b84c97 [CPP] [CPPREST] first steps on fixing the template (#5877)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* First step in fixing the cpp rest template
regenerated new samples

TODO: Fix the other functions

* Updated samples
2017-06-20 01:29:42 +08:00
sabras75
24c55d1f0e Fix#5856 - Add support for PATCH (#5875)
* Changing QBuffer to use a QByteArray solves the issue for me since there is no real use-case for using a QBuffer.

Documentation of QT5 states:

QBuffer::QBuffer(QByteArray *byteArray, QObject *parent = Q_NULLPTR)

Constructs a QBuffer that uses the QByteArray pointed to by byteArray as its internal buffer, and with the given parent. The caller is responsible for ensuring that byteArray remains valid until the QBuffer is destroyed, or until setBuffer() is called to change the buffer. QBuffer doesn't take ownership of the QByteArray.

Since the variable “request_content” is allocated on the stack, this is clearly wrong and a bug. The construction of QBuffer is designed this way so that whenever you write to the buffer, it is also written to the byte array that it is pointing to

* Add a retro-compatible solution based on QNetworkAccessManager SourceCode

* update samples
2017-06-19 23:08:32 +08:00
stkrwork
981ad60050 [C++] [Restbed] Reworked the model template for restbed to create generic models (#5873)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* - Reworked the getter setter generation
2017-06-19 22:56:01 +08:00
wing328
3a32857790 PR to roll back #5569 (#5868) 2017-06-19 11:19:21 +08:00
wing328
84334146f9 better code format for cpprest 2017-06-19 09:59:19 +08:00
wing328
b5411a94f0 update swfit3 petstore samples 2017-06-19 01:29:41 +08:00
wing328
3808d67953 move javascript-es6 templates under subfolder in Javascript 2017-06-19 01:28:39 +08:00
wing328
3ad576a53d update js es6 samples 2017-06-19 01:21:22 +08:00
Kevin Murphy
6fef7acf9f [javascript] Fix usages of exports in generated ES6 code (#5835) 2017-06-19 00:28:12 +08:00
Kevin Murphy
aa37b9747f [javascript] Use arrow function with usePromises in ES6 ApiClient.js for superagent callback to preserve this context (#5814) 2017-06-19 00:27:52 +08:00
wing328
7893f759e0 fix JS es6 script template folder 2017-06-19 00:07:27 +08:00
Tony Tam
9286e26162 updated versions 2017-06-16 11:49:32 -07:00
Ahmet Taha Sakar
3ced146a65 Swift3 configuration (#5725)
* added headers to makeRequest function for swift3 template

* Added configuration file to Swift3 template

* added comments about the value read only once

* added comments about the value read only once

* comments fix

* Added Configuration.swift to Project File

* swift 3 promisekit, rxswift updates
2017-06-17 00:25:03 +08:00
wing328
f27143fc08 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-06-16 23:15:45 +08:00
wing328
bbe27581c9 Merge branch 'shawkinsl-user/shawkins/fix/dont_modify_parameter_names' 2017-06-16 23:12:33 +08:00
wing328
0bb610494e Merge branch 'user/shawkins/fix/dont_modify_parameter_names' of https://github.com/shawkinsl/swagger-codegen into shawkinsl-user/shawkins/fix/dont_modify_parameter_names 2017-06-16 23:12:17 +08:00
Paŭlo Ebermann
ec448a6167 [CLI] #5147: make -D work like system properties (#5191)
* Issue #5147: allow empty values for properties.

* Issue #5147: Allow multiple `-D` options.

* Issue #5147: take advantage (and demonstrate) the new usage of -D.

* Issue #5147: also update windows script and security ones.
2017-06-16 17:29:44 +08:00
wing328
1f1e92d964 update run xcodebuild command for objc client to reduce log 2017-06-16 17:28:57 +08:00
Paŭlo Ebermann
1a803af54a Update samples for typescript-angular2. (#5826) 2017-06-15 22:17:02 +08:00
miguelvaladez
85850b2846 Feature/es6 angular (#5495)
* module code added for es6-angular client code generation

* typescript wiped out the core gitignore file

* added USE_ES6 cli option to javascript-closure-angular, will use the javascript-es6-angular templates instead

* fixed issue with module file

* added annotations to the templates

* moved default output folder declaration

* moved es6 template folder under closure-angular
2017-06-15 16:44:34 +08:00
wing328
ba4ecea408 Merge branch 'update_spring_samples' 2017-06-15 15:09:55 +08:00
wing328
e58342bacb udpate spring samples 2017-06-15 14:33:16 +08:00
Elizabeth Thomas
b752c0a030 Adding the generator version template to api mustache file (#5691) 2017-06-15 13:59:42 +08:00
wing328
5c10e24337 use file.separator instead of "/" (#5846) 2017-06-15 00:55:47 +08:00
Moscagus
f2276e5b35 Fix for issue #5777 - java/jersey2 ApiClient.invokeAPI doesn´t close the Response object (#5782)
* Update ApiClient.mustache

Fix for issue #5777

* Update ApiClient.mustache

* Create ApiClient.mustache

* Run java-petstore-jersey2.sh
2017-06-15 00:45:14 +08:00
wing328
77c14bca39 use file.separator, minor code format enhancement (#5844) 2017-06-15 00:10:32 +08:00
wing328
6d9e862381 Merge branch 'JuH33-master' 2017-06-14 23:29:47 +08:00
wing328
b63193824a update html2 petstore sample 2017-06-14 23:29:31 +08:00
wing328
c74fc6e0ee Merge branch 'master' of https://github.com/JuH33/swagger-codegen into JuH33-master 2017-06-14 23:23:24 +08:00
JuH33
e0d7c7dbd5 Html2 speed Up | Raw html using java parser instead of JS parser 2017-06-14 17:06:53 +02:00
wing328
66c64495a9 add sebymiano as Pistache template creator 2017-06-14 22:41:24 +08:00
Sebastiano Miano
e66eceeaaa [C++] Server Stub Code Generator based on Pistache (#5838)
* Added C++ generator for Pistache

* Revert of CodegenOperation

* Updated template

* Removed isRestful from method declaration

* Updated httpMethod variable

* Changed isRestfulCreate
2017-06-14 22:40:00 +08:00
Paŭlo Ebermann
4b9988c4f2 Update samples for several language (just whitespace changes, reordering, VERSION) (#5828)
* Update samples for several languages.

Just whitespace changes and some reordering where the order doesn't matter.

* Adding generated .swagger-codegen/VERSION files.
2017-06-14 01:17:31 +08:00
Paŭlo Ebermann
e8cdfa8185 Update samples for html2. (#5827) 2017-06-14 00:48:42 +08:00
Paŭlo Ebermann
29db258e65 Update samples for akka-scala. (#5825) 2017-06-14 00:48:31 +08:00
Paŭlo Ebermann
ceff3762cc Update samples for ze-ph. (#5823) 2017-06-14 00:42:24 +08:00
Paŭlo Ebermann
b288991c6c Updating samples for csharp. (#5822) 2017-06-14 00:41:53 +08:00
wing328
d6c717263c [Python] add project name to setup.py in python client (#5836)
* add project name to setup.py in python client

* update python README to use project name

* add cli option project name for python
2017-06-14 00:18:54 +08:00
Alex Chauvin
b61dfefa5b serverPort add from cli (#5821)
in order to change the serverPort from the codegen cli
2017-06-13 15:57:55 +08:00
wing328
2c7cd07cc3 add back petstore-security-test/typescript-angular 2017-06-12 20:55:53 +08:00
wing328
ab1ecbff38 remove petstore-security-test/typescript-angular folder 2017-06-12 20:52:40 +08:00
mmosemmle
62db9a09ee Fix issue 5793 (#5794)
* cast character to string.

* Check if variable name is reversed.

* Guard against reservedWordsMappings.
2017-06-11 22:06:19 +08:00
Cliffano Subagio
dc7c1f8cb9 [JS] Fix JavaScript string return type (#5819)
* [javascript] Fix response body when return type is String.

* [javascript] Regenerate javascript petstores with fixed String return type.

* [javascript-es6] Fix response body when return type is string.
2017-06-11 21:42:36 +08:00
wing328
f163fdb980 update spring samples 2017-06-11 15:39:08 +08:00
manuc66
c5335081ea fix the mustache file (#5736) 2017-06-11 15:34:09 +08:00
harishchoragudi
21bf3a5a5e Create README.md (#5813)
Added GE in the list of companies using swagger-codegen
2017-06-10 08:50:40 +08:00
wing328
7cddd17acc [Java] Add JSON-patch support to other Java API clients (#5808)
* add JSON-patch support to other Java API clients

* minor fix to java jersey1 json check
2017-06-09 21:46:40 +08:00
Brendan Burns
53bd931f5c Add JSON-patch as a JSON mime-type (#5764) 2017-06-09 16:47:38 +08:00
Björn Petersen
e9a0d7ea83 Add android dependency to pom if 'parcelableModel' is set (#5801) (#5802)
* Add android dependency to pom if 'parcelableModel' is set

* Update java-okhttp-gson-parcelableModel sample
2017-06-09 16:16:53 +08:00
wing328
7e98e59e53 move swift/objc test to the end 2017-06-09 16:11:34 +08:00
Mads Hvelplund
8f7e2a1563 Allow overriding the service delegate (#5662)
* Added support for injecting service implementations via web.xml

* Updated samples
2017-06-09 16:09:27 +08:00
Jim Schubert
dabf01c3fa [kotlin] support collection format multi (#5792)
* [kotlin] support collectionFormat:multi

Adds "multi" support to collections.

Also changes generic lists (List<T>) to arrays. Generic lists and nested
lists can be problematic and require customized json factories. The
previous implement appeared to work because the results in the test were
LinkedHashMap with count greather than 0. The functional test has been
updated to force serialization and verify the results.

* [kotlin] Regenerate sample

* [kotlin] Update model test for Array changes
2017-06-09 15:40:18 +08:00
harishchoragudi
2d008be181 Fix for issue#5788 -CPPRest generated models are not using inheritance as specified in contract (#5791)
* fixed map to use value instead of mapentry while doing fromJson.

* cpprest models now use inheritance properly instead of always extending from ModelBase

* cpprest models now use inheritance properly instead of always extending from ModelBase

* removed a sysout used for debugging

* toJson() and fromJson() now leverages parent class's corresponding methods

* virtual is not needed as override essentially does the same thing.

* added docstring for getModelByName

* corrected the javadoc

* fixed @param issue in javadoc

* fixed @param uncapitalized P in param in javadoc
2017-06-09 01:41:20 +08:00
Romain d'Alverny
73f5266596 [Swift3] Set more liberal Swift3 decoder, behind lenientTypeCast option (#5795)
* [Swift3] Add lenientTypeCast option

When set to true, this generates a client JSON decoder
that will accept and cast mistyped values.

Here:
 - String => Bool ("true" instead of true),
 - String => Int ("123" instead of 123),
 - NSNumber => String (123 instead of "123").

The point is to allow the same client code to handle several
server implementations that may (sadly) not be up to spec,
or still be "evolving".

The conversion is not guaranteed if the input

Not a perfect/complete solution, not sure if it should be
activated along other casts, so kept behind an option.

* Update Petstore client code
2017-06-08 09:10:21 +08:00
wing328
691c14fa1a add --rm=false to circleci docker build commands 2017-06-07 23:09:08 +08:00
wing328
e43595a0a1 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-06-07 20:04:12 +08:00
wing328
544b7b77ac comment out docker update while we're working on the issue 2017-06-07 20:03:48 +08:00
Ralph Langendam
ec19e8f407 Fixed minor compiler error and warning (#5762)
* 5762 Fixed minor compiler error and warning

* 5762 Regenerated cpprest petstore client
2017-06-07 18:37:45 +08:00
Julien - JuH
9f81aa4bfc StaticHtml2Gen | Speed up appDescription rendering (#5722) 2017-06-07 18:35:17 +08:00
Trent Albright
676e2a04f5 Fix issue with buffered sink handling in OkHttp (#5786)
* Fix issue with buffered sink handling in okhttp

Fixes unexpected end of stream exceptions when using the okhttp-gson library
and making asynchronous calls.

* update petstore samples for okhttp-gson

$ ./bin/java-petstore-okhttp-gson.sh
$ ./bin/security/java-petstore-okhttp-gson.sh

* WIP: trigger ci
2017-06-07 18:15:06 +08:00
wing328
2bef56c7bd add env variables for circleci 2017-06-07 18:01:36 +08:00
Jean-François Côté
ccf2f2ff07 Add basic support for collection. (#5776) 2017-06-07 17:12:30 +08:00
Vlad Frolov
6a986975e4 [javascript] Fixed fs files support for Electron (#5765) 2017-06-07 17:01:47 +08:00
Kevin Murphy
6239ec0807 [javascript] Mark "fs" package as absent in browser in package.mustache (#5768) 2017-06-06 17:09:50 +08:00
Kevin Murphy
9b93d3363f Fix bug in ES6 ApiClient.mustache (#5766)
ES6 static properties cannot self-reference.
2017-06-06 16:19:35 +08:00
Kevin Murphy
151d1b2783 [javascript] Fix documentation for ES6 ApiClient (#5783) 2017-06-06 16:03:36 +08:00
wing328
f770477d48 Merge branch 'objc_xcpretty' 2017-06-06 16:02:54 +08:00
wing328
0b998f0684 add xcpretty to objc test output 2017-06-06 15:23:15 +08:00
wing328
c3ea24cefa Merge branch 'objc_ci' 2017-06-06 00:20:31 +08:00
wing328
d6743b4597 uncomment objc tests 2017-06-05 23:35:17 +08:00
wing328
6ee332a513 [Swift] Fix issue with Swift Petstore integration tests due to pod install (#5774)
* add pod file for swift3

* skip pod install

* avoid pod install in swift3 petstore (promisekit,rxswift)

* use https instead of http for cocoapod spec

* avoid timeout in swift3 test
2017-06-05 22:22:56 +08:00
wing328
3cbe96f3c6 comment out pod repo update 2017-06-05 18:03:20 +08:00
wing328
bbe019a3ce move docker tasks from travis to circleci 2017-06-05 17:54:25 +08:00
wing328
faf082589d Enable Travis CI tests for Swift, ObjC clients and move some tests to CircleCI (#5687)
* enable travis CI tests for swift, objc, move some tests to circleci

* fix comment in xml file

* use xcode8.3

* use ruby 2.2.5

* fix objc core data pom.xml

* use cocoapods 1.2.1

* use xcpretty for clearer test results

* fix pom with relative path to script

* comment out objc test

* fix xcpretty exit code

* add && exit ${PIPESTATUS[0]} for swift3 xcodebuild script

* use xcode 8.2

* update promisekit version for swift 2x, 3x

* add pod repo update

* remove Pods directory

* update swift dependencies to the latest version

* update podfile.lock

* rollback Alamofire to 4.0 for swift3

* fix swift3 rxswift api cliiet

* fix testDeletePet test in Swift3 rxswift petstore

* update clojure petstore

* comment out clojure test in travis (already covered in circleci)

* run pestore server locally

* use wing328/swagger-samples to run petstore

* run petstore server in the background

* test ruby petstore client

* add /Users/travis/.cocoapods/repos/master to cache

* add back ruby test, use public pestore server

* add back bash client test

* add npm config set registry to avoid time out

* use docker branch in swagger samples

* remove bash test

* show go version, reorder

* debug go petstore client

* reinstall go

* comment out pod repo update

* uncomment pod repo update

* test go in circleci

* remove go from travis test

* brew install sbt
2017-06-05 15:43:20 +08:00
wing328
40163b26d2 update objc petstore to use petstore.json 2017-06-05 12:25:51 +08:00
Zack Lemmon
f3da691a72 Fix typo in Ruby examples/mustache files (#5773) 2017-06-05 11:19:29 +08:00
wing328
4fd52d17c5 minor build warning fix for C# client 2017-06-05 01:05:19 +08:00
Jim Schubert
bc8fe0fd03 [csharp] date proper format (#5734)
* [csharp] Honor Swagger/OpenAPI 'date' format

Per spec
(https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types),
DateTime instances defined as 'date' datatype need to be serialized as
defined by full-date - RFC3339, which has the format:

full-date       = date-fullyear "-" date-month "-" date-mday

ref:
https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14

see #5513
see #5531

* [csharp] Regenerate sample

* [csharp] Include date format test
2017-06-05 00:57:00 +08:00
Arne Jørgensen
d5b3cc0534 [PHP] Fix date format serialization (#5754)
* [PHP] Honor Swagger/OpenAPI 'date' format

Per spec
(https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types),
DateTime instances defined as 'date' datatype need to be serialized as
defined by full-date - RFC3339, which has the format:

full-date       = date-fullyear "-" date-month "-" date-mday

ref:
https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14

see #5531
fixes #5607

* [PHP] Add `date` and `date-time` serializer tests

See #5531
See #5607

* [PHP] Improve codestyle of generated code

* [PHP] Regenerate PHP Petstore sample

* [PHP] Regenerate PHP Security sample
2017-06-05 00:47:56 +08:00
davidgri
00f2dc422d Issue5613 (#5616)
* Fixed Issue5162 consumes in GET-Methods

* Fixed Issue5613

* Ran the shell scripts under bin

* Tab removed
2017-06-05 00:38:43 +08:00
Cliffano Subagio
9bc8f37aa6 [javascript] Fix empty response body when schema type is string (#5759)
* [javascript] Fix response body when return type is String.

* [javascript] Regenerate javascript petstores with fixed String return type.
2017-06-05 00:20:11 +08:00
Jim Schubert
ef07a02a01 [kotlin] Support nested enums in models (#5769)
* [kotlin] Add model enum support

Model variables marked isEnum=true are nested class enums. Top-level
enums will not be isEnum=true, but rather have a datatype specific to
the enum's type.

* [kotlin] Regenerate client sample
2017-06-05 00:04:58 +08:00
wing328
879149bb69 Revert "[javascript] Added README section for Webpack configuration (closes #3466) (#5767)" (#5770)
This reverts commit 54f5d73ee2.
2017-06-04 16:52:50 +08:00
Vlad Frolov
54f5d73ee2 [javascript] Added README section for Webpack configuration (closes #3466) (#5767) 2017-06-04 15:42:41 +08:00
wing328
034fc44bdd add Play Framework 2017-06-03 01:14:08 +08:00
sdoeringNew
ffc0d32b9c #5712 put @JsonValue to appropriate place in generated enum, add TypeAdapter for Gson enums, enhance tests (#5713) 2017-06-02 16:03:32 +08:00
wing328
71d1d05b98 add owner for restbed 2017-06-02 14:51:43 +08:00
stkrwork
b53a668517 [C++] Restbed Server Stub Code Generator (#5742)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples
2017-06-02 14:40:07 +08:00
Alexander Popiak
e0e5bdde76 fix cpprest model source mustache template (#5716)
(which was generating code that doesn't compile because of a wrong variable name)
2017-06-02 00:40:32 +08:00
Johnny-Bee
fa8e8fdc3c Update README.md (#5757) 2017-06-01 21:10:43 +08:00
Tony Tam
77555bfab1 Merge pull request #5749 from swagger-api/issue-5748-2.2.x
Updated parser to v1.0.29
2017-05-31 12:45:19 -07:00
Tony Tam
bd9142150e updated to 1.0.29 2017-05-31 10:44:24 -07:00
wing328
9070c7133c minor code format enhancement to ZipUtil.java 2017-05-31 23:14:37 +08:00
wing328
bda5f1a5d5 add npm config set to avoid time out 2017-05-31 17:39:58 +08:00
Jonathan Leitschuh
d6f2424152 Fix spring generated controller annotations only generating for first return type (#5399)
Fixes the spring java code generator so that the ApiResponse fields are populated correctly
on the controller.

Related to #4693
2017-05-31 17:27:32 +08:00
imgx64
bee999056a [typescript-angular2] Avoid tslint "Unused import" warnings (#5723)
Move the tslint comment that disables `no-unused-variable` to before the
import statements, to avoid "Unused import" warnings
2017-05-31 17:13:22 +08:00
Casey Fulton
31a8ac6987 [docker] Run as non-root user, fixes permissions. (#5702) 2017-05-31 16:17:42 +08:00
wing328
34b742355b Merge branch 'jimschubert-kotlin-api-model-docs' 2017-05-31 00:28:30 +08:00
wing328
6473949737 Merge branch 'kotlin-api-model-docs' of https://github.com/jimschubert/swagger-codegen into jimschubert-kotlin-api-model-docs 2017-05-31 00:28:08 +08:00
Jim Schubert
23cf641e8a Kotlin client lists (#5729)
* [kotlin] array->List instead of Array

Serialization to/from primitive arrays can cause issues with valid
responses. This commit considers swagger 'array' types as 'List' which,
although not as memory efficient should provide a cleaner interface for
users (and avoid serialization issues).

Also, updates README.md to list new generator and excludes
folder at samples/client/kotlin/bin/, which is not used.

* [kotlin] Move sample under conventional directory

samples/client/kotlin/ -> samples/client/petstore/kotlin/

Updated new.sh to generate client/server/docs into similar structure.
Current documentation generators (cwiki, html, html.md, html2) aren't
following a convention like client/server generators.
2017-05-31 00:18:37 +08:00
wing328
9282098d72 remove unused folder 2017-05-30 22:07:53 +08:00
wing328
51f9874da6 update appveyor to use java-jersey-jaxrs-ci 2017-05-30 16:11:01 +08:00
wing328
d830ed717b sort CodegenConfig 2017-05-30 15:34:13 +08:00
wing328
156c63db0e show CI test results for 2.3.0 2017-05-30 15:16:51 +08:00
wing328
e607aedf5b add kotlin and jimschubert as the template owner 2017-05-30 15:09:25 +08:00
Jim Schubert
87265d9ac7 [kotlin] api/model docs
This commit adds Api/Model/Auth documentation to the generated
README.md. Because auth support is not yet fully implemented (users can
manually set default headers globally), there aren't examples for helper
auth methods.

Models with inline enums document allowed values rather than pointing to
a generated enum class.

Two global additionalProperties were added (generateApiDocs,
generateModelDocs) to allow templates to conditionally display
documentatoin depending on these mutually exclusive settings. All
current generators supporting docs will attempt to link to generated
models when only api docs are specified.

This also moves the $@ bash parameter in bin/kotlin-client-petstore.sh
to the end of the args variable. This is because $@ can only be used to
pass System properties like -DdebugModels, can can already be passed as:

JAVA_OPTS="$JAVA_OPTS -DdebugModels" ./bin/kotlin-client-petstore.sh

By moving the $@ to the end of the args, it allows us to pass additional
properties and other switches directly to the script.
2017-05-29 22:12:55 -04:00
Jim Schubert
d6a98fa444 Kotlin client (#5727)
* Add new.sh helper script to create generator files

* [kotlin] Initial Kotlin client generator

* [kotlin] Generate sample

* [kotlin] Sample helper files not needed for generation, but for sample evaluation
2017-05-30 00:38:15 +08:00
wing328
b84769d1e3 fix enum float value in C#, minor format fix in doc (#5726) 2017-05-29 22:16:42 +08:00
wing328
3df5b6f303 [Java] Fix float enum value by adding "f" (#5724)
* fix java float enum value

* update java petstore samples

* add comment explaining the fix
2017-05-29 19:34:04 +08:00
Cliffano Subagio
ea30a4a7f8 [Ruby] Chunked file download (#5718)
* [Ruby] Modify file download to be written in chunks in order to handle large files. #5704

* [Ruby] Update Ruby Petstore with file download improvement. #5704
2017-05-29 14:56:48 +08:00
wing328
ef35b80bd8 Fixed missing isWildcard method used in templates 2017-05-29 11:45:28 +08:00
René Winkelmeyer
3d97d83f7a Apex update for NamedCredentials and Salesforce DX (#5717)
* Added mustache file for namedCredentials

* Removed Basic and OAuth from Apex API in favor of NamedCredentials

* Moved old README to README for ant deployment

* Added SFDX OSS descriptor

* Removed remoteSite mustache

* Changed package.xml from RemoteSite to NamedCredential

* Update ApexClientCodegen to support SFDX and namedCredentials

* Created initial README for Salesforce DX

* Ran Petstore test for Apex commit

* Fixed error in README mustache
2017-05-29 11:16:06 +08:00
wing328
999f901d2b update clojure petstore cient 2017-05-27 00:33:49 +08:00
Michael Langford
b1ccaf69ac Updates http-client dependency to correctly handles certificates (#5707)
* Updates http-client dependency to one that correctly handles certificates

This is important as amazon AWS gateway and several other types of certificates will not work correctly due to the old java library used by the 2.0.0 version of http-client.

* Runs the petstore updates switch for clojure

* Runs the petstore updates switch for clojure
2017-05-27 00:27:11 +08:00
wing328
d315ba2984 add SAS to list of companies using swagger codegen 2017-05-27 00:04:17 +08:00
wing328
39d79de6f7 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-05-26 22:50:06 +08:00
wing328
54119a7ac1 roll back clojure petstore to use petstore.json 2017-05-26 22:49:30 +08:00
wing328
4d705081c8 [PHP] Fix broken links in the auto-generated documentation (#5715)
* remove trailing space in cpprest, update samples

* remove unused pom.xml in go pestore

* fix broken links in php api doc by fixing baseType

* fix csharp api doc

* fix php examples

* fix examples for abstract php generator
2017-05-26 21:47:49 +08:00
wing328
f2e149c237 add Apex to the list of supported API clients 2017-05-26 17:28:45 +08:00
Takuro Wada
a2240ac619 [htmlDocs2] inconsistent python method name between html2 and python generator (#5711) 2017-05-26 17:24:06 +08:00
Svarog
84df23f025 Made httpMethod in curl example actually upper case in html2 to support firefox (#5558) (#5705) 2017-05-26 17:19:09 +08:00
wing328
e2c91967a1 add phiz71's article on vert.x-swagger project 2017-05-25 17:42:35 +08:00
wing328
0c0a401829 add link for https://github.com/icha024 2017-05-25 15:57:34 +08:00
wing328
5b3bcf8a54 fix link to vpolouchkine 2017-05-25 14:34:31 +08:00
wing328
b4a2cd0888 add "Using Open API Specification To Put Lyft SDK Support in the Fast Lane" 2017-05-25 12:42:49 +08:00
rompic
ef53f08b09 fixed #5692 and regenerated samples (#5698) 2017-05-24 23:26:33 +08:00
wing328
b024288df2 JS ES6 enhancements 2017-05-24 16:50:32 +08:00
Dinuka De Silva
ca139ffc05 Gh-4044: Enabling ES6 in javascript client (#5593)
* gh-4044: Added useES6 as an option for javascript templates

* gh-4044: Enabled ES6 in `javascript/api.mustache`

* gh-4044: Enabled ES6 in `javascript/ApiClient.mustache`

* gh-4044: Enabled ES6 in `javascript/enumClass.mustache`

* gh-4044: Added useES6 cli option to `javascript` clients and updated the test cases

* gh-4044: Enabled ES6 in `javascript/index.mustache`

* gh-4044: Enabled ES6 in `javascript` model templates
* `javascript/model.mustache`
* `javascript/partial_model_generic.mustache`
* `javascript/partial_model_enum_class.mustache`
* `javascript/partial_model_inner_enum.mustache`

* gh-4044: Separated `javascript-es6` templates to another folder

* gh-4044: Updated `javascript-es6/index.mustache`

* gh-4044: Enabled ES6 in `javascript-es6/api_doc.mustache`

* gh-4044: Added required dependencies for ES6

* gh-4044: Updated Supportig files for ES6 and non ES6

* gh-4044: Added test scripts to verify `javascript` useEs6 option

* gh-4044: Commented `javascript-es6` scripts due to the permission issues.
2017-05-24 16:35:54 +08:00
wing328
296e0288ea Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-05-24 15:56:00 +08:00
wing328
bd227df4db update ts angualr2 petstore clients 2017-05-24 15:55:34 +08:00
mtakaki
165c116661 Moving import-mappings out of configOptions and converting it into a list, rather than being a comma-separated string. (#5384)
* Moving import-mappings out of configOptions and converting it into a list, rather than being a comma-separated string. #5383

* Making the change to importMappings backwards compatible
2017-05-23 21:46:27 +08:00
kirpit
e12b22d5ce Implement generating interfaces option for api resources, closes #5453. (#5519)
* Implement generating interfaces option for api resources, closes swagger-api/swagger-codegen#5453.

This commit introduces another _system property_ for typescript-angular2, called `withInterfaces` that is default to `false`. You can activate this flag by:

```
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
-i http://petstore.swagger.io/v2/swagger.json \
-l typescript-angular2 -o samples/server/petstore/springboot/typescript-angular2 \
-D withInterfaces=true
```

If set to `true`, generated api resource classes will be implemented with their interfaces in separate files.

This change should not break and change the behaviour even though `withInterfaces` flag set to `true`. You are also welcome to create your own custom resource class by implementing those generated interfaces as they support defining new attributes with `[others: string]: any;` signature.

* Fix unit test for typescript/angular2 client options for "withInterfaces"

* Use double quote to follow coding standard

* Respect interface naming convention for typescript/angular2

 Create respectful interface names that ends with `Interface` suffix, instead of prefixing with `I` according to typescript naming convention. This is also consistent with their file names that also ends with `Interface.ts`.

 Also fixes the merge conflicts.

* Have better explanation for the `withInterfaces` system config
2017-05-23 21:40:21 +08:00
wing328
ebcd8489bc Merge branch 'christof-vollrath-bild-de-master' 2017-05-23 19:21:42 +08:00
wing328
82740de5a0 Merge branch 'master' of https://github.com/christof-vollrath-bild-de/swagger-codegen into christof-vollrath-bild-de-master 2017-05-23 17:57:54 +08:00
wing328
5c46929ec2 add link to "Diseño de APIs con OpenAPI" 2017-05-23 00:26:58 +08:00
wing328
d16eeb4046 remove trailing ) 2017-05-22 23:36:12 +08:00
wing328
8b37ccb153 add more presentations/tutorials 2017-05-22 23:32:42 +08:00
wing328
35e20976fb add Presentations/Videos/Tutorials/Books section 2017-05-22 23:20:58 +08:00
wing328
802641bf91 update apex petstore client 2017-05-21 16:12:47 +08:00
René Winkelmeyer
9f1c3e3e50 Updated default Apex API version to v39 (Spring '17 release) (#5678) 2017-05-21 16:04:37 +08:00
wing328
8314f4e78a Add removeOperationIdPrefix option (#5674)
* add removeOperationIdPrefix option

* remove removeOperationIdPrefix from cli option for generators
2017-05-21 01:28:06 +08:00
wing328
7edf744426 [Apex] add petstore samples, shell scripts, batch files (#5672)
* add apex petstore samples, shell scripts, batch files

* add wording "beta" to Apex help
2017-05-20 01:02:08 +08:00
wing328
1aeef5f41f add @asnelling as the template owner of apex 2017-05-19 23:32:10 +08:00
wing328
a0482a4038 Add support for Apex API client (#5669)
* Salesforce Apex support

* typo in function name

* comments for clarification

* DoubleProperty and FloatProperty are both DecimalProperty

* test models with default and provided example property values

* adding some more default example values
2017-05-19 23:18:52 +08:00
Jean-François Côté
ef2028e53f [Java Play Framework] Warnings removal and default value fix (#5660)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart

* Removal of warning (final) and fix of a missing default value for boolean query parameters
2017-05-19 22:32:19 +08:00
Takuro Wada
ad0838f0a0 [ts-ng2] add check whether header parameter is undefined or not (#5668) 2017-05-19 18:23:17 +08:00
wing328
bc34062c2b Merge branch 'update_swift_objc_petstore' 2017-05-19 00:54:41 +08:00
wing328
bd2f03f1c0 update objc, swift2,3 petstore samples 2017-05-18 17:22:20 +08:00
Jean-François Côté
4479382ced [Java Play Framework] Fix conversions (#5604)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart

* Fix the conversion of boolean type

* Add samples for the fix with the boolean

* Fix bugs introduced by polci related to the bean validation.

* Refactor to use the "beanValidationCore". Asked by @wing328
2017-05-18 16:19:48 +08:00
David Biesack
632a2e3949 Fix #5653 so body parameter schema link matches model anchor (#5655)
* Sync with upstream/master

* Fix for issue #5653

Override the toModelName(String name) [from DefaultCodegen] in StaticHtmlGenerator to return `name` unmodified
so that the anchors for models and the href for body parameters match case (do not convert model names to TitleCase.

* Revert "Fix for issue #5653"

This reverts commit 5472aa10a3101ea5dd417bc509c5d9c5351a3d66.

* Fix for issue #5653

Override the toModelName(String name) [from DefaultCodegen] in StaticHtmlGenerator to return `name` unmodified
so that the anchors for models and the href for body parameters match case (do not convert model names to TitleCase.
2017-05-18 15:16:42 +08:00
Harald Walker
4417bb6b32 #5649 Fix FileAlreadyExistsException when downloading file using jersey2 (#5654)
* #5649 Fix download file copy

* Include generated pet store samples and fix indentation

* Regenerate petstore sample to fix indentation
2017-05-18 15:12:53 +08:00
wing328
07df7d47eb update shell scripts, remove execute permission for json files 2017-05-17 22:12:06 +08:00
Cas Perl
a6b7f60ac7 Python improved (#5512)
* ignore .vscode

* fixed test case for models requiring mandatory attributes. added deserialize test for enum class

* construct model with mandatory attributes. improve class reflection (e.g. deserialize). disable generated empty model unit test for further FIXME

* rebuilt samples

* FIXME comment

* FIXME comment

* fix deserialization enum test
2017-05-17 21:18:51 +08:00
Benjamin Douglas
5bfd723ecc Add Yelp to list of companies using swagger-codegen (#5651) 2017-05-17 15:08:29 +08:00
Benjamin Douglas
be3cfda3ce Disable Jackson FAIL_ON_INVALID_SUBTYPE in feign (#5597)
* Disable Jackson FAIL_ON_INVALID_SUBTYPE in feign

With this change, Jackson does not fail even if it doesn't recognize a
discriminator type name. This is helpful when upgrading a microservice with
a new subtype while keeping compatibility with its old clients. The instance
is returned as null instead of throwing an exception deep in the feign
framework, allowing clients to gracefully degrade.

* Disable FAIL_ON_INVALID_SUBTYPE for all Jackson-based projects
2017-05-16 21:20:05 +08:00
wing328
de427297ec update petstore samples for flask connexion 2017-05-16 21:09:16 +08:00
Kyle Cacciatore
046b730446 Upgraded connexion to 1.1.9 - required change to encoder as connexion is isolating implementation specific code (#5645) 2017-05-16 21:07:21 +08:00
wing328
09a0edc4d9 Merge branch 'bbdouglas-empty_classes' 2017-05-16 18:07:39 +08:00
wing328
0a67696de8 Merge branch 'empty_classes' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-empty_classes 2017-05-16 17:51:42 +08:00
wing328
27686c7e64 Merge branch 'bbdouglas-sync_samples' 2017-05-16 17:09:32 +08:00
wing328
1fc969b050 Merge branch 'sync_samples' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-sync_samples 2017-05-16 16:51:41 +08:00
Brendan Burns
c5d1c5d73b Extract out a new helper method from java ApiClients (#5648) 2017-05-16 13:59:06 +08:00
wing328
63facc0b0b add null/nil as reserved keyword (#5647) 2017-05-16 00:02:27 +08:00
wing328
5b250aa18f add warning message to window batch file 2017-05-15 16:11:51 +08:00
wing328
2a70655c98 add warning message for run-all-petstore 2017-05-15 15:37:05 +08:00
mtakaki
9c46ab2599 Fixing import-mappings and using it when generating API stub. #2502 (#5373) 2017-05-14 22:26:02 +08:00
René Pfeuffer
54febc38e6 #5615 [Java] recognize 'null' as a reserved keyword (#5617) 2017-05-14 11:59:13 +08:00
Takuro Wada
a7d5684679 [Python] add an option to Config in order to specify safe chars for path parameter (#5628) 2017-05-14 11:54:26 +08:00
Takuro Wada
11baad6e4b [TypeScript-jquery] set default return type as any (#5630)
* [TypeScript-jquery] fix bug of empty returnType appearing if returnType is not provided

* chore: add security sample for typescript-jquery
2017-05-14 11:36:09 +08:00
wing328
fe1fa188da add box to the list of companies using codegen 2017-05-13 07:41:50 +08:00
sdoeringNew
98d53bc8d2 #5619 added getValue() method in generated Enum classes in Java (#5620) 2017-05-13 00:03:44 +08:00
Brendan Burns
e7a1f5fb17 [Java] Add custom SSL KeyManagers for okhttp-gson Java clients (#5629)
* Add the ability to set SSL KeyManagers for okhttp-gson Java clients

* Update generated code.

* Update security model files.
2017-05-12 23:49:00 +08:00
wing328
68864a2eea [JavaScript] Minor fix to JS doc and add swagger-codegen version to the file header (#5623)
* fix JS doc using instance instead of default

* update JS header with codegen version

* roll back change in swagger codegen version in pom.xml
2017-05-12 16:49:20 +08:00
Jim Schubert
eaa2dc6d21 [csharp] Fix project glob pattern (#5605)
This fixes the glob pattern to remove hard-coded namespaces, and exclude
the obj folder. This removes a newly introduced issue that breaks
apiPackage and modelPackage support and fixes a problem with Xamarin
pulling in obj/**.cs when globbing **/*.cs.
2017-05-11 01:01:45 +08:00
wing328
9b68f02f83 [Java][Spring] Undo "Add examples defined in the spec to Spring MVC server generator " (#5599)
* remove unused pom.xml in go pestore

* remove example support in JavaSprin (undo changes)
2017-05-10 17:31:43 +08:00
kenisteward
ec7b80abab #4962 Empty Response body handling in typescript-angular2 - added returning an empty object on response.json() failure (#5585) 2017-05-10 15:46:33 +08:00
Voydz
5a257a0558 [csharp] fixes for netstandard (json serializing and project files) (#5590) 2017-05-10 15:24:43 +08:00
wing328
fd3cae6c4b rename .swagger folder to .swagger-codegen 2017-05-09 17:07:45 +08:00
Jim Schubert
f25a7575d3 [generator] Adds a .swagger/VERSION file for all generators (#5556) 2017-05-09 16:59:48 +08:00
sabras75
824842290d Fix#5510 (#5582)
* Add overloads on signals.
The overload adds the NetworkError and the error string to the signal. Both signal will be emitted. Clients are supposed to subscribe to  only one of the overloads.

* refactor generated code alignement

* Do not use method overload for signals. Instead, have another naming convention for signal that carries Error information.
 Why ? Because signal overloading and QT5 connector with method referencing do not mix well (see http://stackoverflow.com/questions/16794695/connecting-overloaded-signals-and-slots-in-qt-5). It would need to specify exactly which overload to take. That is cumbersome to write AND is a breaking change for the consumer of the generated code.

* update qt5 sample files
2017-05-09 16:34:17 +08:00
Eric Bélanger
fa2e575762 [JavaSpring] add support for cascading bean validation (#5393) 2017-05-09 00:38:59 +08:00
wing328
621ff06a89 update java petstore sample 2017-05-08 18:33:25 +08:00
Vincent Coetzee
409638676e Added code to templates to ensure correct generation of code for Swift3 (#5390)
* Added code to templates to ensure generation of code for Swift3 that builds on both Apple platforms and Linux. Fixed a bug in the Model decoders that prevented code from building for Linux

* Ran the script to generate the PetStore API
2017-05-08 18:26:30 +08:00
Peter Pentchev
f5f3dbd94a Run all the CLI commands in the Docker environment (#5564)
* [docker] Allow "validate" and "version" in Docker

* [docker] Allow all the available CLI commands

* [docker] Quote some more variables
2017-05-08 18:12:13 +08:00
Takuro Wada
a81cff0ed0 [typescript-angular2] change OpaqueToken to InjectionToken<string> (Issue #5565) (#5569)
* change OpaqueToken to InjectionToken<string> and add useOpaqueToken option for typescript-angular2 (#5565)

* run security shell
2017-05-08 18:08:54 +08:00
Marcus Low Junxiang
adb213bc00 Modifying resty dependency to use stable release instead of HEAD (#5579)
* Modifying resty dependency to use stable release instead of HEAD

* adding dependency to pre-integration test
2017-05-08 09:55:13 +08:00
Luca Favatella
ea16da813c [Erlang] Plant CI for server (#5559)
* [Erlang] Address apparent reproducibily issue of sample

Spotted running `bin/erlang-petstore-server.sh` on d08d55d41 .

Apart from newlines, this is the opposite change of ec6248cbc .

* [Erlang] Perform basic testing of sample server on CI

* [Erlang] Install recent Erlang/OTP version

... in order to satisfy `jesse` compilation.

The error I faced is:
```
$ curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  766k  100  766k    0     0  1041k      0 --:--:-- --:--:-- --:--:-- 1041k
rebar 3.3.6 on Erlang/OTP R16B03 Erts 5.10.4
...
===> Verifying dependencies...
===> Fetching jesse ({git,"https://github.com/for-GET/jesse.git",
                                 {tag,"1.4.0"}})
===> Fetching jsx ({git,"https://github.com/talentdeficit/jsx.git",
                               {branch,"v2.8.0"}})
===> Skipping jsx (from {git,"git://github.com/talentdeficit/jsx.git",
                                    {tag,"2.8.0"}}) as an app of the same name has already been fetched
===> Compiling jsx
===> Compiling jesse
===> Compiling _build/default/lib/jesse/src/jesse_tests_util.erl failed
_build/default/lib/jesse/src/jesse_tests_util.erl:28: can't find include lib "common_test/include/ct.hrl"
_build/default/lib/jesse/src/jesse_tests_util.erl:55: undefined macro 'config/2'

_build/default/lib/jesse/src/jesse_tests_util.erl:24: function do_test/2 undefined

_build/default/lib/jesse/src/jesse_tests_util.erl:72: function test_schema/3 is unused
_build/default/lib/jesse/src/jesse_tests_util.erl:102: function get_path/2 is unused
_build/default/lib/jesse/src/jesse_tests_util.erl:105: function load_schema/1 is unused

[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
	at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:804)
	at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:751)
	at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:313)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (Erlang Test) on project ErlangServerTests: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
```

* [Erlang] Bump `jsx` dependency to latest stable version

* [Erlang] Disable sample server from CI until compilation works
2017-05-06 11:23:30 +08:00
mguan-trulia
918343b684 issue #3365 adding accept encoding for PHP (#5525) 2017-05-06 10:40:08 +08:00
Alexander
9212c21567 [PHP] Add default value to method signature if present in Swagger spec (#5571)
* Add default value to method signature if present in Swagger spec

* Update pet store PHP code
2017-05-06 10:39:14 +08:00
wing328
2a337f8327 add antihax as template owner for 2.3.0 Go 2017-05-05 21:50:32 +08:00
beatcracker
d214e0ad4b [PowerShell] module to serve as template for PowerShell generator (#5509)
* Added PowerShell module. See #4320

MVP PowerShell module to serve as a template for a PowerShell generator.

* Fixed function name

* Removed module manifest

It should be generated by the build script

* Ignore module manifests

* Removed binding from prop. name for Pet
2017-05-05 17:21:11 +08:00
wing328
167cbe9726 remove trailing comma in ts angular template (#5563) 2017-05-05 17:05:45 +08:00
Mike Kistler
b62928ff88 Set name for item property from 'x-item-name' annotation if present. (#5461) 2017-05-05 16:53:16 +08:00
wing328
8e0d940e0a update cpprest petstore sample 2017-05-05 16:20:59 +08:00
Jim Schubert
8e6dfce83e [csharp2] Extend generator from AbstractCSharpCodegen (#5552)
* [csharp2] Extend generator from AbstractCSharpCodegen

* [csharp2] regenerate sample
2017-05-05 15:58:01 +08:00
Ravi
f101a43b9e [C++][CppRest] Add CMake file template to generate CMakeLists build file (#5561)
* Add operationId in exception message

* add number data type mapping

* removing mergetool lines

* first draft of cmake file

* compiles generated source files with 64 bit cpprest and boost

* using glob recurs to add source files

* using glob recurse for source files

* cmake to build statuc library

* add cmake style comments, use project source dir and lib

* fix_issue5488: Add supporting files and source files separately

* fix_issue5488: Add supporting files and source files separately

* fix_issue5488: Add supporting files and source files separately

* fix_issue5488 - updated header comments

* updated samples
2017-05-05 15:47:39 +08:00
fisherliu
d08d55d419 add @Valid annotion for bean-validation (#5517) 2017-05-04 23:03:12 +08:00
Jim Schubert
9dab57c2fb [csharp] warn on use of invokerPackage (#5551) 2017-05-04 19:12:54 +08:00
wing328
1e9fe51175 use original value of pattern (#5554) 2017-05-04 18:01:52 +08:00
Andrea Polci
fd17955685 #5548 Avoid html escaping of pattern in bean validation (#5549)
* Issue #5548 Avoid html escaping of pattern in bean validation

* Run spring-all-petstore.sh and java-petstore-all.sh scripts
2017-05-04 17:12:13 +08:00
wing328
a7e42ee2b6 add validatable flag for .net 3.5 (#5544) 2017-05-03 21:32:25 +08:00
wing328
e28471341c add switcgh to determine java8, java7 (#5541) 2017-05-03 16:41:58 +08:00
wing328
43812cc002 use origina value of example (#5540) 2017-05-03 16:14:20 +08:00
Kenny Jones
06f8ac422c Bugfix: JavaSpring pojo example escape (#5536)
Applies the same fix as #5247 to avoid invalid escaping of the attribute
example within `ApiModelProperty`.

Resolves #5534
2017-05-03 15:31:48 +08:00
Benjamin Douglas
7406d07aca Reverting petstore sample gen (fails tests) 2017-05-02 19:55:47 -07:00
Benjamin Douglas
34d9dca5e7 Update samples to current code/scripts
This is the result of

  - `$ git checkout master`
  - `$ bin/run-all-petstore`

No change was made to the code, just ran the aggregate sample generation
script.
2017-05-02 10:33:06 -07:00
wing328
3744a3f8f5 add option to skip client side validation in ruby client (#5528) 2017-05-02 21:30:59 +08:00
wing328
53b25b11d2 add baartosz as php guzzle template owner. 2017-05-02 19:14:54 +08:00
wing328
a313812613 add resteasy template owner 2017-05-02 19:10:48 +08:00
Benjamin Douglas
4512619acf Minor fixes to sample generation scripts (#5523)
- typo in csharp-petstore-net-standard.sh (Stanard -> Standard)
- non-existent config file name name in csharp-petstore-netcore-project.sh
- non-existing config file name in ruby-petstore.sh
- snapshot versioning in typesript-petstore-npm.json causes
  non-deterministic output
2017-05-02 15:12:45 +08:00
Takuro Wada
afa8e56b4e Add validate option to swagger-codegen-cli (Issue #5466) (#5526) 2017-05-02 15:11:10 +08:00
Benjamin Douglas
b7df040b6e Fix class name in discriminator subtypes (#5487) 2017-05-01 15:50:58 +08:00
Benjamin Douglas
c2a1720972 Fix hasMore field and order consistency of authMethods (#5516)
The hasMore field of the global authMethods was broken due to sorting after
setting that field. The sort order for per-operation authMethods was not
guaranteed to be consistent across runs because it didn't do sorting. This
change fixes those issues by always sorting and setting the hasMore field
post-sort.
2017-05-01 15:26:35 +08:00
Jason Lee
1a25b308cc For dateLibrary=java8, remove JODA references (#4705) 2017-04-30 00:03:11 +08:00
herrerog
70f4c72421 [Python]: correct query_params type. (#5503)
query_params is a list of tuple, so defined it as a list by
default instead of a dict.

This fix below issue on the client side.

Traceback (most recent call last):
  File "test.py", line 13, in <module>
    api_response = api_instance.seek("the")
  File "python-client/swagger_client/apis/seek_api.py", line 168, in seek
    (data) = self.seek_with_http_info(recherche, **kwargs)
  File "python-client/swagger_client/apis/seek_api.py", line 245, in seek_with_http_info
    collection_formats=collection_formats)
  File "python-client/swagger_client/api_client.py", line 323, in call_api
    _return_http_data_only, collection_formats, _preload_content, _request_timeout)
  File "python-client/swagger_client/api_client.py", line 135, in __call_api
    self.update_params_for_auth(header_params, query_params, auth_settings)
  File "python-client/swagger_client/api_client.py", line 512, in update_params_for_auth
    querys.append((auth_setting['key'], auth_setting['value']))
AttributeError: 'dict' object has no attribute 'append'

Signed-off-by: Gregory Herrero <gregory.herrero@gmail.com>
2017-04-29 12:07:09 +08:00
wing328
427ca1828e replace petstore.json with petstore.yaml in shell scripts 2017-04-29 12:02:37 +08:00
wing328
556be7dfd6 update qt5 c++ petstore samples 2017-04-28 22:47:05 +08:00
sabras75
994e4fd8ff Fix#5481 (#5499)
* Add CPP_NAMESPACE option

* update mustache template to exploit cppNamespace option

* update sample files

* correction : missing namespace replacement in template
2017-04-28 22:19:37 +08:00
wing328
0792933c7e use petstore.yaml instead of petstore.json in windows batch files 2017-04-28 19:49:39 +08:00
Xin Meng
c7979da74d add withCredentials to the configuration (#5484)
* add withCredentials to the configuration

1. `withCredentials` in Request is `false` default
2. if want to set the `withCredentials` as `true` (for CORS request),
 instance `Configuration` object and set the `withCredentials` as `true`.

* simplify the code according to the code review
2017-04-28 18:11:23 +08:00
Ian White
e5fdf327db Adding Stardog Ventures to company list (#5504)
Thank you for suggesting @wing328.
2017-04-28 11:41:40 +08:00
Daniel Woodel
bfae01cd35 [swift3] Swift3 code generator & templates fixed to support additional properties, updated petstore for CI (#5407) 2017-04-28 01:58:54 +08:00
wing328
b964994f00 add ./bin/java-petstore-okhttp-gson-parcelable.sh to java petstore
all.sh
2017-04-28 01:24:28 +08:00
guidovezzoni
663db1b72a Fix issue5425 (#5483)
* issue 5425 : [Android] Bug generating parcelables constructors for custom classes ( missing getClassLoader() )

* issue 5425 : changes in generated code

* ran ./bin/java-petstore-all.sh and committed the changes
2017-04-28 01:23:32 +08:00
wing328
2324e927bd [Java][Spring] fix missing import for java.io.IOException (#5501)
* fix issue about import io exception for spring mvc

* fix spring-mvc-petstore-j8-async script, config

* update spring cloud client, restore petstore.yaml
2017-04-28 00:45:06 +08:00
wing328
42a5a13fef [Java][Spring] Fix spring cloud client due to enhancement in adding server example responses. (#5497)
* add use spring cloud client option

* uncomment spring cloud client test

* remove scala-related tests from pom.xml for circleci

* fix mismstach tag
2017-04-27 20:00:56 +08:00
wing328
e8feca2753 [Android] add windows batch, better code foramt (#5496)
* remove trailing space in cpprest, update samples

* add android batch files, better code format, sync petstore.json with
petstore.yaml

* restore petstore.json and sync it to petstore.yaml

* update circleci pom.xml

* add new android files

* add new android files
2017-04-27 17:58:38 +08:00
Benjamin Douglas
5eefbc2195 Remove unused generation script (#5491)
The old android-petstore.sh script is writing output to the android volley
directory. There is a new script called android-petstore-volley.sh that also
writes to that same directory. They overwrite each other, which makes the
run-all-petstore script output dependent on which one gets run last. This change
removes the old script.
2017-04-27 00:51:49 +08:00
wing328
89464cbe5f Update pom.xml for CircleCI to test java-related projects only (#5477)
Update pom.xml for CircleCI to test java-related projects only
2017-04-27 00:49:03 +08:00
wing328
58db6a5e14 Revert "Issue#5376- changes to include swagger version in generated api files (#5449)" (#5489)
This reverts commit 702f193f61.
2017-04-26 17:53:36 +08:00
Elizabeth Thomas
702f193f61 Issue#5376- changes to include swagger version in generated api files (#5449)
* Elizabeth - changes to include swagger version in generated api files

* Filtering version.properties in swagger codegen module

* Removing resource filtering from swagger codegen cli module

* Merging master
2017-04-25 23:28:16 +08:00
Elizabeth Thomas
efb337dd92 Issue 5413 - Use ConstructorBased Injection for ObjectMapper (#5430)
* Converting to constructor based injection

* Correcting spelling mistake

* Adding the bean for ObjectMapper

* Adding files modified by running the petstore scripts

* Adding final qualifier to objectMapper variable in apiController mustache
2017-04-25 23:11:18 +08:00
wing328
745951c1ce Add missing UUID mapping for some generators (#5474)
* remove trailing space in cpprest, update samples

* add missing uuid mapping for generators
2017-04-25 21:16:17 +08:00
sabras75
00651dd340 Fix#5463 - [QT5CPP] missing SWGUUID when generating client based on swager.yaml containing a string with format 'uuid' (#5472)
* Add support to UUID type

* Simplify and use a simple QString instead of a QUuid.
Work for using a QUuid is way larger than supporting QString (imply modifying multiple c++ templates).
Current needs are fullfill with the use of a simple QString, so I let the use of QUuid for future enhancement.

* - add windows executable for generating qt5 security samples
- update sample clients
PS : some modifications on the samples are not related to the patch I applied. Were the samples up-to-date ?
2017-04-25 20:54:05 +08:00
erdarun
d392f0b12e Fix NullPointerException for info.version on Javascript client codegen (#5475)
* Fix NullPointerException for info.version on Javascript client codegen

* info version null check handled and default version/appVersion value set to 1.0.0

* Removed null check for info version. Fixed DefaultGenerator code to handle null check.

* semicolon added missing
2017-04-25 20:11:04 +08:00
wing328
c61c3c9b43 add http://www.cisco.com/ 2017-04-25 10:26:28 +08:00
wing328
1cd8341f89 update shell script permission to executable 2017-04-25 10:23:45 +08:00
nikitozz
80dccfe395 The new .NET project file format support (#5439) 2017-04-25 10:22:59 +08:00
Jani Väinölä
9055dfc42e Jaxrs jersey2 support (#5058)
* [JAVA/] jaxrs/jersey2 (Issue: 4662) Made java8-date codegeneration to work with jersey2

* Ran shellscripts for  jaxrs-jersey-petstore-server and java8-petstore-jersey2  to update petstore samples
2017-04-25 00:53:34 +08:00
Kenny Jones
c14da15b3e Feature: Enable validation (#5391)
When useBeanValidation is enabled make sure the annotation @Valid
is added to the attributes of the model.
2017-04-24 23:18:04 +08:00
wing328
aa85468932 remove trailing space in cpprest, update samples 2017-04-24 22:45:16 +08:00
Martin Brown
fc2b3d49ea Issue 4632 (#4803)
* Updated the Petstore samples

* This change uses std::stringstream for string conversions instead of std::to_string(). Android doesn't yet support std::to_string(). This should fix #4632
2017-04-24 22:27:51 +08:00
Phillip Novess
7282ad2d6a updated to place environment files in the correct location (#5168) 2017-04-24 18:37:37 +08:00
Phillip Novess
a2080810f8 updated to fix issue #5053 (#5057)
* updated to fix issue #5053

* updated test
2017-04-24 18:16:10 +08:00
wing328
dc89f3e731 Merge branch 'gayathrigs-master' 2017-04-24 18:01:48 +08:00
wing328
3c4a9480ce update java-petstore-all script with resteasy 2017-04-24 18:01:18 +08:00
wing328
d9026c67aa remove carriage return in resteasy java files 2017-04-24 17:44:27 +08:00
wing328
f09372e2ec replace tab with spaces 2017-04-24 17:27:07 +08:00
wing328
e4608745b0 update java resteasy sample 2017-04-24 17:12:00 +08:00
wing328
640b16b58a Merge branch 'master' into master 2017-04-24 17:00:27 +08:00
wing328
e66566a971 use quiet model when building with maven 2017-04-24 16:36:32 +08:00
wing328
30d0b11801 update java petstore samples 2017-04-24 16:22:11 +08:00
wing328
ad0a80dfc4 add Gronsak as creator for .NET Standard 1.3 2017-04-24 14:47:43 +08:00
wing328
64f55e4471 add nbruno as resttemplate owner 2017-04-24 14:42:07 +08:00
nbruno
ddc309ec19 Add support for Spring's RestTemplate in Java client codegen (#5404)
* Add support for Spring's RestTemplate in Java client codegen

Resolves #1176

* Update all Java samples to include change for Jackson enums

Currently enums are deserialized from a String value with an
explicit @JsonCreator. However, they are not being serialized with
this String value. This change introduces the @JsonValue annotation
on the toString() method of enums, so they will be serialized as a
String with the correct value.
2017-04-24 14:40:47 +08:00
wing328
56d4382d75 update swift3 petstore samples 2017-04-23 23:06:16 +08:00
Tomek Cejner
f110072ef1 [swift] Open buildHeaders() and requestBuilderFactory property to allow extension. (#5225) 2017-04-23 23:02:21 +08:00
wing328
1277db61bd [Ruby] add generator version to Ruby template (#5459)
* add generator version to ruby template

* remove tab in java generator
2017-04-23 22:41:56 +08:00
wing328
ee5c1b203b fix typo: lamda -> lambda 2017-04-23 22:28:29 +08:00
Rik Sprenkels
bd8b2d37c0 Fixes for swagger.json to Java escaping. (#5247) 2017-04-23 19:10:25 +08:00
Xin Meng
c3d51357a8 fix the typescript angular 2 http request option issue #5374 (#5380)
* fix the typescript angular 2 http request option issue #5374

https://github.com/swagger-api/swagger-codegen/issues/5374

add `withCredentials:true` to the request option

*  run ./bin/typescript-angular2-petstore-all.sh to update Petstore samples
2017-04-23 18:31:00 +08:00
manuc66
d869051fb8 Fix Possible null pointer dereference (#5370) 2017-04-23 18:10:25 +08:00
wing328
f266f32db8 clean up csharp scripts 2017-04-23 16:10:17 +08:00
wing328
f10886b490 remove csharp/SwaggerClient.v5 2017-04-23 16:04:33 +08:00
wing328
5a36f7435d better circleci configuration (#5456) 2017-04-23 15:59:16 +08:00
wing328
7acd0cfa4d add csharp batch files 2017-04-23 15:42:42 +08:00
Sergey Novikov
6685f18e5f Reuse allowed values (#5435) 2017-04-22 00:30:52 +08:00
Ravi
e9a438b73f [CppRest] Overload toJson for bool in Modelbase (#5448)
* Add operationId in exception message

* add number data type mapping

* fix_issue5434
2017-04-21 22:20:46 +08:00
Mario
f61e0d4024 Add RuntimeException option (#5405)
* add option to change Exception to RuntimeException

* rename propertie
remove space in template
2017-04-21 22:13:57 +08:00
Cas Perl
122db78b1a Issue 5375 (#5403)
* use py3 instead of py34

* fixed test to test invalid enum

* ADDED: assign variable in the ctor with property setter to check validity if possible. CHANGE: move required property check to proper place. CHANGE: remove double quotes from allowed_values for none-string enum property

* rebuilt samples

* comment for improvement

* ADDED: post process enum model for python.

* comment

* rebuilt samples

* rebuilt samples
2017-04-21 22:05:54 +08:00
Jean-Maxime Fillau
8144ab6870 Add json format in case contentType is application/json. (#5427)
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
2017-04-21 22:01:37 +08:00
Tony Tam
456b54b24f fix cache skip 2017-04-20 16:49:58 -07:00
Tony Tam
c5fa38ae47 Merge pull request #5447 from swagger-api/issue-5446
updated to openjdk
2017-04-20 16:40:42 -07:00
Tony Tam
6ea4b4d6f3 fixes #5446 2017-04-20 10:32:27 -07:00
Julien Fouilhé
edb80df0ba fix(swift3): fix infinite loop with inheritance and check if parent decoder exists before calling (#5416) 2017-04-20 22:54:35 +08:00
wing328
6359c064f3 Merge pull request #5250 from auchri/patch-1
[JAVA] Update gradle and android build tools
2017-04-19 15:57:14 +08:00
wing328
c72e900b95 Merge pull request #5418 from wy-z/add_xsky_to_company_list
[README] Add XSky to company list
2017-04-19 15:24:57 +08:00
weiyang
77bb6132f1 [README] Add XSky to company list
Signed-off-by: weiyang <weiyang.ones@gmail.com>
2017-04-19 15:04:05 +08:00
wing328
9c641b0111 Merge pull request #5412 from saracmert/patch-1
Update README.md
2017-04-19 10:18:25 +08:00
Mert Sarac
edf9f56e80 Update README.md 2017-04-18 23:16:18 +03:00
wing328
d5ac248e41 comment out test for spring cloud client for the time being 2017-04-19 01:56:13 +08:00
wing328
a1e745bdda add back petstore sample for spring boot with bean validation 2017-04-19 01:09:14 +08:00
wing328
6d8762cfb5 Merge pull request #5411 from wing328/elizabetht-issue-5310
[Java][Spring] Add examples defined in the spec to Spring MVC server generator
2017-04-19 00:39:57 +08:00
wing328
813949dd00 add lamda to clean up examples, fix spring tempalate format 2017-04-18 18:14:00 +08:00
Christoph Auer
70e4dad72e java/lib/retrofit2: Fix indent 2017-04-18 11:53:30 +02:00
Christoph Auer
9640e30f48 Update java/lib/okhttp-gson 2017-04-18 11:53:30 +02:00
Christoph Auer
4b88374df4 Update java/lib/retrofit2 2017-04-18 11:53:29 +02:00
Christoph Auer
ca87a4b817 Update java/lib/retrofit 2017-04-18 11:53:29 +02:00
Christoph Auer
5b475bcb16 Java/feign: Remove spaces at empty lines 2017-04-18 11:53:29 +02:00
Christoph Auer
83e902ba3f Update java/lib/jersey2 2017-04-18 11:53:29 +02:00
Christoph Auer
b2674feb14 Java: Remove spaces at empty lines 2017-04-18 11:53:29 +02:00
Christoph Auer
85a58f3414 Update Java/lib/feign 2017-04-18 11:53:29 +02:00
Christoph Auer
9652ce37f7 Update android/lib/volley 2017-04-18 11:53:29 +02:00
Christoph Auer
84dc2e1dd9 Update android 2017-04-18 11:53:29 +02:00
Christoph
71b12636e4 [JAVA] Update gradle and android build tools 2017-04-18 11:53:28 +02:00
Benjamin Douglas
7d22605473 Adding stub test for CXF
It looks like these are not automatically generated and so needed to be filled
in manually.
2017-04-17 18:23:11 -07:00
Benjamin Douglas
07ba1eb6f8 Fixup generation of Javascript samples
The generation code was ignoring top-level aliases for any language config that
contained "java", which included "javascript", a completely different language.

Changed this to be those configs based on the JavaAbstractGenerator class.
2017-04-17 17:50:01 -07:00
Benjamin Douglas
73454e95dc Fixed up duplicate pom ids
These were generated by bin/run-all-petstore, so ultimately that script should
be modified to not generate the duplicate artifact ids.
2017-04-17 16:30:38 -07:00
Benjamin Douglas
9058099e5b Add alias type definitions for Java
When a spec defines a Model at the top level that is a non-aggretate type (such
as string, number or boolean), it essentially represents an alias for the simple
type. For example, the following spec snippet creates an alias of the boolean
type that for all intents and purposes acts just like a regular boolean.

    definitions:
      JustABoolean:
        type: boolean

This can be modeled in some languages through built-in mechanisms, such as
typedefs in C++. Java, however, just not have a clean way of representing this.

This change introduces an internal mechanism for representing aliases. It
maintains a map in DefaultCodegen that tracks these types of definitions, and
wherever it sees the "JustABoolean" type in the spec, it generates code that
uses the built-in "Boolean" instead.

This functionality currenlty only applies to Java, but could be extended to
other languages later.

The change adds a few examples of this to the fake endpoint spec for testing,
which means all of the samples change as well.
2017-04-17 12:58:31 -07:00
wing328
a17e80dfb1 minor fix to spring use of examples 2017-04-18 01:42:29 +08:00
wing328
3ca77d3cf2 Merge branch 'issue-5310' of https://github.com/elizabetht/swagger-codegen into elizabetht-issue-5310 2017-04-18 00:52:52 +08:00
Julien Fouilhé
b1a39ac820 fix(swift3): decoders call parents decoders too (#5369) 2017-04-18 00:03:52 +08:00
wing328
647f3601f9 Merge branch 'LEgregius-spring-resource-file-streams2' 2017-04-17 23:47:02 +08:00
wing328
34a99d6dba update spring petstore samples 2017-04-17 23:32:03 +08:00
wing328
ba32f66714 Merge branch 'spring-resource-file-streams' of https://github.com/LEgregius/swagger-codegen into LEgregius-spring-resource-file-streams2 2017-04-17 23:26:09 +08:00
wing328
a32774c541 update spring boot bean validation script 2017-04-17 23:25:27 +08:00
Eric Bélanger
fd289ac6de [JavaSpring] add support for map minProperties and maxProperties bean validation (#5395) 2017-04-17 22:47:21 +08:00
Tino Fuhrmann
e858f2390b [TypeScript] fix class filename in import/export (#5396)
* Fixed classFilename in typescript-angular and recreated samples

* Changed classname to classFilename in ts-angular2/models.mustache
Also recreated ts-angular2 sample
2017-04-17 22:43:33 +08:00
hossamhossny
e2cd00f905 Update README.md (#5402)
adding company.
2017-04-16 21:35:34 +08:00
Elizabeth Thomas
ec4b3307fe Merge pull request #1 from elizabetht/master
Elizabeth/Joy - adding example support if specified in the swagger spec
2017-04-13 10:02:23 -05:00
Thomas, Elizabeth-CW
02bcad36fd Elizabeth/Joy - adding example support if specified in the swagger spec 2017-04-13 09:31:07 -05:00
Mike Kistler
ca9fcd7db1 Fix copy method of CodegenParameter to copy isPrimitiveType (#5381) 2017-04-13 20:58:55 +08:00
wing328
4e6a342c13 replace tab with 4-space in spring templates (#5389) 2017-04-13 19:03:34 +08:00
wing328
c637157f9e update project identifier for spring boot beanvalidation 2017-04-13 18:38:34 +08:00
wing328
57871d845d update travis ci to cover
samples/server/petstore/springboot-beanvalidation
2017-04-13 17:53:10 +08:00
wing328
0682e41d6d update spring petstore sample 2017-04-13 17:44:38 +08:00
dhuning
8cf0f7046e Adds @Valid to request body for the JavaSpring (#4850)
* Adds Valid annotation for request body (#4847)

If useBeanValidation is active, this change will add Valid annotation to ReqeustBody

* Adds generated samples for bean vaildation in spring boot (#4847)

* Adds Valid import to Controller

* Adds generated code for bean validation change
2017-04-13 17:42:02 +08:00
Benjamin Douglas
ab69ce5dc3 Add null pointer check to add/put methods (#5385) (#5386)
Commit e3d04ee01 (issue #5240) introduced unsafe add/put methods for optional
list/map parameters. This change maintains the spirit of issue #5240 (optional
containers are null by default) while still making add/put calls safe. It does
this by checking for null first and, if so, initializing it with an empty
container.

Also updated the affected samples using the various scripts in bin/.
2017-04-13 17:37:49 +08:00
Jean-Maxime Fillau
df1055fe38 Add float conversion for cpprest api client template. (#5387)
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
2017-04-13 17:30:20 +08:00
Gayathri
8153284f07 petstore sample sh file for resteasy 2017-04-12 09:32:37 -05:00
Gayathri
a774ff9587 Latest from master - merge conflict resolution 2017-04-12 09:03:54 -05:00
nikitozz
78c4928908 Fixes #5367. Async support is enabled for .NET netstandard API clients (#5368) 2017-04-12 10:39:42 +08:00
wing328
1fdd3e6ffa [Java][Spring] fix enum allowable values in Spring generators (#5364)
* fix enum allowable values in spring generators

* use values instead of enumVars in spring annoation
2017-04-11 22:23:09 +08:00
wing328
e3d04ee01f [Java] remove initialization for optional list property (#5363)
* set list to null in java if not required

* update petstore sample for java server stub

* update sample for msf4j

* add null assignment to new list/map in java
2017-04-11 19:07:48 +08:00
wing328
d3ac4b686a fix CI issue by declaring originalEnvironmentVariables as a protected
member
2017-04-11 00:57:22 +08:00
Simon Marti
1734ac4ed0 Add option to skip Maven plugin execution (#5337)
* Add option to skip Maven plugin execution

The execution is skipped if either the codegen.skip property or the <skip>
configuration parameter is set. This is consistent with how many other Maven
plugins, such as maven-exec-plugin and maven-clean-plugin, handle this.

* Add documentation for Maven `skip` property
2017-04-10 23:31:58 +08:00
Simon Marti
fea8699d8b Fix environment variable support in successive Maven plugin executions (#5351)
* Fix environment variable support in successive Maven plugin executions

System properties were retained across multiple successive executions,
resulting in unpredictable behavior. Property values are now properly reset
to their original value after plugin execution.

Fixes #5350

* Add explanation to environment variable reset mechanism in Maven plugin
2017-04-10 23:25:09 +08:00
Jean-François Côté
2e46bb9b9f Add File support + some fixes to Play generator (#5263)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart

* Return a FileInputStream when the returnType is "file" + Fix a couple of other bugs with boolean + updated sample

* Return an InputStream instead of FileInputStream (except in the instantiation)

* A little cleanup for the form param of type file.
2017-04-10 23:23:28 +08:00
Vincent Giersch
aef98f464e fix(php): should not check enum value if not unspecified and optional (broken since #4886) (#5357)
Signed-off-by: Vincent Giersch <vincent@giersch.fr>
2017-04-10 23:21:14 +08:00
Vincent Giersch
99f0ab496b fix(php): escape reserved words in enum variables names (#5356)
Signed-off-by: Vincent Giersch <vincent@giersch.fr>
2017-04-10 23:19:06 +08:00
Ahmet Taha Sakar
c6959b0d21 Swift3 headers (#5340)
* added headers to makeRequest function for swift3 template

* petstore update
2017-04-10 22:36:22 +08:00
anuthebananu
19d5e74dbd [Spring] Adds serialVersionUID to serializable model POJO's (#5347) 2017-04-07 09:17:29 +08:00
Johannes
e147fdec48 swagger-codegen-maven-plugin: hint added how to generate server code (#5342)
addresses issue #5332
2017-04-07 08:46:42 +08:00
wing328
4aaf3ab353 update reserved word list for swift3 (#5348) 2017-04-07 08:36:02 +08:00
lukoyanov
a7652d508d Updated CallAdapter & CallAdapterFactory for retrofit 2.2.0 (#5345) 2017-04-07 07:35:47 +08:00
wing328
90b14a996a use original value of paramName in akka scala templates (#5339) 2017-04-06 17:01:25 +08:00
weiyang
abffdca441 [Html2] Fix circular references (#5313)
* [html2] Fix circular references

Signed-off-by: weiyang <weiyang.ones@gmail.com>

* [samples][html2] Fix circular references

Signed-off-by: weiyang <weiyang.ones@gmail.com>

* Optimize code format

Signed-off-by: weiyang <weiyang.ones@gmail.com>
2017-04-06 14:39:26 +08:00
wing328
5de04fa612 omitted command line result 2017-04-05 21:49:06 +08:00
wing328
7dc27aaf96 results omitted from command line output 2017-04-05 21:46:15 +08:00
BenjenW
e7a3321b62 Update README.md (#5330)
Added my company (Individual Standard IVS) to the list of Swagger Codegen users
2017-04-05 20:32:43 +08:00
Paŭlo Ebermann
0c1ad9b2ba Update security samples for Scala + typescript-node. (#5325) 2017-04-05 18:05:21 +08:00
Paŭlo Ebermann
be83329946 Update security samples for swift. (#5324) 2017-04-05 18:04:53 +08:00
wing328
5b16694afc add example to use spec in online generator 2017-04-05 16:41:07 +08:00
Yohana Khoury
7ae0bb6e67 Update README.md (#5328)
Added GigaSpaces to Companies Using Swagger Codegen
2017-04-05 14:49:22 +08:00
wing328
22c80588f6 fix retrofit2 rxjava2 script (#5321) 2017-04-04 22:58:03 +08:00
Paŭlo Ebermann
f0b0226e46 [Java][JaxRS][Spring-MVC] Update samples for jaxrs with Jersey 1/2 and for spring-mvc (#5212)
* Update samples for Spring-MVC.

* Update samples for Spring-MVC-Jav8-async.

* Update samples jaxrs/jersey1.

* Update samples jaxrs/jersey2.

* Update samples spring-mvc

* Update samples spring-mvc-j8-async
2017-04-04 21:41:22 +08:00
Paŭlo Ebermann
8bd67c9f7f Fix template directory used by samples script. (#5284) 2017-04-04 14:47:22 +08:00
Paŭlo Ebermann
ffb4d52469 Update security samples: server (#5285) 2017-04-04 14:44:59 +08:00
Paŭlo Ebermann
41b04e0e01 Update security samples for typescript-clients (Angular1/2). (#5288) 2017-04-04 14:44:25 +08:00
Paŭlo Ebermann
ca976c524a Update security samples for ObjectiveC client. (#5286) 2017-04-04 14:44:09 +08:00
Paŭlo Ebermann
35ce3f48b9 Updating security samples for C++/QT5. (#5291) 2017-04-04 14:43:52 +08:00
Paŭlo Ebermann
66bf83e911 Update security samples for Javascript clients (#5289) 2017-04-04 14:43:25 +08:00
Paŭlo Ebermann
0695a58f3c Updating security samples for Python client. (#5294) 2017-04-04 14:42:48 +08:00
Paŭlo Ebermann
7462cf70cf Updating security samples for PHP client. (#5293) 2017-04-04 14:42:01 +08:00
Paŭlo Ebermann
cac803351b Updating security samples for Go-client. (#5290) 2017-04-04 14:41:43 +08:00
Paŭlo Ebermann
f44949db58 Update security samples for Ruby-Client. (#5287) 2017-04-04 14:41:22 +08:00
Paŭlo Ebermann
bebeac8ae8 Updating security samples for Perl. (#5292) 2017-04-04 14:40:58 +08:00
Paŭlo Ebermann
f7b39a85a5 Updating security samples for scala. (#5295) 2017-04-04 14:40:36 +08:00
Paŭlo Ebermann
eb3565b6c0 [C#] Fix guid for C# security samples (#5283)
* Issue #5196: also fix the packageGuid for the C# security samples.

* Update C# security samples.
2017-04-04 14:38:47 +08:00
wing328
8eead58afc add links to release 2017-04-04 13:59:00 +08:00
Ian O'Neill
f303183b44 [JaxrsResteasy] Fix JacksonConfig package and RestApplication imports (#5302) (#5303)
This is for the EAP version specifically.

* The JacksonConfig class always used the io.swagger.api package
* The RestApplication class did not import the service implementations
  from the correct package
* Added shell script for generating test applications
2017-04-04 00:43:40 +08:00
wing328
e5b3e3cdac replace tab with 4space for ts jquery client (#5299) 2017-04-03 15:48:51 +08:00
wing328
7db3388fdc Update maven compiler plugin to the latest version (3.6.1) (#5300)
* update maven compiler plugin to the latest version

* update feign petstore
2017-04-02 21:39:48 +08:00
wing328
2e8eea9c18 add logic to camelize path variables for feign client (#5301) 2017-04-02 19:01:43 +08:00
Paŭlo Ebermann
ce41a343d8 Updating all samples (except feign) (#5281) 2017-04-02 17:01:15 +08:00
wing328
071c012f85 Replace tab with 4 space in Java files (#5298)
* replace tab with 4 space in java files

* revise error message in shell script

* print result before checking

* revise grep expression
2017-04-02 16:05:40 +08:00
jfiala
ca6b5d09d0 [Jaxrs-cxf] Add check for useGenericResponse for jaxrs-cxf server + client (#4779)
* add check for useGenericResponse for jaxrs-cxf

* move check for genericresponse to cxf codegen #4713
2017-04-02 16:05:16 +08:00
wing328
bc8e16e3f8 fix package name in mono test script (#5278) 2017-04-01 21:12:17 +08:00
Granjow
64c7e23a04 TypeScript client API: Add public getter/setter for base path (#5270) 2017-04-01 16:33:29 +08:00
wing328
e96db74918 update java jersey2 petstore clients 2017-04-01 16:19:31 +08:00
zszugyi
22eb72791c Specify copy option to overwrite existing temp file, otherwise Files.copy throws FileAlreadyExistsException (#5268) 2017-04-01 16:11:00 +08:00
Griffin Schneider
5de19e3214 [Swift3] Fix bug where non-camel-case path params didn't work. (#5267)
* [Swift3] Fix bug where non-camel-case path params didn't work.

* [Swift3] Fix bug where int enums generated non-compiling code. Swift3 integration tests now pass.

* [Swift3] Add a non-camel-case path parameter to petstore-with-fake-endpoints-models-for-testing. This would have caused the Swift3 tests to be broken before 7387e49fef56a624045aa52b65ffb9c19b3853ec.
2017-04-01 16:06:31 +08:00
Benjamin Douglas
5c3fe23e9f Support Swagger collectionFormat encodings in Feign (#5266)
* Support Swagger collectionFormat encodings in Feign

Feign only natively supports the "multi" collectionFormat for encoding lists
of parameter values. This change adds manual encoding of the other formats, such
as "csv" (the default for collections), "tsv", space-separated, and pipes.

* Fix typo in anchor tag.
2017-04-01 15:33:20 +08:00
JC Casas
909f392745 fix mustache file for build.bat (#5264)
replace IO.Swagger for {{packageName}} where necessary
2017-03-31 16:30:40 +08:00
wing328
b71fe61bb7 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-31 00:37:05 +08:00
wing328
08be483dab add new python files 2017-03-31 00:36:51 +08:00
David Guthrie
aa773dc7fd Resource stream for file is no longer an option, it's the default for Spring 2017-03-30 12:34:22 -04:00
wing328
879edc3a9d Added IBM to the company list 2017-03-30 23:16:02 +08:00
Paŭlo Ebermann
36d1406493 Update samples for javascript + javascript-promise. (#5241) 2017-03-30 23:04:49 +08:00
niku
4e1d9ea010 [Elixir] Add documentation for functions (#5260) 2017-03-30 22:45:39 +08:00
wing328
b213193550 Merge branch 'Granjow-nodejs-server-improvements' 2017-03-30 22:40:17 +08:00
wing328
a15af0828c update nodejs petstore samples 2017-03-30 22:39:53 +08:00
wing328
0baa6cf0e8 Merge branch 'nodejs-server-improvements' of https://github.com/Granjow/swagger-codegen into Granjow-nodejs-server-improvements 2017-03-30 22:31:17 +08:00
David Harrigan
fc01457d77 [JAVA][#5172] Allow vendor json media types (#5189)
* [#5172] Allow vendor json media types

* Revert unnecessary diffs

* Update petstore sample

* Didn't run mvn after some edits

* Rerun ' ./bin/java-petstore-all.sh' and './bin/security/java-petstore-okhttp-gson.sh'

* Added more realistic test cases for isJsonMime
2017-03-30 22:23:24 +08:00
wing328
040a25cc9b fix typo in c# generator's help text 2017-03-30 10:22:13 +08:00
Paŭlo Ebermann
46cb158733 Updating C# samples. (#5242) 2017-03-30 10:02:42 +08:00
Paŭlo Ebermann
db71d97370 Updating samples after #5232. (#5243)
* Updating samples after #5232.

* Fix tests after #5232.

* Fix Javascript client tests.

* JaxRS server: set serverPort only when not given from outside.

* Update JaxRS sample creator scripts to fix serverPort.

* Preliminary test fix for JaxRS server generators.

* Updating samples for JaxRS with Jersey1/2.

* Updating JaxRS samples again.
2017-03-30 01:28:53 +08:00
Paŭlo Ebermann
2830fb1794 [JaxRS Server][Jersey1/2] Pass server port by cli (#5246)
* JaxRS server: set serverPort only when not given from outside.

* Update JaxRS sample creator scripts to fix serverPort.

* Preliminary test fix for JaxRS server generators.

* Updating samples for JaxRS with Jersey1/2.
2017-03-30 01:26:37 +08:00
wing328
8e29326eb5 add link to faq
https://github.com/swagger-api/swagger-codegen/wiki/FAQ#git
2017-03-29 22:24:49 +08:00
wing328
6debbdb652 [C#] Add C# v5.0 Petstore sample (.NET Standard 1.3 compatible) (#5249)
* add csharp .net standard petstore client, update appveyor to build the
client as part of ci

* add new files
2017-03-29 18:43:30 +08:00
James Paden
b91ff65204 Add DocRaptor to Companies Using Swagger list (#5245)
https://github.com/docraptor
2017-03-29 12:35:28 +08:00
wing328
996acc05f5 [Java][Retrofit2] update gradle, sbt build file with latest dependencies (#5238)
* update build.gradle for retrofit2

* update retrofit2 rx2 sample

* update gradle and sbt build file for retrofit2
2017-03-28 21:05:12 +08:00
Simon A. Eugster
99fd1b2281 Use __dirname for paths if server is started from a different directory 2017-03-28 13:31:47 +02:00
wing328
55e648c0b1 update retrofit2 dependencies (#5235) 2017-03-28 18:50:24 +08:00
Paŭlo Ebermann
dd883e4125 Issue #3084: remove timestamps from undertow samples (#5231)
* Issue #3084: Support hideGenerationTimestamp for Undertow.

* Issue #3084: disable timestamp generation for undertow samples.

* Update samples for Undertow.
2017-03-28 16:55:08 +08:00
wing328
32e9e7f63e add port 80 to swagger spec (#5232) 2017-03-28 16:46:29 +08:00
wing328
ab9f5fa0c0 Merge branch 'fix_msf4j_sh' 2017-03-28 10:08:28 +08:00
wing328
05c671aa5a fix msf4j bin script 2017-03-28 10:07:38 +08:00
wing328
d68859cfbc fix c# docstring typo (#5223) 2017-03-27 18:06:34 +08:00
wing328
19b766ef04 add comments to csharp methods (#5222) 2017-03-27 17:29:07 +08:00
wing328
b32fe8230a fix retrofit2 indentation (#5221) 2017-03-27 17:21:45 +08:00
Paŭlo Ebermann
b275b8f9da Updating samples for spring-stubs, springboot-delegate, springboot-delegate-j8. (#5211) 2017-03-27 15:24:18 +08:00
Todd
3849d64c24 export top level enumeration types in typescript-fetch mode (#4820)
This change enables top level enumeratons to be written out as:

export type SortDirection = "Ascending" | "Descending";

vs.

export class SortDirection {
}
2017-03-27 15:15:36 +08:00
Paŭlo Ebermann
ec6248cbcf [Erlang] pretty print swagger json (#5215)
* Pretty-print swagger.json.

(This was done via `jq`. In a later commit we'll generate it pretty-printed.)

* Erlang Server: pretty-print generated swagger.json.

* Update samples for Erlang-server.
2017-03-27 14:50:17 +08:00
wing328
1a1f5afddc add ci test for msf4j server (#5220) 2017-03-27 14:37:42 +08:00
Paŭlo Ebermann
c0e42d2ae0 Updating samples for JaxRS servers: Spec + CXF-CDI. (#5213) 2017-03-27 14:31:46 +08:00
Paŭlo Ebermann
a505822b86 Update samples for JaxRS/RestEasy/Joda. (#5205) 2017-03-27 14:28:06 +08:00
Paŭlo Ebermann
c73c7ff3b9 Update samples for Undertow. (#5207) 2017-03-27 14:27:38 +08:00
Paŭlo Ebermann
ee1ef2c1f6 Update samples for okhttp-gson-parcelableModel. (#5208) 2017-03-27 14:22:56 +08:00
Paŭlo Ebermann
b3fac54df6 Update samples for Java Inflector. (#5204) 2017-03-27 14:10:15 +08:00
Paŭlo Ebermann
6fef9c5ce6 [java][msf4j] Update msf4j samples (and fix artifact name) (#5210)
* Fix MSF4J pom indentation.

* Set MSF4J sample artifactId in the generator script.

* Update MSF4J samples.
2017-03-27 14:09:36 +08:00
Paŭlo Ebermann
4ec23e6694 Update samples for Ruby-Client + Rails server. (#5214) 2017-03-27 13:27:13 +08:00
Paŭlo Ebermann
9875855f63 [ASP.NET] Issue #5196: add packageGuid parameter to AspNetCoreServerCodegen. (#5199)
* Issue #5196: add packageUid parameter to AspNetCoreServerCodeGen.

* Change .bat file, too.
2017-03-27 13:20:24 +08:00
Paŭlo Ebermann
9dfbe7ef85 [nancyfx] Issue #5196: make package GUID nonrandom for nancyfx samples (#5209)
* Add packageGuid parameter to NancyFxServerCodegen.

* Use packageGuid parameter for nancyfx petstore samples.
2017-03-27 13:19:13 +08:00
Paŭlo Ebermann
200b10e2da Update samples for QT5. (#5216) 2017-03-27 11:48:16 +08:00
Paŭlo Ebermann
356774ceb2 Update samples for clojure + dynamic-html. (#5217) 2017-03-27 11:47:56 +08:00
Paŭlo Ebermann
f0b9c2b761 [Go] #3084: remove timestamps from go server (#5218)
* Issue #3084: add hideGenerationTimestamp option to Go server generator.

* Issue #3084: use hideGenerationTimestamp in go server sample script.

* Update Go server samples.
2017-03-27 11:47:15 +08:00
wing328
b37a7c81b0 add comments to csharp methods (#5206) 2017-03-27 11:43:14 +08:00
Paŭlo Ebermann
06ce5ff865 [C#] Issue #5196: make package GUID non-random for the C# samples. (#5198)
* Issue #5196: make package GUID non-random for the C# samples.

* Also change the .bat files for C#.
2017-03-27 11:43:00 +08:00
wing328
f719a743a0 update jaxrs-cxf sample 2017-03-26 23:16:39 +08:00
Matan Rubin
a1dbc53555 [JAXRS-CXF] Respect default values for query parameters (#4778)
* [JAXRS-CXF][#4776] Respect query params default values in generated interfaces

Before this change, the generated interface ignored default values of query
params. Now, it adds the proper @DefaultValue annotation.

See issue #4776 for example.

* [JAXRS-CXF] Update samples
2017-03-26 23:15:34 +08:00
Paŭlo Ebermann
9b113d5a19 Update samples flask connexion (#5203)
* Update samples for flaskConnexion-python2.

* Update samples for flaskConnexion.
2017-03-26 23:02:51 +08:00
Paŭlo Ebermann
c812d81e9a Issue #3084: remove timestamps from bash samples. (#5192) 2017-03-26 22:56:34 +08:00
Paŭlo Ebermann
9b25c0f529 Update samples for JaxRS/CXF. (#5201) 2017-03-26 22:55:55 +08:00
Julien Dupouy
e50e653e3d Binary support for javascript client (#5194) 2017-03-26 22:53:35 +08:00
Paŭlo Ebermann
a9c7030997 Issue #3084: hide generation timestamp for HTML2 samples. (#5193) 2017-03-26 22:49:12 +08:00
Paŭlo Ebermann
a3e639ccee Issue #3084: remove timestamps from C# .NET2 samples. (#5197) 2017-03-26 22:48:20 +08:00
Paŭlo Ebermann
8c575b0f0c Update samples for ObjC&core-data. (#5202) 2017-03-26 22:44:18 +08:00
Paŭlo Ebermann
f8c3a69ebe Update samples for Swift3. (#5200) 2017-03-26 22:44:00 +08:00
Jean-François Côté
282b22744c [Java][PlayFramework] Added some CLI Options + many fixes (#5180)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart

* - Add "wrapCalls" and "useSwaggerUI" CLI Options and updated what handleException does to follow Play Framework lifecycle more closely
- Updated all mustache files accordingly
- Updated the sample
- Updates Play Framework version to the latest 2.5.13
2017-03-25 14:36:01 +08:00
Benjamin Douglas
65b6660c55 Fixes a bug in #5142 for multi-word parameters (#5185)
In the convenience class defined for generating a Map of query parameters, the
parameter name was mistakenly being set to the Java variable name, not the
actual parameter name. These are often the same, but can be different in the
case of multi-word parameters, such as in the sample API's `enum_query_string`
vs `enumQueryString`.
2017-03-24 22:04:11 +08:00
Val Polouchkine
ffbb96e98c Update README.md (#5184)
Add Lyft to companies using Swagger Codegen
2017-03-24 18:01:05 +08:00
Joseph Moore
b7fc11b089 Modify retrofit OAuth templates for #5039 (#5082)
The updateAccessToken method returns `true` when it means `false` and
vice versa.
2017-03-23 23:27:04 +08:00
David Guthrie
58d4187054 Added a new additional option that allows one to replace the the 'file' generated class with org.springframework.core.io.Resource, which will allow returing file data from Urls or anything that can be converted to a stream. 2017-03-23 11:25:08 -04:00
wing328
98d55ba7cd commented out jdk7 test in shippable ci config 2017-03-23 20:49:54 +08:00
wing328
98f0ad598f Merge branch 'add_back_play_ci' 2017-03-23 18:25:43 +08:00
wing328
3a0f8c4097 add back java play to travis ci 2017-03-23 17:52:37 +08:00
wing328
8fbe82a66b replace tab with 4 spaces (#5174) 2017-03-23 17:18:01 +08:00
jfiala
43aa4a8569 [Jaxrs-cxf] Add method-level cascaded beanvalidation (@Valid) (#4921)
* add ApiResponse/s to operation #4718

* add method-level cascaded beanvalidation #4847
2017-03-23 15:56:23 +08:00
wing328
b89e2e6cc3 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-23 15:22:24 +08:00
Paŭlo Ebermann
9dc8cf3fa6 Update samples for java/jersey2-java6 (and fix artifact ID) (#5118)
* Update samples for java/jersey2-java6.

* Let the sample generation script set the right name for jersey2-java6.

This is the equivalent change to #5095, for jersey2-java6.

* Update samples for Java/Jersey2-java6.
2017-03-23 15:22:14 +08:00
wing328
a30c5cbe70 include bin/java-petstore-jersey2-java6.sh in java-petstoreall.sh 2017-03-23 15:21:46 +08:00
David Biesack
5f27fcab18 Add support for Markdown in -l html (#5144)
* Sync with upstream/master

* Support Markdown in -l html

Add https://github.com/atlassian/commonmark-java to modules/swagger-codegen to convert Markdown to HTML,
update StaticHtmlGenerator to use this (see the toHeml() method and its uses)

Add a new test case bin/html-markdown.sh and
modules/swagger-codegen/src/test/resources/2_0/markdown.yaml

* Support Markdown in -l html

Add https://github.com/atlassian/commonmark-java to modules/swagger-codegen to convert Markdown to HTML,
update StaticHtmlGenerator to use this (see the toHeml() method and its uses)

Add a new test case bin/html-markdown.sh and
modules/swagger-codegen/src/test/resources/2_0/markdown.yaml
2017-03-23 15:15:01 +08:00
Benjamin Douglas
55b7db3456 #5142: Add @QueryMap support for Feign API (#5143)
* use builder pattern for operations

* @QueryMap parameter only for query parameters

The previous iteration had replaced all parameters (body, path, query, etc)
within a single @QueryMap. But Feign only supports this style of parameter
passing for query parameters. Besides, for the case of a body parameter (like
soxhlet uses) it only added extra verbosity. With this change, the query
parameters are gathered together in a single @QueryMap and the other parameters
are left alone.

* Adding template for generating test code

* Make javadoc consistent with rest of file's conventions/indents

* Update samples

The files in src/main were generated by running

  $ bin/java-petstore-feign.sh

The files in src/test were manually fixed.

* Correct capitalization of @QueryMap class in feign

Adds a field operationIdCamelCase (a la operationIdLowerCase) to the
CodegenOperation container and uses it in the feign-generated classes
with @QueryMap parameters. Also re-generated the feign samples.

* Adding hyphen to javadocs for extra readability.

* Adding (not replacing) api method with @QueryParam overload.

In order to keep backwards compatibility, switched to adding a new method to
the interface instead of replacing the old call.

* Adding newline to generated source for readability.
2017-03-23 15:01:07 +08:00
wing328
bd81dfd08e use base name for parameters in the curl command (#5173) 2017-03-23 14:51:00 +08:00
wing328
264c9d615f use unescaped path in server stub templates (#5157) 2017-03-23 11:59:04 +08:00
Mark Symons
1733916d48 Update maven-bundle-plugin version in POM (#5158)
Update maven-bundle-plugin to 3.3.0 to fix CVE-2012-2098, per issue #5148
2017-03-23 00:57:29 +08:00
Simon Marti
375e34fe12 Fix selective generation in successive Maven plugin executions (#5152)
Options passed as system properties are properly reset when
disabled in the execution configuration.

Fixes #5151
2017-03-23 00:49:57 +08:00
wing328
2b0efda3bd [Java][Play] Remove swagger play dependency, cleanup (#5159)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Add an CLI option to generate interface. These interfaces are implemented by the controllerImp and help to generate the code with an IDE like IntelliJ because on updates of the code the controllerImp must follow the contract of the interface. If it don't, IDE will provide support to generate missing functions or parameters. I also did some cleanup of options we don't use in Play Framework.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart

* Small fixes

* Remove everything related to swagger-play. No need for annotation anymore because we export the swagger.json directly and show the documentation using swagger-ui with the direct path. Also added the sample.

* Remove/Rename paramsX mustache because there is no more documentation. Remove unused file. updated sample

* Fix the problem with default values that was not set correctly.

* Small fix related to bad merging

* Add handleException CLI options

* Fix default values once and for all!

* Update sample files + fix bug

* Fix bug with body that is required and have a list as a parameter + add bean import for interface to prevent compilation error
2017-03-22 23:00:30 +08:00
wing328
f064d29e82 Use unescaped path in API client templates (#5154)
* use unescaped path in api client templates

* use unescape basePath in API client templates
2017-03-22 20:49:06 +08:00
wing328
a4d4b0f0bd fix pattern in python flask (#5155) 2017-03-22 20:41:12 +08:00
Paŭlo Ebermann
e3d8dabef0 fix missing code marker in README.md (#5145) 2017-03-22 16:19:34 +08:00
wing328
df2f406849 update csharp generator help text (#5140) 2017-03-22 16:18:59 +08:00
wing328
1ee0f4fbad Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-22 16:06:22 +08:00
wing328
186f943076 Merge branch 'techlogix-master' 2017-03-22 16:06:13 +08:00
wing328
1c329483e4 [TypeScript] fix class filename in TS Angular2 template (#5131)
* fix class filename in ts angular2 template

* remove trailing comma in ts angular2 template
2017-03-21 23:48:35 +08:00
wing328
3c308ca40e update sample for spring boot 2017-03-21 23:30:54 +08:00
wing328
52e42701bd Merge branch 'master' of https://github.com/techlogix/swagger-codegen into techlogix-master 2017-03-21 23:29:08 +08:00
Fábio Franco Uechi
0afa084158 Add docker support to python flask (#5133)
* added supporting files for Dockerfile and dockerignore generation for python-flask lang

* documenting how to build the docker image and how to spin up a container

* updating pet store sample
2017-03-21 23:21:53 +08:00
wing328
6708cc50eb [Java][Play] update CI (travis) to cover Play framework petstore server (#5130)
* add test to cover play framework

* add sample for java play framework

* add script to test only if running sdk8 for play petstore
2017-03-21 22:49:05 +08:00
wing328
26ae4c3a99 update dynamic html sample 2017-03-21 22:09:12 +08:00
wing328
9eed412fb6 update html2 sample 2017-03-21 22:07:42 +08:00
wing328
a3482d2454 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-21 22:05:24 +08:00
wing328
a51dc80c61 Merge branch 'add_gradle_cache' 2017-03-21 22:05:13 +08:00
wing328
e45284806f add gradle cache 2017-03-21 21:48:40 +08:00
Yao Yao
d217c5c1fd add json-formatter-js library. (#5125) 2017-03-21 21:44:28 +08:00
Ben Herila
42a7110d90 Fix Bug/4952 by explicitly implementing IValidatableObject (#4954)
* Explicitly implement IValidatableObject interface to avoid conflict with potential ValidationResult classes

* Missed one

* Rebuilt tests
2017-03-21 15:57:56 +08:00
Sebastian Mandrean
58198939c7 [C#][aspnetcore] Fix broken Docker build option & documentation (#5128)
* Use lower-case packageName for README.md docker build example

* Use dotnet:1.0.3-sdk instead of just "latest"

* Regenerate Petstore server sample
2017-03-21 14:39:24 +08:00
Paul English
59fe50dd74 Ensure identifiers get sanitized; Ensure model names also have the same formatting (#5098) 2017-03-21 14:35:38 +08:00
Paŭlo Ebermann
9e38621266 Update samples for javascript-closure-angular. (#5117) 2017-03-21 14:31:18 +08:00
Fábio Franco Uechi
7325650f2d solves issue #4752 (#5127) 2017-03-21 14:25:10 +08:00
fumito_ito
c1a9b7313e fix #2159 dataformatter error for iOS Swift (#5008)
* fix #2159 dataformatter error for iOS Swift

When trying to parse 24-hour time to 12-hour time, date formatter throws fatal error.
It's caused by lack of settings locale for date formatter.

* update sample code
2017-03-21 14:22:18 +08:00
eblis
21657f80cf Not using files from template folders with libraries inside them (#4628)
* #4627 - When looking for template files also look in the libraries subfolder of the supplied templateFolder, before checking the embedded locations.

* Reworked the order in which template files are searched for:
 - 1st the code will check if there's a <template folder>/libraries/<library> folder containing the file
 - 2nd it will check for the file in the specified <template folder> folder
 - 3rd it will check if there's an <embedded template>/libraries/<library> folder containing the file
 - 4th and last it will assume the file is in <embedded template> folder.

 Added unit test to test template dir overloading.
2017-03-20 22:12:29 +08:00
Gronsak
580745ef43 [C#] Adding support for generating .NET Standard 1.3 client library (#4955)
* [CsharpNetStandard] Added C# .NET Standard Client Generation

Added language CsharpNetStandard.
Everything copied from csharp Client Generator.
Dependancies switched from Restsharp to Restsharp.Portable.
Changes made where nececary to replicate Restsharp functionallity.
Project type changed to .NET Standard protable library.

* [CsharpNetStandard] Removed client prop validation due to incompability

* [CsharpNetStandard] Minor fixes

Changed leftover RestSharp.Method to Method
Changed to .Net Standard 1.3 for compability reasons
Changed excludeTests to default to true due to tests not being implemented yet

Removed unnecessary targetFramework property
Removed leftover UWP stuff

* [CsharpNetStandard] More fixes

Added correct dependencies to Readme
Added correct supported frameworks to Readme
Added slightly better placeholder for installation instructions in Readme

Removed leftover dependencies from project.json
Removed leftover SupportsAsync stuff
Removed references to build.bat/-.sh since they're not yet being generated

Todo implement test generation

* [CsharpNetStandard] Added forgoten git_push.sh

* [C#-netstandard] Renamed option to csharp-netstandard

Also added .bat file for test generation

* [C# Net Standard] fixed path in .bat file

* [C# NET Standard] fixes to enum generation

Fixed issues with enum generation due to tired programmer

* [C# NET Standard] Generated sample client library

Sample library generated

Fixes:
Class actually works again
.bat - minor inconsistency fixed

* [C# NET Standard] Error corrected in how timeout is set

Configuration Timeout property changed to TimeSpan type and code corrected around that

* [C#] Merged .NET Standard generator into csharp generator

Functionallity of csharp-netstarndard generator has been moved into standard csharp generator under the targetFramework option as "v5.0"
2017-03-20 17:21:44 +08:00
Paŭlo Ebermann
7ab746d355 Updating samples for swift. (#5120) 2017-03-20 15:40:27 +08:00
Paŭlo Ebermann
d3f365fd29 Fix (partially) #4898 for elixir (#5021)
* fix (partially) #4898 for Elixir

* Update petstore samples (after fix for elixir for #4898)
2017-03-20 15:24:24 +08:00
foxx1337
090d80b42c [JAVA][jaxrs-spec] Add @DefaultValue for query parameters in API (#5023) (#5024)
This was previously missing and I don't think it was intentional.
It appears that swagger-codegen is already correctly processing
the yaml and the placeholder in the template was the only thing
missing.
2017-03-20 15:04:27 +08:00
Oliver Teichmann
2d21bfa21c Updated feign library to use latest version of OpenFeign and Jackson. (#5114) 2017-03-19 15:15:06 +08:00
wing328
eee5cc061c fix path with {{{ .. }}} in c# api mustache file (#5112) 2017-03-18 23:02:20 +08:00
wing328
6c2304ace5 add petstore sample for jaxrs-cxf-client, update travis ci (#5111) 2017-03-18 22:48:38 +08:00
jfiala
2048defe7b add jackson dependencies to pom for cxf-client #4924 (#5032) 2017-03-18 22:13:44 +08:00
rcilia
d5cb70f03e Swift3 enum: number variable names fix (#5060)
* Swift3 enum: number variable names fix

Swift3 generator: added 'number' prefix to enum variable names that start with a number

* Fixed Swift3 enum variable names starting with number (prefixed with '_') and added test cases

* Swift3 enum var names: made sure to keep the next word after a number in lower case
2017-03-18 17:29:52 +08:00
Paŭlo Ebermann
4706f4da3e Update samples for C#/SwaggerClientWithPropertyChanged. (#5095) 2017-03-18 17:08:17 +08:00
Paŭlo Ebermann
426660206d Fix sample script to set the correct artifact ID in the generated POM (#5094)
* Update samples for akka.

* Have akka-scala-petstore scripts set the correct artifact names

* Update akka-scala samples again.
2017-03-18 16:49:46 +08:00
Paŭlo Ebermann
1b973d2c43 Update petstore samples for scala client. (#5092)
* Update petstore samples for scala client.

* Fix missing dependency problem.
2017-03-18 16:44:53 +08:00
Brian Towles
0895e292c4 Add Selective Generation support to the Maven plugin. (#5036)
* Updated maven plugin to allow for selective generation

* Documentation of Selective generation options.
2017-03-18 15:46:10 +08:00
wing328
98e8e55281 Merge pull request #5065 from ibm-bluemix-mobile-services/issue-4764
[Swift] Fix issue #4764
2017-03-17 21:53:44 +08:00
Sebastian Mandrean
5ed94a002c [Haskell] Fix broken client/server compilation errors (#5097)
* Remove dead legacy code

* Update cosmetics according to Haskell standard practices

* Fix failing pattern matching for lookupEither

* Bump to latest dependencies without any breaking changes

* Remove duplicate instance declarations already existing in Servant.API.Verbs

* Fix double Java/Haskell escapement bug

* Re-generate Petstore sample client/server
2017-03-17 16:55:11 +08:00
wing328
65d5b5001f add https://github.com/inaka/erlang_guidelines 2017-03-17 16:44:21 +08:00
wing328
436cbb6b3d add https://github.com/christopheradams/elixir_style_guide 2017-03-17 16:43:08 +08:00
Tony Tam
9ddf28ff75 Update wordnik.yaml 2017-03-16 16:04:59 -07:00
Tony Tam
20580f9b1b Update wordnik.yaml 2017-03-16 16:01:34 -07:00
wing328
64c2eed972 fix link to Cummins 2017-03-17 01:05:14 +08:00
Paŭlo Ebermann
1c160df338 Fix Issue #5063 (deleting wrong sample files) (#5064)
* Update samples for springboot, spring-delegate, spring-delegate-j8.

* Issue #5063: delete samples in the correct directory.
2017-03-16 01:36:25 +08:00
wing328
917306aa10 override escape quotation mark in async scala generator (#5078) 2017-03-16 01:14:43 +08:00
wing328
878b390ab6 Merge pull request #5049 from jostick/fix-scala-listbuffer
Fixes ListBuffer import-mapping for scala clients
2017-03-15 23:33:00 +08:00
wing328
2da2a2631d add ci for akka-scala client (#5073) 2017-03-15 23:08:40 +08:00
wing328
2770d00a2c Merge pull request #5076 from sebastianhaas/patch-1
Add practicebird.com to companies/projects using swagger codegen
2017-03-15 23:04:31 +08:00
Sebastian Haas
f0cd13a5c4 Updated companies/projects using swagger codegen 2017-03-15 15:33:39 +01:00
wing328
c651aacfe3 add ci for ts jquery petstore (#5070) 2017-03-15 17:15:54 +08:00
Paŭlo Ebermann
31f29be2a0 Use deterministic randomness in ExampleGenerator. (#5068)
* Update samples for nodejs + nodejs-google-cloud-functions.

* Fix example generator to use deterministic randomness.

This avoids changing results after each generation, and makes diff reviews easier.

* Update NodeJS samples.

This is the last "randomness" update. From now on the samples should only change if either the generator, the input or parameters change.
2017-03-15 17:15:13 +08:00
Matt Alleman
b2aa877ce0 Allow for UUID types in akka-scala (#5069)
* allow for UUID types

* update sample libs
2017-03-15 17:02:42 +08:00
Anthony Oliveri
88a755f368 [Swift] Detect file type in Swift codegen 2017-03-14 15:02:34 -05:00
wing328
bbe3fd4c71 add jquery template creator 2017-03-15 00:29:45 +08:00
Ben Herila
eea58c55b4 Add support for typescript-jquery (typescript-based API calls using jquery ajax in the browser) (#4953)
* Typescript jquery client wip

* typescript-jquery wip

* Fix typo

* typescript-jquery wip

* Fix formatting

* Petstore sample for typescript-jquery

* Petstore sample for typescript-jquery

* wip
2017-03-15 00:17:04 +08:00
Johannes Stickel
02f2fde65e Fixes ListBuffer import-mapping for scala 2017-03-13 16:43:47 +01:00
wing328
b5be3f4a04 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-13 22:07:18 +08:00
wing328
9b281b2180 make bin/java-play-framework-petstore-server.sh executable 2017-03-13 22:06:45 +08:00
wing328
ebfc39e435 use oracle jdk instead in shippable config (#5045) 2017-03-13 22:05:36 +08:00
Paŭlo Ebermann
a2d1edc6f5 Fix (partially) #4898 for groovy (#5030)
* Fix (partially) #4898 for groovy.

This also adds some TODOs for the missing path, form and body parameters.

* Update Groovy samples (after partial fix for #4898)
2017-03-13 21:46:28 +08:00
wing328
722bbb8e1f update clojure test cases after restoring to petstore.json (#5043) 2017-03-13 19:43:09 +08:00
Jeff Haynes
ba380c9dda Issue 4759: Import complex type for body parameters (#4775) 2017-03-13 15:35:21 +08:00
Arne Jørgensen
79e21d98c6 Fix wrong Docker Hub repo in README (#5033) 2017-03-13 13:11:57 +08:00
wing328
6308613012 fix shippable config due to JAVA_HOME issue in openjdk8 (#5031) 2017-03-13 01:53:04 +08:00
wing328
9d64e792a3 add ivy2 to cache sbt install 2017-03-13 00:52:10 +08:00
wing328
a73c735d7e Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-13 00:49:15 +08:00
wing328
9f5da506fc Merge branch 'jdupouy-2-call-visibility2' 2017-03-13 00:49:04 +08:00
wing328
01eba1872e update java okhttp petstore sample 2017-03-13 00:23:55 +08:00
wing328
7733dba002 Merge branch '2-call-visibility' of https://github.com/jdupouy/swagger-codegen into jdupouy-2-call-visibility2 2017-03-13 00:21:22 +08:00
wing328
366f66d822 Update link to maven jar
update link with http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.2/swagger-codegen-cli-2.2.2.jar instead
2017-03-12 23:05:27 +08:00
Arne Jørgensen
0b9aaad1c2 Build and upload Swagger Codegen CLI Docker image on release (#4912)
* Run mvn in batch-mode to be less verbose on download

* Build and upload Swagger Codegen CLI Docker image on release

* Ensure we only push master and tags to Docker Hub
2017-03-12 17:09:47 +08:00
Paŭlo Ebermann
c76f006067 fix (partially) #4898 for dart. (#5019) 2017-03-12 17:08:48 +08:00
jfiala
39eba39625 [Jaxrs-cxf] add ApiResponse/s to operation #4718 (#4920)
* add ApiResponse/s to operation #4718

* use spaces instead of tabs #4718

* fix alignment issues #4920

* fix alignment issues #4920

* replace tabs with spaces #4920

* updated samples #4920
2017-03-12 16:58:19 +08:00
Paŭlo Ebermann
16adc7b373 Fix (partially) #4898 for flash (#5022)
* Fix (partially) #4898 for flash.

This fixes path, query and header parameters.

* Update samples for flash (after partial fix for #4898).
2017-03-12 16:53:18 +08:00
Kyle Maxwell
a201b01adc Ultra minor spelling fix (#5029) 2017-03-12 14:11:53 +08:00
ravinikam
c4bd4c9e91 Add missing number type mapping (#5013)
number to float or double type mapping was missing, added number to double to accommodate both.
2017-03-11 23:03:37 +08:00
wing328
4bf0fd6ad4 Merge branch 'ravinikam-patch-2' 2017-03-11 20:40:42 +08:00
wing328
82ccbc09f7 update cpprest petstore sample 2017-03-11 20:40:22 +08:00
wing328
3dfa423151 Merge branch 'patch-2' of https://github.com/ravinikam/swagger-codegen into ravinikam-patch-2 2017-03-11 20:36:45 +08:00
wing328
0ce6c7e3a8 do not map UUID as model in java (#5026) 2017-03-11 20:32:46 +08:00
Paŭlo Ebermann
2b9b0f31dc remove indentation of the comment (#5011)
This template seems to lead to people wrapping their code with indented code markers, which won't work.
Hopefully not indenting it here helps a bit.
2017-03-11 17:29:59 +08:00
XuXinkun
3c1a8daaf9 fix handleResponse to not leak okhttp connections (#4997) 2017-03-11 17:02:49 +08:00
wing328
8fb71b46db cache module directory to improve CI performance (#5025) 2017-03-11 16:59:17 +08:00
Tony Tam
dfc0b7e3f8 Updated parser to release version 2017-03-10 20:53:03 -08:00
Tony Tam
429c2113a0 Merge pull request #5017 from swagger-api/issue-5016
null out the string `null` in examples.  Rebuilt java clients
2017-03-10 13:06:05 -08:00
Tony Tam
0dcd91adbf null out the string null in examples. Rebuilt java clients and made a whole bunch of changes 2017-03-10 11:07:30 -08:00
ravinikam
a29c8c937a Update exception message to use operationId
Update ApiException to use {{operationId}} variable to correct typo
2017-03-10 12:41:15 -06:00
Tony Tam
3ff4c988b8 Merge pull request #4999 from swagger-api/issue-4998
updated parser
2017-03-10 09:46:12 -08:00
Tony Tam
f9835a4b37 matched key to actual value 2017-03-10 09:31:02 -08:00
Tony Tam
db4945fdbf added type check 2017-03-10 09:30:49 -08:00
Julien Dupouy
3da8654336 Change build call visibility 2017-03-10 18:05:27 +01:00
wing328
d9ee34e250 Update travis.yml to cover Java-related server stubs (#4992)
* update travis to cover more test cases

* update artifactid

* update artifactid for msf4j

* update pom for better test naming
2017-03-10 22:22:40 +08:00
Jean-François Côté
20c8f9a831 Java Play Framework Server Generator (#4943)
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.

* Fix suggestions in the PR discussion + add .bat and .sh file as requested.

* Updated Readme.md file

* Remove unused mustache file + fix baseName vs paramName in all the mustache files.

* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.

* Fix the problem with the Http.MultipartFormData.FilePart
2017-03-10 22:10:49 +08:00
David Biesack
ec3b338988 Improve HTML output for model titles, default responses (#4991)
Render "default" instead of 0 for response code when Swagger uses "default" (#4982)
Add title for models to TOC and each model's section
Render model description only conditionally.
Remove extraneous Up link

Regenerate samples/html/index.html
2017-03-10 21:47:20 +08:00
Tony Tam
dc8d04eb1c updated parser 2017-03-09 23:41:31 -08:00
Bernhard Döbler
bfa8d350b3 JS files were replaced in the lib folder; include new (#4985)
Fix https://github.com/swagger-api/swagger-codegen/issues/4983
2017-03-09 23:18:11 +08:00
pablograna
fb75996527 Make java spring controller constructor public. (#4972)
* Make java spring controller constructor public.

This lets users manually create the controller and inject the delegate in the
spring configuration file, instead of letting spring scan for controllers and
autowire the delegate.

* Ran spring-all-pestore.sh.
2017-03-09 23:11:44 +08:00
Rohit Sood
11856e9712 Update Spring Fox dependency version to 2.6.1. This fixes a defect where Swagger and Feign clients do not conflict when registration occurs with Eureka. 2017-03-09 09:54:49 -05:00
wing328
bfb4390a1c [TypeScript][Angular2] better code indentation, update Petstore sample (#4990)
* fix query parameter indentation, update ts angular2 sample

* update ts angular2 sample
2017-03-09 22:27:29 +08:00
baartosz
cffaaa027a minor improvements to Configuration php template (#4989) 2017-03-09 17:28:19 +08:00
wing328
4fe79f0078 Remove default format (JSON) from API operations (#4987)
* remove default format (json) and update ruby petstore

* update python petstore sample

* update php petstore sample

* update android petstore sample

* update java petstore sample

* update objc sample

* remove default format (json) from perl
2017-03-09 11:12:01 +08:00
wing328
b6d6356c46 remove default format (json) from c# api (#4980) 2017-03-08 22:43:59 +08:00
baartosz
d21e156071 [PHP] error when deserializing enums #4032 (#4886)
* fixed enum template; added enum handling to ObjectSerializer

* regenerated templates

* improved InvalidArgumentException message

* regenerated sample client

* added value check of OuterEnum during sanitization

* regenerated samples
2017-03-08 19:08:42 +08:00
Michael Kourlas
2bb7626202 [Java] Fix for issue #3365: Support for gzip compression (#4967)
* Fix for issue 3365 for Java

* Added tests

* Convert CRLF to LF

* Convert CRLF to LF in tests
2017-03-08 19:00:50 +08:00
wing328
89ad5e59b8 use convertPropertyToBooleanAndWriteBack in some generators (#4975) 2017-03-08 17:39:22 +08:00
wing328
5dbcf6e8e4 [JavaScript] fix issues with boolean CLI options (#4974)
* remove commented code

* fix issue with boolean clioption in js codegen
2017-03-08 16:57:29 +08:00
delenius
5935e2e6d9 Add support for saving/returning cookies (#4192)
This adds a `saveCookies` boolean flag to ApiClient. If set to true,
the client will save and return cookies to the server.

This is useful for supporting @SessionScoped beans in Java servers.
Works both in Node.js desktop apps, and in the browser.
2017-03-08 15:26:46 +08:00
Kyle Maxwell
3e3d360027 Add proxy support to fix #4639 (#4946)
* Add proxy support to fix #4639

* Update sample app for testing

* Fix indentation and remove leftover code

* Update sample for new rest template
2017-03-08 12:03:45 +08:00
jfiala
871b3ceef7 update templates and samples for spring-boot #4719 (#4736) 2017-03-07 23:35:21 +08:00
jfiala
2f43f98cfa update beanvalidation templates and samples jersey2 #4719 (#4732) 2017-03-07 23:35:06 +08:00
jfiala
6a7340378a update beanvalidation templates + samples #4719 (#4733) 2017-03-07 23:34:40 +08:00
jfiala
1e8312782b [Jaxrs-spec] Merge beanValidation/beanValidationParams.mustache (#4731)
* update beanvalidation templates #4719

* update jaxrs-sample #4719
2017-03-07 23:26:30 +08:00
jfiala
c4475861b0 update beanvalidation templates #4719 (#4734) 2017-03-07 23:26:06 +08:00
jfiala
6383872b5f update beanvalidation templates and sample for jersey2 #4719 (#4735) 2017-03-07 23:25:21 +08:00
wing328
f236b08877 minor formatting fix 2017-03-07 23:23:38 +08:00
stevecookform3
290cb7c331 fix path/query parameters (#4959) 2017-03-07 22:23:55 +08:00
Paŭlo Ebermann
404a9999a7 Fix (partially) #4898 for swift3 (#4916)
* fix (partially) #4898 for swift3.

* Update petstore samples for swift3 (after fix for #4898)
2017-03-07 17:28:08 +08:00
Paŭlo Ebermann
0f88e4a721 fix (partially) #4898 for MSF4J. (#4917) 2017-03-07 17:26:57 +08:00
wing328
913d05c17c [Python][Flask] Fix inconsistency between model name and file name (#4958)
* fix inconsistence between model name and file name in python flask

* add object as primitype type in python flask
2017-03-07 15:32:41 +08:00
dhuning
6ea3315b3e Implicit headers for SpringCodegen (#4858)
* Add a new option implicitHeaders with default false

* Change JavaSpring templates and codegen to handle implicit headers

* Add script to generate sample for implicitHeader option

* Add generated implicitHeader sample

* Fix alignment
2017-03-07 14:54:15 +08:00
Jacobo de Vera
7de1eeb987 [python] Triple quote strings with new lines in default values (#4941)
* Triple quote python strings in defaults

When the model contains a string with a default value with new lines in
it, simply quoting generates invalid python code. Using triple quotes
for all string defaults makes sure the generated code will be a valid
python string.

Fixes #4862

* Wrap default string in triple quotes when it contains new lines

* Add newly generated python sample files
2017-03-07 14:46:38 +08:00
Val Polouchkine
122194c30e Fix typo (#4956)
Authorizatoin should be Authorization
2017-03-07 13:49:42 +08:00
Josiah Peters
ab4c5f2003 Updated readme with latest maven URL (#4945)
Changed the direct download link for swagger-codegen-cli jar that is hosted in Maven from the previous releases file to the latest one.
2017-03-07 00:11:40 +08:00
Egor Masalitin
722b96bcec In case if basePath equals to / we should not append it to url, behaviour was changed to fit this requirements (#4942) 2017-03-06 23:48:20 +08:00
Paŭlo Ebermann
a710149cdd Fix #4898 for jaxrs (#4918)
* fix #4898 for JavaJaxRS (including all libraries).

* Updated samples for jaxrs (after fix for #4898).
2017-03-06 20:04:31 +08:00
wing328
f12554fd83 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-03-06 17:24:04 +08:00
wing328
273079bee7 Merge branch 'Daxten-topic/swagger_fix' 2017-03-06 17:23:50 +08:00
wing328
2dee8381e8 update petstore sample for swift3 2017-03-06 17:23:32 +08:00
wing328
0838c1a448 Merge branch 'topic/swagger_fix' of https://github.com/Daxten/swagger-codegen into Daxten-topic/swagger_fix 2017-03-06 17:20:42 +08:00
wing328
f7b5eb85ce [Swift] add batch files for swift 2,3 to generate petstore samples (#4934)
* add bat files for swift 2,3 to generate petstore samples

* remove -t from swift3 batch file

* remove -t from swift batch files
2017-03-06 17:16:41 +08:00
Zhanwei Wang
4b7a50c6a5 Add hashdata to user list (#4935) 2017-03-06 16:58:57 +08:00
wing328
643aa5a720 Merge branch 'fortiumant-fixqt5cppstaticlib' 2017-03-06 15:50:51 +08:00
wing328
7782c32140 Merge branch 'fixqt5cppstaticlib' of https://github.com/fortiumant/swagger-codegen into fortiumant-fixqt5cppstaticlib 2017-03-06 15:44:24 +08:00
Zhanwei Wang
10950db2dd [JavaScript] Do not parse null and undefined as type. (#4933)
* [JavaScript] Do not parse null and undefined as type.

* update pet store example for #4932
2017-03-06 15:01:19 +08:00
Paul English
5d327e66a1 Port the optional/enum template logic from async-scala to the regular scala client (#4849)
* Port the optional/enum template logic from async-scala to the regular scala client

* oops, accidently pulled template from akka-scala which has custom logic for enum

Just going to avoid enum for now, considering I'm not sure what scala client
will be official

* Update tests to use option
2017-03-06 14:50:21 +08:00
Paŭlo Ebermann
e477ac9472 Fix #4898 for spring-cloud. (#4919)
Somehow I omitted this in #4875.
2017-03-06 14:47:52 +08:00
Matan Rubin
899ef8f1ef [JAXRS-CXF] [bug #4422] use java.util.Date when selecting dateLibrary=legacy (#4724)
according to the help message setting dateLibrary to 'legacy' should
make the code generator use java.util.Date.
before this change, when setting dateLibrary to 'legacy' made the
generator use javax.xml.datatype.XMLGregorianCalendar.
now, the generator uses java.util.Date such that the documentation and
behavior are consistent.
2017-03-06 14:25:15 +08:00
Paŭlo Ebermann
6c9b0ce257 Update samples for Scalatra after 2.2.2. (#4910)
* Update samples for Scalatra after 2.2.2.

* [scalatra] Revert changes to build.sbt

Changes were made in conjunction with the new finch generator. This
reverts those changes to Scalatra's previous build.sbt.

* Update scalatra samples again after revert of part of #3905.
2017-03-06 14:23:02 +08:00
Tony Tam
b9d9629a65 Merge pull request #4925 from jfiala/cxf_swagger-core_4924
[Jaxrs-cxf] Fix compile errors after update of swagger-core / add jackson dependencies to pom #4924
2017-03-05 10:31:02 -08:00
Johannes Fiala
f72340fb17 change jackson jaxrs version to 2.8.4 #4924 2017-03-05 19:17:27 +01:00
jsone-studios
7800641db2 Fixes #4913 (#4914) 2017-03-06 01:15:56 +08:00
Paŭlo Ebermann
7b559b4422 Update samples for MSF4J after 2.2.2. (#4915) 2017-03-06 01:12:29 +08:00
Viktor Chukhantsev
35d3fb82ce [Ruby] Can only use content-type application/json with ruby-client #4867 (#4893)
* Fix ruby-client work with modern content types, like application/api.vnd+json

* Add specs.

* Fix regexp.

* Regenerate petstore client.
2017-03-06 00:44:15 +08:00
Paŭlo Ebermann
a91cbbe387 Update samples after 2.2.2 (#4901)
* Update petstore samples for Groovy.

* Update samples for JaxRS.

* Update samples for cpprest.

* Update samples for dart.

* Update samples for flash.

* Update samples for go.

* Update samples for html2.

* Update samples for lumen.

* Update samples for nancxfx.

* Update samples for objc.

* Update samples for sinatra.

* Update samples for tizen.

* Update samples for java-inflector.
2017-03-06 00:33:57 +08:00
Johannes Fiala
165076a427 add jackson dependencies to pom #4924 2017-03-05 17:30:17 +01:00
Jonathan Leitschuh
66a510c9d3 Make the CodegenConfigurator serializable (#4890)
Closes #4887
2017-03-03 22:57:57 +08:00
wing328
061f4d07d8 fix issue with pom dep in jaxrs jersey1 (#4904) 2017-03-03 22:25:59 +08:00
wing328
82090c218b add product hunt page 2017-03-03 21:48:57 +08:00
Bart Kummel
30c2b6f262 Improved ExampleGenerator (#4797)
* Improved ExampleGenerator:

- Now takes into account enum and uri/url formats for strings.
- Uses example for referenced objects if available.
- Proper examples get generated for specific numeric formats, because more specific formats now get checked before generic format.
- Honors min and max values for numerical properties, if set.

* Ran script `bin/nodejs-petstore-server.sh`.

* Renamed log to logger to conform to coding standard.
2017-03-03 18:38:19 +08:00
Vlad Frolov
9516c81ebb [JavaScript] Added *WithHttpInfo methods in 'usePromises' mode to provide a way to get access to HTTP response object (e.g. headers or status code) (#3654) (#4902) 2017-03-03 18:20:52 +08:00
patulacci
e23a24c138 replaced SWG by classPrefix and ran tests (#4871) 2017-03-03 17:29:16 +08:00
Gábor Berényi
39a42d014b Feature/issue 4698 rxjava2 support (#4743)
* rx2 support

* NO_NOT_USE_RX is for internal use only; plus sanity check if both v1 and v2 are specified

* minor fixes

* one more small fix
2017-03-03 17:00:20 +08:00
wing328
dbe99c3af9 fix path variable in ts angular2 (#4756) 2017-03-03 16:59:23 +08:00
gigo1980
fa803d5cf5 Adjust Date ISO Dateformat for Query Parameters: ISSUE 4745 (#4812)
* Adjust Date ISO Dateformat for Query Parameters: ISSUE 4745

* Run Sample Model
2017-03-03 16:58:24 +08:00
wing328
835c7c0e0c [PHP][Silex] use original path name for path variable naming (#4817)
* use original path name in php silex

* fix path variable naming by camelizing the name
2017-03-03 16:49:00 +08:00
Hamed Ramezanian Nik
b894dc3827 Encode form paramerers properly\n (#4836)
Superagent doesn't encode form parameters properly. For example it doesn't encode objects which contain array. The following is a failed test case:
var my_opts = {
  'storyId': 65441,
  'id': [56, 352]
};
2017-03-03 16:48:11 +08:00
wing328
6c63558acc better python flask readme (#4844) 2017-03-03 16:45:43 +08:00
Paŭlo Ebermann
88c9b6062d Fix for #1219 (#4875)
* Update spring samples with current code.

This is done so I can see my own changes better.

* Regenerate samples after 2.2.2.

* use baseName instead of paramName for spring annotations.

* update spring petstore samples to show the effects.
2017-03-03 16:35:12 +08:00
Paŭlo Ebermann
0dab200f28 Update spring samples with current code. (#4874)
* Update spring samples with current code.

This is done so I can see my own changes better.

* Regenerate samples after 2.2.2.
2017-03-03 16:34:07 +08:00
Alexej Haak
195ff25f43 fixes progress for file upload with alamofire / swift3 2017-03-02 17:16:10 +01:00
Oliver Trosien
55b64fcbfd Remove maven-api dependencies on swagger-codegen module (#4840)
* Remove maven-api dependencies

* Use org.apache.commons.lang3.StringUtils
2017-03-02 18:05:21 +08:00
Bartek Kryza
1b1767e489 [Bash] Bugfix default curl options fix (#4832)
* Fixed default cURL parameter handling

* Fixed iterator increments in JSON body Bash generator

* Added tests for content type and default cURL params

* Fixed generated Dockerfile Bash script access rights

* Generated test sample client

* Updated Bash generator README
2017-03-02 17:48:30 +08:00
wing328
167b2f59b8 add 2.2.3 to the table 2017-03-02 16:56:56 +08:00
wing328
775f108d4e update version to 2.2.3-SNAPSHOT (#4894) 2017-03-02 16:54:37 +08:00
baartosz
26257daec3 fixed ApiException's methods return types (#4845) 2017-03-02 16:45:42 +08:00
wing328
1029b692e5 update url to 2.2.2 release 2017-03-02 15:25:38 +08:00
Tony Tam
ff209ada22 Merge pull request #4889 from swagger-api/release-prepare
update to release versions
2017-03-01 14:51:05 -05:00
Tony Tam
8504c12ce0 update to release versions 2017-03-01 14:22:34 -05:00
Tony Tam
021e6cdad2 Merge pull request #4888 from swagger-api/remove-inflector-timestamp
Remove inflector timestamp
2017-03-01 14:16:12 -05:00
Tony Tam
b43b3771b1 rebuilt 2017-03-01 14:14:52 -05:00
Tony Tam
b941fcfdb6 remove timestamp 2017-03-01 14:14:30 -05:00
Tony Tam
01f5c1bf0f Merge pull request #4881 from swagger-api/swagger-lib-versions
updated core versions
2017-03-01 14:12:57 -05:00
Tony Tam
60f0dcb573 Merge branch 'swagger-lib-versions' of github.com:swagger-api/swagger-codegen into swagger-lib-versions 2017-03-01 13:21:43 -05:00
Tony Tam
a27a76adf4 fixed missing dep 2017-03-01 13:21:14 -05:00
wing328
9e40700478 update jackson dependency and fix closing xml tag in jaxrs pom 2017-03-02 02:16:13 +08:00
wing328
f15267c717 add missing dependency to jaxrs pom 2017-03-02 01:56:27 +08:00
Tony Tam
d9fb6f8846 trigger a build 2017-03-01 10:58:33 -05:00
Tony Tam
655ba95b94 rebuilt 2017-03-01 10:04:39 -05:00
Tony Tam
4499a3c74c rebuilt 2017-03-01 10:02:42 -05:00
Tony Tam
40da4769b0 rebuilt 2017-03-01 10:01:50 -05:00
Tony Tam
89168d5e89 rebuilt 2017-03-01 09:59:27 -05:00
Tony Tam
9aeedca4c3 rebuilt 2017-03-01 09:58:53 -05:00
Tony Tam
c9c9d9a258 rebuilt 2017-03-01 09:58:17 -05:00
Tony Tam
2cec6192a4 rebuilt 2017-03-01 09:57:38 -05:00
Tony Tam
af2749325d rebuilt 2017-03-01 09:56:42 -05:00
Tony Tam
041da8998a rebuilt 2017-03-01 09:55:42 -05:00
Tony Tam
3b65515140 Merge branch 'master' into swagger-lib-versions 2017-03-01 09:53:37 -05:00
Tony Tam
b8caead193 Merge pull request #4880 from swagger-api/update-parser
updated parser version
2017-03-01 09:51:51 -05:00
Tony Tam
894f272f89 updated core versions 2017-03-01 08:51:18 -05:00
Tony Tam
35be2bc123 updated parser version 2017-03-01 08:46:42 -05:00
wing328
77c5b90b00 add creator of JAX-RS RestEasy (JBoss EAP) 2017-03-01 12:17:01 +08:00
jfiala
de727d7d60 [JaxrsResteasy] Improvements for Resteasy for Jboss EAP 4512 (#4712)
* add language for resteasy eap #4512

* first implementation of jaxrs-resteasy-eap #4512

* add support for joda and java8 datetime types #4512

* add new file JacksonConfig and new sample eap-joda #4512

* add dynamic swagger support to jaxrs-resteasy-eap #4512

* adapt readme for eap #4512

* add tests for jaxrs-resteasy-eap #4512

* cleanup tabs #4512

* cleanup tabs #4512

* cleanup tabs #4512

* cleanup tabs / regenerate without joda #4512

* regenerate with updated templates #4512

* fix test (wrong setter invoked) #4512

* fix test #4512

* fix no invocation #4512

* replace tabs with spaces #4512
2017-03-01 00:20:35 +08:00
Antoine Kurukchi
471598359a Added include to qt5cpp to fix library compile
While creating a static library from the generated files, compilation issues arose due to QDateTime only being forward declared. Adding the include resolves the issue.
2017-02-22 09:53:43 +00:00
wing328
d11d0f88bb fix warning in swagger json/yaml generator (#4827) 2017-02-20 16:51:31 +08:00
jsone-studios
6746632834 Fix for #1940 - Show response headers (#4825) 2017-02-20 16:18:09 +08:00
Tristan Sokol
23d114e1eb Fix minor spelling mistake in readme (#4818) 2017-02-20 15:13:06 +08:00
wing328
bb81fc130a remove unused files for nodejs gcf (#4808) 2017-02-16 17:39:06 +08:00
Paul English
accd176382 Ensure that ApiInvoker.scala can support UUID types (#4807) 2017-02-16 17:00:26 +08:00
wing328
a4e96b3be4 Merge branch 'update_ts_fetch_sample' 2017-02-15 16:43:39 +08:00
wing328
26b1aa2b60 update ts fetch petstore samples 2017-02-15 16:24:57 +08:00
Adnan Baruni
24474126e1 Issue 4742 (#4763)
* add boolean datatype flags to CodegenResponse and logic to set them in DefaultCodegen

* use Boolean.TRUE.equals to check for isResponseBinary or isResponseFile
2017-02-14 14:20:13 +08:00
clasnake
ee23f8e50c Fix finch package name. (#4755) 2017-02-13 22:33:55 +08:00
Igor Khomenko
56251bf214 added QuickBlox to 'Companies/Projects using Swagger Codegen' section (#4786) 2017-02-13 21:47:51 +08:00
Igor Khomenko
7df1f8e200 Update DefaultGenerator.java (#4760) 2017-02-13 20:59:36 +08:00
Sreenidhi Sreesha
9cf147f215 [Java] Change Boolean fields of CodegenParameter and CodegenResponse to boolean. (#4747)
CodegenOperation and CodegenProperty classes have boolean fields instead of Boolean.
This fix changes Boolean fields of CodegenParameter and CodegenResponse to boolean as well.

Boolean fields are not necessary. Other classes interacting with them have to check for null
before interacting with them which is unnecessary and leads to ugly code.
2017-02-13 19:45:42 +08:00
wing328
8f2e9bce6d remove trailing whitespaces in java api client (#4784) 2017-02-13 18:53:34 +08:00
Clem
74da89c6ac Fix issue when the swagger model contains an 'Object' class (#4695)
If the swagger model contains a class named 'Object' some mustache templates
will generate non compiling **Java** code.
2017-02-13 18:07:00 +08:00
BastiOfBerlin
a956966ff2 Update gitignore (#4767)
ignore dist folder
2017-02-13 18:03:48 +08:00
Matthew Davis
1d52c62565 Added Fotition as a company using swagger-codegen (#4773) 2017-02-11 22:50:12 +08:00
wing328
0e1460fc22 show travis master status 2017-02-11 22:47:07 +08:00
Tony Tam
93a63dbd26 Merge branch 'jimschubert-dockerfiles' 2017-02-09 13:17:32 -05:00
Tony Tam
8fa2ef8ec2 merged 2017-02-09 13:17:22 -05:00
wing328
ef31efe8d9 remove default temp folder during initalization (#4749) 2017-02-09 12:22:13 +08:00
Jan
0d14496bd6 [Java-retrofit] Fix for #4750 String comparison with equals (#4751)
* [Java-Feign] Fixed String comparison using equals instead of == operator

* [Java-Feign] Updated ApiClient with ./bin/java-petstore-feign.sh

* [Java-retrofit] Fix for #4750 String comparison with equals
2017-02-08 21:54:56 +08:00
wing328
d91135ec8f Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-02-08 17:00:01 +08:00
wing328
08aef9513f Merge branch 'MatanRubin-uuid-type' 2017-02-08 16:59:45 +08:00
wing328
beadd6d740 update java server stub samples with new uuid mapping 2017-02-08 16:39:02 +08:00
wing328
882c3ecba5 update java petstore with new uuid mapping 2017-02-08 16:07:09 +08:00
wing328
7998a30b92 Merge branch 'uuid-type' of https://github.com/MatanRubin/swagger-codegen into MatanRubin-uuid-type 2017-02-08 16:02:27 +08:00
Jan
2179b44413 [Java-Feign] Fixed String comparison using equals instead of == operator (#4740)
* [Java-Feign] Fixed String comparison using equals instead of == operator

* [Java-Feign] Updated ApiClient with ./bin/java-petstore-feign.sh
2017-02-08 15:56:40 +08:00
wing328
69edf282f3 add SPINEN 2017-02-08 01:18:30 +08:00
wing328
bdf6957c08 update jaxrs spec petstore sample (mac) 2017-02-08 01:07:18 +08:00
jfiala
e9823a81a5 [Jaxrs-spec] fix usage of Jersey templates in shellscript (#4722)
* remove jersey templates #4720

* regenerate sample with jaxrs-spec templates #4720
2017-02-08 00:41:36 +08:00
Tony Tam
73cfc8459f Merge pull request #4487 from wy-z/dockerfile_update_base_image
[dockerfile] Replace 'maven:3.3-jdk-7' with 'maven:3-jdk-7-alpine'
2017-02-07 10:35:30 -05:00
Bartek Kryza
73395bce44 [Bash] Bash generator improvements (#4730)
* Removed trailing spaces

* Fixed autocomplete support for bash-completion < 1.4

* Added mime type autocomplete for Zsh

* Fixed Bash url autocompletion

* Fixed Zsh space after operation arguments and added trim to descriptions

* Added generation of Dockerfile for packaging Bash rest clients

* updated test samples for Bash client generator
2017-02-07 23:15:05 +08:00
Matan Rubin
1339222bbc [Java][Issue #1806] generate using java.util.UUID for UUIDs
Before this change if a model had a property of type=string and
format=uuid, it would be generated as a Java String.
Now, it generates the property as java.util.UUID.
2017-02-07 13:38:20 +02:00
wing328
a123dd7ef1 Revert "rx2 support" (#4737) 2017-02-07 17:52:47 +08:00
Gábor Berényi
d12f428f42 rx2 support (#4708)
* rx2 support

* NO_NOT_USE_RX is for internal use only; plus sanity check if both v1 and v2 are specified
2017-02-07 17:44:22 +08:00
wing328
b415852dc6 add https and change order for HPE 2017-02-07 13:43:54 +08:00
wing328
8110b13b33 add Hewlett Packard Enterprise (hpe.com) 2017-02-07 13:42:42 +08:00
Joshua Helm
099abf4b23 Add "Simpfony" to list of companies using Swagger (#4726) 2017-02-06 23:02:40 +08:00
wing328
e8f11bc219 add https://www.slamby.com/ 2017-02-06 17:40:42 +08:00
Jim Schubert
96b0d155b5 [csharp] Fix enum default value (#4681)
* [csharp] Prevent enum assign to string

see swagger-api/swagger-codegen#4670

* [csharp] Regenerate client sample
2017-02-06 17:33:10 +08:00
Joshua Helm
b891a4a4cf fix issue #4672 - XmlExampleGenerator does not properly handle properties of several numeric types (#4673)
* fix issue #4672 and bring XML default example values in-line with ExampleGenerator

* converted tabs to spaces
2017-02-06 17:30:29 +08:00
wing328
c0fc66ebec Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-02-06 15:33:11 +08:00
wing328
fd7d251241 Merge branch 'jfiala-jaxrs_beanval_final_4091' 2017-02-06 15:32:52 +08:00
wing328
509a156879 Merge branch 'jaxrs_beanval_final_4091' of https://github.com/jfiala/swagger-codegen into jfiala-jaxrs_beanval_final_4091 2017-02-06 15:13:03 +08:00
Markus
4900427bf5 [JAXRS-CXF] Issue 4569 - Re-added usage of contextPath in api.mustache (basePath) (#4580)
* jaxrs-cxf: Re-added usage of contextPath in api.mustache (basePath)

* jaxrs-cxf: Added useAnnotatedBasePath and generateNonSpringApplication flags

 * useAnnotatedBasePath=true uses the @Path annotation in the generated interface to set the basePath, default is false

 * generateNonSpringApplication=true generates a web.xml with CXFNonSpringJaxrsServlets. If useAnnotatedBasePath=true only one servlet will be created, otherwise one for each API

* jaxrs-cxf generateNonSpringApplication: removed creation of multiple servlets

Multiple servlets were generated if useAnnotatedBasePath was false.
This is not necessary as there is only ONE basePath per contract

* jaxrs-cxf: added sample generation for useAnnotatedBasePath and generateNonSpringApplication
2017-02-06 14:11:41 +08:00
jfiala
a52a84a7d7 [Jaxrs-cxf-cdi] merge beanvalidation templates to single one #4719 (#4723)
* merge beanvalidation templates to single one #4719

* add beanValidationCore #4723
2017-02-06 14:03:26 +08:00
jfiala
38c879683a [Jaxrs-cxf-cdi] Add beanvalidation annotations updated (#4615)
* add check for hideGenerationTimestamp #4091

* update generated sample with no generated timestamps #4091

* add beanvalidation to jaxrs-cxf-cdi #4091

* add beanvalidation to jaxrs-cxf-cdi #4091

* update crlf

* replace tabs

* add check for hideGenerationTimestamp #4091

* update generated sample with no generated timestamps #4091

* add beanvalidation to jaxrs-cxf-cdi #4091

* add beanvalidation to jaxrs-cxf-cdi #4091

* update crlf

* replace tabs

* re-generate samples after rebasing #4091

* fix handling of inner enum templates #4091

* fix InputStream/Multipart imports and fileInputStream variable #4091

* fix paramName for files #4091

* consolidate beanValidationParams #4091

* add paramNameDetail #4615

* fix indentation and regenerate samples #4615

* reset samples jaxrs-spec to master

* update generated samples

* adapt Min/Max/DecimalMin/DecimalMax handling for int/long/else

* add ModelApiResponse
2017-02-06 00:55:30 +08:00
Markus
a83f8d0449 [JAXRS-Spec|Resteasy|CXF] Issue 4315 - Fixed bug generating arrays of enums (#4582)
* jaxrs-cxf: Fixed returning of enum arrays generating non-compiling code

* jaxrs-spec/resteasy: Fixed returning of enum arrays generating non-compiling code

* jaxrs-cxf: Switched to petstore-with-fake-endpoints-models-for-testing.yaml contract for sample generation

 * Fixed escape char issue in ApiOperation summary
 * Fixed code generation for non String-type enums
 * Fixed @PATCH annotation import

* jaxrs-spec: Switched to petstore-with-fake-endpoints-models-for-testing.yaml contract for sample generation
2017-02-05 23:01:18 +08:00
Johannes Herrnegger
95a8192c25 [Typescript-Angular2] Fixes #4703 (#4704)
* fix issue #4703

* run petstore
2017-02-04 13:00:26 +08:00
eamon316
23aee52bcd Feature/4606 (#4607)
* Issue #4606 (Spring) SubClass annotations are missing from the base class

* Issue #4606 (Spring) SubClass annotations are missing from the base class
   * Commit updated samples from ./bin/spring-all-pestore.sh
2017-02-03 22:30:32 +08:00
asgerjensen
4ba0ea9dc5 fix(jax-rs): fix package name in generated StringUtil.java to match where file is generated (#4677) 2017-02-03 21:46:29 +08:00
wing328
5282987851 [Python] update python requirement.txt and use single quote for safe characters (#4702)
* update python requirement

* update petstore sample
2017-02-03 21:35:40 +08:00
Jon Hartlaub
c366f139e2 ISSUE#4391 - https://github.com/swagger-api/swagger-codegen/issues/4391 (#4392)
This change removes '/' from the set of "safe" characters for the python urllib quote function.

When using PathParams containing a '/' character, the Python client does not encode the '/'. As a result, the / is interpreted as a path separator rather than a parameter value. PathSegments must encode the / character for proper transfer of information. e.g. 'my/string' should be encoded to 'my%2Fstring' for correct transmission of a PathParam argument. Path separators must only be used between path segments.
2017-02-03 19:24:15 +08:00
wing328
695417699c Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-02-03 18:59:25 +08:00
wing328
4c6aa929fe Merge branch 'toomuchpete-php-client-invokerpkg-fix' 2017-02-03 18:59:03 +08:00
wing328
db2d9df5ea Merge branch 'php-client-invokerpkg-fix' of https://github.com/toomuchpete/swagger-codegen into toomuchpete-php-client-invokerpkg-fix 2017-02-03 18:44:05 +08:00
David Biesack
d1766e3fdf Fix Issue #4611 by using {{unescapedDescription}} (#4641)
* Use {{unescapedDescription}} in html, html2

This addresses https://github.com/swagger-api/swagger-codegen/issues/4611
Replace {{description}} with {{unescapedDescription}}

This is an improvement but because of issue #1203 and/or #3436 (fix not
yet impleented), Markdown is not being processed and converted to HTML.

* Add generated petstore samples index.html

* Copy unescapedDescription
2017-02-03 17:46:11 +08:00
Jim Schubert
9032b8c1f8 [aspnetcore] resolve source/packageName issues (#4699)
Outputs warnings about ASP.NET Core's src/ requirement, and adjusts
sourceFolder if the input doesn't start with src/.

As a consequence of this change, apiFileFolder and modelFileFolder may
possibly return different values if users are setting both sourceFolder
and packageName. This could be considered a breaking change in those
sceanrios.
2017-02-03 16:25:56 +08:00
wing328
a128c075ac Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-02-02 23:30:06 +08:00
wing328
f4fee61e83 update go petstore sample 2017-02-02 23:29:41 +08:00
Adnan Baruni
4b2c4f051b Issue 3914 (#4678)
* issue 3914, removed logic that remove header parameters. update template files to handle header parameters in the same manner as other parameters

* update swift and swift3 samples
2017-02-02 23:17:48 +08:00
Valentin Valchev
cd34885b02 Fixed issue #4664: [go] incorrect code generated, if there are more than 1 array parameters (#4683) 2017-02-02 00:20:12 +08:00
Valentin Valchev
96ed41a29c Fixed issue #4665 [go] required object parameters are marked omitempty. (#4682)
* Fixed issue #4665 [go] required object parameters are marked omitempty.

* Run ./bin/go-petstore.sh as suggested by @wing328.
Please note, that there are quite few changes, that doesn’t come from the diff I’ve applied. Seems the script wasn’t run on the previous commit.
2017-02-01 23:56:22 +08:00
Sreenidhi Sreesha
f62a7e2144 Copy dataformat if property field is an array. (#4661)
If a type's field is an array or map, dataFormat of the innerProperty was not copied
into encapsulating property. This change fixes it.
2017-02-01 23:45:21 +08:00
Matan Rubin
8042f5ca3e [JAXRS-CXF] [issue #4386] add builder-style methods to model classes (#4468)
* [JAXRS-CXF] [issue #4386] add builder-style methods to model classes

before this change, model classes had only a default constructor and
setter methods, resulting in code like this:

    myModel = MyModel();
    myModel.setFirstField(firstField);
    myModel.setSecondField(secondField);
    return myModel;

this change adds builder style methods, such that the above code can be
written more compactly:

    return MyModel().firstField(firstField).secondField(secondField);

this is consistent with other JAVA generators in swagger-codegen.

* update jaxrs-cxf sample code
2017-01-31 23:07:12 +08:00
wing328
ee857d1be3 escape unsafe characters/quotes in elixir generator (#4676) 2017-01-30 21:24:21 +08:00
wing328
2cffa097f0 add elixir to api client list 2017-01-30 17:42:57 +08:00
wing328
ca1ef4914c add elixir template owner 2017-01-30 17:42:00 +08:00
niku
f77bee8b8a [WIP] Add elixir client (#4675)
* Add elixir client

* Add test for elixir client

* Add shell script for generating sample codes for elixir client

It just copied from bin/bash-petstore.sh

* Make elixir-petstore.sh to generate sample codes for elixir client

* Add sample codes for elixir client
2017-01-30 17:40:55 +08:00
megaboich
d82c2bbae7 Fix Typescript errors with 'strictNullChecks' mode enabled (#4658)
error TS2454: Variable 'contentTypeHeader' is used before being assigned.
error TS2345: Argument of type 'FetchAPI | undefined' is not assignable to parameter of type 'FetchAPI'.
2017-01-29 23:22:48 +08:00
wing328
1d7ba4cacc add core team for scala finch 2017-01-29 12:20:59 +08:00
wing328
7be4dc67f6 add finch 2017-01-29 12:18:49 +08:00
wing328
ae8a123484 [WIP][Scala] Finch generator (#3905)
* Feature/objc tasks 2.3.0 (#3522)

* change api and ApiClient to return cancellable NSURLSessionTasks instead of NSNumber

* define a configuration protocol for custom configurations, which can be passed to api clients instead of a global configuration, provide a default implementation with a singleton option

* integrate a workaround for a current JSONModel concurrency bug

* update to new ISO8601 pod

* add missing call to super

* integrate new templates into codegen

* updates documentation templates

* updates petstore objc generated code

* fixes objc client tests

* [ObjC] Add version define and share default headers of each client

* add finch generator and resource

* update license, add errros

* Fix problem with multitheard api client

* fix some errors for finch

* [finch] Remove license header

* [finch] Remove finatra stuff, fix a few issues

* WIP: Finch server generator

* [finch] WIP: server generator impl

This puts parameters (input/output) in the right format. Currently, this
is done in the generator class using vendorExtensions, but should be
refactored to imported templates to clean up.

Previous commits of the server generator output to appropriate
models/api directories. I've made no changes to this logic, but code
currently generates to the root scala package directory. This will need
to be fixed.

There's also an issue with circe's and Option[Date] in the Order type.
This issue will need to be resolved. As well, there's some unused
imports to clean up.

Initial implementation lacks support for custom imports, type mappings,
etc.

* [finch] Update api/model package and imports

* [finch] Explicit import/type mappings

* [finch] Regenerate example
2017-01-29 12:15:39 +08:00
Vlad Frolov
6890ef9755 [JavaScript] Fixed handling of empty arrays/empty strings/booleans/single numbers as valid API responses (#4653) (#4666) 2017-01-28 16:08:04 +08:00
wing328
7e1e9743da add https://kurio.co.id 2017-01-28 15:52:32 +08:00
Frode Danielsen
3236ade09d [Python] Improve model equality implementation (#4663)
* [Python] Improve model equality implementation

The model equality implementation template blindly tried accessing the
`__dict__` attribute of the variable to compare equality against. This
attribute does not exist for a lot of Python built-in types (`None`,
`str` etc.) and the equality check would simply crash.

This adds a simple guard to only continue with equality check if the
variable to compare is an instance of the model being compared against.

* Remove wrong auto-update of Python requirements
2017-01-28 00:42:53 +08:00
eblis
869374125f #4625 - Check if configOptions are set before trying to get the source folder, otherwise assume null/empty. (#4626)
(reworked pr)
2017-01-27 17:04:32 +08:00
wing328
a45579d35e fix issue with pom.xml (spring cloud, boot) 2017-01-27 00:39:25 +08:00
jfiala
8952815b5f [Spring] Add beanvalidation annotations (#4600)
* update generated sample for spring boot #4091

* add beanvalidation annotations to spring #4091

* add tests for spring #4091

* cleanup spring-cloud (client lib) #4091

* update client sample spring-cloud #4091

* replace tabs

* add beanvalidation annotations to spring #4091

* add tests for spring #4091

* cleanup spring-cloud (client lib) #4091

* update client sample spring-cloud #4091

* replace tabs

* update spring-cloud sample
2017-01-26 23:45:36 +08:00
Ainun Nazieb
05eea2436c [PHP] Validate parent's model first, if any (#4659)
* if model has parent, valid() & listInvalidProperties() will check the parents' first

* Run the ./bin/security/php-petstore.sh
2017-01-26 22:49:38 +08:00
wing328
c0fb30d491 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-01-26 17:14:23 +08:00
wing328
e0adb97850 Merge branch 'karnik-master' 2017-01-26 17:13:57 +08:00
wing328
658b650285 Merge branch 'master' of https://github.com/karnik/swagger-codegen into karnik-master 2017-01-26 16:30:51 +08:00
Amin Shah Gilani
347d477166 Fixes #4655 (#4656) 2017-01-26 12:03:16 +08:00
wing328
f19cb9c48e add kubernetes 2017-01-26 01:59:59 +08:00
jaz-ah
f592fdb23e [Swift] two fixes to latest param mapping code (#4587)
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name

* update samples

* one step closer

* closer implementation
2017-01-26 01:17:58 +08:00
wing328
2b030a768d add https://mailmojo.no/ 2017-01-26 00:41:36 +08:00
Tony Tam
ecaa8b1ede tests, fix for #4647. Proper escaping project name per npmjs (#4648) 2017-01-25 17:08:54 +08:00
Jonathan Leitschuh
78f38f1a1f Add support for read-only values in spring model (#4629) 2017-01-25 16:34:55 +08:00
wing328
6e2ee4be06 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-01-25 16:31:03 +08:00
wing328
9a79f13a6e new batch file to exec all JS petstore batch files 2017-01-25 16:30:33 +08:00
wing328
f584f94425 Merge branch 'davidteixeira-master' 2017-01-25 16:24:13 +08:00
wing328
3be04e8a18 update JS petstore client 2017-01-25 16:08:22 +08:00
wing328
d239a4c06e Merge branch 'master' of https://github.com/davidteixeira/swagger-codegen into davidteixeira-master 2017-01-25 13:35:48 +08:00
wing328
128872564c Merge branch 'master' of https://github.com/johnluan/swagger-codegen 2017-01-25 13:01:58 +08:00
Jonathan Leitschuh
efd0732a3e Fix the rm to remove the correct file in two spring generation bash scripts (#4630)
Related #4439
2017-01-25 12:54:07 +08:00
Tony Tam
3476e83a36 fix for allowable values, #4645 (#4646)
* fix for allowable values, #4645

* fixed string values

* rebuilt for #4645
2017-01-25 12:11:49 +08:00
Scott Williams
6e846e7463 Issue 4637 Fix for ci build (#4643) 2017-01-25 12:09:33 +08:00
David Teixeira
6d5da3f2ef Added single quotes -- fixes bug where generated client throws an 'Uncaught Reference Error'. 2017-01-24 17:24:35 +00:00
Johannes Fiala
3ffc4bfa9d backport support DecimalMin/DecimalMax #4091 2017-01-23 21:26:42 +01:00
Johannes Fiala
c0bea5ead9 move beanvalidation code to AbstractJavaJAXRSServerCodegen.java #4091 2017-01-23 21:18:01 +01:00
Pete Holiday
02dcd0eaf7 Update petstore samples; these appear to have been added by #4616 2017-01-23 15:14:18 -05:00
Pete Holiday
b5de3a446f Prefix apiPackage and modelPackage with invokerPackage.
Fix #4538: Ensure that generated API and Model classes are available to the
autoloader. Change generator behavior to match documentation for
invokerPackage, which reads "The main namespace to use for all classes."
2017-01-23 15:09:50 -05:00
wing328
014cfe746b add https://pagertree.com/ 2017-01-24 01:14:33 +08:00
wing328
5877ceb43e add https://neverfail.com/ 2017-01-23 22:50:15 +08:00
davidteixeira
0ae61a5d26 Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue #4608. (#4624) 2017-01-23 21:02:11 +08:00
David Teixeira
117e1ea53e Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue #4608. 2017-01-23 11:29:49 +00:00
wing328
9f8a1e27dd Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-01-23 19:00:31 +08:00
wing328
697366c82e Merge branch 'gigo1980-master' 2017-01-23 19:00:18 +08:00
wing328
9abaab6bcf update ts angular2 petstore samples 2017-01-23 18:40:59 +08:00
wing328
921328999c Merge branch 'master' of https://github.com/gigo1980/swagger-codegen into gigo1980-master 2017-01-23 18:38:39 +08:00
keysolutions
933cc1ce9a Enum constructFromObject should return value (#4613)
When constructing an enum through constructFromObject the original value provided by the API response should be returned rather than extracting the value from the enum name. This resolves an issue where the constructed value is undefined when the name and value are not equivalent.
2017-01-23 16:45:38 +08:00
wing328
e83646064f update js promise petstore sample 2017-01-23 16:00:23 +08:00
tharders
30315c8570 Fix Issue 4554 - handle 204 server response in javascript (#4604)
* issues 4554: Handle 204 response and handle deserialize exceptions

* issue-4554: generate javascript client updated template

Used petstore-with-fake-endpoints-models-for-testing.yaml

* use petstore-with-fake-endpoints-models-for-testing.yaml like sh script
2017-01-23 15:14:06 +08:00
wing328
8e71dfb512 Fix model prefix/suffix with incorrect camelization (#4621)
* fix camelized name with suffix/prefix in java client

* fix php model name with prefix, suffix

* fix indentation in ts abstrat generator

* replace tab with spaces in ts abstract generator
2017-01-23 01:29:11 +08:00
wing328
2e50a65a1c better handling of reserved words in models, operationId (#4620) 2017-01-22 17:41:35 +08:00
Tony Tam
7936cfc206 Merge pull request #4619 from swagger-api/issue-4618
Fix name mangling for JSON processing with QT5
2017-01-21 20:31:18 -08:00
wing328
5306b11b4a [java] Improve pom.xml to qualify for publishing to Maven central (#4616)
* [java] Attach Javadoc to artifact generation.

* [java] Attach source to artifact generation.

* [java] Add gpg signing to artifact publishing.

* [java] Add artifact URL to pom.xml .

* [java] Add artifact description to pom.xml .

* [java] Add artifact URL and description params to Jax RSS.

* [java] Add developer info to pom.xml .

* [java] Parameterise SCM info in generated pom.xml .

* [java] Move GPG signing to verify phase so that .asc files are uploaded during deploy phase.

* [java] Change GPG signing to be an optional via Maven profile. Can't assume all users will perform a release/deploy from an environment with correct GPG key/pass.

* update java petstore smaples

* camelize tag name, remove invalid file

* add back missing files for okhttp-gson

* fix docstring in java feign client

* fix docstring with various java api clients
2017-01-22 11:40:59 +08:00
Tony Tam
62caf7dac5 rebuilt samples 2017-01-21 16:33:14 -08:00
Tony Tam
728544cc03 use baseName instead of name to avoid sanitized name in json processing 2017-01-21 16:33:09 -08:00
wing328
4d19fb6b2f hide generation timestamp for perl (#4614) 2017-01-21 19:12:51 +08:00
Damien Pontifex
1f0ecb5180 Updating typescript-angular to export api classes (#4589)
* Updating typescript-angular to export api classes

* Fixing tsconfig for typescript-angular test case
2017-01-21 17:02:11 +08:00
wing328
22688f57c0 add embeddedTemplateDir to some generators (#4603) 2017-01-20 15:07:16 +08:00
eblis
3b3f2d2fd6 Options to allow unicode character in identifier names (#4508)
* Added option to allow unicode identifiers in class names, method names etc.
Added option to allow keeping of underscore characters in class names, methods names, etc.

Unicode identifiers are supported by some languages, like Java, but the codegen will remove all non ASCII letters by default. Users might want to separate different parts of names using extended punctuation connector characters, like "_, ‿, ⁀, ⁔, ・, ︳, ︴, ﹍, ﹎, ﹏, _, ・".
Underscores cannot be used to separate different parts of the name as they're removed by default by the codegen, the second option allows underscore characters if the user so desires.
Both options can be used separately if needed, for example one might allow extended punctuation connector characters, but still disallow underscore.

* Added new command line options to all required unit tests.

* Added KEEP_UNDERSCORES and ALLOW_UNICODE_IDENTIFIERS to Bash tests.

* When KEEP_UNDERSCORES is set don't camelize the names, keep the identifier case as is (you probably don't want camel case + snake case, just snake case when KEEP_UNDERSCORES is set).
Added unit tests to verify how the case is computed for various scenarios.

* Reworked pull request to only include changes related to supporting unicode characters in identifiers (removed references to keep underscores).

* These methods and classes can be static again.
2017-01-20 14:42:08 +08:00
John Luan
81e930a752 change html2 mustache to fix parameter name 2017-01-20 10:38:56 +11:00
wing328
029728d851 [maven-plugin] allow for ignore file override (#4597)
* [maven-plugin] allow for ignore file override

The .swagger-codegen-ignore file is beneficial for existing source
directories to provide pattern-based exclusion rules for existing source
to be ignored by swagger codegen. Until now, there's been no utility
other than skipOverwrite to modify the initial generation of code
(either via CLI or maven plugin).

This commit adds support for an ignoreFileOverride option to both the
CLI and the maven plugin.

Example CLI usage:

```
java -jar swagger-codegen.jar generate \
    -i swagger.json -l csharp \
    -o target --ignore-file-override /path/to/ignore-file
```

Example Maven Plugin configuration:

```
    <build>
        <plugins>
            <plugin>
                <groupId>io.swagger</groupId>
                <artifactId>swagger-codegen-maven-plugin</artifactId>
                <version>2.2.2-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <inputSpec>${project.basedir}/src/main/resources/swagger.yaml</inputSpec>
                            <language>csharp</language>
                            <invokerPackage>io.swagger</invokerPackage>
                            <modelPackage>io.swagger.models</modelPackage>
                            <apiPackage>io.swagger.apis</apiPackage>
                            <ignoreFileOverride>/Users/jim/projects/swagger-codegen/.sample-ignore</ignoreFileOverride>
                            <configOptions>
                            </configOptions>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
```

* [maven-plugin] update new javadocs

* fix bad merge due to missing }
2017-01-19 23:17:25 +08:00
wing328
59c189e3c9 Merge branch 'maik-kulbe-feature/php-proxy-support' 2017-01-19 21:44:30 +08:00
wing328
9a8ede4189 update php sample 2017-01-19 21:22:20 +08:00
Maik Kulbe
d4c96c97c1 Merge with Upstream 2017-01-19 13:53:06 +01:00
Maik Kulbe
e82f3c53b4 Added support for cURL proxy configuration to PHP client 2017-01-19 11:48:55 +01:00
Albert Morlan
ccb3385081 Set embedded templates directory when generating Javascript code (#4585) 2017-01-19 18:07:58 +08:00
Jonathan Leitschuh
36c3fa05e0 Allows for generation of spring controller code using the delegate pattern (#4439)
* Allows for generation of spring conroller code using the decorator pattern

* Change Decorator to Delegate in spring codegen
2017-01-19 17:58:39 +08:00
jfiala
6f4e82dc03 [Jaxrs-Resteasy] Add beanvalidation annotations (#4506)
* add beanvalidation to jaxrs-resteasy #4091

* replace tabs
2017-01-19 17:45:17 +08:00
wing328
3b6ae1971a Merge branch 'jfiala-jaxrs_jersey_beanval2' 2017-01-19 17:12:53 +08:00
wing328
157fcbc4aa fix invalid spec, update petstore samples (jaxrs, ruby) 2017-01-19 16:54:16 +08:00
wing328
5f1b11827a Merge branch 'master' into master 2017-01-19 16:03:15 +08:00
wing328
a8afaa8f77 remove /r from templates 2017-01-19 15:53:51 +08:00
wing328
ccecc2aac0 new file for jaxrs jersey1 2017-01-19 15:31:24 +08:00
wing328
1ae60b1f61 Merge branch 'jaxrs_jersey_beanval2' of https://github.com/jfiala/swagger-codegen into jfiala-jaxrs_jersey_beanval2 2017-01-19 15:30:54 +08:00
jfiala
ee7f9fc56c [Jaxrs] Add beanvalidation annotations and fix outer Enums (#4492)
* add beanvalidation to jaxrs and add support for outer Enums #4091

* cleanup Codegen #4091

* cleanup samples #4091

* cleanup tabs

* updated samples to petstore.yaml (before petstore.json)

* add support for DecimalMin/DecimalMax/Min/Max #4091

* add check for hideGenerationTimestamp #4091

* replace tabs

* correct line endings to lf
2017-01-19 15:13:11 +08:00
wing328
c7ecb3c445 update https://www.webever.de 2017-01-18 18:16:41 +08:00
wing328
5db75d885e add Webever GmbH 2017-01-18 18:01:03 +08:00
Jim Schubert
da6b57f3fc [aspnetcore] use default in model constructors, supports enums (#4573)
* [aspnetcore] Use default rather than null in ctor

See original issue #3608

This adds same model constructor logic to aspnetcore as what was added
to csharp generator by PR #4145.

This doesn't include NancyFX because model construction relies more on
object initialization in that generator.

* [aspnetcore] ctor defaults + enum support

This follows up to #4145, and modifies model constructors to use
default(x) instead of initializing to nulls. default(x) works in all
cases using intuitive default values it is intended to support.

Example:

  csharp> public enum Color { RED = -1, BLUE = 0, GREEN }
  csharp> var color = default(Color)
  csharp> color
  BLUE

In the above example, The default of BLUE=0 is expected. For nullable
enums, this would be null as a default.

The aspnetcore generated code is also updated to support enums and
nested enums to account for changed to the petstore.yaml used to
generate the sample.

* [aspnetcore] Regenerate sample
2017-01-18 16:43:12 +08:00
Sreenidhi Sreesha
da01b2e71a Add title field to CodegenProperty (#4590)
Earlier CodegenProperty did not have title field.
'title' information of the property was lost while converting from Property to CodegenProperty.
This change fixes it.
2017-01-18 15:27:56 +08:00
Dan Mikita
0a559f0dd2 Add support for modifier within the Jaxb XMLElement annotation (#4433)
* fixes #4432 Adding support for the  modifier within the Jaxb XMLElement annotation. Updated README with JaxbAnnotations configuration option.

* #4432 Running the Petstore files
2017-01-17 15:26:30 +08:00
wing328
a846a571b3 add tips about windows class path 2017-01-17 14:44:40 +08:00
Jim Schubert
4c7d1338dc [csharp] Client nuspec (#4576)
* [csharp] Client nuspec

* [csharp] remove carriage returns from nuspec
2017-01-17 11:59:31 +08:00
Damien Pontifex
55443daebc Extends obj using Object.assign (#4562) 2017-01-17 10:52:33 +08:00
Bartek Kryza
545ee0c338 Moved bash version detection to top and improved logic (#4578) 2017-01-17 10:36:12 +08:00
Brian Shamblen
713e6bba24 [html2] Add python and perl examples (#4575)
Fixes #4358
2017-01-17 10:35:55 +08:00
wing328
691d89adeb add link to zend-expressive 2017-01-16 22:13:31 +08:00
wing328
033a588c75 add zend expressive 2017-01-16 22:12:12 +08:00
wing328
3b3ded0290 fix bash test package name (#4566) 2017-01-16 19:09:25 +08:00
wing328
410f6d74c8 add Articus as php expressive creator 2017-01-16 16:16:14 +08:00
wing328
0ea506e970 Add http://htc-cs.com 2017-01-16 13:22:53 +08:00
Jim Schubert
d97b1da90c [csharp] Support internal access of generated code (#4560)
Allows users to specify 'nonPublicApi' additional property (and C#
client CLI switch) to reduce visibility of classes created by the
generator. This includes API and Models as well as supporting code like
ApiClient and other infrastructure.

The requirement is to support codegen generated code to be embedded
within other applications where the generated code is not intended to be
publicly consumable or publicy exposed. An example would be an SDK which
internally consumes an API via the generated code; we wouldn't want the
internal API implementation exposed as part of that SDK.

Reducing visibility of the classes effectively makes the entire
implementation internal, regardless of the public modifier on methods or
static members. To fully make all members internal it would require
explicit interface implementation, which is not ideal.

see #4401
2017-01-16 01:19:10 +08:00
Jim Schubert
23c5376ed6 [csharp] Fix interfacePrefix sensitivity + default (#4561)
After merging the fix with another C# change, noticed case sensitivity
issue for the true/false checks. Also noticed my original implementation
wasn't setting the default I- prefix as intended. This commit resolves
those three issues.
2017-01-16 01:12:03 +08:00
wing328
2d8715f42c Minor update to ze-ph batch script
- use petstore-with-fake-endpoints-models-for-testing.yaml
- output to samples\server\petstore\ze-ph
2017-01-16 01:10:35 +08:00
Articus
4001503e63 PHP server generator ze-ph (Zend Expressive + Path Handler) (#4559)
* Server generator ze-ph (Zend Expressive + Path Handler)

* Command line scripts for new ze-ph generator
2017-01-16 01:05:04 +08:00
Tomek Cejner
f0cddd21fd Swift3 Clener template of client methods (#4552)
* Swift3 template properly uploads files, making mustache template little cleaner

* [swift3] moved URL parameter encoder helper function to APIHelper.swift

* Swift3 - regenerated sample
2017-01-16 01:01:50 +08:00
Jim Schubert
663b471d1a [nancyfx/csharp] Customize interface prefix (#4557)
Per #4486, this allows user to specify the use of a standard or custom
prefix for interfaces. For C# based languages, this follows Microsoft's
Framework Design Guidelines and uses an I- prefix. However, to avoid
breaking changes with existing nancyfx generated code, the default is
unset.

The option supports true, false, or a custom prefix.
2017-01-15 23:35:43 +08:00
eamon316
d7e6a3da6a Add a useTags flag to allow tags to be used to generate interface / controller classnames (#4396) 2017-01-15 23:25:30 +08:00
Gene Chang
95987fc132 Added support for datetime query parameters in cpprest (#4556)
* Added support for datetime query parameters in cpprest

Signed-off-by: Gene Chang <gene.chang@anyconnect.com>

* Update petstore sample app for cpprest using bin/cpprest-petstore.sh

Signed-off-by: Gene Chang <gene.chang@anyconnect.com>
2017-01-14 00:07:06 +08:00
Richard Naeve
2e7e25801d Issue 4531 (#4539)
* ISSUE-4531
Arrays are now serialized according to the different collection formats. All api classes are also exported in a const array to make handling of large api libraries easier.

* Added petstore samples

* Fixed indentations and coding style
2017-01-13 23:41:54 +08:00
Joseph Moore
d40f7a41b6 Add triple-mustache to all instances of vendorExtensions.extraAnnotation. (#4553)
This covers the usages that weren't fixed in #3825

Triple mustache is required because annotations may contain chars like
"=" that would be mistakenly encoded.
2017-01-13 23:01:15 +08:00
wing328
39b76ece22 add space before C# in readme 2017-01-13 00:30:56 +08:00
eblis
af4319015e When reading mustache template files assume UTF-8 encoding, fixes #4544. (#4545) 2017-01-13 00:11:07 +08:00
wing328
9bb58d2040 add git tip 2017-01-12 23:36:43 +08:00
Bartek Kryza
0fb154e9a2 [Bash] Bash client script generator (#4541)
* Initial commit

* Remormatted petstore tests

* Added Bash codegen to main README.md

* Added bash to integration tests

* Fixed stdin detection in generated script

* Added back ruby module
2017-01-12 16:48:25 +08:00
Pete Holiday
2e4de0ca1e Remove unnecessary call to setHost() in the constructor (#4525)
* Remove unnecessary call to setHost() in the constructor

The default host will be automatically set on the client by the ApiClient constructor.

* Updated PHP API Classes corresponding to template updates in #4525.

* Additional changes generated by the petstore update unrelated to #4525, but seem to have not been included yet.

* Add test to prevent regressions of #4525
2017-01-12 16:17:17 +08:00
wing328
d7eeb069f2 update 2016 to 2017 2017-01-11 15:55:51 +08:00
J. Fiala
a6b0518bf0 replace tabs 2017-01-10 18:03:51 +01:00
Krisztian Lachata
c1f854f7da Overriden objectmapper wasn't used in deserialisation (Scala) issue #4532 (#4534)
* Overriden objectmapper wasn't used in deserialisation

Use previously provided apiInvoker instead of creating a instance at deserialision stage

* update scala sample
2017-01-11 00:27:48 +08:00
Yuta HIGUCHI
de5ea8a9d6 [JAX-RS/jersey2] Fix for incorrect JSON field name capitalization (#4458)
* Fix for all capital field name

* Cosmetic: remove trailing spaces

* Adding ./bin/jaxrs-petstore-server.sh output.
2017-01-10 23:37:25 +08:00
wing328
4d4af71446 [CI] Add scripts to detect carriage return and tab (#4526)
* add script to detect carriage return

* add check for generator as well

* add fail fast to travis config

* remove tab

* move scripts under bin/utils

* remove carriage return

* move scripts to bin/utils
2017-01-09 18:29:41 +08:00
Jeff Haynes
380bed15d3 Issue 4244 - Add x-discriminator-value (#4252)
* Fixes for issue 4226. Detects and warns about more than one inline object; sets discriminator on CodegenModel; Adds templates to other Java languages
Changes to be committed:
	modified:   modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
	modified:   modules/swagger-codegen/src/main/resources/Java/typeInfoAnnotation.mustache
	new file:   modules/swagger-codegen/src/main/resources/JavaInflector/typeInfoAnnotation.mustache
	new file:   modules/swagger-codegen/src/main/resources/JavaJaxRS/typeInfoAnnotation.mustache
	new file:   modules/swagger-codegen/src/main/resources/JavaSpring/typeInfoAnnotation.mustache

* Add vendor extension for x-discriminator-value
Changes to be committed:
	modified:   modules/swagger-codegen/src/main/resources/Java/typeInfoAnnotation.mustache
	modified:   modules/swagger-codegen/src/main/resources/JavaInflector/typeInfoAnnotation.mustache
	modified:   modules/swagger-codegen/src/main/resources/JavaJaxRS/typeInfoAnnotation.mustache
	modified:   modules/swagger-codegen/src/main/resources/JavaSpring/typeInfoAnnotation.mustache

* Add "visible = true" to @JsonTypeInfo jackson annotations for Java languages
Changes to be committed:
modified:   modules/swagger-codegen/src/main/resources/Java/typeInfoAnnotation.mustache
modified:   modules/swagger-codegen/src/main/resources/JavaInflector/typeInfoAnnotation.mustache
modified:   modules/swagger-codegen/src/main/resources/JavaJaxRS/typeInfoAnnotation.mustache
modified:   modules/swagger-codegen/src/main/resources/JavaSpring/typeInfoAnnotation.mustache
2017-01-09 18:28:27 +08:00
Alex Nolasco
26ead9b58f Issue 4416 (Assist escapeReservedWord with custom mappings) (#4480)
* Preliminary implementation for issue-4416

* Updated README.md with  reserved-words-mappings  parameter.
2017-01-09 18:22:25 +08:00
Sreenidhi Sreesha
81b5b78fc2 Enable support for vendor extensions in CodegenResponse. (#4517) 2017-01-08 17:58:07 +08:00
Tony Tam
ccf6f020d9 Merge pull request #4521 from swagger-api/issue-4478
updated version
2017-01-07 17:37:07 -08:00
Tony Tam
69b1e50a95 updated version 2017-01-07 17:08:04 -08:00
Tomek Cejner
1e8c7180c5 [swift3] allow POST with both body and query parameters (#4490)
* [swift3] allow POST with both body and query parameters

* Correctly support non-string and optional query parameters.
2017-01-07 22:40:07 +08:00
Kevin Locke
409e1a504c Fix Gson parsing of Joda DateTime without millis (#4473)
* Fix Gson parsing of Joda DateTime without millis

The DateTimeFormatter returned by ISODateTimeFormat.dateTime() only
parses dates with millisecond values, and throws
IllegalArgumentException when milliseconds are not present.  The
date-time construct from RFC 3339 Section 5.6 referenced by the
Swagger/OpenAPI spec allows fractional second values to be omitted.
This results in valid date-time values being rejected by the generated
code.

This commit fixes the problem by using .dateOptionalTimeParser() for
parsing, which correctly handles date-time values without fractional
seconds.  A previous version of this commit used .dateTimeParser(),
which accepted a time without a date and was considered too liberal.
Note that .dateTime() must still be used for printing, which is not
supported by .dateTimeParser().

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

* Fix akka-scala date-time parser with Joda

As in the previous commit, which fixed Java generators,
ISOISODateTimeFormat.dateOptionalTimeParser() should be used for
date-time parsing and ISOISODateTimeFormat.dateTime() for printing.
Apply the same change to akka-scala.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2017-01-07 21:56:14 +08:00
J. Fiala
6b17b92bb6 add check for isInteger (integer/decimal) 2017-01-06 16:46:59 +01:00
J. Fiala
24f486164a add test for options #4091 2017-01-06 16:18:14 +01:00
J. Fiala
5b532fd10e update language jaxrs (Jersey2) and samples 2017-01-06 15:16:39 +01:00
J. Fiala
dde24eb9c2 update jaxrs jersey1 templates and sample output #4091 2017-01-06 15:10:40 +01:00
JasonNorth
5686109cc9 Allow templates to use maxItems and minItems for Arrays (#4309)
Issue 3925
2017-01-06 19:57:28 +08:00
Frédéric Rodrigo
c0f1716fe7 [html2] Open the description field that contains the description and required switch, in place of only show the field type by default (#4489) 2017-01-06 19:40:06 +08:00
Kevin Locke
df0c54d043 Support the empty string as an enumeration value (#4450)
When a string enumeration has the empty string as one of its available
values, the generated code for many languages is invalid because the
empty string can not be used as an identifier.  As with numbers and
symbols, provide a mapping to an English name which can be used as a
replacement.  In this case, "empty" for the empty string/empty value.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2017-01-06 19:30:47 +08:00
Brian Voss
43ab14b200 Adding Curl connect timeout configuration to PHP generation templates (#4500) 2017-01-06 19:14:39 +08:00
Simon Morris
aa1dc0fdd2 Updated Nancy from 1.4.1 to 1.4.3 (#4482) 2017-01-06 01:09:32 +08:00
Brian Shamblen
b224474a43 Fixes #4481 (#4493) 2017-01-06 01:03:18 +08:00
Takuro Wada
6a080d3a0c add safe argument to quote method in python template to avoid unquoted parameter in path parameter (#4457)
Closes #4391
2017-01-06 00:55:55 +08:00
wing328
42a0491696 add https://www.fastly.com/ 2017-01-05 16:30:04 +08:00
Johannes Fiala
1a1d0aebc8 add beanvalidation to jersey1 and jersey2 #4091 2017-01-04 17:36:28 +01:00
Ashish Jain
3f66e27a92 Only updated README.md file (#4485)
Added reference to snapcx website, as we provide swagger 2.0 specs public APIs.
2017-01-04 22:47:14 +08:00
weiyang
6b0b7a1587 [dockerfile] Replace 'maven:3.3-jdk-7' with 'maven:3-jdk-7-alpine'
Signed-off-by: weiyang <weiyang.ones@gmail.com>
2017-01-04 15:06:08 +08:00
Jim Schubert
cb9a1b3b53 [csharp] Use default rather than null in ctor (#4145) 2017-01-03 18:31:26 +08:00
Jim Schubert
c94e18abd8 [codegen ignore] normalize path separator for Windows, add *.ext tests (#4476)
* [codegen ignore] Fix windows paths for ignore processing

* [codegen ignore] Add missing glob rule tests
2017-01-03 16:56:50 +08:00
Tony Tam
0252d1a534 Update to latest swagger-core, parser versions (#4472)
* updated to release versions

* fixed defaultValue objects to strings

* added top-level jackson version

* added missing dependency, removed from swagger-core
2017-01-03 16:41:16 +08:00
wing328
fb3d4e61bb roll back to latest working version of swagger paresr for codegen 2016-12-29 23:45:59 +08:00
Gayathri Sharma
4452fdbc02 Resteasy changes 2016-12-27 21:33:27 -06:00
mkarnik
45002ec1fd [JAX-RS RESTEasy][issue #4447] Updated RESTEasy petstore samples 2016-12-23 10:37:17 +01:00
mkarnik
ababec69dd [JAX-RS RESTEasy][issue #4447] Added swagger annotations to model and api templates 2016-12-22 22:18:39 +01:00
wing328
aed21bba73 better code format for nodejs server (#4411) 2016-12-23 02:05:10 +08:00
Jun Mukai
27f1b6ee98 Introduce NodeJS codegen for Google Cloud Functions. (#4406)
* Another approach: extending NodeJS server to support GCF.

This does not add a new language, but adding some client options
to support Google Cloud Functions (GCF).

* Add URLs for how to deploy the generated code.

Adds the client options help message and the README.md file.
2016-12-22 23:11:52 +08:00
Anton Vasin
41701a15b0 Fix typo. Creactor -> Creator (#4443) 2016-12-22 23:08:06 +08:00
Ezekiel Templin
e189388371 [Ruby] Add Rakefile and Gemfile (#4448)
* Add Rakefile, Gemfile, and update client generator

* Update sample
2016-12-22 21:37:12 +08:00
wing328
d52f5a3133 update swagger pasrer to 1.0.25-SNAPSHOT 2016-12-22 21:11:34 +08:00
Michael Fulton
d7afb22f1f Fix Integer stub value defaulting to String in nodejs-server if format not specified (#4436)
* check if property is a BaseIntegerProperty. This can occur when format is not specified in Swagger definition

* Change coding style to be more consistent
2016-12-21 15:08:14 +08:00
wing328
ba285759e1 Merge pull request #4438 from gregra81/patch-1
Added Autodesk as a swagger codegen user
2016-12-21 11:05:24 +08:00
Greg Rashkevitch
79fa53a4d8 Added Autodesk as a swagger codegen user 2016-12-20 20:22:43 +02:00
wing328
204c05442d [ObjC] minor code style enhancement to ObjC API client (#4437)
* minor code style enhancement to objc api client

* update petstore sample

* remove datatype from docstring (objc)
2016-12-20 19:13:03 +08:00
wing328
c4ccf49064 Merge branch 'd0x-Ignore_Javatypes_On_ModelPre_and_Suffixes' 2016-12-20 17:47:03 +08:00
wing328
4870cf4ab1 Merge branch 'Ignore_Javatypes_On_ModelPre_and_Suffixes' of https://github.com/d0x/swagger-codegen into d0x-Ignore_Javatypes_On_ModelPre_and_Suffixes 2016-12-20 17:46:52 +08:00
Vincent Giersch
7f980cd9dd fix(swift3): lowercase enum value before checking reserved words (#4357)
Signed-off-by: Vincent Giersch <vincent@giersch.fr>
2016-12-20 16:35:03 +08:00
Greg Rashkevitch
36b97c22af Fix warning docs return type (#4429)
* Objective C: Fix compilation warnings

If returnType is not provided, set the @return as void

* Run the `./bin/objc-petstore.sh`

* OBJECTIVE C SDK: Remove the return line for methods that return nothing all together

* obj-c sdk: Updated petstore sample
2016-12-20 16:10:47 +08:00
Johan Nystrom
ff70105484 Fix CSV collection parameter issues for scalatra server (#4426)
* Fix scalatra handling of CSV query parameters

* Ran petstore for scalatra server
2016-12-20 16:02:45 +08:00
wing328
4c398a4cba Merge pull request #4434 from chasetec/master
Update DefaultGenerator.java to call close()
2016-12-20 15:52:00 +08:00
wing328
43ff85db76 Merge pull request #4421 from wing328/fix_isfile_boolean
Fix `isPrimitiveType` for file property
2016-12-20 15:48:55 +08:00
Matthieu Chase Heimer
da1e07af21 Update DefaultGenerator.java to call close()
Need to call out.close() after IOUtils.copy(in, out); when writing supporting files.
2016-12-19 13:25:10 -06:00
wing328
7fd895b37d fix isPrimitiveType for file 2016-12-18 19:02:26 +08:00
wing328
8ccf9828e4 [Python] add hasConsumes/hasProduces to Python API template (#4419)
* add hasConsumes/hasProduces to python api template

* remove unused code in python

* fix isFile in the api doc (python)
2016-12-18 17:20:10 +08:00
Hamed Ramezanian Nik
7e67307bb4 Add AYLIEN company to the list (#4412) 2016-12-17 10:58:08 +08:00
wing328
537dcbe036 fix https://github.com/airbnb/javascript/ 2016-12-17 00:40:56 +08:00
wing328
6bf721f2e3 add parameter as reserved keyword (#4410) 2016-12-17 00:29:06 +08:00
wing328
41c49341f2 rename api documentation generator 2016-12-16 22:28:32 +08:00
wing328
2172cfef84 add warning message for null inner type (map/array) (#4408) 2016-12-16 19:41:54 +08:00
Hamed Ramezanian Nik
6af43dc720 [csharp] Escape special characters in the API doc (#4183)
Special characters like <> should be HTML escaped.
2016-12-16 19:07:00 +08:00
Nicholas DiPiazza
c6c8ffe4e0 Do not NPE when array properties items are not specified (#4063) 2016-12-16 19:04:13 +08:00
wing328
2bf3d051a9 update html2 sample 2016-12-16 18:14:55 +08:00
Brian Shamblen
bd81f3264d [html2] Fix import statements for most languages (#4243)
* [html2] Clean up namespace issues in code samples

* pull c# and php package namespace from --additional-properties arg

phpInvokerPackage arg now sets the PHP namespace and packageName sets
the CSharp namespace. invokerPackage still works for Java and Android
namespace.
2016-12-16 18:06:28 +08:00
Christoph Keller
6ade001663 CodegenResponse.isListContainer is false for array types. (#4400)
CodegenResponse's isListContainer property is always false for "array" types. Don't know where the check for "list" comes from but in CodegenOperation, there's a check for "list" and "array".
No mustache file makes use of isListContainer inside responses yet, so should not change any existing behavior.
2016-12-16 12:08:24 +08:00
Yohana Khoury
91af8066cd boolean values from JSON are treated as strings (#4229)
* Change the value types in additionalProperties and dynamicProperties to Object instead of String.
Change methods that insert values to these maps to use Object as the type of the value instead of String.

* Fix run-all-petstore run: use toString instead of casting
2016-12-16 11:56:38 +08:00
wing328
37570882f9 Merge pull request #4364 from zhenwenc/typescript-angular2-build-to-dist-folder
[typescript-angular2] build to dist folder
2016-12-15 23:35:51 +08:00
wing328
733cdb08f0 formatting for list of api clients/servers 2016-12-15 22:18:09 +08:00
wing328
218d106014 list all supported clients/frameworks/doc 2016-12-15 22:08:40 +08:00
wing328
ffbead3f9d Merge branch 'master' into typescript-angular2-build-to-dist-folder 2016-12-15 21:40:48 +08:00
wing328
c383cfb0f3 Merge pull request #4403 from wing328/cherrypick_4380
[Java] Add license to pom
2016-12-15 19:54:41 +08:00
wing328
131cbeb350 remove generation timestamp 2016-12-15 19:34:15 +08:00
wing328
870c745e6f minor fix to java client options test 2016-12-15 19:30:35 +08:00
Cliffano Subagio
3bc3a40073 [java] Add licenseName and licenseUrl options. 2016-12-15 19:30:35 +08:00
wing328
7fc8b24001 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-15 00:42:51 +08:00
wing328
c1f498f24f Merge branch 'SamuelBeliveau-angular2-standalone-enums-support' 2016-12-15 00:42:27 +08:00
wing328
f63d962258 update ts angular2 sample 2016-12-15 00:42:08 +08:00
wing328
7b7e5e25ee Merge branch 'angular2-standalone-enums-support' of https://github.com/SamuelBeliveau/swagger-codegen into SamuelBeliveau-angular2-standalone-enums-support 2016-12-15 00:09:34 +08:00
wing328
a143e9c10c add int/long check for @min/@max in java model (#4395) 2016-12-14 22:21:52 +08:00
lukoyanov
a13dee7167 [Java] Play! Framework 2.4 WS client support + retrofit2 (#4270)
* implemented core integration with play 2.4 ws

* added shell script to test on CI

* added shell script to composite file for all java generators

* added some comments
changed promise param to Response<T> to allow access to http status code and raw response if needed

* removed unnecessary whitespace changes

* added java7 compatibility, play ws deps to pom.xml

* added generated play24 client

* fixed imports
2016-12-14 17:32:49 +08:00
wing328
0df8bd2140 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-14 16:27:14 +08:00
wing328
43515ba79b Merge branch 'www2k-feature/file-response' 2016-12-14 16:26:50 +08:00
wing328
3957a1db1a Merge branch 'feature/file-response' of https://github.com/www2k/swagger-codegen into www2k-feature/file-response 2016-12-14 16:26:34 +08:00
Matan Rubin
5867728724 [JaxRS-CXF][bug #4330] support containers in return types (#4339)
* [JaxRS-CXF][bug #4330] support containers in return types

before this commit if a method returned a container (List or Map) of
THING (i.e. List<THING> or Map<String, THING>) the generated return type would
drop the container and only leave THING.
this commit fixes this issue such that the container type is properly
generated.

* regenerate jaxrs-cxf petstore sample
2016-12-14 13:58:56 +08:00
Bruno Santos
90cf1cab53 Date type should not include time (#4385)
Removed time section from Date type in example generators.

Issue #4359
2016-12-14 11:51:14 +08:00
Chris Putnam
4fa3595a41 [typescript-angular2] Fix syntax error (#4383)
* allow function so access token can be derived for each api call

* update tests

* update type for accessToken to be string or function that returns string

* fix syntax error
2016-12-14 11:50:02 +08:00
wing328
dbb66af73d [C#] Add auto-generated doc for c# 2.0 generator (#4354)
* add auto-generated doc for c# 2.0 generator

* update readme for c# 2.0

* update readme

* update namespace in the doc
2016-12-14 11:49:15 +08:00
Leonardo Pacheco
83adcf5c06 Update README.md (#4390)
Included "Prill Tecnologia" to the list of companies using swagger-codegen.
2016-12-14 11:23:51 +08:00
wing328
a291d3113a [Android] better code format for Android (volley) API client (#4384)
* better code format for android volley

* better code format for apiinvoker, add docstring

* use 2-space indentation for pair class

* use 2 spaces indentation for other classes in android
2016-12-14 00:40:21 +08:00
wing328
b33d4ec30c add enum_outer_doc.mustache for android (#4381) 2016-12-13 17:54:23 +08:00
Dan Wilson
e55664cdc9 Remove invalid code from mustache for arrays. (#4266)
Rewrite ParameterToString to handle other slice types other than just string.
2016-12-13 16:13:06 +08:00
wing328
5818f2c882 [C++] better code format for cpprest templates (#4379)
* replace tab with 4-space in cpprest templates

* remove trailing whitespaces from templates

* fix code indentation in cpprest templates

* remove empty block in cpprest templates
2016-12-13 16:09:56 +08:00
wing328
7719bc8f1d add https://github.com/bbatsov/clojure-style-guide 2016-12-13 16:09:15 +08:00
weiyang
beeb02a2dc [html] Add type anchor to body param block (#4368)
* [html] Add type anchor to 'bodyParam' block

Signed-off-by: weiyang <weiyang.ones@gmail.com>

* [html][samples] Add type anchor to 'bodyParam' block

Signed-off-by: weiyang <weiyang.ones@gmail.com>
2016-12-13 15:52:22 +08:00
Scott Richter
da9d64d053 Fix for issue #4370 - Cpprest does not set Content-Type header on POST requests. (#4374)
* Fixed cpprest generator to include Content-Type header in requests.

* Fixing indent to use spaces.
2016-12-13 15:01:47 +08:00
Dmitry Solovyov
15a84259aa added Upwork to users list (#4378) 2016-12-13 11:08:14 +08:00
Chris Putnam
0b5a6f25da [typescript-angular2] access token function (#4361)
* allow function so access token can be derived for each api call

* update tests

* update type for accessToken to be string or function that returns string
2016-12-13 00:39:09 +08:00
Paul Vollmer
77b92d7d11 Fix go client auth UserName var issue (#4245) 2016-12-13 00:19:20 +08:00
wing328
62aabfc6c1 Merge branch 'jfiala-beanval_2549' 2016-12-13 00:05:03 +08:00
wing328
d9de3b540d Merge branch 'beanval_2549' of https://github.com/jfiala/swagger-codegen into jfiala-beanval_2549 2016-12-13 00:01:44 +08:00
Dmitry Solovyov
bf50ea1366 fix the value for @Generated java annotation (#4366)
com.my.Generator.class.toString() returns "class com.my.Generator", and this value is then used in the javax.annotation.Generated annotation like that: @Generated(value = "class com.my.Generator").
Should use Generator.class.getName() instead, so we end up with @Generated(value = "com.my.Generator")
2016-12-12 18:38:39 +08:00
wing328
f4fb79822f Add CircleCI configuration in preparation for CI test migration (#4367)
* add codeship yml

* rename ci config

* show rvm version

* use ruby-2.1.0

* check ruby version

* use rvm default

* fix host name

* set node version

* test mvn clean install

* use -q for mvn

* set memory limit

* add export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"

* run test only

* update MaxPermSize to 256mb

* run mvn verify

* remove -q

* add comment

* add more comment

* restore ruby model order
2016-12-12 17:42:08 +08:00
wing328
562ff1a4e1 Minor fix to issue with Appveyor (#4365)
* show current folder in appveyor ci

* remove cache

* comment out folder delete
2016-12-12 17:13:20 +08:00
wing328
c2a4c558c8 add delete cmd for appveyor 2016-12-12 15:44:15 +08:00
wing328
516c21cd62 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-12 15:42:14 +08:00
Frederick Cai
8e200970d4 [typescript-angular2] build to dist folder 2016-12-11 23:39:18 +13:00
wing328
2e6eb43c26 add SRC 2016-12-11 14:26:58 +08:00
Cliffano Subagio
78e2435f42 Add Shine Solutions to list of companies using Swagger Codegen (#4363) 2016-12-11 14:25:33 +08:00
wing328
130161fc43 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-10 01:02:22 +08:00
Sreenidhi Sreesha
c83c813865 Refactor Boolean properties to boolean. (#4326)
There is no good reason to use Boolean instead of boolean.
Using Boolean will lead to handling "null" state which is confusing.

This change removes changes the type of Boolean properties to boolean.
2016-12-10 00:37:50 +08:00
wing328
56eda63c70 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-09 23:52:53 +08:00
wing328
6e578f437f add keyword (sdk generation) 2016-12-09 23:21:45 +08:00
wing328
b68e4b05d9 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-09 17:43:56 +08:00
Thomas Hoffmann
7a97c3c375 Still respect super.equals even for models without own vars (#4259) 2016-12-09 17:27:55 +08:00
Vlad Frolov
4d2a13018b [Python] Make the code look Pythonic (#4352) 2016-12-09 17:26:23 +08:00
wing328
2e80d2fb40 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-09 15:56:06 +08:00
Jens Oberender
c3571b28a5 Some code cleanings of problems reported by SonarQube. (#4324)
* Some code cleanings of problems reported by SonarQube.

* Updated changes to the petshop sample.
2016-12-09 15:55:33 +08:00
wing328
73bf589ad0 add swagger codegen evangelist 2016-12-09 15:18:55 +08:00
wing328
ceb9cb79cd Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-12-09 00:34:19 +08:00
wing328
a0f2b235f1 [C#] fix build.sh for PropertyChanged feature in C# API client (#4349)
* fix build.sh for PropertyChange in C#

* add new csharp files

* manual fix to enum ref in c# client
2016-12-09 00:03:38 +08:00
wing328
9051848ffa minor fix to petstore test spec 2016-12-08 23:24:20 +08:00
wing328
af2db27a83 remove trailing space in ts fetech api, add npm test to ci (#4348) 2016-12-08 18:09:20 +08:00
Josh Williams
535b233ff7 Fix for #4344 - update compile.mustache with new dependencies (#4345)
* Fix for #4344 - update compile.mustache with new dependencies

* Fix compile.mustache to use generatePropertyChanged flag for DLLs
2016-12-08 16:14:25 +08:00
Christopher Chiche
a3d3082105 [Typescript/Fetch] Fix tslint issues in generated code (#4313)
* [Typescript/Fetch] Fix tslint issues in generated code

* Add security generated files.

* Use tslint version that doesn't require typescript 2

* Run build scripts
2016-12-08 16:01:50 +08:00
wing328
a0c4b58b53 add guid mapping for c# 2.0 (#4347) 2016-12-08 15:59:06 +08:00
wing328
939a8052f3 [Java] Uncomment @Max @Min syntax in bean validation files (#4340)
* uncomment max min syntax in bean validation files (java)

* remove eol at the end of the file
2016-12-08 15:22:55 +08:00
Sergey Kondratov
a2c2a77a93 Added Saritasa to list of Companies (#4343) 2016-12-08 10:22:01 +08:00
wing328
56d5b54599 add tests for swift3 client in travis objc/swift config 2016-12-07 23:23:40 +08:00
wing328
162352cb4b Fix maximum, minimum for Integer (#4335)
* fix int/long max, min value (removing decimal)

* fix integer min/max in parameter
2016-12-07 19:29:36 +08:00
wing328
f781f1df5b comment out xctool installation 2016-12-07 18:39:45 +08:00
Alvin
b7984e55a7 [Swift3][bug#4318] Bug when handling java date (#4332)
* fix bug #4318

* swift3 samples update
2016-12-07 17:58:21 +08:00
wing328
8153f0e89b Fix test spec issue (#4334)
* fix issue with swagger spec (number => integer)

* remove space from spec
2016-12-07 16:46:41 +08:00
Jim Schubert
8e1eeaa737 [csharp] Remove generatePropertyChanged when explicitly false (#4280) 2016-12-07 01:04:13 +08:00
Sebastian Haas
648f8df235 Fix for missing headers (#4328)
* Fix for  #4322

Signed-off-by: Sebastian Haas <sebastian@haas.tech>

* Run typescript-angular2-petstore.sh

Signed-off-by: Sebastian Haas <sebastian@haas.tech>

* Run typescript-angular2-petstore.sh

Signed-off-by: Sebastian Haas <sebastian@haas.tech>
2016-12-06 23:59:59 +08:00
Tadhg Pearson
79a71fd697 Update docs for Java code generation (#4303)
* Updated documentation to support Java code generation

* Tabs to spaces in example pom
2016-12-05 17:34:37 +08:00
Alec Henninger
2b240a4eb9 Use JavaScript codegen in JavaScript test (instead of Java) (#4316) 2016-12-05 10:56:03 +08:00
Samuel Beliveau
964a9a9696 Support for standalone enums in Typescript-Angular2
Improved typescript primitive detection for tagging type with models namespace
2016-12-02 10:24:32 -05:00
wing328
18420dd7f9 add serialVersionUID to java model (#4311) 2016-12-02 17:59:35 +08:00
wing328
31d31b9466 [Ruby] use hasConsumes, hasProduces in ruby client (#4310)
* use hasConsumes, hasProduces in ruby client

* add new ruby files
2016-12-02 17:22:46 +08:00
wing328
fdb6d3020c Merge pull request #4305 from wing328/android_object_reserved_word
[Android] add Object as reserved keyword in Android generator
2016-12-01 19:29:43 +08:00
wing328
87cb779fd4 [Typscript][Angular2] Remove tab in TS Angular2 template (#4294)
* remove tab in ts angular2 template

* update petstore sample after basing on master
2016-12-01 19:09:22 +08:00
wing328
564e061da6 add Object as reserved keyword in Android 2016-12-01 17:34:38 +08:00
Sreenidhi Sreesha
af0d217c38 Fix basePath set to null when generating API files. (#4304) 2016-12-01 15:46:44 +08:00
jaz-ah
0a97b9c568 make sure to camelize properly before checking for reserved words (#4302) 2016-12-01 11:49:56 +08:00
wing328
fbe4feedd4 Merge pull request #4299 from alanrenouf/patch-1
Added VMware to list of Companies
2016-12-01 09:46:10 +08:00
Alan Renouf
12c75a9225 Added VMware to list of Companies
Added VMware to list of Companies using Swagger Codegen
2016-11-30 11:26:47 -08:00
wing328
9bd685dfe4 add davidkiss as template creator 2016-11-30 23:31:21 +08:00
wing328
c6aea46fa0 fix import in sample code (dart) (#4292) 2016-11-30 18:30:30 +08:00
wing328
1658111345 add swagger codegen evangelist program 2016-11-30 17:43:58 +08:00
wing328
a603ccb595 [Dart] add auto-generated documentation (#4291)
* new files for dart client

* update doc for dart

* update api and model doc for dart

* update dart petstore sample

* update dart doc

* update dart petstore sample

* update dart petstore sample

* update dart client installation instruction
2016-11-30 17:41:55 +08:00
Christopher Chiche
b733334eee [Typescript/fetch][Issue4284] Handle query parameters containing colons (#4287)
Put query parameters between quotes and access object keys using square
brackets to make sure special characters are handled in parameter
names.
Closes #4284
2016-11-30 15:22:38 +08:00
wing328
1925928efa Merge pull request #4038 from alechill/4025-typescript-fecth-request-options
[TYPESCRIPT] Support passing custom RequestInit options in typescript-fetch client…
2016-11-29 22:32:03 +08:00
wing328
32daf055f9 Merge pull request #4286 from kpradeepkumarreddy/patch-2
added my company name to the list of companies.
2016-11-29 22:07:30 +08:00
K Pradeep Kumar Reddy
67e0c92720 added my company name to the list of companies.
added my company name to the list of companies.  My company name is LXL Tech. It is a startup company working on mobile apps
2016-11-29 16:13:29 +05:30
wing328
7c5b70321c Merge pull request #4283 from ChrisJamesC/cc-readme
Fix typo in the README
2016-11-29 18:08:51 +08:00
ChrisJamesC
d2e08835d0 Fix typo in the README 2016-11-29 10:12:23 +01:00
wing328
ae0851741a Merge pull request #4277 from ChrisJamesC/cc-fix-typo
Fix typos in CONTRIBUTING.md
2016-11-29 15:38:30 +08:00
wing328
5b4f81f13a Merge pull request #4276 from ChrisJamesC/cc-fix-lint
Typescript-fetch - fix linting issues
2016-11-29 08:52:20 +08:00
ChrisJamesC
6472baa44e Fix typos in CONTRIBUTING.md 2016-11-28 16:57:10 +01:00
ChrisJamesC
e7397d208e Fix linting issues
Add missing semicolons and remove trailing space in generated code.
2016-11-28 16:48:30 +01:00
wing328
5b90276dae Merge pull request #4202 from gierschv/fix-swift3-inheritance
fix(swift3): multi-level inheritance support
2016-11-28 22:21:32 +08:00
wing328
a61f98afa7 add travis test file for objc, swift (#4268) 2016-11-28 10:26:10 +08:00
wing328
8cd881f6a8 disable appveyor cache (which seems broken) (#4260) 2016-11-25 23:26:56 +08:00
wing328
97525b9ec6 add http://leica-geosystems.com 2016-11-25 23:14:43 +08:00
Robert Biehl
1ea9865a44 [PHP] Fix discriminator handling (#4246)
* [PHP] Fix discriminator handling

* [PHP] Fix discriminator handling (Update examples)
2016-11-25 16:12:41 +08:00
Daniel
c15743bfe6 Issue4254 (#4255)
* Issue 4254 - Added mechanism for cache bursting

* Issue 4254 - Updated petstore samples
2016-11-25 00:14:59 +08:00
wing328
a7ecaa27df Merge pull request #4249 from cbornet/flask_package
[Flask] Add packaging support
2016-11-24 19:43:34 +08:00
cbornet
bcc7e69fcc [Flask] Add packaging support 2016-11-23 18:40:37 +01:00
wing328
5f372ef15e Merge pull request #4219 from jordanyaker/master
fix(javascript): add check to see if the parsed response is really empty.
2016-11-23 17:23:52 +08:00
wing328
44ca30df63 Merge pull request #4215 from cbornet/flask_param_name
[Flask] fix parameter naming
2016-11-23 15:42:42 +08:00
Sreenidhi Sreesha
2f80568658 Refactor code to make it more readable. (#4224) 2016-11-23 15:13:15 +08:00
Nick Maynard
4c05d5f098 Allow Java source formatting mvn formatter:format (#4214)
Uses Eclipse formatting tools with a configuration matching Google's style guide (plus our customisations).
2016-11-23 15:07:25 +08:00
plankswert
ba194ba361 Added support for string responses (#4057)
* Added support for string responses

When a method/URL/response is defined to return string:
- If no content types are define, default to 'text/plain' instead of
  'application/json'
- Add response handler, that returns the reponse string as-is if response
  content-type is 'text/plain'

* Removed use of unused tag vendor tag

- The tag was vendorExtensions.x-codegen-response.isPrimitiveType
2016-11-23 14:31:31 +08:00
wing328
932dc5fba5 add [Riffyn](https://riffyn.com) 2016-11-23 01:14:52 +08:00
menchauser
6ebc2fc051 Fix support for 'class' properties in Java codegen (#4237)
* Fix support for 'class' properties in Java codegen

Currently Java codegen works successfully for property named 'class' but
fails on '_class', '__class', etc, because of 'Object.getClass()'
overloading.

This fix is intended to avoid all Object method overloading cases.

* Regenerated samples for Java petstore-security-test
2016-11-23 00:18:40 +08:00
wing328
4e2c037e21 [Java] fix Java (Jersey1.x) test case (#4239)
* fix java jersey 1 test case

* fix test for java jersey2.x api client
2016-11-23 00:16:28 +08:00
wing328
58b66a0b0a python code style enhancement (#4238) 2016-11-22 23:01:41 +08:00
wing328
fbc0315628 add Balance Internet 2016-11-22 10:44:32 +08:00
wing328
474dae08cf update NodeJS readme to remove oudated doc (#4232) 2016-11-22 10:42:15 +08:00
wing328
1104ce8587 add docker image for swagger-codegen-cli 2016-11-22 10:02:29 +08:00
Ewan Mellor
9dc809bdc7 Add two override points inside AlamofireRequestBuilder in the Swift 3 template. (#4170)
* Add two override points inside AlamofireRequestBuilder in the Swift 3 template.

These allow the caller to control the request configuration (e.g.
to override the cache policy) and to control the Content-Type that is
given to an uploaded form part.

* Regenerate with ./bin/swift3-petstore-all.sh to match recent changes.

This includes a few minor changes that weren't made in this branch, so this
apparently wasn't run on master after some other recent changes.
2016-11-22 00:19:17 +08:00
Martin McWhorter
515e723fae Allow TypeScript noImplicitAny: true (#4205)
* Allow TypeScript noImplicitAny: true

* Update typescript-angular2 examples
2016-11-21 19:39:07 +08:00
szakrewsky
76965594b9 Issue #2449 SubClass annotations are missing from the base class (#4085)
* petstore up to latest

* Issue #2449 SubClass annotations are missing from the base class

* include child in all its super types
2016-11-21 17:03:26 +08:00
wing328
1968bead43 Merge pull request #4221 from wing328/swift_generator
[Swift] add ErrorResponse as reserved word in Swift generators
2016-11-21 01:00:17 +08:00
wing328
6ad38874c5 [ObjC] version update for ISO8601 (#4220)
* remove php apache license

* update iso8601 version for objc client
2016-11-21 00:43:41 +08:00
wing328
e7e99eb69f add ErrorResponse as reserved word in Swift generators 2016-11-21 00:38:01 +08:00
cbornet
9322c8fb0e [Flask] fix parameter naming 2016-11-20 11:21:09 +01:00
Jordan Yaker
5a2ec03549 fix(javascript): added check to see if the parsed response is really empty. 2016-11-19 15:06:36 -05:00
jfiala
e4f27bc7a7 make test invocations compileable #2549 2016-11-19 11:55:22 +01:00
jfiala
89ee2b1c91 fix JDK 1.7 issue with generics by casting to Set #2549 2016-11-19 11:41:59 +01:00
wing328
4ae3e57932 Merge branch 'beanval_2549' of https://github.com/jfiala/swagger-codegen into jfiala-beanval_2549 2016-11-19 16:39:31 +08:00
Christophe Bornet
df15799839 [Flask] Add generated tests (#4209) 2016-11-19 16:31:31 +08:00
jfiala
b02d505ad9 Refine CXF Add Spring Annotation-Config + Jboss flag for CXF/Resteasy + fix OuterEnum (#4164)
* add json annotations

* add cli flag to check for jaxb annotations

* add CLI-flag for switching Spring-XML or annotation config #4088

* add cli flag for generating jboss depl. descriptor #4088

* add JbossFeature CLI flag to Resteasy #4088

* update/add tests #4088

* cleanup tabs #4088

* improve api formatting #4088

* refine formatting #4088

* refine formatting again #4088

* add separate CLI-flags for controlling junit test features #4088

* add json annotations

* add cli flag to check for jaxb annotations

* add CLI-flag for switching Spring-XML or annotation config #4088

* add cli flag for generating jboss depl. descriptor #4088

* add JbossFeature CLI flag to Resteasy #4088

* update/add tests #4088

* cleanup tabs #4088

* improve api formatting #4088

* refine formatting #4088

* refine formatting again #4088

* add separate CLI-flags for controlling junit test features #4088

* add check for void methods + assertNotNull(response) #4088

* add spaces for @Produces #4088

* allow build with no web.xml config #4088

* comment invocations of tests #4088

* update petstore sample jaxrs-cxf server with gen/java first #4088

* re-generate jaxrs-cxf with src/gen/java #4088

* add client jaxrs-cxf #4088

* add switch to load SwaggerUI automatically #4088

* update to CXF 3.1.8 including supportSwaggerUi flag #4088

* update to cxf 3.1.8 and swagger-core 1.5.10 #4088

* update generated petstore for jaxrs-cxf #4088

* change Spring Boot urls to root #4088

* fix spring xml config #4088

* fix external enum usage for jaxrs-cxf #4160

* cleanup jaxrs-annotations in impl class

* fix handling of multiparts #4088

* fix @Min/@Max comments in beanValidationQueryParams #4088

* add swagger-codegen-ignore file+add src/test/resources #4088

* add cli-flag for produces/consumes json in api #4088

* add test case for outerEnum #4160
2016-11-19 16:09:13 +08:00
Chester Husk III
95ac238026 [Typescript] Add Error to the list of reserved words that must be escaped (#4203)
* Add Error to the list of reserved words that must be escaped for Class-generation

This fixes a part of #2456.

* add in special casing for the model names to not clobber existing language type names

* address formatting issues to be in line with language convention
2016-11-19 15:51:14 +08:00
Chester Husk III
7a7eb113b3 address unused parameters and possible-nullity warnings (#4210)
* address unused parameters and possible-nullity warnings that newer versions of typescript give for this file

* update example generated clients using the new nullability code
2016-11-19 15:50:22 +08:00
www2k
ed1b6075e9 Add file response support for typescript-node 2016-11-19 07:49:48 +09:00
www2k
e14be8bab9 Support file response schema 2016-11-19 07:49:48 +09:00
www2k
0a5b0bb8ce Add test for file response schema 2016-11-19 07:49:48 +09:00
wing328
9c6fbad73d add Flat (https://flat.io) 2016-11-19 00:03:57 +08:00
RaphC
a260636a48 #3908 make a copy of vendorExtensions map instead of copying the reference (#4093)
* #3908 make a copy of vendorExtensions map instead of copying the
reference

* using 4-space instead of tab.

* make a copy of vendorExtensions map instead of copying the reference
2016-11-18 16:52:42 +08:00
wing328
cde24f1113 Merge pull request #4189 from cbornet/spring_cloud_operations
[Spring] Use tag operation grouping for spring-cloud
2016-11-18 16:51:36 +08:00
wing328
da136135af add http://www.intenthq.com 2016-11-18 16:46:54 +08:00
wing328
359e52b173 Merge pull request #4188 from cbornet/flask_operations
[Flask] Use x-swagger-router-controller in for operation routing
2016-11-18 14:23:45 +08:00
Vincent Giersch
9e08b637ec fix(swift3): rename reserved enum values (#4201)
Example:
- case public = "public"
+ case _public = "public"

Signed-off-by: Vincent Giersch <vincent@giersch.fr>
2016-11-18 14:21:17 +08:00
James Hitchcock
5baa715603 Remove opening PHP tag from PHP code sample (#4212) 2016-11-18 14:16:35 +08:00
Nick Maynard
b7e9603e63 jaxrs-cxf-cdi :: Add a basic JAX-RS Application and CDI fixes (#4196)
* Add a basic JAX-RS Application and CDI fixes

* jaxrs-cxf-cdi :: Fix samples generation template dir

* jaxrs-cxf-cdi :: Regenerate samples

* jaxrs-cxf-cdi :: Clean up some checkstyle warnings
2016-11-18 14:00:53 +08:00
wing328
3d476debaf Merge pull request #4178 from cbornet/flask
[Flask] Add models support to Flask Connexion codegen
2016-11-18 13:56:59 +08:00
Sanjeewa Malalgoda
61f6c94351 update readme description (#4207) 2016-11-18 13:43:11 +08:00
Herman Schistad
2dafdffce5 Allow multiple requests in parallel in Python client (#4187)
* Allow multiple requests in parallel in Python client

If you tried to do two parallel calls to the same API object in the
Python client you would get an error from urllib3 connection pool:

  Connection pool is full, discarding connection: ***

Because the default maxsize=1:
f9409436f8/urllib3/connectionpool.py (L162)

By defaulting to a higher maxsize we mitigate for the common use case
where a user is running a couple of requests in parallel.

Ideally, in the future, this should be a configuration paramater
together with the pool size.

* Add sample code after changing maxsize
2016-11-18 13:38:32 +08:00
cbornet
1e6cab8a03 [Flask] Use x-swagger-router-controller in swagger.yaml for operation routing
Fix #4106
2016-11-17 19:21:05 +01:00
cbornet
e5daa6855c add models support to flask 2016-11-17 18:30:59 +01:00
wing328
d548a8078c add taskdata 2016-11-17 21:49:57 +08:00
wing328
d6e8fb0194 Merge pull request #4204 from bshamblen/master
[html2] Add missing enums to parameters
2016-11-17 16:23:33 +08:00
Brian Shamblen
97722437c4 Add missing enums to properties 2016-11-16 15:42:27 -08:00
Vincent Giersch
bd06a629c6 fix(swift3): multi-level inheritance support
Supports multi-level inheritance to avoid having the variables from
the parents of level > 2

This commit also fixes the comparison of the variables when skipping
the variables in the children classes by only comparing their names
(in some cases some parent variables were present in children classes)

Signed-off-by: Vincent Giersch <vincent@giersch.fr>
2016-11-16 19:01:22 +01:00
wing328
88227e08e3 Remove Apache license from server stub generators (#4200)
* remove php apache license

* remove license in sample code, update nodejs to use unlicnese

* remove license from jaxrs generator

* remove license from server generator

* update pom.xml for jaxrs resteasy joda server
2016-11-17 00:37:21 +08:00
wing328
63c3133e88 Remove Apache license from document generator (#4199)
* remove php apache license

* remove license from doc generator
2016-11-16 23:45:55 +08:00
wing328
90512e6326 Remove Apache license from API client generators (#4197)
* remove php apache license

* remove apache license from C#

* remove apache license in objc code

* remove license from swift 3 code

* remove apache license from perl code

* remove license from scala code

* remove license from ts, go, android, cpp, scala

* remove license from java api client

* restore clojure petstore files

* remove license from travis file

* clean up apache-related terms in php, ruby, python mustache tempaltes

* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
wing328
39ffc0ae62 [Ruby] remove apache2 license from ruby api client (#4149)
* remove apache2 license from ruby api client

* remove license from gem spec
2016-11-16 16:38:15 +08:00
wing328
113843bb88 Merge pull request #4191 from cbornet/fix_import_order
Fix order of imports in operations
2016-11-16 11:02:40 +08:00
wing328
2425a35f45 Merge pull request #4193 from mbohlool/plugin-fix
Add gitUseID and gitRepoID flags to maven plugin
2016-11-16 10:46:17 +08:00
mbohlool
355e694fb2 Add gitUseID and gitRepoID flags to maven plugin 2016-11-15 17:35:13 -08:00
cbornet
c386da6ded fix order of imports in operations 2016-11-15 21:45:15 +01:00
cbornet
4a196a9187 [Spring] Use tag operation grouping for spring-cloud
Instead of basepath based grouping that is used by Spring boot/MVC
2016-11-15 18:46:48 +01:00
wing328
97924c78a0 update objc samples 2016-11-15 16:16:20 +08:00
wing328
07bec36deb [ObjC] AFNetworking pinnedCertificates API usage fix (#4143)
* Fixed afnetworking API usage: pinnedCertificates now declared as NSSet, not as NSArray

* Petstore updated
2016-11-15 16:10:19 +08:00
jfiala
a7252e7560 update check for performBeanValidation #2549 2016-11-12 23:31:49 +01:00
jfiala
9d8c419698 update generated petstore for ok-http-gson #2549 2016-11-12 23:20:03 +01:00
jfiala
1d305b1faf add tests for java client performBeanValidation #2549 2016-11-12 23:09:57 +01:00
jfiala
a9069e8360 add perform beanvalidation flag to ok-http-gson #2549 2016-11-12 22:47:31 +01:00
Tony Tam
cafcf51e3f Merge pull request #4175 from bshamblen/master
Fixes for html2 template
2016-11-11 14:11:15 -08:00
Brian Shamblen
9e309bbfeb Update pet store example 2016-11-11 12:27:32 -08:00
Brian Shamblen
1e85ffaf04 Fixes #4097 2016-11-11 12:25:32 -08:00
Brian Shamblen
265d635eee Add markdown support to descriptions 2016-11-11 11:41:08 -08:00
mbohlool
876669cd31 [Python] Add support for request timeout (#4173)
* [Python] Add support for request timeout

* Update python petstore api

* [Python] Add test for request timeout
2016-11-11 23:48:53 +08:00
Chakrit Wichian
f6a02f4339 [ruby] Make sure super is always called for ApiError class. (#4168)
* [ruby] Make sure super is always called for ApiError class.

* Add test for Petstore::ApiError
2016-11-11 17:39:45 +08:00
wing328
98a26c3922 Merge pull request #4172 from mbohlool/preload_content
testcase for _preload_content flag
2016-11-11 11:47:26 +08:00
mbohlool
cfd8add825 Add test for _preload_content flag 2016-11-10 14:24:06 -08:00
mbohlool
ba9e449fd4 Support _preload_content flag in python client (#4166)
* Modify python client templates to support _preload_content flag

* Update python petstore
2016-11-10 23:43:32 +08:00
wing328
5899554d9d Merge pull request #4159 from ircecho/origin/iso8061date
fix[dart]: send ISO8601 dates
2016-11-10 00:24:05 +08:00
wing328
68e1afdc9e Merge pull request #4158 from wing328/java_null_response_type
[Java][JAX-RS] add vendor extension to handle void response in jaxrs-cxf
2016-11-08 21:42:45 +08:00
Anton WIMMER
6d6cfb4984 fix[dart]: send ISO8601 dates 2016-11-08 14:29:27 +01:00
wing328
cce410c463 add vendor extension to handle void response in jaxrs-cxf 2016-11-08 21:06:38 +08:00
Roman Truba
73276fd63a Merge branch 'master' into afnetworking-pinned-certificates-fix 2016-11-08 15:48:46 +03:00
wing328
d5ced7df38 Merge pull request #4155 from wing328/produce_consume_exception
Better handling of */*
2016-11-08 16:43:20 +08:00
wing328
935bdfe628 better handling of */* 2016-11-08 16:17:51 +08:00
wing328
77d3c0cb20 Merge pull request #4125 from ircecho/multiword
DART: multi-word class names work properly now, fixes #4117
2016-11-08 15:48:29 +08:00
wing328
c54797bcef Merge pull request #4152 from mbohlool/fix_python_client
Select application/json content-type in python generated client, if */* is in the list of content-types
2016-11-08 11:11:06 +08:00
mbohlool
37460ee833 Select application/json content-type in python generated client, if */* is in the list of content-types 2016-11-07 11:54:01 -08:00
wing328
7f31763273 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-11-07 23:55:13 +08:00
wing328
46c4eb3869 update mxf4j sample 2016-11-07 23:54:47 +08:00
wing328
7dd774ffa3 Merge branch 'msf4j' of https://github.com/sanjeewa-malalgoda/swagger-codegen 2016-11-07 23:51:45 +08:00
Roman Truba
a1cd01916e [ObjC] Fix deprecated JSONModel API usage (#4133)
* Fixed deprecated usage -[JSONKeyMapper initWithDictionary:]

* Petstore regenerated

* Change minimal required version of JSONModel
2016-11-07 23:47:09 +08:00
wing328
e78ce6fb1e Merge pull request #4059 from markus-wa/issue-4045
[JAXRS-CXF] Issue 4045 - Fixed enum marshalling & fromValue()
2016-11-07 23:42:29 +08:00
wing328
7ba60afa71 Merge pull request #4131 from wienczny/patch-1
Update pojo.mustache to repair broken merge
2016-11-07 16:14:08 +08:00
wing328
7db5391a3e Merge pull request #4134 from wienczny/patch-2
Default sourceFolder to src/main/java
2016-11-07 16:13:17 +08:00
Jim Schubert
ad1765475d [aspnet5] Fix broken template directory for deprecated lang (#4142) 2016-11-07 16:12:59 +08:00
Roman Truba
0c7ab63912 Petstore updated 2016-11-05 22:11:09 +03:00
Roman Truba
b355cc7381 Fixed afnetworking API usage: pinnedCertificates now declared as NSSet, not as NSArray 2016-11-05 22:10:52 +03:00
keysolutions
ab9ea5b2c3 Add constructFromObject to Javascript enum generation. (#4120)
* Add constructFromObject to Javascript enum generation.

Generated code calls constructFromObject on enum types, but enum did not define the necessary function. Returns the value of the enum.

* Update Petstore JS API client
2016-11-05 23:14:48 +08:00
Roman Truba
1a2b345c57 [Obj-c] Generated code documentation fixes (#4130)
* Fixed missing parameters names for obj-c generated code

* Obj-c sample regenerated
2016-11-05 23:13:51 +08:00
wing328
3f19ccaf17 Merge pull request #4141 from apls777/patch-1
Added QAdept to companies list
2016-11-05 23:12:13 +08:00
Oleg Polosin
2f1f62e384 Added QAdept to companies list 2016-11-05 12:11:58 +00:00
Tony Tam
93b6099cb2 Merge pull request #4140 from swagger-api/issue-4138
Added clarification to license of generated code
2016-11-04 16:59:33 -07:00
Tony Tam
a624729d70 added clarification for #4138 2016-11-04 15:16:04 -07:00
Stephan Wienczny
9436ba106c Default added sourceFolder to src/main/java
Fallback to "src/main/java" for added source folder instead of a NullpointerException when no source folder ist configured in the pom
2016-11-04 15:35:48 +01:00
Stephan Wienczny
f25f6c265a Update pojo.mustache
Repair vendorExtensions due to broken merge.
2016-11-04 14:59:04 +01:00
Christophe Bornet
901a981f26 [feign] Use feign-form (#4124)
* [feign] Use feign-form

Fix #4108

* [feign] Convert java.util.Date params to rfc3339 with an Expander
2016-11-04 21:13:18 +08:00
ircecho
51b941cf88 DART: Removed the 'justIgnoreThisFlag' flag (#4116)
* feat[dart]: remove unused argument 'justIgnoreThisFlag'

* chore[dart]: petstore rebuild
2016-11-04 19:17:23 +08:00
Anton WIMMER
096cbd57f5 fix[dart]: multi-word class names work properly now 2016-11-04 11:48:53 +01:00
wing328
a2d924d863 Merge pull request #4122 from iCEAGE/ruby_api_array_validation
[ruby] Validate array correctly
2016-11-04 17:54:55 +08:00
Hamed R. Nik
af4b32178f [ruby] Validate array correctly
It never throws error with any values in array. Every element should be validated against the enum.
2016-11-03 17:03:48 +00:00
wing328
c2ca59e677 Merge pull request #4115 from wwn/issue#4077
Added String.length() > 0 check to avoid IndexOutOfBoundException
2016-11-03 15:33:47 +08:00
sanjeewa-malalgoda
60c7d90d22 remove glassfish dependencies and use MSF4J internal implementation for the simplicity and reduce dependencies 2016-11-03 10:39:52 +05:30
Tony Tam
deb526440c Merge branch 'master' of github.com:swagger-api/swagger-codegen 2016-11-02 16:56:10 -04:00
Tony Tam
088ba97967 updated to next development version 2016-11-02 16:55:22 -04:00
wwn
8eefe863bf Added isEmtyString check to avoid IndexOutOfBoundException 2016-11-02 18:45:25 +01:00
Simon Morris
8fb33980dc Nancy fx work (#4107)
* Added switch to config to toggle use of yaml base path as module paths

* NancyFX template updated to return collections as array to allow framework to find views by type name for text/html mime type

* Added some more parser fixes for NancyFX

* Refactored collection parsers in Parameters.cs and changed some to return nullable collections to match the parameter mappings in AbstractCSharpCodegen

* re-ran petstore build
2016-11-02 21:35:01 +08:00
wing328
e26a7632c1 Merge pull request #4112 from swagger-api/spring_model_setter
[Spring] add back setter to read-only attributes in Spring models
2016-11-02 16:19:02 +08:00
wing328
4eb75f8088 add back setter to spring model (readonly attr) 2016-11-02 15:40:00 +08:00
wing328
52736ddaeb Merge pull request #4111 from wing328/update_dart_lib
[dart] updated intl library version
2016-11-02 14:34:19 +08:00
wing328
5c0ce022e9 update dart intl version 2016-11-02 11:17:04 +08:00
sutdisi
819a8648d5 Jersey2 Patch Support (#4110)
* Fix for issue 2848 Adding support for PATH in jersey2

* Updating petstore sample for PATCH update
2016-11-02 09:43:29 +08:00
wing328
1ef9480ecf Merge branch 'Rajmohan-retrofit2-vendor-mime-type' 2016-11-01 21:40:36 +08:00
wing328
0eaab90ba5 Merge branch 'retrofit2-vendor-mime-type' of https://github.com/Rajmohan/swagger-codegen into Rajmohan-retrofit2-vendor-mime-type 2016-11-01 21:40:22 +08:00
Cliffano Subagio
5c53513a30 [python] Add packageUrl option, replacing infoUrl in setup.py (#4101)
* [python] Add packageUrl option, replacing infoUrl in setup.py .

* [python] Regenerate Python petstore sample.

* [python] Regenerate Python petstore security test sample.
2016-11-01 18:21:53 +08:00
Nick Maynard
0c1b1aa749 Add Checkstyle to POM with Google settings advice (#4047)
* Add Checkstyle to POM with Google settings advice

* Add note re. changes for swagger-codegen

* Use Checkstyle 6.19 - v7 removed JDK 7 runtime support

* Add a link to the original config
2016-11-01 17:34:28 +08:00
Maciej
c2780abd70 fixing issue#4037 - ts ng2 response type is always json (#4060)
* fixing issue#4037 - default response is always json

* updated documentation for new method

* updated comment for new method
2016-11-01 17:02:40 +08:00
wing328
b3f3edda33 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-11-01 16:59:23 +08:00
wing328
c908425200 Merge branch 'schnabel-issue-4051' 2016-11-01 16:59:01 +08:00
wing328
66ebdf3e3d Merge branch 'issue-4051' of https://github.com/schnabel/swagger-codegen into schnabel-issue-4051 2016-11-01 16:58:26 +08:00
wing328
e230ef9f50 Merge pull request #4072 from cbornet/spring_response_wrappers
[spring] add an option to choose the response wrapper type
2016-11-01 16:41:07 +08:00
scannerscan
a5eff7e571 Jdk6 jersey2 support (#4074)
* hashCode and equals support for jdk6 for jersey2

* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?

* fix for the build.

* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?

* fix for the build.

* Merge remote-tracking branch 'remotes/origin/master' into jdk6-jersey2-support

Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/pom.mustache

* add msf4j author

* [Java] Fix outputFolder in java-related server stub generators (#4076)

* fix outputFolder in java-related server stub generator

* fix style in JavaJAXRSCXFCDIServerCodegen

* hashCode and equals support for jdk6 for jersey2

* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?

* fix for the build.

* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?

* Merge remote-tracking branch 'remotes/origin/master' into jdk6-jersey2-support

Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/pom.mustache

* Merge remote-tracking branch 'remotes/origin/master' into jdk6-jersey2-support

Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/pom.mustache
2016-11-01 16:36:56 +08:00
wing328
a23aacc21e Merge pull request #4062 from AndrewRademacher/fix-haskell-servant-cas
Fixed toUpper and toLower usage in haskell-servant gen.
2016-11-01 16:30:59 +08:00
Robert Biehl
6963bf8748 [Swift] Swift3 inheritance support (#4052)
* Swift3 inheritance support

* Mode inheritance support
* Handle 204 No Content without crashing
* Added some new reserved words for Swift (Error, URL)

* Update swift3 pet store example

* PR feedback fixes

* removed unnecessary newline from Models.swift
* removed unnecessary code comments
* ~~public~~ open

* Typo

* Fix review feedback

* fixed comment
2016-11-01 16:25:43 +08:00
Denis Bazhenov
7e7ca01aa4 Newline escaping disabled for HTML and HTML2 generators (#4099)
* Newline escaping disabled

Newline escaping disabled for HTML and HTML2 generators. Escaping
failing Markdown processors to work correctly on descriptions

* HTML examples updated
2016-11-01 16:21:30 +08:00
Tony Tam
950a3eb2e8 Update pom.xml 2016-10-31 19:14:32 -07:00
Tony Tam
31b32a8dc3 Merge pull request #4094 from swagger-api/issue-4090
update parser, core versions
2016-10-27 13:56:34 -07:00
Tony Tam
2651e83c0b added trim 2016-10-27 12:59:57 -07:00
Tony Tam
92af2cf821 updated versions 2016-10-27 12:59:51 -07:00
wing328
4a1ef9dec9 [Java] Fix outputFolder in java-related server stub generators (#4076)
* fix outputFolder in java-related server stub generator

* fix style in JavaJAXRSCXFCDIServerCodegen
2016-10-26 16:31:47 +08:00
wing328
e8063b0b5e add msf4j author 2016-10-26 14:41:44 +08:00
wing328
1c2a298ca0 Merge branch 'sanjeewa-malalgoda-msf4j' 2016-10-26 12:02:38 +08:00
wing328
983aec6250 add sample for java-msf4 2016-10-26 11:31:43 +08:00
wing328
6c439168a4 Merge branch 'msf4j' of https://github.com/sanjeewa-malalgoda/swagger-codegen into sanjeewa-malalgoda-msf4j 2016-10-26 10:33:00 +08:00
schnabel
32edf04b8e fixed unwanted remove 2016-10-25 20:37:55 +02:00
schnabel
f57e7c0933 bugfix: issue-4051 2016-10-25 20:09:24 +02:00
cbornet
21ec2bc866 [spring] add an option to choose the response wrapper type
Also generate the spring-cloud sample with a HystrixCommand wrapper
2016-10-25 15:40:51 +02:00
wing328
14bca6cd89 [Java] BeanValidation + JAXRS CXF server generator (#4068)
* add pom-file to cxf including cxf-client #2017

* adapt pom sourceFolder in pom.mustache to gen/java #2017

* add test templates for CXF #2017

* optimize mustache template structure, remove tabs #3280 #2549

* refined dependency to swagger-jaxrs #2017

* refined annotations and line breaks #2549

* fix tabs instead of spaces...

* move annotations from getter to field for server model

* cleanup tabs

* add example for gzipping #2017

* add complete WAR to cxf-server #2017

* add readme + rework pom #2017

* add cli switch for beanvalidation #2549

* move beanvalidation into separate subtemplate and reuse for cxf

* add beanValidation java template

* corrected path to mustache file

* fix AbstractOptionsTest, add default false for USE_BEANVALIDATION

* add pom-file to cxf including cxf-client #2017

* adapt pom sourceFolder in pom.mustache to gen/java #2017

* add test templates for CXF #2017

* optimize mustache template structure, remove tabs #3280 #2549

* refined dependency to swagger-jaxrs #2017

* refined annotations and line breaks #2549

* fix tabs instead of spaces...

* move annotations from getter to field for server model

* cleanup tabs

* add example for gzipping #2017

* add complete WAR to cxf-server #2017

* add readme + rework pom #2017

* add cli switch for beanvalidation #2549

* move beanvalidation into separate subtemplate and reuse for cxf

* add beanValidation java template

* corrected path to mustache file

* fix AbstractOptionsTest, add default false for USE_BEANVALIDATION

* add beanvalidation to okhttp-gson library #2549

* cleanup api.mustache for cxf #3281

* temporary fix for invalid BeanValidation-pattern with / #2549

* temporary fix for invalid BeanValidation-pattern with / #2549

* remove jaxrs-annotations from implementation classes #3281

* add configuration to generate spring web application #4003

* clean up unnecessary @Path annotation (part of method level!)

* add support for minItems/maxItems #2549

* add support for BeanValidation for query params #2549

* add imports for bean validation #2549

* add switches for various cxf server features #2017

* fix tests #2549 #2017

* re-create bin folder

* cleanup

* cleanup

* Revert "temporary solution for pattern - move to AbstractJavaCodegen #2549"

This reverts commit 82df5e657f31303bcb7d38f1dc013183d3509da2, reversing
changes made to 65e87f23a6804a0d5c0926c916a9cd6866e7fee0.

Conflicts:
	bin/akka-scala-petstore.sh
	bin/android-petstore-all.sh
	bin/android-petstore-httpclient.sh
	bin/android-petstore-volley.sh
	bin/android-petstore.sh
	bin/aspnet5-petstore-server.sh
	bin/clojure-petstore.sh
	bin/cpprest-petstore.sh
	bin/csharp-dotnet2-petstore.sh
	bin/csharp-petstore-all.sh
	bin/csharp-petstore.sh
	bin/csharp-property-changed-petstore.sh
	bin/cwiki-petstore.sh
	bin/dart-petstore.sh
	bin/dynamic-html.sh
	bin/erlang-petstore-server.sh
	bin/flash-petstore.sh
	bin/flaskConnexion-python2.sh
	bin/flaskConnexion.sh
	bin/go-petstore-server.sh
	bin/go-petstore.sh
	bin/groovy-petstore.sh
	bin/haskell-servant-petstore.sh
	bin/html-petstore.sh
	bin/html2-petstore.sh
	bin/java-inflector-petstore-server.sh
	bin/java-petstore-all.sh
	bin/java-petstore-feign.sh
	bin/java-petstore-jersey1.sh
	bin/java-petstore-jersey2.sh
	bin/java-petstore-okhttp-gson-parcelable.sh
	bin/java-petstore-okhttp-gson.sh
	bin/java-petstore-retrofit.sh
	bin/java-petstore-retrofit2.sh
	bin/java-petstore-retrofit2rx.sh
	bin/java-undertow-petstore-server.sh
	bin/java8-petstore-jersey2.sh
	bin/javascript-closure-angular.sh
	bin/javascript-petstore-all.sh
	bin/javascript-petstore.sh
	bin/javascript-promise-petstore.sh
	bin/jaxrs-cxf-cdi-petstore-server.sh
	bin/jaxrs-cxf-petstore-server.sh
	bin/jaxrs-jersey1-petstore-server.sh
	bin/jaxrs-petstore-server.sh
	bin/jaxrs-resteasy-joda-petstore-server.json
	bin/jaxrs-resteasy-joda-petstore-server.sh
	bin/jaxrs-resteasy-petstore-server.sh
	bin/jaxrs-spec-petstore-server.sh
	bin/jmeter-petstore.sh
	bin/lumen-petstore-server.sh
	bin/nancyfx-petstore-server.sh
	bin/nodejs-petstore-server.sh
	bin/objc-petstore-all.sh
	bin/objc-petstore-coredata.sh
	bin/objc-petstore.sh
	bin/perl-petstore.sh
	bin/php-petstore.sh
	bin/python-petstore.sh
	bin/qt5-petstore.sh
	bin/rails5-petstore-server.sh
	bin/ruby-petstore.sh
	bin/run-all-petstore
	bin/scala-async-petstore.sh
	bin/scala-petstore.sh
	bin/scalatra-petstore-server.sh
	bin/security/csharp-petstore.sh
	bin/security/go-petstore.sh
	bin/security/java-petstore-okhttp-gson.sh
	bin/security/javascript-closure-angular.sh
	bin/security/javascript-petstore.sh
	bin/security/lumen-petstore-server.sh
	bin/security/objc-petstore.sh
	bin/security/perl-petstore.sh
	bin/security/php-petstore.sh
	bin/security/python-petstore.sh
	bin/security/qt5cpp-petstore.sh
	bin/security/ruby-petstore.sh
	bin/security/run-all-petstore-security-test
	bin/security/scala-petstore.sh
	bin/security/silex-petstore-server.sh
	bin/security/slim-petstore-server.sh
	bin/security/swift-petstore.sh
	bin/security/typescript-angular.sh
	bin/security/typescript-angular2.sh
	bin/security/typescript-fetch.sh
	bin/security/typescript-node.sh
	bin/silex-petstore-server.sh
	bin/sinatra-petstore-server.sh
	bin/slim-petstore-server.sh
	bin/spring-all-pestore.sh
	bin/spring-cloud-feign-petstore.sh
	bin/spring-mvc-petstore-j8-async-server.sh
	bin/spring-mvc-petstore-server.sh
	bin/spring-stubs.sh
	bin/springboot-petstore-server.sh
	bin/swift-petstore-all.sh
	bin/swift-petstore-promisekit.sh
	bin/swift-petstore-rxswift.sh
	bin/swift-petstore.sh
	bin/tizen-petstore.sh
	bin/typescript-angular-petstore.sh
	bin/typescript-angular2-petstore-all.sh
	bin/typescript-angular2-petstore-with-npm.sh
	bin/typescript-angular2-petstore.sh
	bin/typescript-fetch-petstore-all.sh
	bin/typescript-fetch-petstore-target-es6.sh
	bin/typescript-fetch-petstore-with-npm-version.sh
	bin/typescript-fetch-petstore.sh
	bin/typescript-node-petstore-all.sh
	bin/typescript-node-petstore-with-npm.sh
	bin/typescript-node-petstore.sh
	bin/typescript-petstore-npm.json
	bin/windows/akka-scala-petstore.bat
	bin/windows/android-petstore.bat
	bin/windows/aspnet5-petstore-server.bat
	bin/windows/async-scala-petstore.bat
	bin/windows/clojure-petstore.bat
	bin/windows/cpprest-petstore.bat
	bin/windows/csharp-petstore.bat
	bin/windows/dart-petstore.bat
	bin/windows/dynamic-html-petstore.bat
	bin/windows/flash-petstore.bat
	bin/windows/go-petstore.bat
	bin/windows/html-petstore.bat
	bin/windows/java-petstore-okhttp-gson.bat
	bin/windows/java-petstore.bat
	bin/windows/javascript-petstore.bat
	bin/windows/objc-petstore.bat
	bin/windows/perl-petstore.bat
	bin/windows/php-petstore.bat
	bin/windows/python-petstore.bat
	bin/windows/qt5cpp-petstore.bat
	bin/windows/rails5-petstore-server.bat
	bin/windows/ruby-petstore.bat
	bin/windows/scala-petstore.bat
	bin/windows/spring-mvc-petstore-j8-async-server.bat
	bin/windows/spring-mvc-petstore-server.bat
	bin/windows/springboot-petstore-server.bat
	bin/windows/swift-petstore.bat
	bin/windows/tizen-petstore.bat
	bin/windows/typescript-angular.bat
	bin/windows/typescript-angular2.bat
	bin/windows/typescript-fetch.bat
	bin/windows/typescript-node-with-npm.bat
	bin/windows/typescript-node.bat

* Revert "cleanup"

This reverts commit c752ba85d8a795ebcaf902a0eb06ab0c5755d128.

* Revert "re-create bin folder"

This reverts commit 8a6d41314784a2ae5ce29ae54d7db1ebec418751.

Conflicts:
	bin/windows/spring-mvc-petstore-j8-async-server.bat
	bin/windows/spring-mvc-petstore-server.bat
	bin/windows/springboot-petstore-server.bat

* Revert "re-create bin folder"

This reverts commit 8a6d41314784a2ae5ce29ae54d7db1ebec418751.

Conflicts:
	bin/windows/spring-mvc-petstore-j8-async-server.bat
	bin/windows/spring-mvc-petstore-server.bat
	bin/windows/springboot-petstore-server.bat

* re-create bin from master

* Revert "re-create bin from master"

This reverts commit d4b5c9aac54d62dfb3790c1bf2829472be2ec8fd.

* Revert "Revert "re-create bin folder""

This reverts commit 4369b35dbe9d21f8a93e7632fd92a9a760256db5.

* Revert "re-create bin folder"

This reverts commit 8a6d41314784a2ae5ce29ae54d7db1ebec418751.

* Revert "temporary solution for pattern - move to AbstractJavaCodegen #2549"

This reverts commit 82df5e657f31303bcb7d38f1dc013183d3509da2, reversing
changes made to 65e87f23a6804a0d5c0926c916a9cd6866e7fee0.

* correct @Path to re-activate Swagger support #

* change sourceFolder to default

* re-activate unittest generator + support gzip switch #2017

* add switch to support Spring Boot + integration tests

* add cxf client generator, rename cxf server generator #2017

* add interfaces for language feature support #4003

* add comments #2017

* correct reference to context.xml.mustache #4003

* use dynamic sourceFolder path #2017

* replace tabs with spaces #4003

* use hard-coded sourceFolder #4003

* rename language for backwards compatibility

* cleanup todo comment #4003

* move convertPropertyToBooleanAndWriteBack to DefaultCodegen #4003

* change reference to beanValidation.mustache to local copy for cxf

* cleanup client-side beanvalidation (currently not working in CXF)

* add support for tags #4003

* fix instantiiation of method parameters

* move commonValidationFeature from bus to endpoint #4003
2016-10-25 18:15:15 +08:00
wing328
d8d5b57262 Merge branch 'mauricedb-throw-error-not-string' 2016-10-25 16:52:50 +08:00
wing328
aa46aca7cf update JS petstore samples 2016-10-25 16:52:32 +08:00
wing328
37bb66c436 Merge branch 'throw-error-not-string' of https://github.com/mauricedb/swagger-codegen into mauricedb-throw-error-not-string 2016-10-25 16:47:13 +08:00
AndrewRademacher
40ec83a091 Fixed toUpper and toLower usage in haskell-servant gen. 2016-10-24 16:12:10 -05:00
Simon Morris
5855b479aa nancyfx basePath => modulePath toggle (#4053)
* fix NancyFX string parser

parser needs to access the Value parameter to enable the direct cast at line 102 when handling string parameters

* Updated nancyfx sample

* Added switch to config to toggle use of yaml base path as module paths
2016-10-24 23:07:16 +08:00
walthema
1e975637c9 Fixed enum marshalling & fromValue()
Added toString() to enums
2016-10-24 15:07:46 +02:00
sanjeewa-malalgoda
80bb564092 Introducing swagger MSF4J support for swagger code generator 2016-10-24 12:00:36 +05:30
Maurice de Beijer
75d04d8be7 Throw an Error object instead of a string 2016-10-23 17:15:15 +02:00
wing328
92c474b2c2 Merge pull request #4050 from mbohlool/issue2657
Fix sanitizeTag to retain numbers and underscore in tag names
2016-10-22 22:59:09 +08:00
Mathieu MARACHE
8bee0de4e9 [Qt5/C++] Arrays of primitive types fix (#4046)
* Corrects issue #3410 when trying to create Arrays of primitive types

* Use c++11 nullptr keyword and various indentation issues resolved

* ran petstore on new mustaches
2016-10-22 22:58:39 +08:00
Simon Morris
27be0ed197 fix NancyFX string parser (#4048)
* fix NancyFX string parser

parser needs to access the Value parameter to enable the direct cast at line 102 when handling string parameters

* Updated nancyfx sample
2016-10-22 22:53:56 +08:00
mbohlool
aeadd7678b Fix sanitizeTag to retain numbers and underscore in tag names 2016-10-21 14:00:57 -07:00
wing328
4f9ee0f93d Merge pull request #4035 from wing328/update_undertow_readme
[Java] Update undertow readme
2016-10-20 22:22:53 +08:00
wing328
d6197faca3 Merge pull request #4041 from wing328/jersey2_java6
[Java][Jersey2] add CI tests for Java client (jersey2, java6)
2016-10-20 11:28:42 +08:00
wing328
d1eca76974 add test for java6 jersey2 client 2016-10-20 11:12:31 +08:00
scannerscan
aeb33e4b6e hashCode and equals support for jdk6 for jersey2 (#4039) 2016-10-20 10:20:12 +08:00
raj k
23fee386f2 Vendor Mime-type support in retrofit2 2016-10-19 16:19:41 -07:00
Alec Hill
41a7aaffcc Support passing custom RequestInit options in typescript-fetch client, to enable fetch API specific options (eg including credentials, enabling CORS etc) 2016-10-19 18:03:58 +02:00
wing328
f70569987a Merge branch 'Ragnis-fix-model-package' 2016-10-19 16:43:53 +08:00
wing328
bbb0cdc8c3 update gitignore to include PetStore.pro.user 2016-10-19 16:43:11 +08:00
wing328
b688a7f443 Merge branch 'fix-model-package' of https://github.com/Ragnis/swagger-codegen into Ragnis-fix-model-package 2016-10-19 16:38:13 +08:00
wing328
e458b5c13a Merge branch 'Ragnis-fix-api-paths' 2016-10-19 16:35:22 +08:00
wing328
7f36dd7852 increase timeout value for qt5 petstore test 2016-10-19 16:34:26 +08:00
wing328
5c129b2869 Merge branch 'fix-api-paths' of https://github.com/Ragnis/swagger-codegen into Ragnis-fix-api-paths 2016-10-19 16:26:17 +08:00
wing328
91923311e0 update undertow readme 2016-10-19 16:23:18 +08:00
k1w1m8
60a52ee729 Java6 support for jersey2 (#4033) 2016-10-19 10:45:14 +08:00
wing328
c3a12cb3f9 Merge pull request #4027 from diega/patch-1
[java] Allow setting test folder
2016-10-18 23:22:09 +08:00
Diego López León
c26833fd64 [java] Allow setting test folder
To keep consistency between `sourceFolder` and `testFolder` access
2016-10-18 09:28:30 -03:00
wing328
f3456007c6 Merge pull request #4024 from wing328/fix_3846
[Ruby][Sinatra] Fix reserved word handling in model file name
2016-10-18 19:47:23 +08:00
wing328
b50b33e891 fix reserved word handling in model name (sinatra) 2016-10-18 18:51:08 +08:00
wing328
5e7fa144bf Merge pull request #4023 from wing328/fix_3846
[Sinatra][Dart] better handling of reserved words for sinatra, dart generators
2016-10-18 18:22:36 +08:00
wing328
702344ed75 better handling of reserved words for sintatra, dart 2016-10-18 17:58:19 +08:00
wing328
52ffc7869e improvements based on #3568 (#4021) 2016-10-18 16:32:35 +08:00
Jim Schubert
6a7b9240a2 [csharp] add missing anchor tags in readme (#4019) 2016-10-18 10:15:03 +08:00
Martin
727038a186 Issue 3651 (#4014)
* added method summary under the method name

* added batch file for html2 generation on windows

* regenerated html2 example

* changed the html2 windows batch to use yaml instead of json and regenerated sample

* fixed encoding issues
2016-10-17 22:48:12 +08:00
mn288
66215f7a28 Added company (#4015)
Added carpolo as a project using Swagger
2016-10-17 19:58:10 +08:00
Jim Schubert
689da8f915 [csharp] Fix apiPackage,modelPackage,excludeTests (#4010)
* [csharp] Fix apiPackage,modelPackage,excludeTests

The apiPackage, modelPackage, and excludeTests values were not being
populated correctly from external configs (passing -c filename to
generator).

This commit allows those properties to work correctly with the Csharp
client generator. Previously the Api and Model namespaces were hard
coded after additionalProperties for these were evaluated.

The files which generate test files for models and api classes
didn't honor the excludeTests option.

* [csharp] Regenerate sample

* [csharp] Fix modelPackage in README template
2016-10-17 16:26:28 +08:00
wing328
12bcb2dd15 Merge pull request #4011 from jimschubert/aspnet5-rename
[aspnetcore] Deprecating aspnet5 for aspnetcore
2016-10-17 16:17:30 +08:00
wing328
f5ead2ecb2 Merge pull request #4013 from jaz-ah/jaz/fixswift3
fix some swift3 references
2016-10-17 15:38:18 +08:00
Joseph Zuromski
3e8e5e2091 fix some swift3 references 2016-10-16 22:49:51 -07:00
wing328
3362578595 Merge pull request #4009 from wing328/change_source_folder
[Maven] Correct source folder for generated files
2016-10-17 09:48:31 +08:00
Jim Schubert
c70a2a7481 [aspnetcore] Deprecating aspnet5 for aspnetcore
This moves previous aspnet5 functionality to aspnetcore, aspnet5 now
derives from the aspnetcore generator and logs a warning that it's
deprecated.

This will help resolve any confusion because ASP.NET 5 is terminology
referring to the project of around a year ago. ASP.NET Core 1.0 is the
new name for the technology, and further enhancements should target .NET
Core 1.0 rather than any old vNext or preview stuff.
2016-10-16 21:22:34 -04:00
wing328
1e57ba96d7 Correct source folder for generated files 2016-10-17 00:48:14 +08:00
wing328
2075204950 Merge pull request #4005 from wing328/ts_fix_header
[Typescript][Fetch] fix header parameters in TS Fetch API client
2016-10-16 15:43:25 +08:00
wing328
5719307799 Merge pull request #4004 from cbornet/spring_templates
Fix issues in spring templates
2016-10-16 15:33:38 +08:00
wing328
5a5d3fd5e5 fix header parameter in ts fetch 2016-10-16 15:27:11 +08:00
Ragnis Armus
dee2dd8d36 [Qt5 C++] Replace illegal characters in param names for Qt5 generator (#3978)
* Fix illegal characters in param names

* Re-generate the petstore sample
2016-10-15 18:23:36 +08:00
wing328
7b092122d6 fix typo swift 3 2016-10-15 18:18:10 +08:00
wing328
80fbe2dc78 add swift3 template owner 2016-10-15 18:17:07 +08:00
wing328
20db774418 Merge pull request #4002 from hexelon/swift3-generator-master
[Swift] Adding Swift3 generator
2016-10-15 18:13:01 +08:00
wing328
ce1cf4606a [Java][jersey1] add Java6 support to Java (jersey1) API client (#3919)
* add java6 support to java jersey1

* properly handle boolean value in mustache tag

* add test for supportJava6 option
2016-10-15 17:11:34 +08:00
cbornet
12a0fd6471 fix issues in spring templates
Wrong indentation and extra lines in api templates
Java8 default methods are used if dateLibrary is java8

Fix #3408
2016-10-14 17:57:20 +02:00
Max Stoliar
0838523a35 [Swift] Adding Swift3 generator
* This address #3788
* Contains all changes made in #3823
* Also contains many changes made by @ewanmellor, thanks!
2016-10-14 18:32:47 +03:00
wing328
03ed192b98 [Android] fix URL encoding for Android API client (#3992)
* fix url encoding for android

* add exception handling for url encoding in android
2016-10-14 11:12:37 +08:00
Brian Shamblen
6199c5d1c3 Updates to html2 templates to use security headers in curl examples (#3987)
* Fixes #3974

* Update petstore example for html2
2016-10-14 09:22:08 +08:00
wing328
7bbe3dcb53 Merge pull request #3982 from wing328/ruby_check_required_attr
[Ruby] fix required property check in Ruby models
2016-10-13 23:25:58 +08:00
feda12
7df89e6ff4 Added OrderCloud.io to list of companies using swagger-codegen (#3971)
* Added OrderCloud.io to list of companies using swagger-codegen

* Fixed alphabetical order for OrderCloud.io
2016-10-13 22:43:53 +08:00
Enrico Hofmann
98aaa1f163 Adjust Date ISO Dateformat for Query Parameters 2016-10-13 15:34:03 +02:00
wing328
2780be1117 Merge pull request #3985 from xpavlic4/patch-1
typo  relesae -> release
2016-10-13 20:54:50 +08:00
Radim
e101d22bc3 typo relesae -> release 2016-10-13 13:46:37 +02:00
wing328
5b58afff1c Merge pull request #3984 from wing328/fix_query_parameter_tag
Fix hasHeaderParams mustache tag
2016-10-13 19:26:30 +08:00
Ragnis Armus
273f4adf5e Re-generate the petstore sample 2016-10-13 13:28:00 +03:00
Ragnis Armus
dbe286c611 Fix setting of model package 2016-10-13 13:27:59 +03:00
wing328
4b0d58abfd fix hasHeaderParams tag 2016-10-13 18:15:04 +08:00
Ragnis Armus
f61d49bc39 Re-generate the petstore sample 2016-10-13 11:48:18 +03:00
wing328
47c387470c fix required prop check for ruby client 2016-10-13 16:38:39 +08:00
wing328
f63cae8aae Merge pull request #3977 from wing328/python_fix_doc
[Python] fix missing () in python doc
2016-10-13 16:27:42 +08:00
Ragnis Armus
6fa7b0fa05 Fix API file paths 2016-10-13 11:16:13 +03:00
wing328
d0f3cd642d fix missing () in python doc 2016-10-13 15:28:11 +08:00
Hamed Ramezanian
34f1e36146 Sanitize tuples properly (#3949)
* Sanitize tuples properly
In Python, Tuples are fixed size in nature whereas lists are dynamic. So
they should be sanitize as same as lists.
Failure case here is when you have a query or post parameter as
Datetime.

* Update the Petstore sample

* Skip file sanitization

* Return tuple instead of list

* Sanitize all tuples, no exceptions
2016-10-13 14:41:40 +08:00
weiyang
a76d69513c [html]Group api index by operations.baseName (#3953)
* [html]Group api index by operations.baseName

Signed-off-by: weiyang <weiyang.ones@gmail.com>

* [html][samples]Group api index by operations.baseName

Signed-off-by: weiyang <weiyang.ones@gmail.com>
2016-10-12 17:14:36 +08:00
wing328
3fe45622e7 Merge pull request #3968 from swagger-api/revert-3898-feature/php-improved-code-quality
Revert "[WIP] Improve PHP client emitted code quality"
2016-10-12 16:08:22 +08:00
wing328
0efa5cab35 Revert "[WIP] Improve PHP client emitted code quality" 2016-10-12 16:07:37 +08:00
wing328
59502bb92b Merge pull request #3963 from olivervidovic/issue-890
issue-890 correct fix for deprecated Jersey method
2016-10-12 16:05:09 +08:00
wing328
acfd2578dc Merge pull request #3965 from ButterflyNetwork/swift-enum
[Swift] Add / as enum separator
2016-10-12 15:59:15 +08:00
wing328
bd696eb0c1 Merge pull request #3898 from dkarlovi/feature/php-improved-code-quality
[WIP] Improve PHP client emitted code quality
2016-10-12 15:56:30 +08:00
wing328
12ccdcddcd Merge branch 'punksta-master' 2016-10-12 15:49:30 +08:00
wing328
47d3c3a767 update retrofit1,2 samples 2016-10-12 15:48:34 +08:00
wing328
a276c51cd8 Merge branch 'master' of https://github.com/punksta/swagger-codegen into punksta-master 2016-10-12 15:46:22 +08:00
Nick Maynard
823ce72e2e jaxrs-cxf-cdi POM template (#3958)
* Don't refer to missing class in Impl classes

* Add POM for jaxrs-cxf-cdi

* Correct jaxrs-cxf-cdi artifactId

* Update samples for jaxrs-cxf-cdi

* Regenerate jaxrs-cxf-cdi samples
2016-10-12 15:43:44 +08:00
Jason Gavris
0a2d62a8ba [Swift] Add / as enum separator 2016-10-11 13:13:59 -04:00
Oliver Vidovic
da6e829c8e issue-890 correct fix for deprecated Jersey method
additionally
- fixed EnumValueTest to the directory structure based on the declared package
- regenerated samples/client/java/jersey1
2016-10-11 11:43:54 -04:00
ClayAtWork
504f8f1f21 2208 fix Objc Mapping Generation (#3894)
* Change test to test valid compileable code. This is not a Objective-C Generic, but a protocol. This is what the JSONModel mapping library expects

* Update implementation to properly render NSDictionaries that will work with JSONModel
2016-10-11 11:45:59 +08:00
wing328
d48ce8b503 Merge branch 'cbornet-resteasy_dates' 2016-10-11 00:51:50 +08:00
wing328
d921a2b0c5 Merge branch 'resteasy_dates' of https://github.com/cbornet/swagger-codegen into cbornet-resteasy_dates 2016-10-11 00:51:34 +08:00
wing328
ba3f2eafd5 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-10-11 00:48:08 +08:00
wing328
11d0c87c8c Merge branch 'cbornet-jersey_dates' 2016-10-11 00:47:51 +08:00
wing328
671f73b97f Merge branch 'jersey_dates' of https://github.com/cbornet/swagger-codegen into cbornet-jersey_dates 2016-10-11 00:47:02 +08:00
Christophe Bornet
6f2c139ff8 [Spring] Format datetime in rfc3339 (#3777)
* [spring-boot] format datetime in rfc3339

See #3727

* [spring-mvc] format datetime in rfc3339
2016-10-11 00:43:28 +08:00
Christophe Bornet
2680995825 [Java/Jackson] use a jdk6 compatible DateFormat for java.util.Date (#3768)
* [feign] use a jdk6 compatible serializer for java.util.Date

See #3727

Fix #3753

* [jersey] use a jdk6 compatible DateFormat for java.util.Date
2016-10-11 00:42:52 +08:00
wing328
522e27b752 add template owner jax-rs cxf cdi 2016-10-10 21:10:52 +08:00
Stas Shakirov
26faf6cf4e remove newline char in *.mustache; added generated code 2016-10-10 14:42:08 +03:00
Nick Maynard
dc2b8c29e2 Add a new JAX-RS server generator - jaxrs-cxf-cdi (#3940)
* Generate a JAX-RS server that assumes an Apache CXF framework on a Java EE server supporting CDI

* Samples for jaxrs-cxf-cdi

* Don't refer to missing class NotFoundException

* Update samples without missing NotFoundException reference
2016-10-10 17:18:27 +08:00
Stas Shakirov
1006b0ca0a added package paths for retrofit class names 2016-10-10 09:57:28 +03:00
wing328
0712ebc33d Merge pull request #3954 from jimschubert/aspnet/3680
[aspnet] Fix .sln/.xproj guids
2016-10-10 09:17:49 +08:00
Jim Schubert
a94a27307d [aspnet] Fix .sln/.xproj guids
The AspNet5 generator was originally written to support project.json.
The Project.xproj was implemented without a valid project guid or root
namespace. During the transition period from project.json to
Project.xproj, VS2015 would fallback to project.json. Newer versions of
VS2015 don't seem to do this any longer.

This commit defines the project's guid correctly, and sets the project's
root namespace.

See: #3680
2016-10-09 08:31:35 -04:00
wing328
c1a6bbb86a [Python][Flask] fix python2 support in Flask (#3952)
* flask python2 petstore sample

* fix python2 support in flask
2016-10-09 14:06:55 +08:00
Andreas Franzén
d21613c6ab Bugfix/3929 do not set multipart (#3932)
* Do not set Content-Type to multipart/form-data
It causes superagent to not add the boundary in the Content-Type

* Run shell-scripts
2016-10-08 12:36:56 +08:00
wing328
04070b32c1 Merge pull request #3944 from wing328/python_fix_required_check
[Python] fix python required property check and validation for optional properties
2016-10-07 17:25:51 +08:00
wing328
65f925f45c fix python required property check and validation for optional properties 2016-10-07 15:50:57 +08:00
vishal khawarey
0ca60352e2 required tag is used in model, allows null values (#3923)
* required tag is used in model, allows null values

* updated petstore api for CI

* dont raise exception for 0 or false
2016-10-07 15:26:05 +08:00
wing328
7aaa837d82 Merge pull request #3941 from wing328/swfit_fix_num_enum
[Swift] support number value for enum
2016-10-07 11:27:55 +08:00
wing328
9f9875b246 Merge pull request #3942 from wing328/fix_dart_number
[Dart] fix number format for Dart's model
2016-10-07 11:26:46 +08:00
wing328
574349570a fix number format for dart model 2016-10-07 00:47:05 +08:00
wing328
81a2b2c36f support number enum for swift 2016-10-07 00:20:50 +08:00
sylvain-abadie
94cd2cb6a0 [Objc] Added support for lower case discriminator (#3927)
* [Objc] Added support for lower case discriminator

* Updated Objc petstore samples

* Fixed code style
2016-10-06 23:29:55 +08:00
wing328
24b1dc87c1 Merge pull request #3903 from alexandern/issue-3829
Issue#3829. Objective-C client code, discriminator generated in both …
2016-10-06 23:28:46 +08:00
wing328
cd6b5fec20 [Android][Volley] add serializeModel support to Android (#3933)
* add serializeModel support to Android

* add test for new android option
2016-10-06 17:35:33 +08:00
wing328
515fe33c2c add more info about test with latest master 2016-10-06 15:16:04 +08:00
wing328
41772a11a8 Merge pull request #3928 from wing328/parcelable-models
[Java][okhttp-gson] Add Parcelable model support for Android
2016-10-06 00:31:59 +08:00
wing328
6ef0209dea add back java okhttp petstore client 2016-10-05 22:55:01 +08:00
wing328
8db0ec8b73 fix pom duplicated id issue 2016-10-05 22:55:01 +08:00
wing328
c915f8ecdc update pom to test java okhttp-gson parcelable models 2016-10-05 22:55:01 +08:00
wing328
8ce8082f7f fix bug with parcelable 2016-10-05 22:54:17 +08:00
Griffin Schneider
0844496bad [Java] Fix bug in generated code if parcelableModel and serializableModel are both true. 2016-10-05 22:53:05 +08:00
Griffin Schneider
1aeceead99 [Java] Make generated models Parcelable for okhttp-gson if the -DparcelableModel=true option is provided. 2016-10-05 22:53:05 +08:00
wing328
ed4200f5c6 add http://onedata.org 2016-10-05 10:51:54 +08:00
wing328
677f5f913f Merge pull request #3909 from apanzerj/apanzerj/fixupRails5Server
WIP: Fixup rails5 server
2016-10-05 01:16:47 +08:00
wing328
3ca9893013 add undertow 2016-10-04 11:18:10 +08:00
Adam Panzer
2aadbee8ed validate(s)_presence_of
Migration should create pluralized table names
Change controller filenames
2016-10-03 14:47:01 -07:00
wing328
00cc060827 Merge pull request #3637 from cbornet/fix_multi_inheritance
[All] Fix some inheritance/composition issues and add allOf unit tests
2016-10-03 23:18:43 +08:00
Miguel García
e633073082 Add a new cli command to output version information (2nd attempt) #3892 (#3899)
* Properly git-ignore all nbactions.xml files.

* Add a command line action to print the program version (#3892).

I am using maven resource filtering capabilities so that an existing version.properties resource file
gets filtered upon build and populated with the project version tag. This resource is then read
at runtime as required.

* Using a different version tag when unreadable.
2016-10-03 17:14:54 +08:00
wing328
1840956320 Merge pull request #3913 from wing328/python_flask_no_tags
[Python][Flask] fix python flask controller issue without tag
2016-10-03 09:56:49 +08:00
wing328
4a74e788ec fix python flask controller without tag (default_controller) 2016-10-03 09:32:20 +08:00
Jim Schubert
b7708a44bf [aspnet5] Fix basePath application to operations (#3911)
* [aspnet5] Fix basePath application to operations

* [aspnet5] Regenerate sample
2016-10-02 21:56:19 +08:00
Bartek Kryza
40a1879797 Bugfix/issue 3723 (#3726)
* Extended request generation logic with support for serialized body content types other than Json

* Updated the Petstore Python client tests

* Fixed body content type identification for strings
2016-10-02 17:02:03 +08:00
Charles
d4f9a16cf6 Cgardens nested object regex (#3879)
* stop parsing key of object at first comma.

* update samples
2016-10-02 16:32:17 +08:00
Scott Richter
b2e2643fd2 [Cpprest] Fixing issue #3773 (#3876)
* Fixed errors with cpprest client generation when generating a client that uses arrays of primitive types (vector) and file responses (HttpContent).

* Updated the petstore sample using script.

* Removed debug code.

* Removed extra newline to match master.

* Fixed binary file handling in cpprest. Updated petstore samples.

* Update readme to add Cummins to list

* Cleaning up for pull. Removing unnecessary changes.

* Fixing petstore

* Fixing error in build.

* Fixed error in stream copy for binary data

* Replaced tab with 4 spaces in all modified files.

Replaced tab with 4 spaces in all modified files.
2016-09-30 10:31:24 +08:00
Alex Nolasco
07df71e959 Issue#3829. Objective-C client code, discriminator generated in both base and child. 2016-09-29 09:28:44 -04:00
wing328
3d231e4e4b Merge pull request #3900 from wing328/escape_callback
[Java][Python] Escape callback parameter for java(okhttp) and python
2016-09-29 17:45:30 +08:00
wing328
f59c28d08a escape callback parameter for java(okhttp) and python 2016-09-29 17:41:47 +08:00
Dalibor Karlović
19f1c7e095 feature(PHP QA) add initial PHP client template tweaks to improve emitted code quality 2016-09-29 08:48:24 +02:00
wing328
34525853b6 Merge pull request #3897 from wing328/fix_html_warnings
[Doc] Fix warning in HTML generators
2016-09-29 11:35:11 +08:00
wing328
a7ed1ad202 fix warning in html generator 2016-09-29 11:09:54 +08:00
Dalibor Karlović
10d3dea89e [PHP] fix PHPUnit invocation, add basic phpunit.xml.dist (#3864)
* feature(phpunit) fix PHPUnit invocation, add basic phpunit.xml.dist

* fix(phpunit) add proper paths relative to phpunit.xml.dist
2016-09-28 19:44:07 +08:00
wing328
ec25bd793f [Java] Remove duplicated model description in Spring, JAX-RS models (#3887)
* fix duplicated description in spring model

* fix duplicated description in jaxrs models

* fix resteasy dependency
2016-09-28 19:34:38 +08:00
wing328
a090ce07e5 Merge pull request #3875 from arnested/mention-security-script-in-pull-request-template
Mention security script in pull request template
2016-09-28 18:48:32 +08:00
Dalibor Karlović
70fa2fb78e [PHP] Better PSR2 compatibility (#3863)
* feature(php-cs-fixer) add php-cs-fixer support

* feature(php-cs-fixer) tweak Mustache templates to fit PSR2

* feature(php-cs-fixer) bin/php-petstore.sh output
2016-09-27 08:23:44 +08:00
wing328
0f25501746 Merge pull request #3873 from ButterflyNetwork/swift-thread-safe-manager
[Swift] Use thread safe manager dictionary
2016-09-27 07:48:20 +08:00
Arne Jørgensen
8b681df0e6 Mention security script in pull request template 2016-09-26 22:21:09 +02:00
Jason Gavris
9e54dce92f [Swift] Use thread safe manager dictionary 2016-09-26 11:27:07 -04:00
wing328
fa12cd3787 Replace ^M with new line (\r) in mustache template (#3865)
* fix jaxrs line break

* fix java gradle bat line break

* fix scala gradle line break

* fix undertow crt line break

* fix spring line break

* fix undertow line break in pom

* rollback undertwo petstore to use petstore.yaml
2016-09-26 16:49:44 +08:00
wing328
1dc09f3619 Merge pull request #3868 from wing328/swift_fix_url_param
[Swfit] fix path parameter with baseName mustache tag
2016-09-26 11:33:29 +08:00
wing328
bee27aee9b [swfit] fix url param with base name 2016-09-26 11:01:02 +08:00
Yuta HIGUCHI
2155b7b09e [JaxRS]Show correct default value on CLI option description (#3862)
* Show correct default value on CLI option description

Fixes #3861

* Changes after ./bin/jaxrs-petstore-server.sh
2016-09-24 15:11:15 +08:00
David Biesack
fedb0cc352 add title, description to HTML output (#3860)
* add schema title, description to HTML output

* Include title, description in petstore sample (and HTML output)
2016-09-24 11:14:36 +08:00
wing328
b2344e10cb Merge pull request #3857 from wing328/go_fix_trailing_comma
[Go] fix trailing comma in go api client
2016-09-24 01:16:32 +08:00
wing328
dce532e8c7 fix trailing comma in go api client 2016-09-24 00:57:01 +08:00
wing328
f47208a75b Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-09-24 00:17:54 +08:00
wing328
84f03e67f5 Merge branch 'neilotoole-issue-3690-additional-fields' 2016-09-24 00:17:42 +08:00
wing328
110c22ea98 Merge branch 'issue-3690-additional-fields' of https://github.com/neilotoole/swagger-codegen into neilotoole-issue-3690-additional-fields 2016-09-24 00:17:18 +08:00
wing328
83916f23d0 Merge pull request #3855 from wing328/ts_fetch_basepath_fix
[Typescript] fix typescript-fetch base path by removing ending slash
2016-09-23 19:59:25 +08:00
wing328
d1c1c9d08f fix typescript-fetch base path by removing ending slash 2016-09-23 19:12:40 +08:00
Kamil
9301db60e6 redundant quotation mark (#3837)
* Removed redundant quotation mark

This additional quotation mark is causing problems in out project and should be removed.

ngrep output:
```
Content-Disposition: form-data; name="file"; filename="file""
  ..Content-Transfer-Encoding: binary..Content-Type: image/jpg..Content-Length: 27855..........JFIF....
```

* updated petstore sample

* removed line break
2016-09-23 18:33:27 +08:00
Sergii Rustamov
fee23f2230 Support cpprest on Linux (#3847)
* Support cpprest on Linux

* Update petstore code
2016-09-23 18:32:33 +08:00
wing328
569997b073 Merge pull request #3853 from mattalexx/proposed
Fix custom generator execution example in README template
2016-09-23 13:27:38 +08:00
wing328
116bf3ff88 Merge pull request #3854 from jvosantos/patch-1
Update README.md
2016-09-23 09:17:18 +08:00
Vasco Santos
b8843ab466 Update README.md
Added a new company to the company list
2016-09-23 02:06:12 +01:00
Matt Alexander
12fb4becd7 Fix custom generator execution example 2016-09-22 14:36:08 -05:00
wing328
e3b891a924 Merge pull request #3850 from wing328/fix_swift_pod_file
[Swift] add default value to swift podspec
2016-09-22 19:26:24 +08:00
Kim Sondrup
9bb097fcf5 [PHP] Correct Composer license identifier (#3848)
* [PHP] Correct Composer license identifier

* Update petstore PHP
2016-09-22 18:49:08 +08:00
wing328
70ed52cee0 add default value to swift podspec 2016-09-22 18:41:53 +08:00
wing328
cfed530997 Merge pull request #3843 from wing328/fix_ts_angular2_model_optional
[Typescript][Angular2] Fix required properties in the model
2016-09-21 20:32:04 +08:00
wing328
d11c7ad09a fix typescript angular2 model - optional/required 2016-09-21 20:08:27 +08:00
wing328
ff90954dc6 Merge pull request #3840 from 0xced/fix-oauth-flow-npe
Fix NullPointerException when the oauth flow is missing
2016-09-21 10:39:52 +08:00
Cédric Luthi
72058c2638 Fix NullPointerException when the oauth flow is missing 2016-09-21 00:48:16 +02:00
wing328
6ac5a2c306 Merge pull request #3825 from wienczny/tripleMustacheExtraAnnotation
Use triple mustache for vendorExtensions.extraAnnotation
2016-09-20 21:12:16 +08:00
wing328
14bcbcbb29 Merge pull request #3834 from vkotovv/readme-typo-fix
Fixed typo in Readme
2016-09-20 21:11:28 +08:00
wing328
f69d1500c3 [Python][Flask] use tags to organize Python Flask controllers (#3767)
* use tag to organize flask controller

* fix typo in python flask code gen

* fix operationId for flask generator
2016-09-20 21:11:06 +08:00
Vadim Kotov
daa068aa4d Fixed typo in Readme
Fixed Swaagger -> Swagger
2016-09-20 12:38:00 +03:00
wing328
3073ed0042 add gotransverse 2016-09-20 10:32:58 +08:00
Steve Hu
d74a1fbed4 Add a new language generator for undertow-server framework (#3820)
* add undertow generator

* add apiException

* add undertow server code gen

* reovery sprintboot sample

* update handler

* output swagger.json and handler template change

* remove api template

* remove api.mustache

* update pom.xml

* update readme

* add config files

* add basePath to the handler and upgrade to 0.1.1 framework

* add additional files for release

* fixed the mvn verify issue

* update one template to fix compile error for fake petstore
2016-09-19 22:45:10 +08:00
Stephan Wienczny
e96b177305 Use triple mustache for vendorExtensions.extraAnnotation
Triple mustache is required because annotations may contain chars like "=" that
would be mistakenly encoded.
2016-09-19 16:24:51 +02:00
wing328
4293dff3a4 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-09-19 16:26:51 +08:00
wing328
1d748e47da fix copmile for C# model annotation 2016-09-19 16:25:47 +08:00
wing328
8a61f92061 Merge pull request #3822 from wing328/jmeter_bin
[JMeter] add JMeter petstore sample
2016-09-19 15:24:49 +08:00
wing328
1be134facf Merge branch 'csharp/property-validations' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp/property-validations 2016-09-19 15:19:58 +08:00
wing328
e4792555df add petstore jmeter sample 2016-09-19 14:59:48 +08:00
wing328
76d3ec9be2 Merge pull request #3801 from richardfriedman/issue-3800
[jmeter] #3800 Fixing testCases and paramName
2016-09-19 11:50:47 +08:00
wing328
f41a3b82a9 Merge pull request #3809 from j4velin/master
Fix NullPointerException if there are no other properties
2016-09-19 11:44:14 +08:00
Anton Savchenko
945c9a1406 [typescript-angular2] npm publish missing files (#3791)
* [typescript-angular2] npm publish missing files

* [typescript-angular2] build to dist folder
2016-09-19 10:41:29 +08:00
Thomas Hoffmann
61bd023e3d Fix NullPointerException if there are no other properties
Change-Id: I6711e96d4b119b2cf78860d4eb43fc178edae372
2016-09-16 12:36:59 +02:00
geetikagupta16
1e4f30eb16 Fixed bug for handling optional header parameters (#3776)
* Fixed #3774
Refactored code to handle optional header parameters.

* Changed null check with pattern matching
2016-09-15 23:28:01 +08:00
timadamson
fe7acabc4b add authentication to typescript-angular2 (#3781)
* add authentication to typescript-angular2

* updated typescript-angular2 petstore example

* update typescript-angular2 with simplified conditionals
2016-09-15 00:35:14 +08:00
Richard Friedman
5aff601eac [jmeter] #3800 Fixing testCases and paramName 2016-09-14 12:25:39 -04:00
cbornet
b7f2b28534 [resteasy] configure jackson to use rfc3339 dates 2016-09-14 17:37:04 +02:00
wing328
e6049d6d30 Merge pull request #3797 from xaviapa/bugfix/issue-3783
Added !is_null condition in setter conditions for non-required proper…
2016-09-14 20:54:05 +08:00
Xavi Aparicio
31a3436a8e Added !is_null condition in setter conditions for non-required properties 2016-09-14 13:41:05 +02:00
wing328
1dd9ee39af [C#] Add CI tests to cover C# Petstore client with "PropertyChanged" (#3796)
* add c# api client with proeprty changed to CI

* add shell script to update all C# petstore sample
2016-09-14 18:43:13 +08:00
cbornet
1b1fe95855 [jersey] configure jackson to use rfc3339 dates 2016-09-14 12:17:33 +02:00
wing328
19047c2eec [C#] fix the location of FodyWeavers.xml (#3782)
* fix fody weavers xml location

* update c# petstore sample
2016-09-13 18:05:42 +08:00
wing328
07eff7116b Merge branch 'wing328-csharp_fix_enum' 2016-09-13 16:46:40 +08:00
wing328
e14cf8a526 Merge branch 'csharp_fix_enum' of https://github.com/wing328/swagger-codegen into wing328-csharp_fix_enum 2016-09-13 16:46:27 +08:00
Christof Vollrath
1c8e07a944 Fix order of generated classes for typescript 2016-09-13 10:44:34 +02:00
wing328
0cba285cac Merge branch 'jimschubert-csharp/INotifyPropertyChanged' 2016-09-13 15:59:26 +08:00
wing328
907db0dd5b [Scala] enhancement to indention and null check (#3775)
* fix scala api null check and indention

* minor format fix
2016-09-13 09:56:06 +08:00
wing328
153397e799 Merge pull request #3778 from wing328/update_ts_angular2_petstore
[Typescript][Angular2] Update typescript-angular2 petstore sample
2016-09-12 17:07:11 +08:00
wing328
3e0a1be8aa update typescript-angular2 petstore sample 2016-09-12 16:44:35 +08:00
stevedenman
314bfdece2 Add last response code and headers (#3760)
* Add last response code and headers

Apply same workaround as https://github.com/swagger-api/swagger-codegen/pull/1127 to typescript-angular2 template.

* Add WithHttpInfo() methods to return raw response.

* Revert change to http method formatting
2016-09-12 16:24:12 +08:00
Zheng Can
0c59aefe90 Make InlineModelResolver resolve vendorExtensions correctly for Schema Object (#3719)
* Fix InlineModelResolver to ensure the vendorExtensions could be accessed via schema object or inline model.

* format the code

* Copy vendor extension to property only.
2016-09-12 16:09:07 +08:00
Richard
bc2f614b92 apiInvoker : in getInstance, if instance is null initialize instance (#3766)
* apiInvoker : in getInstance, if instance is null initialize instance
build : replace the deprecated volley library by the android one
jsonUtil : Add in gsonBuider an adapter to deserialize Date class
And update petstore sample for volley library

* Update apiInvoker.mustache

Add a space after if,  to stick to the code style.

* Update ApiInvoker.java

Add a space after if, in petstore samples, to stick to the code style.
2016-09-12 15:56:35 +08:00
wing328
5bb203504c Merge pull request #3772 from wing328/scala_model_indent
[Scala] better format of model properties
2016-09-12 11:27:02 +08:00
wing328
77d31300a1 Merge pull request #3757 from ePaul/feature/#3738-add-sourceFolder-property
Feature/#3738 add source folder property
2016-09-12 11:10:28 +08:00
Bartek Kryza
6d6832e7a6 Fix for #3712 - invalid enum array validation in Python client mustache model (#3713)
* Fixed invalid enum array validation in Python client mustache model

* Updated the Petstore Python client tests

* Removed superfluous array enum test

* Added test cases for Python client array and map enums

* Improved map enum error message
2016-09-12 11:00:49 +08:00
Paŭlo Ebermann
72e051ab47 Feature/remove unused variables in html codegens (#3739)
* Remove unused variables/constants in StaticHtml[2]Generator.

It looks like those were remainders from copy+paste.

* run html-petstore.sh
2016-09-12 11:00:02 +08:00
Paul Ebermann
d3eedafe84 Issue #3738: introduce the sourceFolder property for all Scala "languages". 2016-09-11 20:10:51 +02:00
ataraxus
1d7d37409a Fix for issue #3743 (#3744)
* fix map usage in api generation #3694

* fix map usage in api generation #3695

* close impl gap between queryParam and formParam, to be more consistent

* use working copy constructor
2016-09-11 23:11:35 +08:00
wing328
ac69f45ddc better format of model properties 2016-09-11 18:44:36 +08:00
Paŭlo Ebermann
bd3a15e273 Feature/#3738 extract abstract scala codegen (#3755)
* Issue #3738: extract AbstractScalaCodegen.

This seems to not change anything in the output, at least for the Petstore samples.

* Issue #3738: move languageSpecificPrimitives initialization to the super class

* Issue #3738 move CliOptions to AbstractScalaCodegen.

* Issue #3738 update samples.

Only one change, remove of unnecessary imports.
2016-09-11 18:00:38 +08:00
wing328
f9d1f24726 Fix appveyor maven environment variable (#3769)
* fix maven env variable in appveyor

* fix maven home
2016-09-11 14:52:46 +08:00
wing328
b6e2c5a301 Update CONTRIBUTING.md 2016-09-10 00:23:49 +08:00
wing328
81e9bd0d73 add tips for filing better PR 2016-09-10 00:23:00 +08:00
wing328
f55a9cee2f Merge pull request #3756 from lunat/csharp_documentation_relative_anchor
Added anchor tag in README.mustache issue #3748.
2016-09-09 17:26:03 +08:00
wing328
8af3396a2e Merge pull request #3763 from wing328/erlang_server_improve
[Erlang] update readme, add petstore samples
2016-09-09 17:04:35 +08:00
wing328
dcdea19cb8 erlang update readme, add petstore samples 2016-09-09 16:42:26 +08:00
wing328
7850ecd767 rearrange erlang server 2016-09-09 15:49:27 +08:00
wing328
f05c7aa8d3 add Erlang Server | @galaxie 2016-09-09 15:46:06 +08:00
Artem Ocheredko
f90626ac81 [Erlang] Add Erlang server generator (#3758)
* Initial erlang generation

* Recfactor erlang codegen to make a minimal working example

* ft/erlang_codegen Separate handlers by resourse, add minor codegen fixes and refactoring

* Test commit

* ft/erlang_codegen Modify reouting generation

* ft/erlang_codegen Remove parsed request concept. Add minor refactoring and bugfixes

* ft/erlang_codegen Use swagger spec from an internal directory instead of a provided path

* ft/erlang_codegen Add basic response validation

* ft/erlang_codegen Moved all the req validators to a separate file for test needs

* ft/erlang_codegen Add basic param validation

* Add refactoring:
OperationIDs are atoms now
Fix schema validation
Add todo list

* CAPI-23 Add auth context to request handling (#2)

* CAPI-23 Fix routing to support different paths in one handler. Add auth context to request handling. Add an opportunity to pass custom middlewares to the server

* CAPI-31 Add enum validation and some minor fixes (#4)

* CAPI-31 Fix turbo fuck up with additional params (#5)

* Capi 23/fix/basic logging (#6)

* CAPI-23 Add understandable messages in case of bad requests. Add specs to shut up dialyzer and add some minor code refactoring

* CAPI-23 Fix missed bracket in auth module (#7)
2016-09-09 15:44:54 +08:00
lunat
a553d47507 Added anchor tag in README.mustache issue #3748. 2016-09-08 18:01:18 +02:00
wing328
c171ca5f57 Merge pull request #3752 from ePaul/feature/#3738-regenerate-scala-samples
Issue #3738: regenerate Scala samples (no code changes).
2016-09-08 21:13:32 +08:00
Paul Ebermann
65ca059221 Issue #3738: regenerate Scala samples (no code changes). 2016-09-08 13:00:40 +02:00
wing328
ddd0b8685a Merge pull request #3750 from wing328/fix_jaxrs_cxf_model
[JAX-RS][CXF] To fix enum value issue
2016-09-08 17:54:34 +08:00
Ville Skyttä
735390f633 [Python, Ruby, PHP] Validate min/maxItems (#3734)
* python: Validate min/maxItems

* ruby: Validate min/maxItems

* lumen: Validate min/maxItems

* php: Validate min/maxItems
2016-09-08 17:33:59 +08:00
wing328
4f0f128ddb fix enum value issue for jaxrs cxf 2016-09-08 17:30:20 +08:00
wing328
47e75cb7b1 Merge pull request #3740 from wing328/android_fix_result
[Android] fix property name 'result' for android using "this"
2016-09-07 19:12:07 +08:00
wing328
326b8020d2 fix property name 'result' for android using "this" 2016-09-07 18:55:19 +08:00
wing328
892c9e017a Merge pull request #3730 from scop/python-maxlength-msg
python: Fix model maxLength validation error message
2016-09-07 17:12:28 +08:00
Ville Skyttä
b8e8c7cdb5 Various code cleanups (#3709)
* For/while to foreach loop conversions

* Don't instantiate Booleans

* Remove redundant String.toString calls

* Remove redundant String instantiations

* Don't concatenate StringBuilder.append args

* Replace dangling javadoc comments with blocks

* Combine identical catch branches

* Remove redundant catch branch

* Remove unnecessary boxing

* Remove redundant casts

* Remove redundant null checks
2016-09-07 16:41:51 +08:00
wing328
3d1f621f8b Merge pull request #3729 from scop/spelling
Spelling fixes
2016-09-07 15:43:17 +08:00
Cliffano Subagio
92eb722ced [ruby] Add gemspec required_ruby_version setting. (#3718)
* [ruby] Add gemspec required_ruby_version setting.

* [ruby] Add gemspec required_ruby_version setting.

* Add gemRequiredRubyVersion option to Ruby client code generator.
2016-09-06 22:25:39 +08:00
Ville Skyttä
f436f0eee2 python: Fix model maxLength validation error message 2016-09-06 14:49:00 +03:00
Ville Skyttä
91b7494e3e Spelling fixes 2016-09-06 14:45:04 +03:00
wing328
23283cb0c0 Merge pull request #3728 from wing328/java_default_test
[Java][jersey1] Add back test cases for Java (jersey1) client
2016-09-06 19:14:04 +08:00
wing328
fb3b91550c add back test cases for java jersey1 client 2016-09-06 18:51:28 +08:00
Ville Skyttä
ddc5b80438 [Lumen, PHP, Python, Ruby] Implement exclusiveMinimum/Maximum (#3717)
* Ignore exclusiveMinimum/Maximum in setting hasValidation

* python: Implement exclusiveMinimum/Maximum

* ruby: Implement exclusiveMinimum/Maximum

* lumen: Implement exclusiveMinimum/Maximum

* php: Implement exclusiveMinimum/Maximum
2016-09-06 14:57:35 +08:00
ataraxus
59891c7f66 fix map usage in api generation #3694 (#3714)
* fix map usage in api generation #3694

* fix map usage in api generation #3695

* close impl gap between queryParam and formParam, to be more consistent
2016-09-06 10:59:54 +08:00
Neil O'Toole
f751e50e2e Issue #3687 silence resty logging [Go] (#3705)
* disabling resty logger

* #3687 updating go-petstore
2016-09-05 17:11:34 +08:00
wing328
730eda05d2 Merge pull request #3721 from wing328/update_ruby_re
[Ruby] update regular expression to use \A instead of ^
2016-09-05 16:32:39 +08:00
wing328
e68b364479 update ruby regular expression to use \A 2016-09-05 16:06:38 +08:00
Masahiro Saito
92aa8ed767 [Ruby] Fix ambiguous regex (#3716)
* ruby: Fix ambiguous regex

* ruby: Add test for strict regex
2016-09-05 15:37:54 +08:00
wing328
43bac10bb3 Merge pull request #3700 from scop/php
php: Fix syntax error when pattern contains a single quote
2016-09-03 16:37:40 +08:00
Kim Sondrup
1539986984 [PHP] Corrected PHPDoc type declarations (#3710)
* [PHP] Corrected PHPDoc type declarations

* Update petstore PHP
2016-09-03 16:06:07 +08:00
Neil O'Toole
8183d96088 #3690 adding RequestURL, Method, Operation and Payload fields to APIResponse 2016-09-02 06:49:39 -06:00
wing328
7a4a430c43 Merge pull request #3702 from scop/ruby
ruby: Fix syntax error when pattern contains a single quote
2016-09-02 16:22:47 +08:00
Ville Skyttä
c43286c569 Python collection formatting fixes/support (#3697)
* python: Rework form data collection formatting support

* python: Add/fix support for query string collection formatting

* python: Add/fix support for path collection formatting

* python: Add/fix support for header collection formatting
2016-09-02 16:17:46 +08:00
Ville Skyttä
2af822677f php: Fix syntax error when pattern contains a single quote 2016-09-02 10:42:08 +03:00
Ville Skyttä
6bb0ea2e8a ruby: Fix syntax error when pattern contains a single quote 2016-09-01 20:45:52 +03:00
wing328
b909252bb8 Merge pull request #3699 from scop/java
java: Javadoc fixes
2016-09-02 00:44:53 +08:00
wing328
11ae12b09d [Scalatra] replace {} with : in scalatra path (#3694)
* replace {} with : in scalatra path

* remove unused var in scalatra code gen
2016-09-02 00:25:07 +08:00
wing328
5467c41dad Merge pull request #3698 from scop/spelling
Spelling fixes
2016-09-02 00:24:06 +08:00
Ville Skyttä
0363858672 java: Javadoc fixes 2016-09-01 18:07:35 +03:00
Ville Skyttä
e52a8e34cb Spelling fixes 2016-09-01 17:39:30 +03:00
Arpit Suthar
e7ec360ba8 Added 'modelPropertyNaming' option for Scala (#3685)
* Closed #3675
1. Added 'modelPropertyNaming' option for scala
2. Executed ./bin/scala-petstore.sh (no changes).

* Removed unwanted code #3675
2016-09-01 18:22:03 +08:00
Jyotsna Karan
062e6fc3ac Added functionality to handle optional parameters for Scala (#3683)
* 1. Modified api.mushtache to handle optional paramters for scala (#3665)
2. Updated petstore sample for scala

* Generated scala-petstore.sh (#3665)

* 1. Updated api.mustache to handle optional thing with headers and file parameters
2. Generated petstore sample for the above changes
2016-09-01 18:11:23 +08:00
Ville Skyttä
8e7d3d1a72 Python fixes (#3689)
* python: Fix unsupported method exception message

* python: Implement form data collection formatting
2016-09-01 15:05:52 +08:00
wing328
e044f9d9bf Remove unnecessary change when generating API clients (#3684)
* remove unnecessary changes for python codegen

* remove unnecessary change for ruby codegen

* remove unnecessary changes for php codegen

* add hided timestamp option to swfit codegen

* remove unnecesary change in JS codegen

* remove unnecessary change in JS closure codegen

* remove unnecessary change for c# codegen

* fix JS auth issue due to missig comma
2016-08-31 18:12:04 +08:00
wing328
d464bfbd59 fix JS auth issue due to missig comma 2016-08-31 17:50:56 +08:00
wing328
eb59e2945e remove unnecessary change for c# codegen 2016-08-31 17:31:55 +08:00
wing328
8523c57f8c remove unnecessary change in JS closure codegen 2016-08-31 17:13:35 +08:00
wing328
5804fbc1dd remove unnecesary change in JS codegen 2016-08-31 16:52:46 +08:00
wing328
322862c4b6 add hided timestamp option to swfit codegen 2016-08-31 16:45:12 +08:00
wing328
da45cb7ff5 remove unnecessary changes for php codegen 2016-08-31 16:38:30 +08:00
wing328
4ea4488212 remove unnecessary change for ruby codegen 2016-08-31 15:57:04 +08:00
wing328
ebfddd0a58 remove unnecessary changes for python codegen 2016-08-31 15:49:22 +08:00
wing328
2ced9e1deb Don't HTML escape PHP pattern output (#3672)
* php: Do not HTML escape patterns

* php: Update petstore

* lumen: Do not HTML escape pattern

* lumen: Update petstore
2016-08-31 14:07:29 +08:00
wing328
3ec6ee1995 Merge branch 'scop-python-patterns' 2016-08-31 13:55:23 +08:00
wing328
429bc46a79 Merge branch 'python-patterns' of https://github.com/scop/swagger-codegen into scop-python-patterns 2016-08-31 13:54:47 +08:00
wing328
9c8e4f60aa clearer wording 2016-08-31 12:51:09 +08:00
wing328
afe028b243 Merge branch 'zbiro-issue-3647' 2016-08-31 00:25:23 +08:00
wing328
343ca03512 Merge branch 'issue-3647' of https://github.com/zbiro/swagger-codegen into zbiro-issue-3647 2016-08-31 00:25:06 +08:00
Ville Skyttä
fa0e0f4fcc python: Update petstore 2016-08-30 08:07:35 +03:00
Ville Skyttä
cdcc61b038 python: Do not HTML escape patterns 2016-08-30 08:06:02 +03:00
Ville Skyttä
a4dbd761f8 python: Fix escaping of quote in patterns 2016-08-30 08:06:02 +03:00
Ville Skyttä
77a2973da4 lumen: Update petstore 2016-08-30 08:05:04 +03:00
Ville Skyttä
cfe1b7a2b4 lumen: Do not HTML escape pattern 2016-08-30 08:05:04 +03:00
Ville Skyttä
a95ade6d2a php: Update petstore 2016-08-30 08:05:04 +03:00
Ville Skyttä
8f98a6d6f5 php: Do not HTML escape patterns 2016-08-30 08:05:04 +03:00
Daniel Ge
dd1ed12318 Make connection failures visible with generated Ruby SDKs (#3640)
* Make connection failures visible in Ruby SDK

The underlying HTTP library, Typhoeus, requires you to be explicit about
error handling. Unfortunately, this also means that we can't assume that
`response.success?` will be false only when the HTTP status code is not
a 200; it could also be false when the request fails (timeouts, TLS
verification issues, etc.). This commit adds explicit error handling for
these cases.

* Update samples
2016-08-30 10:28:07 +08:00
Ville Skyttä
224fd208e7 Various python cleanups (#3650)
* python: Let logging format messages on demand

* python: Use six more

* python: Remove unused imports

* python: flake8 fixes

* python: Make examples compatible with Python 3

* python: Spelling fixes
2016-08-30 10:16:17 +08:00
wing328
d8406c0dd0 add PR template (#3669) 2016-08-29 23:21:28 +08:00
Zoltan Biro
646c4faa62 fixing python code formatting issue 2016-08-29 16:53:38 +02:00
Zoltan Biro
b050ba9dc3 regenerate petstore sample 2016-08-29 16:47:22 +02:00
Zoltan Biro
10aa68c6b7 Fix empty model object serialization in python client 2016-08-29 16:08:45 +02:00
sidhantgoyal
8dfe230b7c [android] volley socket timeout configurable (#3646)
* [android] volley socket timeout configurable

* Updated Android Volley Petstore sample
2016-08-29 16:31:49 +08:00
wing328
d93ef8531b Merge pull request #3645 from guohuang/compile_issue2
[Go] fixing code gen not recognizing 'object' type issue
2016-08-29 15:39:25 +08:00
wing328
04ce4ef867 Merge pull request #3657 from cvent/cvent-fixes
Fix to case of propertyClass which pukes on most checkstyle rules in …
2016-08-29 15:23:42 +08:00
Brent Ryan
46c3bef40f Fix to case of propertyClass which pukes on most checkstyle rules in java 2016-08-28 20:49:30 -04:00
wing328
4164726b07 Merge pull request #3656 from scop/spelling
Spelling fixes
2016-08-28 22:57:54 +08:00
Ville Skyttä
2fbec6d9eb Spelling fixes 2016-08-28 17:05:34 +03:00
wing328
10b360c4a7 Merge pull request #3655 from scop/perl-user-agent
perl: Sync default user agent with other languages
2016-08-28 21:13:49 +08:00
Ville Skyttä
9c92bcb693 perl: Sync default user agent with other languages 2016-08-28 15:11:32 +03:00
Sebastian Haas
4337f050f5 Angular2 rc5 (#3603)
* Changes due to changes in Angular's http module.

* Added link to issue re Headers clone. Removed use-strict since its emitted by default from TypeScript 1.8 on.

* Added missing import for ResponseContentType.

* Added null check fix for Angular http issue.

* Updated package.json and typings

Signed-off-by: Sebastian Haas <sebastian@haas.tech>
2016-08-28 18:30:11 +08:00
wing328
440b7211de Merge pull request #3653 from scop/java
java: Fix model package import in example
2016-08-28 16:23:57 +08:00
wing328
598c21b06e add new perl petstore files 2016-08-28 16:02:09 +08:00
wing328
72d0cd7eb4 update petl sample 2016-08-28 15:57:50 +08:00
Ville Skyttä
85c7e7697a Perl example fixes (#3652)
* perl: Add configuration and classname imports to examples

* perl: Fix list container syntax in examples
2016-08-28 15:56:00 +08:00
Ville Skyttä
756f7a96f6 java: Fix model package import in example 2016-08-28 01:00:34 +03:00
wing328
a6fd8442b2 Merge pull request #3649 from scop/spelling
Spelling fixes
2016-08-27 14:57:53 +08:00
Ville Skyttä
b4c139f19b Spelling fixes 2016-08-27 02:34:33 +03:00
Guo Huang
be0233c609 [Go] fixing code gen not recognizing 'object' type issue 2016-08-25 21:44:57 -07:00
wing328
c0a72fdcd6 add QuantiModo 2016-08-26 10:46:18 +08:00
wing328
2a77dbdd4c add emc 2016-08-26 00:10:10 +08:00
wing328
419c3165ea Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-08-25 23:14:58 +08:00
wing328
e1ae348db4 Merge branch 'mikesol-mikesol-patch-android-classVarName' 2016-08-25 23:13:06 +08:00
wing328
81f947e723 update android petstore sample, add this to volley's model 2016-08-25 23:12:23 +08:00
wing328
12fbbfbd6d Merge branch 'mikesol-patch-android-classVarName' of https://github.com/mikesol/swagger-codegen into mikesol-mikesol-patch-android-classVarName 2016-08-25 23:05:09 +08:00
wing328
d590b849cc Merge pull request #3626 from medallia/flatten-composed-model
Adds flattener for ComposedModel
2016-08-25 23:04:01 +08:00
Tony Wang
beaf1fc7aa fix #3477, add RxSwift support for Swift (#3490)
* fix #3477, add RxSwift support for Swift

* make the SwaggerClient scheme shared
2016-08-25 19:34:12 +08:00
wing328
8c2267cd3d Merge pull request #3624 from ButterflyNetwork/swift-better-errors
[Swift] Include HTTP status code and body data in response errors
2016-08-24 23:39:37 +08:00
cbornet
194c389a06 fix some inheritance/composition issues and add allOf unit tests
Fix #3629 #3544 #3474 #3636
2016-08-24 17:11:45 +02:00
wing328
25a14f5d77 add http://www.plexxi.com/ 2016-08-24 22:28:08 +08:00
Jason Gavris
e89f914e8b [Swift] Handle String responses 2016-08-23 10:18:01 -04:00
Jason Gavris
3a457c6a7e [Swift] Handle Void responses 2016-08-23 10:03:51 -04:00
Diego de Estrada
84de96ef65 Adds flattener for ComposedModel 2016-08-22 17:54:30 -03:00
Ryan Martin
c1f3c51427 [Swift] Include HTTP status code and body data in response errors
This is useful when differentiating different error responses. Example:

if let e = error {
  switch e {
    case ErrorResponse.Error(400, _, _): responseLabel.text = "Unknown error"
    case ErrorResponse.Error(403, _, _): responseLabel.text = "Not logged in"
    default: responseLabel.text = "\(e)"
  }
}

The existing error is straight from Alamofire and only includes the HTTP
status code in the body of the message (not broken out as a separate value).
It also does not include the response body, which may be useful.
2016-08-22 12:30:03 -04:00
Damien Pontifex
54fe7a731c inject base_path opaque token for typescript angular2 (#3514)
* inject base_path opaque token for typescript angular2

* Readme note on providing base path to service
2016-08-22 21:40:51 +08:00
Yet Another Minion
9a77c48540 For Qt5 server generator, add BaseIntegerProperty to default values (#3622)
* For Qt5 server generator, add BaseIntegerProperty to default values

* move base property check to after checks of extended properties
2016-08-22 19:52:10 +08:00
wing328
dd52d666c5 Merge pull request #3623 from wing328/ruby_better_pattern
Add function to handle missing delimiter in regex
2016-08-22 19:12:03 +08:00
wing328
a58845bb0f add function to handle missing delimiter in regex 2016-08-22 18:01:06 +08:00
regga-ws
4d94511935 Allowing generators to be aware of original inputSpec path (#3592)
* Enabling knowledge of inputSpec path for custom generators

* Enabling knowledge of inputSpec path for custom generators

* Enabling direct use of "inputSpec" property in templates

* Fixing spaces
2016-08-22 16:04:53 +08:00
wing328
44c8893ed5 update wording 2016-08-21 12:18:45 +08:00
wing328
4e20bd9bab [Java][Spring][Inflector][Jax-RS] To fix various enum issues (#3615)
* fix spring enum deserialization issue

* fix enum class for spring

* update java inflector to fix enum tostring

* fix jaxrs jersey1 enum toString

* fix jaxrs jersey patch issue
2016-08-20 17:54:45 +08:00
Kevin Chabreck
64e03422c0 [Spring Boot] use port defined in spec file for server.port value (#3605)
* uncommented server.port property in application.mustache template and set it to serverPort value parsed from spec file

* update Petstore sample for Spring MVC and Boot
2016-08-19 17:29:36 +08:00
Mike Solomon
8536d7991c Uses this.{{name}} to scope instance
Otherwise, if {{classVarName}} is the same as a class member name, the function will not work.
2016-08-19 10:11:31 +03:00
wing328
d7d351682f Merge pull request #3610 from michalyao/master
update to version 2.2.2
2016-08-18 10:17:35 +08:00
wing328
2fe2ed2b51 Merge pull request #3602 from michalyao/patch-2
update to version 2.2.2
2016-08-18 10:17:13 +08:00
wing328
24c0038cce [Java][Inflector] Fix enum issue with java inflector (#3606)
* fix enum issue with java inflector

* update pom to test java-inflector
2016-08-18 09:48:50 +08:00
Yao Yao
52125c33ad update to version 2.2.2 2016-08-18 09:10:16 +08:00
wing328
1587caf9a6 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-08-17 23:05:41 +08:00
wing328
77d3131e7e Merge branch 'neilotoole-issue-3461-configurable-transport' 2016-08-17 23:05:20 +08:00
wing328
535de68701 update go petstore sample 2016-08-17 23:05:03 +08:00
wing328
661c911d27 Merge branch 'issue-3461-configurable-transport' of https://github.com/neilotoole/swagger-codegen into neilotoole-issue-3461-configurable-transport 2016-08-17 22:52:44 +08:00
Yao Yao
712672ff0e Modify the url of the swagger-codegen-cli.jar (#3600)
* Modify the url of the swagger-codegen-cli.jar

The jar which I download from the current url can't run the command properly.

* fixed the url

* fixed  the url
2016-08-17 18:18:35 +08:00
wing328
0196cfad55 Merge pull request #3599 from ggood/okhttp-gson-template-path-fix
Don't escape path in generated okhttp-gson client code
2016-08-17 15:21:37 +08:00
Yao Yao
262dc14143 update to version 2.2.2 2016-08-17 15:16:56 +08:00
wing328
c166609438 Merge pull request #3595 from MikeRalphson/patch-1
Fix typo, descripton -> description
2016-08-17 11:21:13 +08:00
Gordon Good
534e4db527 Don't escape path in generated okhttp-gson client code
The mustache templates for the other Java clients (e.g
Java/api.mustache) use 3 curly brackets around the path variable
so the path is not escaped. Make the okhttp-gson template
consistent with them.
2016-08-16 17:12:37 -07:00
Tony Tam
a6ae8fbd3a Merge pull request #3598 from swagger-api/issue-3597
added configuration for swagger-yaml output file
2016-08-16 16:30:14 -07:00
Tony Tam
7bc9c4041b added configuration for swagger-yaml output file, #3597 2016-08-16 15:59:47 -07:00
Mike Ralphson
f6a91db2d3 Fix typo, descripton -> description 2016-08-16 22:42:00 +01:00
wing328
7a49f96a03 Merge pull request #3591 from scottrw93/read-only-fix
Create setter for models inline with Issue 3210
2016-08-16 16:03:14 +08:00
wing328
9858403f2e Merge pull request #3582 from regga-ws/compiler-customization
Adding support for JMustache compiler customization
2016-08-16 14:21:20 +08:00
Scott Williams
68d63ec783 Create setter for models inline with Issue 3210 2016-08-15 23:31:30 +01:00
Nekrasov Aleksander
91675c97e2 Fix resteasy offsetdatetime provier (#3332)
* Fix offsetDateTime and remove unnecessary override annotations

* Update petstore samples to CI for resteasy testing

* fix resteasy templates path

* add ability to hide generated annotations

* Update petstore resteasy samples

* Deduplicate artifact names in resteasy projects
2016-08-15 23:46:52 +08:00
Alexandre Estela
9d5e2c0224 Adding support for JMustache compiler customization 2016-08-12 12:21:10 +02:00
wing328
3d717bd874 add symbolic enum support to csharp 2016-08-12 16:27:47 +08:00
wing328
f7143727e7 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-08-12 15:38:00 +08:00
wing328
2943177d06 Merge branch 'kartenkarsten-patch-1' 2016-08-12 15:37:46 +08:00
wing328
1c9c2eb09c update java jersey1 sample 2016-08-12 15:37:31 +08:00
wing328
621dee30a8 Merge branch 'patch-1' of https://github.com/kartenkarsten/swagger-codegen into kartenkarsten-patch-1 2016-08-12 15:33:02 +08:00
wing328
f746a93da4 Merge branch 'csharp/INotifyPropertyChanged' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp/INotifyPropertyChanged 2016-08-12 15:04:04 +08:00
wing328
4fe0b3350c Merge pull request #3576 from ModelSolv/issue-3572
Issue 3572 Remove duplicate CLI Options
2016-08-12 14:39:58 +08:00
wing328
1dd8c2be9d Merge branch 'arikon-feature/js-fix-types' 2016-08-12 10:31:09 +08:00
wing328
0a5cd19e97 update JS test cases 2016-08-12 10:30:33 +08:00
wing328
02f43bc195 Merge branch 'feature/js-fix-types' of https://github.com/arikon/swagger-codegen into arikon-feature/js-fix-types 2016-08-12 10:08:24 +08:00
wing328
7cc494786f Merge branch 'JackWink-feature/jack/update-swift-alamofire' 2016-08-12 09:18:24 +08:00
wing328
3c1e47c31d Merge branch 'feature/jack/update-swift-alamofire' of https://github.com/JackWink/swagger-codegen into JackWink-feature/jack/update-swift-alamofire 2016-08-12 08:59:12 +08:00
Sergey Belov
e01095f53b Fix Javascript types 2016-08-11 23:05:37 +03:00
Andy Lowry
90a113b441 Issue 3572 Remove dupe options in jaxrs-spec
Removed CLI option declarations in JavaJAXRSSpecServerCodegen that also
appear in AbstractJavaJAXRSServerCodegen.
2016-08-11 13:43:14 -04:00
Andy Lowry
933b2aa2c3 Merge pull request #1 from swagger-api/master
Update our fork
2016-08-11 11:25:14 -04:00
wing328
752ba61e67 [Go] Add more test cases and fix numeric form/header parameters (#3574)
* add more tests for go, fix numeric form/header parameters

* update go sample
2016-08-11 14:28:31 +08:00
wing328
f41264c958 Merge pull request #3573 from ivucica/ivucica_go_fix-username-capitalization
Go: Replace `.Username` with `.UserName` in generated API methods.
2016-08-11 12:19:41 +08:00
Ivan Vučica
cf0d9b48fd Go: Replace .Username with .UserName in generated API methods.
Right now, any generated code where the http basic authentication is
required is broken, as it tries to access nonexistent field in the
generated `Configuration` struct.

The alternative is to fix `configuration.mustache` to replace the
`UserName` field with `Username` field.
2016-08-10 21:36:35 +00:00
Ado Nishimura
eefb2152e9 [htmlDoc2] curl sample - conditionally add 'apiKey'. (#3561) 2016-08-10 16:43:47 +08:00
wing328
d2d5553a45 [Go] prefix go local var with localVar (#3570)
* prefix go local var with localVar

* remove pom from go, minor fix to headerParams
2016-08-10 16:14:33 +08:00
wing328
7827298e56 [Go] Fix CI tests (#3569)
* show path

* install go
2016-08-10 15:34:48 +08:00
wing328
31fd1df26b Merge pull request #3562 from wing328/add_enum_endpoint
[Java][Spring] Add enum test cases and fix formParam's enum value
2016-08-09 23:32:04 +08:00
wing328
dbeb82f976 Merge pull request #3564 from cliffano/fix-incorrect-param-update-params-for-auth
Fix unknown parameter on api_client's update_params_for_auth method.
2016-08-09 23:27:15 +08:00
Karsten Hinz
58f00efcc3 sample update 2016-08-09 15:09:48 +02:00
Karsten Hinz
03986761dc typo
eleif zu else if
2016-08-09 15:06:26 +02:00
wing328
d626200479 fix form enum parameters for spring generator, add more test cases 2016-08-09 19:49:38 +08:00
wing328
453f80a1d3 add new java client files 2016-08-09 18:59:59 +08:00
wing328
8ef3b61228 Merge pull request #3559 from wing328/java_jersey_indent
[Java] minor indentation fix for java enum models
2016-08-09 17:39:02 +08:00
Cliffano Subagio
aba2d35a18 Fix unknown parameter on api_client's update_params_for_auth method. 2016-08-09 19:11:26 +10:00
wing328
d4fa88a2ef Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-08-09 17:09:09 +08:00
wing328
79385aa503 Merge branch 'beingcoder-top-enum-error-securityscope-newline-error' 2016-08-09 17:08:51 +08:00
wing328
efb68d153f update sampel for spring petstore 2016-08-09 17:02:19 +08:00
wing328
817a78e3a7 minor indentation fix for java enum models 2016-08-09 16:50:21 +08:00
wing328
e1fd176ae2 Merge branch 'patch-1' of https://github.com/kartenkarsten/swagger-codegen into kartenkarsten-patch-1 2016-08-09 16:26:25 +08:00
wing328
87c31188b7 Merge pull request #3550 from jimschubert/aspnet/models-casing
[aspnet] Honor casing of properties from definition
2016-08-09 14:55:03 +08:00
rynger
3faee1f6ce Amending Path annotation (#3553)
* Amending Path annotation

Changed the Path annotation value from "/" to "/{{baseName}}"

* jaxrs-cxf-petstore-server.sh script was not referencing cxf module directory. Included generated files following script run. Have amended Path annotation value to {{contextPath}} and removed public access modifier from template as this is redundant for Java interface definition.
2016-08-09 12:09:07 +08:00
wing328
c4835ea52e [TypeScript] fix array enum (#3538)
* better enum support for typescript angular2

* fix enum property for TS

* fix non-array enum datatype for TS

* update build name for TS fetch petstore client

* restore TS fetch enum naming

* [TS fetch]add test cases, fix enum integer naming
2016-08-09 10:49:26 +08:00
wing328
529f45c337 add 2.2.2 2016-08-09 10:23:49 +08:00
wing328
cec072ecf4 update wget to 2.2.1 2016-08-08 23:56:04 +08:00
wing328
7a245e3189 [JavaScript] add enum tests cases for JS generator (java) (#3546)
* add enum tests cases for JS generator (java)

* fix typo quote
2016-08-08 18:52:24 +08:00
wing328
ad3d9cd3b4 Merge pull request #3529 from JackDanger/danger/allow-go-config
Restore ability to configure Go
2016-08-08 18:30:18 +08:00
wing328
39e0e22c57 Merge pull request #3534 from arnested/php-enums-in-containers
[PHP] Fix enum validation in container setters
2016-08-08 18:29:44 +08:00
wing328
aed66aeee9 Merge pull request #3524 from dmytrobr/bug/issue-3523
support Title as model name for any inline object
2016-08-08 18:28:57 +08:00
Cliffano Subagio
3f7127b042 [Java] Add maven-javadoc-plugin to all Java clients. (#3503)
* Add maven-javadoc-plugin to all Java clients.

* Update sample petstores for other Java clients.

* Fix unknown parameter on api_client's update_params_for_auth method.

* Revert "Fix unknown parameter on api_client's update_params_for_auth method."
To be moved to a separate PR.

This reverts commit 1ee186694241bb6d9a0dccefcdca5afe3f5a1dd2.
2016-08-08 18:27:05 +08:00
wing328
328eb5b9e3 Merge pull request #3548 from wing328/php_enum_test_cases
[PHP] add enum test cases for PHP generator (java)
2016-08-08 18:22:43 +08:00
Jim Schubert
c744e55217 [csharp] client property validations 2016-08-07 21:24:55 -04:00
Tony Tam
c4f3cb1d9e updated dev versions 2016-08-07 23:03:44 +02:00
Tony Tam
371a021ef5 Merge pull request #3549 from swagger-api/release-prepare
updated versions for release
2016-08-07 23:02:24 +02:00
Tony Tam
be3a49183e Merge branch 'master' into release-prepare 2016-08-07 18:41:16 +02:00
Tony Tam
5f67ec021d Merge pull request #3551 from wing328/java_fix_okhttp_model
[Java] Fix @JsonCreator annotation issue with Java API clients using gson
2016-08-07 18:40:29 +02:00
wing328
d8cdcbf042 fix jsoncreator annotation issue with java api clients using gson 2016-08-08 00:16:12 +08:00
Jim Schubert
adc445a5ff [aspnet] Honor casing of properties from definition 2016-08-07 09:14:07 -04:00
Tony Tam
c147cfde1b updated release versions 2016-08-07 11:49:01 +02:00
Jim Schubert
3d7f6ad099 [csharp] documented help switch for generating property change 2016-08-06 21:38:52 -04:00
wing328
b547d56d29 add enum test case to php generator (java) 2016-08-07 06:39:56 +08:00
Jim Schubert
797afe9d15 [csharp] PropertyChanged support .NET 4.x+ 2016-08-06 16:54:50 -04:00
wing328
e8095c6a04 Merge pull request #3543 from guohuang/compile_issue2
[GO] Fixing compilation issue when pathParams  is not presented
2016-08-06 14:07:00 +08:00
wing328
c220dbb2f5 Merge pull request #3541 from expectedbehavior/configuration-misspelling
Fix spelling in ruby ApiClient: Configuraiton -> Configuration
2016-08-06 13:10:46 +08:00
Guo Huang
bef5c74da7 removed unneeded "errors" import 2016-08-05 21:34:04 -07:00
Guo Huang
ab96b318e2 [GO] Fixing compilation issue when pathParams is not presented 2016-08-05 14:53:05 -07:00
Joel Meador
950fb43fdf fix spelling in ruby ApiClient: Configuraiton -> Configuration 2016-08-05 14:36:08 -04:00
Tony Tam
1f58526615 updated to release version of parser 2016-08-05 19:42:21 +02:00
wing328
148a842f3b fix #2538 (#3535) 2016-08-05 18:09:00 +08:00
Arne Jørgensen
4008054209 [PHP] Regenerate petstore samples 2016-08-05 11:25:49 +02:00
Arne Jørgensen
03c7e3ea0b [PHP] Fix enum validation in container setters
When the setter is taking an array as argument we cannot use
`in_array()` to validate if the values are part of the allowed enum
values. Instead we use `array_diff()` for containers now.
2016-08-05 10:53:02 +02:00
Tony Tam
b74c1b98a2 updated version 2016-08-05 10:32:06 +02:00
Tony Tam
e6f6e66167 Merge branch 'master' of github.com:swagger-api/swagger-codegen 2016-08-05 10:31:24 +02:00
wing328
47738f6cd6 [Sinatra][Nancyfx] fix enum in Sinatra and nancyfx (#3532)
* fix enum in sintra and nancyfx

* add isContainer check for sinatra allowable value

* fix EOL in nancyfx enum template
2016-08-05 16:30:59 +08:00
Tony Tam
f82d4fa033 updated version 2016-08-05 09:09:45 +02:00
Tony Tam
ce7a5682d5 version update 2016-08-05 08:54:36 +02:00
Tony Tam
125338a081 updated parser 2016-08-05 08:53:13 +02:00
wing328
41ffc70d93 Merge pull request #3531 from wing328/java_test_enum
[Java] add enum test cases for Jackson, Gson
2016-08-05 12:19:24 +08:00
wing328
d76c7cc5e8 add test cases for jersey1 enum 2016-08-05 11:49:34 +08:00
wing328
a2496df401 add test case for okthtp-gson enum 2016-08-05 11:45:51 +08:00
wing328
122af80881 better symbol mapping for enum name 2016-08-05 11:28:07 +08:00
Jack Danger Canty
6010c1e6d8 Restore ability to configure Go 2016-08-04 15:40:18 -07:00
wing328
89fe3403a7 add enum test case for jersey2 2016-08-05 01:57:34 +08:00
Dmytro Kryvoshei
fe5c235727 fixed InlineModelResolver to support Title as model name for any inline
object

InlineModels defined within MapProerty and ArrayProerty were not using
"title".
Added Unit Tests
2016-08-04 08:57:16 -04:00
wing328
5b4eb96ba1 Merge pull request #3519 from wing328/enum_name_mapping
[Java] better enum naming for symbol
2016-08-04 17:06:46 +08:00
wing328
670f103859 better enum naming for symbol (java) 2016-08-04 16:37:48 +08:00
Neil O'Toole
70d8041cb4 fixed config to support transport, and other options 2016-08-03 20:42:21 -06:00
wing328
d5bf43b824 Merge pull request #3511 from wing328/bug/3355
[Java][Spring] fix models with enum properties
2016-08-03 19:02:18 +08:00
wing328
3238fd2853 ignore 2 test cases in spring cloud client 2016-08-03 18:43:43 +08:00
wing328
0547f0d6d8 fix spring enum model 2016-08-03 16:38:02 +08:00
wing328
3dc31ced8e update https to http for Germin8 2016-08-03 16:37:17 +08:00
wing328
7d8c9dc40a add Germin8 2016-08-03 16:36:08 +08:00
wing328
81f981c54d Merge pull request #3506 from wing328/fix_array_enum
[JaxRS][PHP] Fix issue with enum
2016-08-03 14:50:05 +08:00
wing328
26c33d344d Merge pull request #3507 from chrislewis/gen-readme-typo
s/It's/Its
2016-08-03 12:14:36 +08:00
wing328
5103045246 Merge pull request #3504 from himanshu-mishra/issue-3502
Using baseName in place of paramName in request header. Closes #3502
2016-08-03 10:50:57 +08:00
Chris Lewis
3bd01b988e s/It's/Its 2016-08-02 15:50:25 -04:00
wing328
811b5940eb update jaxrs with better test, fix enum issue, patch operation 2016-08-03 01:36:34 +08:00
wing328
1fde95f997 fix java okhttp (array of enum property) 2016-08-03 01:36:34 +08:00
wing328
25fa3e86f9 add enumName to store the enum prefix 2016-08-03 01:36:13 +08:00
wing328
0b8acb5b0c set allowablevalues of inner enum's allowablevalues 2016-08-03 01:35:58 +08:00
Himanshu Mishra
24d8c621c2 Using baseName in place of paramName in request header. Closes #3502 2016-08-02 21:38:26 +05:30
wing328
bbe422947f Merge pull request #3501 from wing328/revert_3391_2
Revert "Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen"
2016-08-02 18:28:15 +08:00
wing328
ed9dea6a89 Revert "Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen"
This reverts commit 7c1daab896, reversing
changes made to aa58497247.
2016-08-02 17:49:55 +08:00
wing328
7bd37468bc Merge pull request #3496 from Kvezon/jersey2-byte-array-deserialize
Support byte[] downloading in Java jersey2 client
2016-08-02 16:24:40 +08:00
wing328
390ec38ec7 Merge pull request #3482 from cliffano/master
[Java] Add maven-javadoc-plugin in pom.xml of generated Java client.
2016-08-02 16:19:29 +08:00
wing328
1886abb9f9 Merge pull request #3487 from szantopeter/master
fixing bug of rendering an extra spaces into @FeignClient annotation
2016-08-01 23:12:39 +08:00
Kvezon
ef526422e9 Support byte[] downloading in Java jersey2 client 2016-08-01 16:33:58 +03:00
Peter Szanto
9cc4e1fee0 updated readme.md 2016-08-01 15:16:00 +02:00
Peter Szanto
abd5b3f4de regenerated the spring-cloud sample 2016-08-01 14:50:09 +02:00
wing328
103cc7410b Merge pull request #3494 from osher/patch-1
NodeJS generator - Harken to the the warnings ...
2016-08-01 20:43:18 +08:00
osher
30776d75a9 NodeJS generator - Harken to the the warnings ...
2 types of warnings are emitted in bulk whenever using the nodeJS generator.

I did some guesswork: since JS is a c-type language like C# and Java - I looked there for reference, and followed their example.
2016-08-01 13:40:29 +03:00
wing328
f5e20b4e88 Merge pull request #3493 from arnested/php/Client_properties_validation-3480
[PHP] Fix invalid PHP syntax
2016-08-01 18:06:56 +08:00
Arne Jørgensen
aacc235665 [PHP] Regenerate petstore samples 2016-08-01 11:48:52 +02:00
Arne Jørgensen
cfe8dfc112 [PHP] Fix invalid PHP syntax
Fixes 3480.
2016-08-01 11:46:57 +02:00
wing328
df05295f40 add confluence wiki 2016-08-01 17:35:05 +08:00
wing328
61b86c74fb Merge branch 'jhitchcock-feature/confluencewikidocs' 2016-08-01 17:30:04 +08:00
wing328
c6e6a6560a add shell script for cwiki 2016-08-01 17:29:27 +08:00
wing328
1bdd15c55c Merge branch 'feature/confluencewikidocs' of https://github.com/jhitchcock/swagger-codegen into jhitchcock-feature/confluencewikidocs 2016-08-01 17:25:20 +08:00
wing328
85c8eb3d76 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-08-01 17:25:13 +08:00
wing328
4895a35200 Merge pull request #3492 from wing328/ruby_optional_validation
[Ruby] fix validation for optional parameters/properties for ruby
2016-08-01 17:12:39 +08:00
wing328
8c357dd1d6 fix validation for optional parameters/properties for ruby 2016-08-01 16:50:11 +08:00
wing328
fa7bd21420 add template owner for html doc 2 2016-08-01 16:17:24 +08:00
wing328
434b4fd359 Merge pull request #3447 from jhitchcock/feature/static-docs-2
[WIP] - Html Docs 2 - API and Client Library Documentation - Feedback / Assistance wanted
2016-08-01 16:13:16 +08:00
Arne Jørgensen
0f8e1f8105 [PHP] Client properties validation #3457 (#3480)
* [PHP] Avoid validation of unset, optional parameters

Fixes #3457.

* [PHP] Regenerate petstore samples
2016-08-01 15:24:47 +08:00
abcsun
d7c959fe42 [PHP] add AbstractPhpCodegen to be as the base class of PHP-related generators (#3310)
* add abstractPhpCodegen

* This base class should provide common functions to PHP-related generators so that the same enhancements or bug fixes can be applied to all clients.

Most source be moved from the PhpClientCodegen.

* change Lumen codegen to use the AbstractPhpCodegen

* remove the composerVendorName/composerProjectName. modify the LumenServerOptionsTest for unit test

* add context path

* reserve the apiDocPath and modelDocPath

* add the templateDir for lumen
2016-08-01 15:23:35 +08:00
Yao, Yao
62921e4eb4 issue fix: for top enum definition, either enum parameter or enum model definition, auto-generated code is invalid. 2016-08-01 14:40:35 +08:00
Yao, Yao
a772a855ee issue fix: when security.scope. description has a precedent | ,newline in markdown, generated api will break as an extra newline is added. 2016-08-01 14:35:27 +08:00
wing328
3d7ff26c67 [C#] Add C# Petstore test to AppVeyor (#3489)
* update appveyor.yml to test c# petstore client

* update csproj file

* add docker version test

* add docker version

* add docker

* add cpuid.ps1

* comment out cpuid

* use start process

* remove mvn test

* remove comments related to docker

* fix appveyor to run local petstore, shippable caching turned on

* add comments to ci config

* remove cpuid.ps1

* update C# petstore sample
2016-07-31 22:37:06 +08:00
wing328
2d491dce71 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-07-31 10:33:47 +08:00
Peter Szanto
c91b004b0b fixing bug of rendering an extra spaces into @FeignClient annotation properties 2016-07-31 04:16:22 +02:00
wing328
75cd4bf437 add shippable badge, update travis badge 2016-07-31 10:07:04 +08:00
Jack Wink
be6c661fa0 [Swift] Update samples to use latest Alamofire
In order to run the integration tests, we needed to generate updated
clients.
2016-07-30 12:19:06 -07:00
wing328
7c1daab896 Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen 2016-07-30 16:17:08 +08:00
Jack Wink
f2ebb08b33 [Swift] Use the latest Alamofire (3.4.1)
This commit updates the Swift client templates to be compatible with the
latest version of Alamofire. It bumps the dependency version in the
podspec and names the argument when calling `responseData`. We found
that XCode was having trouble with the overloaded methods and needed the
named argument for hinting.
2016-07-29 21:57:08 -07:00
jhitchcock
c377153336 Confluence Wiki Documentation 2016-07-29 12:09:03 +02:00
wing328
aa58497247 add decentfox 2016-07-29 10:38:51 +08:00
wing328
293096f565 Merge pull request #3476 from philicious/qt5-generator-fixes
Qt5: Added missing datatype handlers for QByteArray for swagger-type "byte"
2016-07-29 09:43:50 +08:00
wing328
4e17221494 Merge pull request #3471 from cbornet/fluent_containers
[JAVA] Add fluent methods to add items to list and put items to maps
2016-07-29 09:33:31 +08:00
wing328
33b33cb384 add Skurt to company list 2016-07-29 08:04:46 +08:00
philicious
a67f168fa6 Qt5: add handling for swagger type-format "byte" to Qt5 generator 2016-07-28 19:34:45 +02:00
philicious
b2cb215741 Qt5: added missing data type handler for QByteArray to SWGHelper 2016-07-28 19:29:33 +02:00
Cliffano Subagio
8d4cfcae78 Add maven-javadoc-plugin in pom.xml of generated Java client. 2016-07-28 23:06:57 +10:00
wing328
46a222088e update go petstore sample 2016-07-28 00:24:36 +08:00
wing328
c8764fe0d0 Merge pull request #3470 from neilotoole/issue-3469-unused-errors-import
[Go] removed unused import
2016-07-28 00:20:24 +08:00
cbornet
3b4465d999 add fluent methods to add items to list and put items to maps 2016-07-27 18:18:48 +02:00
Neil O'Toole
75403f1900 removed unused import 2016-07-27 09:35:04 -06:00
Karsten Hinz
926d4a2b76 improved Multipart/form-data file upload support
this code will fix #3389 ( change of content Type to MediaType.APPLICATION_OCTET_STREAM_TYPE)
+ possibility for multi file upload (as List)
2016-07-27 13:06:05 +02:00
wing328
34137c703b Merge pull request #3467 from wing328/bug/fix_3396
[Haskell] fix casting issue with ModelImpl in Haskell generator
2016-07-27 18:40:49 +08:00
wing328
3cd37bf5e9 fix casting issue with ModelImpl in Haskell 2016-07-27 18:07:35 +08:00
wing328
c23b473636 [Go] update travis config to run Go Petstore tests (#3465)
* update pom to include go ci

* fix pom

* add gopath

* update GOPATH

* reorder pom client, server test sequence

* remove debug echo in travis
2016-07-27 16:19:23 +08:00
wing328
748eaa849e Merge pull request #3463 from neilotoole/issue-3462-caseified-query-param
Issue 3462 caseified query param
2016-07-27 16:18:58 +08:00
wing328
0675f1686e Merge pull request #3460 from neilotoole/issue-3459_bad_required_checking
Issue #3459 removed check for required params
2016-07-27 16:18:49 +08:00
Neil O'Toole
154d0fc9de #3462 using base name in request instead of caseified paramName 2016-07-26 18:11:36 -06:00
Neil O'Toole
39228c7c94 #3459 removed check for required params 2016-07-26 15:07:57 -06:00
wing328
0beb4aa303 Merge pull request #3458 from wing328/go_fix_apikey
[Go] fix API key issue with Go client
2016-07-27 01:17:03 +08:00
wing328
743219aa08 fix apikey issue with go client 2016-07-26 23:05:08 +08:00
wing328
81f5108bac [Scala][Scalatra] Include scalatra pestore in the CI tests (#3456)
* add CI coverage for scalatra server

* move scalatra test to the end
2016-07-26 16:04:54 +08:00
wing328
2b66128954 Merge pull request #3454 from wing328/bug/fix_3223
Clear import mapping for gnereators that do not use it
2016-07-26 15:47:34 +08:00
Yi
b3403015fd fix scalatra path with basepath (#1425) (#3448) 2016-07-26 14:49:33 +08:00
wing328
9489f7d3eb clear import mapping for gnereators that do not use it 2016-07-26 14:40:29 +08:00
wing328
30c2503f9f [C#][NancyFX] Better "Add" for Dictionary and using {{packageName}} for NancyFX (#3449)
* use square bucket for C# dictionary

* use packageName for nancyfx generator, update info to debug for log

* use packageName for nancyfx generator, update info to debug for log
2016-07-26 14:10:48 +08:00
wing328
8184732da2 Merge pull request #3442 from jimschubert/csharp/3441
[C#] RootNamespace/AssemblyName use packageName
2016-07-25 21:50:04 +08:00
jhitchcock
aaba4b9e82 Html Docs 2 - API and Client Library Documentation 2016-07-25 15:36:05 +02:00
Jim Schubert
52cfd0f86f [C#] RootNamespace/AssemblyName use packageName
Uses packageName instead of packageTitle for RootNamespace and
AssemblyName in the C# generate client project. packageTitle is intended
to add additional information to AssemblyInfo.cs, and changing
packageTitle to non-FQN text breaks adding new files to the project.

packageTitle, per CodegenConstants description:

"Specifies an AssemblyTitle for the .NET Framework global assembly
attributes stored in the AssemblyInfo file."
2016-07-24 11:21:06 -04:00
Christian Loitsch
bf17a91275 dart codegen improvements (#3440)
* fix: query params may be ints as well

don't assume query params are Strings or List<String>s

* fix dart: use correct type for QueryParams

type is Iterable, not List

only check params for != null if they haven't been checked already

add some casts to make strong mode happy

update petstore

* feat dart: enable strong mode

* feat dart: generate both browser and vm library

move petstore client into subdirectory and reference
generated libraries using path in pubspec.yaml

* feat dart: refactor petstore test.

The new layout resembles a real project.

petstore test is now strong mode compatible.

* feat: add DateTimerParser transformer

* feat: improved exception reporting

* feat[dart]: handle patch requests

* fix[dart]: typo

* fix dart: remove findPetsByTag test; enable strong-mode

find pets by tag call is deprecated and returns 500

generated library is now strong mode compatible
2016-07-23 23:45:22 +08:00
wing328
a1e7c517d3 add 2.30 and 2.2.1 milestones 2016-07-22 11:23:45 +08:00
Tao Qian
55bf8b1f96 Stop Shortening Underscore in Enum Value (#3401)
* stop shortening underscore

* use 4 space indentation

* remove fake class and use anonymous class instead

* rename
2016-07-21 21:37:54 +08:00
ozialien
d5528e5d2a jmockit-surefire-fix (#3429) 2016-07-21 21:36:56 +08:00
wing328
13ec3dc6bb [C#] fix remaining reference to NUnit 3.2.1 (#3433)
* fix remaining reference to 3.2.1 of nunit

* fix nunit runner path
2016-07-21 21:23:40 +08:00
wing328
f74bf84017 download C# nunit to 2.x (#3432) 2016-07-21 18:17:43 +08:00
wing328
a916696f28 fix #3427 using String() (#3431) 2016-07-21 17:44:10 +08:00
guohuang
f6c523bcd6 fixed all routing to v2 (#3428) 2016-07-21 11:44:43 +08:00
delenius
c888434580 Improve jsdoc for API return values (#3327)
* Add jsdoc for usePromises, add @link for callbacks

* Update petstore samples

* Improve jsdoc for void return type + usePromises

* Add back curly brackets correctly in model template

* Add link to Promise doc in jsdoc comment

* Fix jsdoc annotation for callApi method

The return type annotation was also broken here.
2016-07-20 20:14:51 +08:00
Tao Qian
8818cf9ff4 raise Exception instead of str (#3322) 2016-07-20 20:06:48 +08:00
abcsun
bee6803bcb add context path (#3425) 2016-07-20 19:06:14 +08:00
Chris Jang
9c7710e695 Factory interface for typescript-fetch (#3398)
* Added Factory interface for typescript-fetch

* added tests

* Removed 'this.'

* Added Factory interface for typescript-fetch

* added tests

* Removed 'this.'
2016-07-20 18:00:52 +08:00
Andy
dfe4944552 Fix #3400 - incorrect MinLength and MaxLength on partial_model_generic.mustache template (#3415)
* fix maxLength and Regexp issue

* more fix

* revert some changes
2016-07-20 16:52:07 +08:00
wing328
97855baf83 Merge pull request #3423 from wing328/bug/fix-3418
[PHP][Silex] fix contextpath for index.php
2016-07-20 16:30:47 +08:00
wing328
889549a352 fix contextpath for php silex 2016-07-20 16:13:06 +08:00
wing328
269c657471 Merge pull request #3422 from wing328/bug/fix-3418
[PHP][Slim] Add missing context path
2016-07-20 16:05:25 +08:00
wing328
9fcb8a310d fix #3418 - slim missing contextpath 2016-07-20 15:49:41 +08:00
wing328
d16b761aaf Merge pull request #3407 from lunat/csharp_api_key_header_issue_3295
Csharp api key header issue 3295
2016-07-20 15:29:53 +08:00
wing328
7fbb499ad1 Merge pull request #3266 from ButterflyNetwork/swift-binary
[Swift] Handle binary data types
2016-07-19 23:19:01 +08:00
Jason Gavris
4f0b7dfaed [Swift] Handle binary data types 2016-07-19 11:05:40 -04:00
wing328
ef857176a6 Merge pull request #3397 from ButterflyNetwork/swift-podspec
[Swift] Fix pod authors in podspec
2016-07-19 23:00:52 +08:00
Jason Gavris
9e6896c8f0 [Swift] Fix pod authors in podspec 2016-07-19 10:37:20 -04:00
wing328
72be69d2ed Run petstore.swagger.io locally (#3411)
* update travis to run petstore server locally

* fix docker command

* update travis with addon

* add comment to travis.yml
2016-07-19 22:36:10 +08:00
wing328
5001b54eca update maintainer for spring-related generator 2016-07-19 20:50:22 +08:00
lunat
92e8efde1a Csharp api key header issue 3295 2016-07-19 14:37:03 +02:00
lunat
41bab483e0 Issue #3295
[csharp] header problem due to static method for adding header
2016-07-19 12:45:52 +02:00
wing328
b8f6667f00 Merge pull request #3329 from ant3/JSR310-Clients
[Java] Add support for JSR310 in Jersey Clients (v4)
2016-07-19 17:40:02 +08:00
wing328
ca4a90d64d Merge pull request #3404 from wing328/objc_fix_empty_desc
To set a default description if none is provided
2016-07-19 17:09:01 +08:00
wing328
37404909bf to set a default description if none is provided 2016-07-19 16:55:39 +08:00
wing328
118fd4d84d Merge pull request #3393 from cbornet/java_inheritance
Set supportInheritance to true for java based gens
2016-07-19 16:15:53 +08:00
wing328
207622a8f8 Merge pull request #3402 from wing328/ruby_fix_minlength
[Ruby] Fix minLength, maxLength
2016-07-19 15:58:51 +08:00
wing328
d780e3a5f5 fix #3400 (ruby minLenght, maxLength) 2016-07-19 15:16:07 +08:00
wing328
b9479ae8b7 Merge pull request #3271 from ButterflyNetwork/swift-uuid
[Swift] Add support for NSUUID
2016-07-19 14:16:45 +08:00
wing328
60af9e7a83 Merge pull request #3375 from ButterflyNetwork/swift-progress
[Swift] Expose NSProgress to RequestBuilder
2016-07-19 13:46:50 +08:00
wing328
77097ec76a Merge pull request #3364 from michaelkourlas/michaelkourlas-patch-1
Correct reference to ApiClient default instance
2016-07-19 13:44:52 +08:00
wing328
323c778059 Merge pull request #3378 from ButterflyNetwork/python-flaky-test
[Python] Fix flaky test with id collisions
2016-07-19 13:30:46 +08:00
wing328
b3a6535d1e Merge pull request #3385 from wing328/fix_mvn_warning
Fix maven warning and update maven plug-ins to the latest version
2016-07-19 13:10:49 +08:00
wing328
dc8eb8e8ad Merge pull request #3394 from clasnake/3171/scalatra_petstore_error
Fix the scalatra petstore sample compile error.
2016-07-19 13:10:26 +08:00
Jason Gavris
cd79ae1ab4 [Swift] Add support for NSUUID 2016-07-18 23:30:01 -04:00
Jason Gavris
87b79e5946 [Swift] Expose NSProgress to RequestBuilder 2016-07-18 23:29:29 -04:00
Jason Gavris
be65a26db0 [Python] Fix flaky test with id collisions 2016-07-18 23:29:17 -04:00
wing328
3659767e0a Merge pull request #3399 from cbornet/fix_jetty
Make jersey tests wait that jetty is closed before terminating
2016-07-19 11:18:46 +08:00
cbornet
34d3a5e8d0 make jersey tests wait that jetty is closed before terminating 2016-07-18 23:21:12 +02:00
clasnake
5e4e84ffe7 Fix the scalatra petstore sample compile error. 2016-07-18 23:58:03 +08:00
cbornet
421c462ba9 set supportInheritance to true for java based gens 2016-07-18 16:33:20 +02:00
wing328
0d9878373c Merge pull request #3377 from ButterflyNetwork/maven-cache
[Travis] Cache maven directory
2016-07-18 22:18:00 +08:00
wing328
4da6ecf6a6 Merge pull request #3384 from keithballdotnet/patch-1
[Go] ParameterToString can panic
2016-07-18 22:17:12 +08:00
Wolfgang Berger
d4611e4645 remove custom codegen 2016-07-18 13:05:07 +02:00
Wolfgang Berger
f37bd4ab49 rename ApiClient to ApiSessionManager, return cancellable tasks instead of request IDs which greatly reduces state while offering real cancellation, change to a protocol-based configuration with a default implementation, include a workarount for current JSONModel concurrency issues, add missing super call in QueryParamCollection initWithValuesAndFormat 2016-07-18 13:01:57 +02:00
Wolfgang Berger
e73f2a5c64 Merge branch 'upstream-master' into feature/objc-sessionmanager-integration
* upstream-master:
  update JAR URL to 2.2.0
  updated dev versions
  set interface with discriminator as parent
  null check
  updated readme
  updated versions for release
  update java petstore sample
  derive invoker package name from api/modoel package name
2016-07-18 12:02:32 +02:00
Wolfgang Berger
749a17d292 cleanup 2016-07-18 12:00:22 +02:00
wing328
e6f08df30c update JAR URL to 2.2.0 2016-07-18 17:32:29 +08:00
Wolfgang Berger
07d2e7245e updates iso lib version requirement 2016-07-18 11:20:29 +02:00
Wolfgang Berger
e077e80dcb add missing assignment to task 2016-07-18 10:45:22 +02:00
Tony Tam
39cb6a24db updated dev versions 2016-07-17 15:43:30 -07:00
Tony Tam
46545c14da Merge pull request #3388 from swagger-api/release-prepare
updated versions for release
2016-07-17 15:25:14 -07:00
cbornet
8740b4d0ea set interface with discriminator as parent
If a composed model (allOf) doesn't have any parent and one of its interface has a discriminator field, then set this interface as parent.

See #2096
See https://github.com/swagger-api/swagger-parser/pull/246
2016-07-17 14:38:03 -07:00
Tony Tam
bd0340327b Merge branch 'wing328-java_fix_apiclient' into release-prepare 2016-07-15 22:37:35 -07:00
Tony Tam
3346388056 null check 2016-07-15 21:39:58 -07:00
Tony Tam
fbada6ef11 Merge branch 'java_fix_apiclient' of https://github.com/wing328/swagger-codegen into wing328-java_fix_apiclient 2016-07-15 14:41:46 -07:00
Tony Tam
d9aa1dd985 updated readme 2016-07-15 13:46:47 -07:00
Tony Tam
c49db091ef updated versions for release 2016-07-15 13:45:22 -07:00
Wolfgang Berger
d120902e4b integrate latest objc changes into objc-sessionmanager 2016-07-15 15:36:24 +02:00
wing328
9056a5a56c fix mvn warning, update mvn plug-in version 2016-07-15 21:21:58 +08:00
keithballdotnet
cb547c113a ParameterToString can panic
Let the fmt package help convert the obj to a string.  Previously this could panic if the obj was an int.
2016-07-15 14:55:11 +02:00
wing328
9e0c865c08 update java petstore sample 2016-07-15 17:45:06 +08:00
wing328
67a674bf3d derive invoker package name from api/modoel package name 2016-07-15 17:42:05 +08:00
Wolfgang Berger
fab499e612 Merge branch 'upstream-master' into feature/objc-sessionmanager-integration
* upstream-master:
  add more companies
  added env variable override
  add link to appveyor build
  fix defeault rspec test for ruby, update security petstore
  [Swift] Use ISO-8601 date format
2016-07-15 10:09:15 +02:00
wing328
bd7904d42a add more companies 2016-07-15 12:20:19 +08:00
Jason Gavris
4d9b5feb77 [Travis] Cache maven directory 2016-07-14 21:57:24 -04:00
wing328
0405db7a97 Merge pull request #3264 from ButterflyNetwork/swift-iso-date
[Swift] Use ISO-8601 date format
2016-07-15 08:33:49 +08:00
Tony Tam
ac06825f08 Merge pull request #3373 from swagger-api/issue-3372
added env variable override
2016-07-14 13:02:24 -07:00
Tony Tam
20216a9418 added env variable override 2016-07-14 12:05:36 -07:00
wing328
ac3b60e390 add link to appveyor build 2016-07-14 22:47:38 +08:00
wing328
2d35743b0d Merge pull request #3368 from wing328/ruby_fix_rspec
[Ruby] fix default rspec test cases for Ruby API client
2016-07-14 22:13:34 +08:00
Wolfgang Berger
fb68c6c93d update naming 2016-07-14 15:38:05 +02:00
Wolfgang Berger
f14f4c1e93 Merge branch 'upstream-master' into feature/objc-sessionmanager-master-merge
* upstream-master: (1081 commits)
  improve ts node enum naming
  update ruby samples
  update ruby sample
  Update README to clean on mvn package
  fix csharp enum naming
  fix double hyphen in c# generator
  Remove more Java String comparison using "=="
  Not compare Java String with "=="
  fix csharp code sample
  feat dart: add pubName to all remaining library parts
  fix[ruby]: Problem with List of Enum
  feat dart: add pubName to library name.
  feat dart: mv basePath to ApiClient
  Add more security samples (#3344)
  Leverage Shipable.io to validate mustache templates (#3333)
  fix model name "client" issue
  fix https://github.com/swagger-api/swagger-codegen/pull/3313/files#r70178399
  #3285 replaced setModelNamePrefix by setModelNameSuffix
  doc: explain how to run tests
  feat: improve / fix deserialization by parsing type String
  ...

Conflicts:
	modules/swagger-codegen/src/main/resources/objc/Object-body.mustache
2016-07-14 15:18:08 +02:00
Wolfgang Berger
83e7cdb6a3 Merge branch 'feature/objc-sessionmanager' into feature/objc-sessionmanager-merge
* feature/objc-sessionmanager:
  updates templates with JSONModel workaround
  updates for ISO8601 0.5.1
  updates templates according to https://github.com/NYTimes/objective-c-style-guide
  first version of session manager
2016-07-14 12:28:20 +02:00
wing328
069a6b2917 fix defeault rspec test for ruby, update security petstore 2016-07-14 18:22:01 +08:00
wing328
d3a1326405 Merge pull request #3367 from wing328/typescript_enum_naming
[Typescript][Node] Better enum naming
2016-07-14 17:34:42 +08:00
wing328
4f52cebf7a improve ts node enum naming 2016-07-14 17:14:06 +08:00
wing328
748f4b21f4 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-07-14 16:44:34 +08:00
wing328
59a73a7732 Merge branch 'ircecho-patch-1' 2016-07-14 16:19:21 +08:00
wing328
7c8333e2f8 update ruby samples 2016-07-14 16:19:05 +08:00
wing328
4be11452ce Merge branch 'patch-1' of https://github.com/ircecho/swagger-codegen into ircecho-patch-1 2016-07-14 16:11:29 +08:00
wing328
6a2ff14edb Merge branch 'ircecho-patch-1' 2016-07-14 15:54:13 +08:00
wing328
c0491ccb1d update ruby sample 2016-07-14 15:53:42 +08:00
wing328
3ae0ffa819 Merge branch 'patch-1' of https://github.com/ircecho/swagger-codegen into ircecho-patch-1 2016-07-14 15:32:41 +08:00
wing328
a07d602d78 Merge pull request #3361 from jdebbink/readme
Update README to clean on mvn package
2016-07-14 15:26:30 +08:00
Michael Kourlas
a4c589c346 Correct reference to ApiClient default instance 2016-07-13 13:56:43 -04:00
Justin Debbink
9fc7215d6d Update README to clean on mvn package 2016-07-13 11:44:57 -05:00
wing328
0986acd2a6 Merge pull request #3359 from sinofool/master
Not compare Java String with "=="
2016-07-13 20:50:36 +08:00
wing328
cee45bc9aa Merge pull request #3360 from wing328/csharp_escape_double_hyphen
[C#] fix double hyphen in c# generator
2016-07-13 20:44:55 +08:00
wing328
8da6e0a533 fix csharp enum naming 2016-07-13 19:11:22 +08:00
wing328
cf02d1700a Merge pull request #3289 from d0x/Make_Pre_and_Suffix_Available
[MAVEN] #3284: Made modelNamePrefix and -Suffix available through maven
2016-07-13 18:31:18 +08:00
wing328
e2d74de6ca fix double hyphen in c# generator 2016-07-13 18:16:52 +08:00
Bochun Bai
f75a42f810 Remove more Java String comparison using "==" 2016-07-13 18:06:45 +08:00
Bochun Bai
6d4d81b652 Not compare Java String with "=="
Replaced with equals()
2016-07-13 17:27:11 +08:00
wing328
6e561e116b Merge pull request #3358 from wing328/csharp_fix_doc
[C#] Fix C# sample code
2016-07-13 17:06:49 +08:00
wing328
9bfb52dbc1 fix csharp code sample 2016-07-13 16:22:58 +08:00
wing328
c873a52f84 Merge pull request #3325 from inc-cloitsch/rmCrypto_fixRequiredParams_useAsyncAwait_addMultiQueryParams
dart: fix required params.  add 'multi' query params.  better deserialization.
2016-07-13 16:13:41 +08:00
Christian Loitsch
8003156fd8 feat dart: add pubName to all remaining library parts 2016-07-12 19:42:11 +02:00
ircecho
66619b1a09 fix[ruby]: Problem with List of Enum
Fixes #3323
2016-07-12 18:21:34 +02:00
Christian Loitsch
a5351f7ec0 feat dart: add pubName to library name.
Otherwise projects may not use different apis generated by swagger,
because library names must be unique.
2016-07-12 18:05:40 +02:00
Christian Loitsch
0d0d353b9d feat dart: mv basePath to ApiClient
Changing the basePath is pretty annoying otherwise, because
you would need to set the basePath for every Api.
2016-07-12 17:18:45 +02:00
wing328
394840e352 Add more security samples (#3344)
* add line break test to petstore-security-test.yaml

* add objc/swift security testing

* add go,scala,qt5cpp for security test

* add security test for typescript

* fix go security issue, fix consumes,produces line break
2016-07-12 19:51:28 +08:00
lunat
e6803aed97 Merge pull request #1 from lunat/CSharp-client-header-enhancement
CSharp client header problem
2016-07-11 14:22:11 +02:00
wing328
d4951bbf3c Leverage Shipable.io to validate mustache templates (#3333)
* add run all petstore shell script

* add run all petstore batch file for windows tests

* better output for travis and appveyor

* add shippable config to test all petstore

* show log after test script

* remo all-petstore, update travis build

* update shiippable config

* add run-all-petstore

* failure test using ruby model

* use bash script for run-all-petstore

* update script permission

* fix html batch script

* fix missing doc in jaxrs spec generator

* fix missing api, model test in jaxrs spec generator

* rename licenseInfo for lumen

* remove ruby model failure (for CI test)

* fix "the input line is too long"

* update windows batch file to shorten the commands

* update appveyor config

* update shippable config

* add build script

* update batch file to remove args option

* fix window batch file for spring mvc/boot

* remove logging output to file
2016-07-11 13:54:18 +08:00
wing328
f536295c9d Merge pull request #3331 from wing328/csharp_fix_client_model
[C#] to fix issues when the model name is "Client"
2016-07-10 19:01:36 +08:00
wing328
1c5210581e fix model name "client" issue 2016-07-10 17:42:18 +08:00
wing328
0119a66479 fix https://github.com/swagger-api/swagger-codegen/pull/3313/files#r70178399 2016-07-10 16:55:36 +08:00
christian
8533ca43b4 #3285 replaced setModelNamePrefix by setModelNameSuffix 2016-07-09 23:50:23 +02:00
ant3
bf8e1ade56 Added tests to jersey2-java8 sample
These are the tests from the jersey2 sample - but adapted to use the
java8 time classes (rather than Joda time).
2016-07-09 11:31:25 +01:00
ant3
1ea80ab83a Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-07-08 23:54:14 +01:00
ant3
836aed999e Merge remote-tracking branch 'refs/remotes/origin/master' into JSR310-Clients 2016-07-08 23:00:04 +01:00
Christian Loitsch
999ef42e81 doc: explain how to run tests 2016-07-08 15:45:53 +02:00
Christian Loitsch
9a65a5f0db feat: improve / fix deserialization by parsing type String
* added api_helper.dart for a helper function.
* defaultApiClient is now a variable instead of a static field inside
  ApiClient
* a lot of functions inside ApiClient are no longer static.
* optional params are now named params  (needed to introduce a
  justIgnoreFlag as hack)
* queryParams now support the multi format and are therefore no longer a
  Map<String, String>, but a List<QueryParam>
* renamed apiException.mustache to api_exception.mustache to conform
  with other file names.
* removed unused import: 'dart:html'
* removed 'package:crypto/crypto.dart' dependency.  'dart:convert' has a
  base64 converter now.
* use null-aware operator for apiClient assignment in xxxApi
  constructors.
* enable testStoreApi (which returned a Future nobody waited for)
* fix types in tests.  Some ids were passed as Strings instead of ints.
* adapt tests to use the optional named arguments (for optional query
  args)
* generate random ids in tests.  Otherwise insertion will always succeed
  if the test has been called once.
2016-07-08 15:02:28 +02:00
wing328
89741c75f7 Merge pull request #3276 from zhenjun115/issue2499
add more tips about npe;
2016-07-08 14:01:43 +08:00
wing328
cc91231f2a Merge pull request #3216 from qtstc/add-default-value
Add DefaultValue Annotation to @FormParam
2016-07-08 13:51:32 +08:00
tao
638319db09 add DefaultParam annotation 2016-07-07 11:45:22 -07:00
wing328
aaeae3f0d3 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-07-07 22:18:37 +08:00
wing328
82c3963f62 Merge branch 'maneeshsahu-master' 2016-07-07 22:17:59 +08:00
wing328
89befeb45b fix long issue in python3 2016-07-07 22:17:27 +08:00
wing328
cb71c4ce31 Merge pull request #3313 from lunat/CSharp_documentation_with_anchor_link
CSharp Documentation with working anchor link within document
2016-07-07 21:15:58 +08:00
wing328
41e8273cb8 Merge branch 'master' of https://github.com/maneeshsahu/swagger-codegen into maneeshsahu-master 2016-07-07 19:13:29 +08:00
wing328
ef1666dd55 Merge pull request #3319 from wing328/word_full_java_util
[Java] update wording for fullJavaUtil option
2016-07-07 18:42:46 +08:00
wing328
1276941cc7 update wording for full util option 2016-07-07 18:31:18 +08:00
wing328
17793f49c8 Merge branch 'zhenjun115-issue3051' 2016-07-07 17:49:19 +08:00
wing328
2418448a3c update swagger core to 1.5.9 for java feign client 2016-07-07 17:48:43 +08:00
wing328
6add9acfaf Merge branch 'issue3051' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-issue3051 2016-07-07 17:35:45 +08:00
wing328
56951a2df4 update wording related to config.json 2016-07-07 17:25:54 +08:00
wing328
7fbe1aee07 Merge pull request #3317 from wing328/retrofit1_wording
[Java][Retrofit] update wording for java retrofit1
2016-07-07 17:05:30 +08:00
wing328
9c4d77ed1a update wording for java retrofit1 2016-07-07 16:35:59 +08:00
wing328
b0313584d1 Merge pull request #3312 from wing328/java_okthtp_default
[Java] Set Java default library to "okhttp-gson"
2016-07-07 16:28:09 +08:00
wing328
c5cc0bbb2a fix issue with java feign client 2016-07-07 15:53:17 +08:00
wing328
d4f9eefa94 update java-petstore-all.sh and regenerate all java petstore sample 2016-07-07 15:53:17 +08:00
wing328
ed7344d452 minor fix to pom.xml 2016-07-07 15:53:16 +08:00
wing328
3b780e30d8 change java default lib to okhttp-gson 2016-07-07 15:53:16 +08:00
wing328
d402f35711 Merge pull request #3163 from DanGe42/master
Improve error message for connection failures
2016-07-07 14:29:27 +08:00
wing328
d621021fb1 Merge branch 'vovan--issue-3193' 2016-07-07 13:51:17 +08:00
wing328
612afe1809 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-07-07 11:38:57 +08:00
wing328
61b2d21415 Merge branch 'jencodingatwork-master' 2016-07-07 11:38:35 +08:00
wing328
2d24e9971c update jaxrs sample 2016-07-07 11:38:07 +08:00
wing328
4d76dd24eb Merge branch 'master' of https://github.com/jencodingatwork/swagger-codegen into jencodingatwork-master
Conflicts:
	modules/swagger-codegen/src/main/resources/JavaJaxRS/formParams.mustache
2016-07-07 11:34:36 +08:00
wing328
e1fead8ee5 update spring petstore sample 2016-07-07 11:32:05 +08:00
wing328
d70989c2b3 Merge branch 'issue-3193' of https://github.com/vovan-/swagger-codegen into vovan--issue-3193 2016-07-07 11:06:16 +08:00
wing328
9830e82add Merge pull request #3294 from cbornet/spring_cloud
[Spring] Add a generator for spring cloud feign clients
2016-07-07 10:59:56 +08:00
wing328
b997dd15ad Merge pull request #3306 from jimschubert/aspnet5_.NET_Core_1.0
[aspnet5] update to asp.net core 1.0
2016-07-07 10:59:01 +08:00
wing328
b97cedbaa7 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-07-07 10:52:30 +08:00
wing328
bff9fb721f Merge branch 'qtstc-use-base-name' 2016-07-07 10:52:07 +08:00
wing328
1f0f08f886 update jaxrs jersey1 sample 2016-07-07 10:51:42 +08:00
wing328
8f1cb33641 Merge pull request #3314 from reydelo/patch-1
Fix link typo in README.md
2016-07-07 10:43:30 +08:00
Reyna DeLoge
71289a1b71 Update README.md
Fix link!
2016-07-06 15:00:00 -07:00
christian
41df857573 #3285 Check for typeMapper types inside getSwaggerType instead of toModelName 2016-07-06 23:11:08 +02:00
Daniel Ge
b16eda17e8 Improve error message for connection failures
Previous ApiException message would simply print out the result of the
`curl_getinfo($curl)` call, which might be useful only if the developer
actually wanted very low-level information from curl about why a call
failed. The new message should print out a higher-level but more
informative, human-readable message. If necessary for debugging, the
ApiException's responseObject is set to the `curl_getinfo($curl)`.
2016-07-06 12:09:41 -07:00
Daniel Ge
20448dd9e3 Bump and regenerate PHP sample 2016-07-06 12:09:11 -07:00
tao
62d06f75b4 use baseName instead of paramName 2016-07-06 10:41:57 -07:00
Christian Loitsch
0466405fa5 fix: verification of requiredParams now works
other features:
- remove crypto dependency.  base64 encoding is now part of
  dart.convert.
- port Java query param handling to dart. → allows us to use 'multi'
  collectionFormat for queryParams
- use async await where possible.
2016-07-06 17:45:39 +02:00
lunat
5648c5af88 CSharp Documentation with working anchor link within document 2016-07-06 16:26:59 +02:00
cbornet
e2c7dc0147 don't repackage as a spring boot app 2016-07-06 15:29:54 +02:00
vovan-
01e06c01eb Fixed issue [Spring] Add support for the contextPath in Spring-boot gen #3193 2016-07-06 14:21:13 +03:00
wing328
d213dcd418 Merge pull request #3309 from wing328/python_better_test
[Python] improve test and better wording for incorrect enum value
2016-07-06 18:31:35 +08:00
cbornet
df7b694c4b change spring-cloud petstore artifact-id 2016-07-06 11:51:56 +02:00
cbornet
57f518fe93 change spring-mvc petstore artifact-id 2016-07-06 11:47:48 +02:00
cbornet
5f15121fc2 add springboot and spring-cloud to verified samples 2016-07-06 11:26:16 +02:00
wing328
f7b223e1a9 fix test cases in python 2016-07-06 16:34:09 +08:00
cbornet
412022b852 add petstore samples and fix some issues 2016-07-06 10:30:10 +02:00
cbornet
a761682115 add a generator for spring cloud feign 2016-07-06 10:30:09 +02:00
wing328
3a3461f961 Merge pull request #3299 from wing328/android_volley_license
[Android][Volley] add Apache v2 license to Android Volley API client
2016-07-06 11:27:58 +08:00
wing328
c1d835dcfc Merge pull request #3287 from lrimkus/patch-1
Python vnd content-type header support
2016-07-06 11:27:20 +08:00
Jim Schubert
4d5905c736 [aspnet5] Regenerate sample server 2016-07-05 22:22:20 -04:00
Jim Schubert
ae73bb7553 [aspnet5] Update to ASP.NET Core 1.0.0
This migrates the server generator for aspnet5 from 1.0.0-rc1-final to
1.0.0.

Changes are fairly significant in how Kestrel hosts the application, as
well as how Swagger finds XML comments for documentation. Changes are
only related to hosting, docker, and configuration.
2016-07-05 22:17:14 -04:00
jencodingatwork
c3a9d6c9c3 Modified JavaJaxrs resources to fix duplicated variable names. See issue
#3300 for full description.
2016-07-05 12:36:08 -04:00
laurynas
fa9cb66d75 ./bin/python-petstore.sh after enhancement of content-type header parsing for vnd headers
note: looks like this was not run for some time, so it has changes from other commits too
2016-07-05 11:34:27 -04:00
laurynas
560f50ab9a case insensitive search for "json" in content-type headers 2016-07-05 11:31:18 -04:00
wing328
fdde4baa9b Merge pull request #3298 from wing328/java_add_license
[Java][Jersey1] add license header to Java default API client
2016-07-05 22:41:04 +08:00
wing328
6b4b2025ee add license to android volley 2016-07-05 22:39:38 +08:00
wing328
b699fe57fc add license header to java default client 2016-07-05 22:16:53 +08:00
wing328
7c05b902ac Merge pull request #3293 from wing328/retrofit2_doc_warning
[Java][Retrofit2] remove javadoc, pom.xml warnings
2016-07-05 21:51:30 +08:00
lunat
43d1c5bffc CSharp client header problem
CSharp client may cause an error adding an header because the header
list is static.
Added a check and a function tu set up the ApiKey
2016-07-05 14:42:43 +02:00
wing328
430f49aae6 fix javadoc error 2016-07-05 20:38:04 +08:00
wing328
5e6a6de351 fix javadoc error 2016-07-05 19:38:33 +08:00
wing328
9b2634787d Merge pull request #3292 from RowanJKWalker/patch-1
Fix typo in README.md
2016-07-05 18:27:30 +08:00
wing328
5608c73938 update pom to cover gralde, sbt, javadoc test 2016-07-05 17:59:13 +08:00
wing328
dfc05f4bba fix doc warning in java retrofit2 client 2016-07-05 17:49:50 +08:00
Rowan J.K. Walker
70376c8e63 Fix typo in README.md
On line 379 -DapiTest should be -DapiTests and -DmodelTest should be -DmodelTests.
2016-07-05 21:48:25 +12:00
wing328
907361cded add merge commit message 2016-07-05 07:46:42 +08:00
christian
ceffa84cdf #3285 ModelNamePre- and Suffixes should not be applied to Types. 2016-07-04 21:45:54 +02:00
Laurynas
23b81324d1 Python vnd content-type header support
Adding vendor header support like : "Content-Type: application/vnd.api+json" and "Content-Type: application/vnd.api+json; version=1"
2016-07-04 15:27:54 -04:00
Laurynas
df695ee2c4 Python vnd content-type header support
Adding vendor header support like : "Content-Type: application/vnd.api+json" and "Content-Type: application/vnd.api+json; version=1"
2016-07-04 15:22:54 -04:00
christian
0ada53435c #3284: Made modelNamePrefix and -Suffix available through maven 2016-07-04 19:51:38 +02:00
wing328
873e3974ed add badge for windows test 2016-07-05 00:29:42 +08:00
wing328
4f69a2d788 update wording in overview 2016-07-05 00:03:08 +08:00
wing328
5da8b0cef3 Merge pull request #3275 from wing328/windows_ci
Add CI tests for Windows environment
2016-07-04 23:58:02 +08:00
wing328
6d6cfbfd5d Merge pull request #3283 from wing328/ruby_verify_host
[Ruby] add option to set SSL/TLS host option in ruby client
2016-07-04 22:31:03 +08:00
wing328
785d1a5648 add option to set ssl host setting in ruby client 2016-07-04 22:13:25 +08:00
wing328
7de7c6de43 Merge pull request #3282 from wing328/objc_fix_typo
[ObjC] fix typo in readme doc
2016-07-03 22:16:31 +08:00
wing328
e98928a0a5 Merge pull request #3186 from ant3/JSR310-Clients
[Java] Add support for JSR310 in Jersey Clients (v3)
2016-07-03 21:56:13 +08:00
wing328
3f6f4bfd86 fix objc readme doc 2016-07-03 21:49:33 +08:00
wing328
82ee6bbb48 Merge pull request #3278 from wing328/escape_unsafe_2
Better handling of multi-line comments for all generators
2016-07-03 00:20:39 +08:00
wing328
8a3c2e754b fix python flask to handle comment block 2016-07-02 17:14:13 +08:00
wing328
dd53f8478d Merge branch 'arturdzm-master' 2016-07-02 17:00:43 +08:00
wing328
e2e0af1e6c Merge branch 'master' of https://github.com/arturdzm/swagger-codegen into arturdzm-master
Conflicts:
	README.md
2016-07-02 17:00:21 +08:00
wing328
2464633368 better handling of multiline comments for all lang 2016-07-02 16:25:55 +08:00
zhenjun115
4a71a4c290 add more tips about npe; 2016-07-02 16:16:50 +08:00
wing328
e013747535 add comments 2016-07-02 15:10:38 +08:00
wing328
f8362a56b3 failure test 2016-07-02 15:01:45 +08:00
wing328
4401e1bf8e build test 2016-07-02 14:32:41 +08:00
zhenjun115
0117cbb29a update the dependencies for Java Feign API clients to the latest versions; 2016-07-02 12:14:31 +08:00
wing328
3c9b172996 Merge pull request #3274 from wing328/fix_lumne
Remove security test from petstore-with-fake-endpoints-models-for-testing
2016-07-02 11:48:45 +08:00
wing328
393b44dcd2 remove security test from petstore-with-fake-endpoints-models-for-testing 2016-07-02 11:32:25 +08:00
wing328
691957875e Merge pull request #3185 from cbornet/common_jersey
[Jax-rs][jersey] Mutualize jersey 1 and jersey 2 templates
2016-07-02 11:19:40 +08:00
wing328
3ff5dce25b Merge pull request #3255 from arnested/php-security-tests-pom-xml
Add pom.xml for executing PHP Swagger Petstore Security Client tests
2016-07-02 11:03:13 +08:00
wing328
386d41db7f fix duplciated artifact id 2016-07-01 21:56:11 +08:00
Jason Gavris
693c73171e [Swift] Use ISO-8601 date format
- Also fix up Enum parameter generation for formParams by extracting _param partial
2016-07-01 09:55:32 -04:00
wing328
f5d3b65252 Merge branch 'chameleon82-fix_resteasy_gradle_definition' 2016-07-01 21:41:30 +08:00
wing328
c9d2bb8a96 add test for jaxrs resteasy joda 2016-07-01 21:40:34 +08:00
wing328
f18f81cce9 Merge branch 'fix_resteasy_gradle_definition' of https://github.com/chameleon82/swagger-codegen into chameleon82-fix_resteasy_gradle_definition 2016-07-01 19:54:43 +08:00
wing328
33e6be3ccd Merge pull request #3268 from DenisBiondic/patch-1
Added my company (Conplement)
2016-07-01 19:45:51 +08:00
DenisBiondic
f69f5de0bd Added my company (Conplement) 2016-07-01 12:32:08 +02:00
wing328
f8bf4387c3 Merge pull request #3252 from alexralko/master
add getHasExamples() method to support {{hasExamples}} tag in templates
2016-07-01 17:43:07 +08:00
wing328
33b4afc098 Merge pull request #3267 from wing328/swift_npe
[Swift] fix NPE for swift API client due to array of enum
2016-07-01 17:37:48 +08:00
wing328
8c754d234d fix npe for swift due to array of enum 2016-07-01 16:58:18 +08:00
wing328
a18fb4ec8b Merge pull request #3236 from cliffano/master
Disable path HTML-escaping in Ruby api template
2016-07-01 14:45:01 +08:00
wing328
021f554a6b Merge pull request #3260 from gokl/format-field
Issue 3257: Add format field to CodegenParameter and CodegenProperty.…
2016-07-01 14:05:06 +08:00
Cliffano Subagio
6de6e93bab Move generated ruby client test to java.io.swagger.codegen.ruby package. 2016-07-01 14:41:37 +10:00
gokl
1598fb2657 Issue 3257: Add format field to CodegenParameter and CodegenProperty. Add format to static html template. 2016-06-30 12:10:10 +02:00
wing328
45f13b28a0 Merge pull request #3258 from wing328/ruby_fix_test_case
[Ruby] minor update to ruby test cases
2016-06-30 16:48:35 +08:00
wing328
be4f4eb022 Merge pull request #3248 from cbornet/retrofit2_interceptor_issue
Use okttp builder instead of instance in retrofit2
2016-06-30 16:45:17 +08:00
wing328
7c5b583751 Merge pull request #3256 from arnested/php-expose-path-to-callapi
[PHP] Add path without expanded path parameters to callApi
2016-06-30 16:37:09 +08:00
wing328
4a3d9358ee Merge pull request #3165 from abcsun/lumen
[PHP Lumen] sort the endpoints in ascending to avoid the route priority issure
2016-06-30 15:51:32 +08:00
wing328
c2f0397d5c minor fix to ruby test cases 2016-06-30 15:40:35 +08:00
Arne Jørgensen
a4ec29000a [PHP] Regenerate petstore samples 2016-06-30 07:12:28 +02:00
Arne Jørgensen
7d6ac31619 [PHP] Add path without expanded path parameters to callApi
In continuation of #3117 it could be useful to know the path of an
endpoint (without path parameters expanded) in the `callApi` method of
`ApiClient`.

This is for use cases where you would create a derived class from
`ApiClient` for manipulating responses from the server before further
processing (#3117) or add extended logging of the API calls.
2016-06-30 07:12:28 +02:00
wing328
75bd838d23 Merge pull request #3254 from delenius/jsdoc-paramtypes2
Generate type annotations in JS model constructors
2016-06-30 11:33:54 +08:00
wing328
9873953bdf Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-30 11:26:23 +08:00
wing328
183af97748 Merge branch 'chadrosen-update-ruby-sample' 2016-06-30 11:20:50 +08:00
wing328
3b022496cd Merge branch 'update-ruby-sample' of https://github.com/chadrosen/swagger-codegen into chadrosen-update-ruby-sample
Conflicts:
	samples/client/petstore/ruby/README.md
	samples/client/petstore/ruby/docs/ArrayTest.md
	samples/client/petstore/ruby/lib/petstore/models/array_test.rb
2016-06-30 11:20:28 +08:00
Cliffano Subagio
8bacbfb691 Only use Content-Disposition's filename as prefix when it exists. 2016-06-30 09:42:25 +10:00
Arne Jørgensen
52952e4ace Add pom.xml for executing PHP Swagger Petstore Security Client tests
Following #3224 this adds a `pom.xml` for executing `mvn
integration-test` on the PHP Swagger Petstore Security Client tests.

The `pom.xml` is identical to the one in
`samples/client/petstore/php/SwaggerClient-php/pom.xml` with only name
and artifactId changed.
2016-06-29 22:56:27 +02:00
delenius
8a8e9432e1 Generate type annotations in JS model constructors
Fixes #3207
2016-06-29 13:53:33 -07:00
Chad Rosen
4a4151a751 update ruby samples by running the bin/ruby-petstore.sh 2016-06-29 13:19:37 -07:00
wing328
40e497088a Merge pull request #3251 from wing328/fix_slim_path
[PHP][Slim] fix slim path in Windows
2016-06-30 00:55:14 +08:00
wing328
9ee10e2397 Merge pull request #3249 from wing328/csharp_security_fix
[C#] better code injection handling for C# API client
2016-06-29 23:59:24 +08:00
Alex Ralko
a862601482 add getHasExamples() method to support {{hasExamples}} tag in templates 2016-06-29 18:56:45 +03:00
wing328
cb53ea114a Merge pull request #3246 from wing328/security_fix_javascript_closure
[Javascript][Closure] better code injection handling for Javascript (closure)API client
2016-06-29 23:25:04 +08:00
wing328
de6b3cea70 fix slim windows path 2016-06-29 23:24:27 +08:00
cbornet
f54b505704 use okttp builder instead of instance in retrofit2
Fix #3188
2016-06-29 17:07:39 +02:00
wing328
7951c06f55 unescape basepath in aspnet 2016-06-29 22:54:16 +08:00
wing328
d79274d548 better code injection handling for c# 2016-06-29 22:52:12 +08:00
wing328
90857e8988 Merge pull request #3245 from wing328/security_fix_javascript
[Javascript] better code injection handling for Javascript API client
2016-06-29 22:30:03 +08:00
wing328
8e43f7c2f6 add new JS files 2016-06-29 22:09:27 +08:00
wing328
f89333c8c3 better code injection handling for javascript closure client 2016-06-29 22:07:14 +08:00
wing328
1e596654cd remove node_modeuls under petstore security test for js 2016-06-29 21:47:41 +08:00
wing328
73f88f0bff update js promise petstore client 2016-06-29 21:44:13 +08:00
wing328
73e6626e15 comment out array of enum test case, fix JS enum partial template 2016-06-29 21:40:22 +08:00
wing328
aec2f4e27c better code injection handling for js 2016-06-29 21:18:35 +08:00
wing328
acc28495e8 Merge pull request #3244 from wing328/java_fix_2d_array_enum
[Java] better default value for variable declaration (with inner enum type)
2016-06-29 19:39:01 +08:00
wing328
aaf7b99220 comment out test case for map of map of enum as many lang don't support 2016-06-29 17:46:45 +08:00
wing328
fd72409e3b better default value for enum variable declaration 2016-06-29 17:30:33 +08:00
wing328
c5724a46d6 Merge pull request #3237 from wing328/java-security-fix
[Java] Better code injection handling for Java-related generators
2016-06-29 15:25:10 +08:00
wing328
cbaa577c64 add more info about vendor extensions 2016-06-29 14:32:23 +08:00
wing328
926e017402 add more info about updating petstore sample 2016-06-29 14:30:29 +08:00
wing328
f88b941d96 fix java okhttp sample 2016-06-29 11:49:40 +08:00
Cliffano Subagio
b6eb81cbef Move path unescaping from DefaultGenerator to Ruby api template. 2016-06-29 09:46:41 +10:00
wing328
77c4164b3c better code injection handling for java 2016-06-29 02:00:43 +08:00
wing328
48bdae8fe7 Merge pull request #3235 from cbornet/common_java_models
Mutualize jackson and gson models in java clients
2016-06-29 00:59:38 +08:00
cbornet
ac23b10f7a remove dead code 2016-06-28 18:06:33 +02:00
cbornet
8d8858cc51 mutualize jackson and gson models in java clients
See #2182
2016-06-28 18:00:34 +02:00
Cliffano Subagio
344e1b12e4 Disable template data HTML-escaping on generated code files. 2016-06-29 01:57:08 +10:00
wing328
07a852fe78 Merge pull request #3231 from wing328/security_fix_ruby
[Ruby] better code injection handling for Ruby API client
2016-06-28 20:09:55 +08:00
wing328
37e1de6d72 Merge pull request #3230 from wing328/security_fix_python
[Python] better code injection handling for Python
2016-06-28 20:09:40 +08:00
wing328
f1f01041ed update ruby sample 2016-06-28 17:36:58 +08:00
wing328
9e216c0ca2 better code injection handling for ruby 2016-06-28 17:36:00 +08:00
wing328
56b2b4f2eb Merge pull request #3229 from wing328/security_fix_perl
[Perl] better code injection handling for perl client
2016-06-28 17:35:29 +08:00
wing328
3a41da42f0 better code injection handling for python 2016-06-28 17:07:50 +08:00
wing328
02864ed31a better code injectino handling for perl client 2016-06-28 16:37:33 +08:00
wing328
8dc22d2bda Merge pull request #3228 from cliffano/master
[Ruby] Add params_encoding configuration to be passed to api_client's request options
2016-06-28 15:31:33 +08:00
wing328
a71c072609 Merge pull request #3224 from wing328/security_fix
[PHP] Better code injection handling for PHP API client
2016-06-28 15:19:41 +08:00
wing328
41636ae149 revert petstore-with-fake-endpoints-models-for-testing.yaml 2016-06-28 14:38:50 +08:00
wing328
133c3abc57 add warning about code injection 2016-06-28 13:22:48 +08:00
Cliffano Subagio
af77d94750 [Ruby] Add params_encoding configuration to be passed to api_client's request options. 2016-06-28 15:22:34 +10:00
wing328
174222390a Merge pull request #3190 from thebignet/asyncCompletableFuture
using CompletableFuture instead of Callable for asynchronous controller in Spring Boot
2016-06-28 12:34:23 +08:00
wing328
ec2abe78e3 apply security fix to php lumne, silex, slim 2016-06-28 12:21:41 +08:00
wing328
f38c8373cc create new spec for security testing 2016-06-28 11:48:52 +08:00
wing328
12cd0c55a0 Merge pull request #3226 from sdavis-r7/patch-1
Update README.md
2016-06-28 09:27:02 +08:00
Scott Lee Davis
435b4d9be9 Update README.md 2016-06-27 14:22:38 -07:00
wing328
ebd6ffaa4c better handle of single quote to avoid code injectio in php 2016-06-28 00:54:06 +08:00
wing328
1638adb79e avoid code injection in php api client 2016-06-27 21:51:27 +08:00
wing328
31092585f0 Merge branch 'sdavis-r7-master' 2016-06-27 16:20:58 +08:00
wing328
f482132c66 Merge branch 'master' of https://github.com/sdavis-r7/swagger-codegen into sdavis-r7-master
Conflicts:
	modules/swagger-codegen/src/main/resources/php/model.mustache
	modules/swagger-codegen/src/main/resources/php/model_generic.mustache
2016-06-27 16:20:44 +08:00
wing328
5a143ec485 Merge pull request #3220 from pjmolina/nodejs-update-sample
Update petstore sample for changes on PR #3212
2016-06-27 14:59:24 +08:00
wing328
e26416b351 Merge pull request #3073 from bitcloud/fix-datetime-example
fix date format in example generator
2016-06-27 14:39:03 +08:00
Pedro J. Molina
4eb1565fad Update petstore sample for changes on PR #3212 2016-06-27 08:10:01 +02:00
wing328
9ec61ba887 Merge pull request #3189 from thebignet/tagName
add tags with API name to java @Api annotation
2016-06-27 13:54:06 +08:00
wing328
bee05f0086 Merge pull request #3219 from wing328/android_gradle_update
[Android][Volley] add http client dependency to android volley
2016-06-27 11:59:42 +08:00
wing328
b19527d395 Merge pull request #3158 from moanrose/Issue#3096
Changed check for required parameter to check for null or undefined
2016-06-27 11:45:46 +08:00
wing328
7f5b391f80 run ruby test first 2016-06-27 11:27:30 +08:00
wing328
95eb06e2e9 add http client dependency to android volley 2016-06-27 11:25:15 +08:00
wing328
f3bb4ea872 Merge pull request #3180 from cbornet/feign_java8
|Feign] Support jsr310 dates in feign client
2016-06-27 10:47:13 +08:00
wing328
5008de5f83 Merge pull request #3181 from cbornet/retrofit2_java8
[Retrofit] Add support for jsr310 dates to retrofit2 client
2016-06-27 10:01:36 +08:00
wing328
f707675e48 Merge pull request #3217 from wing328/php_enum_class
[PHP] add enum class support, merge test cases
2016-06-27 09:53:31 +08:00
wing328
81339ad98f add editor.swagger.io 2016-06-27 09:50:54 +08:00
wing328
294d914a17 Merge pull request #3218 from wing328/bug/fix_3215
[Ruby ] To fix #3215 and enum array issue in parameter check
2016-06-27 09:34:12 +08:00
wing328
e8b22a771b add http://kuroiwebdesign.com/ 2016-06-26 23:34:54 +08:00
wing328
f04df9a163 fix #3215 and enum array issue in parameter check 2016-06-26 19:17:25 +08:00
wing328
74239c422b add enum class support, merged test cases for php 2016-06-26 17:41:29 +08:00
Jean Detoeuf
4183bfc90c updated Java8 spring sample with CompletableFuture feature #3190 2016-06-26 11:25:54 +02:00
wing328
d15c504fc9 Merge pull request #3214 from aranyia/patch-1
Added W.UP to companies using Swagger
2016-06-25 13:19:02 +08:00
aranyia
6f674e3a7f Added W.UP to companies using Swagger
W.UP is using Swagger codegen extensively for multiple projects on the server-side and mobile clients.
2016-06-25 00:45:17 +02:00
wing328
89ab384d75 Merge pull request #3212 from pjmolina/master
nodejs-server: Added npm start scripts on package.json + update README
2016-06-25 00:17:44 +08:00
wing328
2dbbff6ddc Merge pull request #3211 from petercoles/patch-1
Minor typos in docs
2016-06-24 18:27:17 +08:00
Peter Coles
add63009bf Minor typos in docs 2016-06-24 09:48:24 +01:00
Pedro J. Molina
961cbb531e nodejs-server: Added npm start scripts on package.json + update README 2016-06-24 09:13:25 +02:00
wing328
5095fe1018 Merge pull request #3199 from wing328/better_param_enum
[C#] Add array and map of enum support for C#
2016-06-23 23:49:49 +08:00
wing328
5047ab3b5c Merge pull request #3182 from cbornet/okhttp_java8
[Okhttp-gson] Add support for jsr310 dates to okhttp-gson client
2016-06-23 22:12:29 +08:00
Scott Davis
80666394f6 CVE-2016-5641 2016-06-23 06:06:21 -07:00
wing328
244831b29f add c++ 2016-06-23 18:08:56 +08:00
wing328
908243b90d fix docstring 2016-06-23 12:24:49 +08:00
wing328
c15992b420 add array and map of enum support for C# 2016-06-23 12:14:32 +08:00
Jean Detoeuf
2b22efcea9 using CompletableFuture instead of Callable for asynchronous controller 2016-06-22 09:19:21 +02:00
wing328
eda6d35b9f add nancyfx template owner 2016-06-22 10:33:31 +08:00
wing328
e0d030d33a Merge pull request #3139 from stunney/master
Issue #3138
2016-06-22 10:06:37 +08:00
Alex
0506b4ab76 Fix joda dependency in resteasy gradle file 2016-06-22 01:10:48 +06:00
Jean Detoeuf
1b71076c2d add tags with API name to java @Api annotation 2016-06-21 18:08:28 +02:00
wing328
61015488d2 Merge branch 'FinderSystems-nancyfx-codegen' 2016-06-21 23:48:58 +08:00
wing328
c2f5d83d06 Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into FinderSystems-nancyfx-codegen
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenModel.java
2016-06-21 23:47:49 +08:00
wing328
f9cf78e03d Merge pull request #3133 from cbornet/spring_unite
[Spring] put spring-mvc and spring-boot under the same language gen
2016-06-21 22:51:09 +08:00
wing328
7b51522392 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-21 22:27:56 +08:00
wing328
dfce0dad2c Merge branch 'qtstc-master' 2016-06-21 22:24:11 +08:00
wing328
321dc0d41c add test case for number (decimal) 2016-06-21 22:22:21 +08:00
cbornet
426cc6b6b4 better enums and dependency update 2016-06-21 16:19:37 +02:00
wing328
fa3aacf4aa Merge branch 'master' of https://github.com/qtstc/swagger-codegen into qtstc-master 2016-06-21 22:13:48 +08:00
wing328
0f32837383 Merge pull request #3187 from swagger-api/model_propert_same_name
[C#] Fix model with only read-only attributes and model & property using the same name
2016-06-21 21:59:36 +08:00
wing328
be3eec1e28 Merge pull request #3169 from RowanJKWalker/feature/issue-3168
Issue-3168: [csharp] Allow additional-properties to set Assembly Info #3168
2016-06-21 20:46:00 +08:00
wing328
3e30291865 fix #3184 2016-06-21 16:16:05 +08:00
cbornet
10d3716cd1 fix allowableValues test 2016-06-21 09:20:44 +02:00
wing328
d7bfe5495e add wealthfront, gravitate solution, Mporium 2016-06-21 10:26:28 +08:00
ant3
8b60a1e144 Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-06-21 00:17:01 +01:00
ant3
274c3150a7 Rebuilt jersey2 client sample. 2016-06-21 00:16:39 +01:00
ant3
b7e4be77c6 Rebuilt jersey1 client sample 2016-06-21 00:16:17 +01:00
ant3
b107b4693d Rebuilt jersey2-java8 sample 2016-06-21 00:15:34 +01:00
ant3
4ef10aa5ae Upgraded dependency versions
Also switched from using JSR310Module (Deprecated) to JavaTimeModule.
2016-06-21 00:14:10 +01:00
ant3
e40ad8ce3c Added sample build for Java8 Jersey2 client 2016-06-20 23:10:01 +01:00
cbornet
d4150d9a02 remove jersey2 sample as its now the jax-rs default 2016-06-20 23:48:42 +02:00
cbornet
5a489f334e mutualize jersey 1 and 2 server templates 2016-06-20 22:59:32 +02:00
cbornet
d29a5537bc add support for jsr310 dates to okhttp-gson client 2016-06-20 16:50:08 +02:00
wing328
d7ac136503 Merge pull request #3179 from areiter/dart-missing-dartson-property
Dart - Java compatibility
2016-06-20 22:46:43 +08:00
wing328
450eb844e9 add guohuang as go server owner 2016-06-20 22:42:24 +08:00
Marcin Stefaniuk
5b7ed41b1b Extended list of generators. 2016-06-20 15:41:53 +02:00
cbornet
027ff93ae4 rename and remove dead code 2016-06-20 15:16:13 +02:00
cbornet
1062fa467e fix issues 2016-06-20 15:13:17 +02:00
cbornet
ec6a9257e2 put spring-mvc and spring-boot under the same language gen 2016-06-20 15:12:03 +02:00
cbornet
48564079be add support for jsr310 dates to retrofit2 client
See #2874
2016-06-20 14:32:18 +02:00
Andreas Reiter
9ec0e545c8 Updated dart petstore 2016-06-20 13:25:54 +02:00
Rowan Walker
6ca58cfaa4 Issue-3168: Adding a DESC for each of the new CodegenConstants introduced. 2016-06-20 23:12:05 +12:00
cbornet
3e9064b81e support jsr310 dates in feign client
See #2874
2016-06-20 13:04:44 +02:00
Marcin Stefaniuk
897cd5c2ef Updated readme section with enlisted companies using Swagger Codegen. 2016-06-20 11:44:25 +02:00
Andreas Reiter
dee8a7b924 Add dartson-@Property to enable out of the box compatibility with code generated for e.g. Java 2016-06-20 11:16:51 +02:00
wing328
79dc34266f Merge pull request #3142 from cbornet/abstract_java
[Java] Refactor java codegen classes
2016-06-20 17:11:46 +08:00
cbornet
6c5def6936 fix missing java client library files 2016-06-20 10:32:02 +02:00
cbornet
d4c961798e fix tests 2016-06-20 10:32:01 +02:00
cbornet
7aac639aad refactor java codegen classes 2016-06-20 10:31:58 +02:00
Marcin Stefaniuk
0d9a490c17 Petstore sample for NancyFX. 2016-06-20 10:13:25 +02:00
wing328
07ce036a9a Merge pull request #3177 from wing328/fix_java_class_property
[Java] fix property name "class"
2016-06-20 15:30:25 +08:00
wing328
8283b701e8 fix java property with the name "class" 2016-06-20 14:51:17 +08:00
wing328
514255c8b7 clean up toc 2016-06-20 14:16:22 +08:00
wing328
6fd1912b92 Merge pull request #3151 from mateuszmackowiak/objc/core_data
[Objc] Moved default petstore demo sample to default folder and created a new with core data sample
2016-06-20 14:02:34 +08:00
wing328
d67e4d73cc Merge branch 'zhenjun115-new_python_with_http_info' 2016-06-20 13:12:35 +08:00
tao
90d61578d0 remove reformat 2016-06-19 21:39:06 -07:00
tao
6ac27fcafc revert changes to imports 2016-06-19 21:36:08 -07:00
tao
4e45ef954d better tests 2016-06-19 21:29:14 -07:00
wing328
50ef914db0 update test script for python 2016-06-20 12:24:53 +08:00
tao
a4eca5b05c add import for types used by inner CodegenProperties 2016-06-19 21:19:21 -07:00
tao
bf9d015fc7 failing test 2016-06-19 20:58:47 -07:00
wing328
88ce868bd5 Merge branch 'new_python_with_http_info' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-new_python_with_http_info
Conflicts:
	modules/swagger-codegen/src/main/resources/python/api.mustache
	samples/client/petstore/python/swagger_client/__init__.py
	samples/client/petstore/python/swagger_client/api_client.py
	samples/client/petstore/python/swagger_client/apis/pet_api.py
	samples/client/petstore/python/swagger_client/apis/store_api.py
	samples/client/petstore/python/swagger_client/apis/user_api.py
	samples/client/petstore/python/swagger_client/models/__init__.py
	samples/client/petstore/python/swagger_client/models/name.py
2016-06-20 11:58:35 +08:00
ant3
4c1c009bd1 Merge remote-tracking branch 'refs/remotes/swagger-api/master' 2016-06-20 00:25:01 +01:00
ant3
7e867dc8ff Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-06-19 22:40:27 +01:00
ant3
5e3a877033 Reformatted templating tags
Turns out I didn't need to compact newlines so I have reverted to a more
readable format for the templates.
2016-06-19 22:39:00 +01:00
ant3
cf42b4166f Fixed name of JSR310 module
Silly error, which resulted in code that didn't compile :-(.
2016-06-19 21:10:59 +01:00
wing328
b8c0569feb Merge pull request #3172 from wing328/ts_gitignore
[Typescript] add .gitignore and license header
2016-06-19 23:14:18 +08:00
zhenjun115
8180a46a35 add test case for pet api method with http info returned; 2016-06-19 21:44:12 +08:00
wing328
fdff69de31 Merge pull request #3113 from taf2/patch-1
it's the future
2016-06-19 17:24:44 +08:00
zhenjun115
86c8647ace add async method test case for pet api; 2016-06-19 12:31:10 +08:00
Rowan Walker
3606870f4b Issue-3168
[csharp] Enabling Assembly Info to be set by the following command line's additional-properties:
- packageTitle
- packageProductName
- packageDescription
- packageCompany
- packageCopyright
2016-06-19 16:21:51 +12:00
wing328
409d5dabca add license header to typescript API client 2016-06-19 12:03:50 +08:00
wing328
41a615e4eb add gitignore to TS API client 2016-06-19 11:45:51 +08:00
wing328
977ea6e9e9 Merge pull request #3167 from wing328/cpprest_license
[C++][cpprest] add license header to cpprest files
2016-06-18 18:52:20 +08:00
wing328
2b7288d525 add license to cpprest files 2016-06-18 18:09:19 +08:00
wing328
77d0e121bf Merge pull request #3065 from ant3/JSR310-Clients
[Java] Add support for JSR310 in Jersey2 Clients
2016-06-18 17:36:58 +08:00
abcsun
cff573f3dd modify the file path with File.separatorChar base on os 2016-06-18 17:24:06 +08:00
wing328
cc5668c825 Merge pull request #3108 from JasonQuinn/master
Adding the ability to get and set the httpClient for jersey2
2016-06-18 16:56:01 +08:00
wing328
f4e90d50a0 Merge pull request #3166 from wing328/scala_license
[Scala] Add Apache2 license to auto-generated scala files
2016-06-18 16:10:49 +08:00
wing328
4aa9f1b5fa add license header to scala files 2016-06-18 15:21:55 +08:00
wing328
6af40d6667 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-18 15:10:27 +08:00
wing328
517a189712 Merge pull request #3149 from jimschubert/scala_client_refactor
[scala] Add SBT buid support for scala client
2016-06-18 15:10:04 +08:00
wing328
2e8737908b Merge branch 'jimschubert-scala_client_refactor' 2016-06-18 15:09:18 +08:00
wing328
04748484ba remove println from scala test 2016-06-18 15:08:55 +08:00
wing328
04b15bab15 Merge branch 'scala_client_refactor' of https://github.com/jimschubert/swagger-codegen into jimschubert-scala_client_refactor 2016-06-18 14:54:56 +08:00
wing328
fe06fe30e0 Merge pull request #3156 from ferristseng/master
Fix result not defined error in javascript ApiClient
2016-06-18 14:53:29 +08:00
abcsun
3cb178cd14 sort the endpoints in ascending to avoid the route priority issure 2016-06-18 10:16:46 +08:00
ant3
c1a5839d44 Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-06-17 21:25:35 +01:00
Ferris Tseng
c30c586f94 update petstore sample 2016-06-17 15:46:36 -04:00
Ferris Tseng
3852736b40 fix result not defined error in js client 2016-06-17 10:47:48 -04:00
Jakub Malek
6404d47f97 NancyFx:
- Fixed typo
2016-06-17 15:35:04 +02:00
Jakub Malek
82d290eeae Merge with upstream 2016-06-17 15:22:17 +02:00
wing328
cc5e79cd0d move server stub doc to wiki 2016-06-17 19:36:24 +08:00
moanrose
a9bd4f2b42 Changed check for required parameter to check for null or undefined 2016-06-17 13:10:45 +02:00
wing328
1bdaba5cdc Merge pull request #3127 from abcsun/lumen
[PHP Lumen] 	add parameters validation and the Apache license
2016-06-17 18:58:57 +08:00
Jakub Malek
38298c3709 NancyFx:
- Sharpility version update
2016-06-17 09:35:53 +02:00
wing328
36264f3801 Merge pull request #3152 from salemXpresso/master
Fix Java CXF on parameter names containing '_' or '-'
2016-06-17 12:44:18 +08:00
wing328
8eff9188fb Merge pull request #3153 from wing328/qtcpp_license
[Qt5 C++] Add apache2 license to qt5cpp files
2016-06-17 12:20:09 +08:00
abcsun
0effbae24b add lumen api.mustache to generate controller & license update & resource dir restructure 2016-06-17 11:37:10 +08:00
wing328
c231474c4b Merge pull request #3154 from wing328/python_travis_ci
[Python] add travis.yml to python api client
2016-06-17 09:23:42 +08:00
Jim Schubert
ee630337b9 [scala] Add SBT buid support for scala client 2016-06-16 20:43:58 -04:00
wing328
f9eef2c825 add travis.yml for python api client 2016-06-17 00:41:40 +08:00
wing328
6bdee2adb5 add apache2 license to qt5cpp 2016-06-17 00:04:05 +08:00
Remi Salembier
2d275b41e0 Java CXF petstore sample update 2016-06-16 17:13:02 +02:00
Remi Salembier
799b27b249 Fix Java CXF on parameter names containing '_' or '-' 2016-06-16 16:18:01 +02:00
Mateusz Mackowiak
f33b0a2942 [Objc] Moved default petstore demo sample to default folder and created a target with core data sample 2016-06-16 13:12:42 +02:00
Mateusz Mackowiak
fc43b8700b [Objc] Moved default petstore demo sample to default folder and created a target with core data sample 2016-06-16 11:57:52 +02:00
wing328
77d1d97da5 Merge pull request #3015 from cbornet/java_instant
Use OffsetDateTime instead of LocalDateTime
2016-06-16 17:48:22 +08:00
wing328
dd379461e2 Merge pull request #3124 from mateuszmackowiak/objc/core_data_support_for_array_model
[Objc] - CoreData support for ArrayModels
2016-06-16 17:24:08 +08:00
wing328
b5f22ff5c8 Merge pull request #3109 from philicious/qt5-cpp-helpers-fix
Fixed several issues with Qt5 generator and Qt5 PetStore tests
2016-06-16 16:54:45 +08:00
wing328
2107758100 add swift-petstore-all.sh and partial_license for perl 2016-06-16 16:42:17 +08:00
wing328
6a68965308 Merge pull request #3131 from mateuszmackowiak/android/volley/post_null_body_fix_proper
[Android][Volley] fix support for post null body
2016-06-16 16:04:55 +08:00
wing328
e501287036 Merge pull request #3130 from taxpon/issue-3129-handle-204
Handle 204 response correctly in typescirpt-angualr2
2016-06-16 15:30:10 +08:00
ant3
ae67961f60 Merge remote-tracking branch 'refs/remotes/swagger-api/master' 2016-06-15 22:13:56 +01:00
Maneesh Sahu-SSI
6c350a7d2d Added long to primitive data types supported in Python codegen 2016-06-15 13:43:36 -07:00
stunney
cb47bec293 Issue #3138
Continuation from original PR to update the pet store server auto gen
sample code based on previous commit.
2016-06-15 10:04:28 -04:00
stunney
0980261709 Merge remote-tracking branch 'refs/remotes/swagger-api/master' 2016-06-15 10:02:41 -04:00
wing328
89435850a6 Merge pull request #2979 from guohuang/go_server
issue#2970, [Go] add go server codegen template
2016-06-15 15:18:28 +08:00
wing328
e875ac6976 Merge pull request #3128 from wing328/cpprest_generator
[C++] add cpprest generator
2016-06-15 11:32:34 +08:00
wing328
d56eed898d replace tab with 4-space 2016-06-15 10:50:06 +08:00
wing328
36325393bd add C++ Danielku15 2016-06-15 10:44:04 +08:00
wing328
0b63206496 add windows batch file for cpprest-petstore 2016-06-15 10:41:35 +08:00
wing328
2362f77bbc Merge pull request #3135 from wing328/js_license_header
[Javascript] add license header to JS cient, update sample
2016-06-15 10:28:37 +08:00
stunney
d21aa1f3a3 Issue #3138
https://github.com/swagger-api/swagger-codegen/issues/3138

Adds " virtual" to the controller moustache file so that the controllers
can be inheritted from.
2016-06-14 17:01:18 -04:00
wing328
8085e11063 add license header to JS cient, update sample 2016-06-15 01:18:04 +08:00
wing328
e2e90db863 Merge pull request #3134 from wing328/js_travis
[Javascript] Add auto-generated test files and .travis.yml to JS API client
2016-06-15 01:08:33 +08:00
wing328
9f3b8bab2b add travis.yml for JS api client 2016-06-15 00:03:11 +08:00
wing328
4c277631e4 add auto-generated test cases for js api client 2016-06-14 23:50:38 +08:00
Jason Quinn
2903ec64a4 Merge branch 'master' of https://github.com/JasonQuinn/swagger-codegen 2016-06-14 15:03:24 +01:00
Jason Quinn
ed83ad3afd Removing gradle dependency for jersey2 pom 2016-06-14 15:01:23 +01:00
Jason Quinn
54babeb5ed Updating jersey2 sample 2016-06-14 15:01:10 +01:00
Mateusz Mackowiak
ac7a7503b4 [Android][Volley] fix support for requests null body 2016-06-14 16:00:40 +02:00
Jason Quinn
24b7f5c902 Adding the ability to get/set the httpClient for jersey2 2016-06-14 15:00:40 +01:00
Mateusz Mackowiak
54afae57c8 [Android][Volley] fix support for post null body 2016-06-14 15:49:41 +02:00
Takuro Wada
723f65b940 Fix typo in .swagger-codegen-ignore 2016-06-14 21:50:06 +09:00
Takuro Wada
2843c44401 Handle 204 response correctly in typescirpt-angualr2 2016-06-14 21:31:25 +09:00
wing328
ecd80a3d70 add cpprest and samples 2016-06-14 16:33:50 +08:00
wing328
b782dc0178 Merge pull request #3123 from mateuszmackowiak/android/volley/post_null_body_fix
[Android][Volley] fix support for post null body
2016-06-14 15:46:02 +08:00
wing328
db32c26cc5 Merge pull request #3126 from arnested/php-empty-array-response
[PHP] Handle empty array response correct
2016-06-14 15:29:38 +08:00
philicious
691ef88333 updated SWGHelpers in tests with output from 1b79734 2016-06-14 00:15:39 +02:00
philicious
9825dfc735 fixed Qt5 api-body template bug with form params 2016-06-14 00:13:12 +02:00
philicious
511971cf67 fixed wrong function parameter type in PetApiTest.cpp 2016-06-13 23:54:27 +02:00
philicious
6f85deeecd added missing source/header for SWGApiResponse in Makefile 2016-06-13 23:53:01 +02:00
philicious
8fab73fff6 added missing systemIncludes for QMap, QDateTime, QDate 2016-06-13 23:52:13 +02:00
Arne Jørgensen
614e98a404 [PHP] Regenerate petstore sample 2016-06-13 23:22:31 +02:00
Arne Jørgensen
f5f4adac29 [PHP] Handle empty array response correct 2016-06-13 23:22:04 +02:00
wing328
871d5ddc5d Merge pull request #3112 from cbornet/springboot_j8async
Add java8 and async options to Spring-Boot codegen
2016-06-14 01:02:52 +08:00
wing328
45c32fd57b Merge pull request #3122 from clasnake/add_license_scalatra
Add Apache v2 license to auto-generated scalatra files.
2016-06-14 00:55:40 +08:00
wing328
e9938648ae add scala and groovy style guide 2016-06-14 00:53:57 +08:00
wing328
d6b43d54cc add haskell style guide 2016-06-14 00:52:34 +08:00
Mateusz Mackowiak
102226666f [Objc] - CoreData support for ArrayModels
- Support for uuid and password types
2016-06-13 18:31:19 +02:00
wing328
12b16c1ff5 add android style guide 2016-06-14 00:18:48 +08:00
wing328
eb42f99bb5 Merge pull request #3056 from mateuszmackowiak/objc/core_data_unique-id-key
[Objc] Support for x-unique-id-key vendorExtensions
2016-06-13 23:47:31 +08:00
Mateusz Mackowiak
0816f315d3 [Android][Volley] fix support for post null body 2016-06-13 17:23:34 +02:00
clasnake
ce456fafdc Add Apache v2 license to auto-generated scalatra files. 2016-06-13 22:55:18 +08:00
wing328
cfa40b1484 Merge pull request #3119 from wing328/java_travis
[Java] add travis.yml for Java API client
2016-06-13 17:42:49 +08:00
abcsun
ee024c40fb add apache license to lumen 2016-06-13 17:37:19 +08:00
wing328
3295b24cc2 add travis.yml for java client 2016-06-13 17:06:49 +08:00
wing328
a97402d1ee add http://www.lascaux.it/ 2016-06-13 15:15:21 +08:00
abcsun
bffb0fb4d8 sync from origin master 2016-06-13 10:25:03 +08:00
Guo Huang
e39aa3ed3c fix merge conflict 2016-06-12 14:15:55 -07:00
ant3
fecaf0673a Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-06-12 19:18:07 +01:00
ant3
56c6e081d5 Fixed Java 8 time in Jersey 1 Client
Made the Jersey 1 client work with java 8 time classes.  Also tightened
up newlines in templates.
2016-06-12 19:15:38 +01:00
wing328
c5eda5557e Merge pull request #3116 from wing328/csharp_travis
[C#] Add travis file to C# client for CI with travis-ci.org
2016-06-12 17:22:17 +08:00
wing328
16d89a47b7 add travis file for C# client 2016-06-12 16:45:49 +08:00
wing328
dda6c600ae Merge pull request #3115 from wing328/csharp_add_mono_test
[C#] Add mono test script, various enhancements
2016-06-12 13:21:54 +08:00
wing328
bca3d24d20 fix test cases, fix warning in exceptionfactory, update
.swagger-codegen-ignore for c# to keep logo file (for upload test)
2016-06-12 12:41:35 +08:00
wing328
6ddf34ce8a update nunit to 3.2.1 2016-06-12 01:56:31 +08:00
wing328
4b6d372bff update C# json to 8.0.3 2016-06-12 00:39:56 +08:00
wing328
bc04ebed94 add mono script to nunit test csharp client 2016-06-11 23:44:48 +08:00
wing328
9102dce654 Merge pull request #3114 from wing328/python_ci
[Python] Update CI to cover Python2 and Python3 Petstore tests
2016-06-11 11:38:43 +08:00
wing328
661aa25c3d sudo to install virtualenv 2016-06-11 10:38:22 +08:00
wing328
1221a83504 add python ci 2016-06-11 10:35:50 +08:00
wing328
cdc29d0dde Merge pull request #3034 from taxpon/issue-3029-python-constructor
Update python constrouctor to provide arguments for instance initialization
2016-06-11 10:27:26 +08:00
Todd
cbfe23589c it's the future
html5 is all the rage
2016-06-10 15:09:29 -04:00
cbornet
c2dbe44d08 add java8 and async options to springboot codegen 2016-06-10 18:21:19 +02:00
wing328
851f2ef688 Merge pull request #3107 from cbornet/default_joda
Set joda as default dateLibrary for java codegens that support it
2016-06-10 23:17:38 +08:00
wing328
fdae19b2a6 Merge pull request #3111 from swagger-api/perl_license
[Perl] add apache 2.0 license to perl api client
2016-06-10 23:02:35 +08:00
wing328
7de95c52c1 add apache 2.0 license to perl api client 2016-06-10 22:43:56 +08:00
wing328
5ea2e2f1a2 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-06-10 21:59:17 +08:00
wing328
7be14f00fa Merge branch 'zlx-rails5-models' 2016-06-10 21:58:59 +08:00
wing328
d924a1411b remove debugging flag, add batch file for rails5 generator 2016-06-10 21:58:16 +08:00
wing328
e7160ca78a Merge branch 'rails5-models' of https://github.com/zlx/swagger-codegen into zlx-rails5-models 2016-06-10 21:56:22 +08:00
wing328
3051ca23b6 Merge pull request #3110 from jimschubert/bug/3106
[csharp] Include ExceptionFactory property on IApiAccessor interface
2016-06-10 21:32:46 +08:00
Jason Quinn
8ffe4c9e06 Removing gradle dependency for jersey2 pom 2016-06-10 14:12:13 +01:00
Mateusz Mackowiak
5a6daeed8f [Objc] Moved x-is-unique: true to petstore-with-fake-endpoints-models-for-testing 2016-06-10 14:17:52 +02:00
Jim Schubert
c209cb25ef [csharp] Regenerate petstore client 2016-06-10 08:10:50 -04:00
Jim Schubert
196930cf49 [csharp] Include ExceptionFactory property on IApiAccessor interface 2016-06-10 08:10:12 -04:00
philicious
1b7973404d added missing data-type handlers for QDate and QDateTime in Qt5/CPP helpers 2016-06-10 13:06:53 +02:00
Jason Quinn
e57f039eb9 Updating jersey2 sample 2016-06-10 12:00:52 +01:00
Jason Quinn
df60cd2d8b Adding the ability to get/set the httpClient for jersey2 2016-06-10 11:56:05 +01:00
cbornet
0f3569e982 set joda as default dateLibrary for java codegens that support it
Fix #3087
2016-06-10 12:17:36 +02:00
wing328
b859024840 Merge branch 'cbornet-joda_springboot' 2016-06-10 17:01:54 +08:00
wing328
a33eb3132e add message about rmeoving files/folders under output folder 2016-06-10 17:01:27 +08:00
wing328
ad77062b11 Merge branch 'joda_springboot' of https://github.com/cbornet/swagger-codegen into cbornet-joda_springboot 2016-06-10 16:39:58 +08:00
wing328
c143937959 Merge pull request #2986 from jimschubert/cs/exception_factory
[csharp] Intercept hooks for req/res and ExceptionFactory
2016-06-10 16:37:51 +08:00
wing328
ffc9ed1414 Merge branch 'cbornet-joda_retrofit_1' 2016-06-10 16:35:33 +08:00
wing328
3f51ff3314 add wording about removing files and folders in the output folder 2016-06-10 16:34:59 +08:00
wing328
ff28988a67 Merge branch 'joda_retrofit_1' of https://github.com/cbornet/swagger-codegen into cbornet-joda_retrofit_1 2016-06-10 16:32:23 +08:00
wing328
216d4b8b23 Merge pull request #3083 from cbornet/joda_retrofit
Add joda support to retrofit2 clients and use it in samples
2016-06-10 15:18:00 +08:00
wing328
e32ccb24e4 Merge branch 'cbornet-jersey_joda' 2016-06-10 14:30:56 +08:00
wing328
b418719804 update sample, update shell script with messages about removing files 2016-06-10 14:30:32 +08:00
wing328
c6cc15f429 Merge branch 'jersey_joda' of https://github.com/cbornet/swagger-codegen into cbornet-jersey_joda 2016-06-10 14:04:15 +08:00
wing328
a6f0b2d296 Merge pull request #3101 from cbornet/joda_okhttp
Add joda support to okhttp-gson and use it in the samples
2016-06-10 11:41:54 +08:00
cbornet
d8eb708e23 add joda support to spring-boot and use it in sample 2016-06-09 22:09:47 +02:00
cbornet
2fe9cd2ba0 add joda support to retrofit 1 clients 2016-06-09 18:41:44 +02:00
cbornet
61884211bb add joda support to okhttp-gson and use it in the samples 2016-06-09 18:20:52 +02:00
cbornet
3c252f264c use joda in jersey1/jersey2 client sample 2016-06-09 17:10:57 +02:00
wing328
bd705a49d6 Merge pull request #3094 from karussell/patch-3
[Java] client: make all okhttp classes explicit to avoid conflict
2016-06-09 21:21:51 +08:00
wing328
a965b74073 Merge pull request #3095 from wing328/fix_okhttp_pom
[Java][okhttp-gson] fix okhttp pom to remove dependency on gradle, sbt test
2016-06-09 20:33:30 +08:00
Jakub Malek
33149c3a63 NancyFx:
- Missing namespace import
2016-06-09 13:27:01 +02:00
Jakub Malek
b604b1b80f NancyFx:
- Fixed error message for unsupported enum value
- Fixed error message for Format and Overflow exceptions
- Added support for ZonedDateTime and LocalTime in Parameters utility
2016-06-09 13:21:59 +02:00
Marcin Stefaniuk
e823c12dc0 Rename inheritance property. 2016-06-09 13:04:31 +02:00
Marcin Stefaniuk
e52f991d72 Adding NodaTime types as primitives to keep them nullable. 2016-06-09 12:58:58 +02:00
Newell Zhu
b27022749f Add debug support for rails5 2016-06-09 18:43:31 +08:00
Newell Zhu
f3e368c723 Add model & migrate support 2016-06-09 18:40:01 +08:00
wing328
4ee483dcc0 fix okhttp pom to remove dependency on gradle, sbt test 2016-06-09 18:23:19 +08:00
Peter
32cabcfb23 updated petstore with latest okhttp changes 2016-06-09 11:35:03 +02:00
Peter
1ff18c4ac6 make all okhttp classes explicit to avoid conflict 2016-06-09 11:31:15 +02:00
wing328
9d6aff18cf Merge branch 'karussell-patch-1' 2016-06-09 17:07:59 +08:00
wing328
bc42d941ec Merge branch 'patch-1' of https://github.com/karussell/swagger-codegen into karussell-patch-1
Conflicts:
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/ApiException.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Configuration.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Pair.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/OAuth.java
2016-06-09 17:06:50 +08:00
wing328
0c7d5dfb7d Merge pull request #3093 from wing328/add_license_okhttp
[Java][okhttp-gson] Add Apache license to Java (okhttp-gson) API client
2016-06-09 16:59:24 +08:00
wing328
0a3a47dbd4 add license to java okhttp client 2016-06-09 16:20:57 +08:00
wing328
2d170fd7a6 add license to 2016-06-09 16:07:36 +08:00
Peter
28bece0ce0 made response change to petstore 2016-06-09 08:56:42 +02:00
wing328
ae3a31fb79 Merge pull request #3086 from cbornet/feign_generated
Remove generated annotation from feign sample
2016-06-09 10:15:43 +08:00
wing328
92e4dc2248 Merge pull request #3091 from karussell/patch-2
Added new company using swagger
2016-06-09 10:14:49 +08:00
Takuro Wada
2ea37202a9 Omit @property.setter for readonly property 2016-06-09 08:00:42 +09:00
Takuro Wada
2c939b03b4 Apply readWriteVars to constructor in python/model.mustach 2016-06-09 07:57:52 +09:00
Takuro Wada
03f5619beb Update python constructor to provide arguments for instance initialization ( #3029 ) 2016-06-09 07:56:26 +09:00
Peter
6cab3a2a37 added GraphHopper to projects/companies 2016-06-08 22:53:58 +02:00
Peter
6df4ffab13 use explicit Response class from okhttp fixing #3071 2016-06-08 22:37:41 +02:00
cbornet
ec3a200c8c remove generated annotation in feign sample 2016-06-08 19:53:00 +02:00
wing328
3165e1c39d Merge pull request #3039 from cbornet/spring_interface
[Spring] Add an option to only generate stubs of the API and no server files
2016-06-09 01:38:17 +08:00
wing328
c11908824e Merge pull request #3075 from cbornet/feign_joda
[Feign] Support joda dates in feign client and use it in petstore sample
2016-06-09 01:28:10 +08:00
cbornet
acf17c85ad add joda support to retrofit clients and use it in samples
also adds back the petstore tests
2016-06-08 18:50:49 +02:00
wing328
691aa53d5a [Java][okhttp-gson] fix java doc for okhttp-gson (#3077)
* fix java doc for okhttp-gson

* add ci test for javadoc

* fix return type for java doc

* fix warning/error with javadoc

* fix error/warning in javadoc

* fix 2 warnings related to docstring

* remove trailing space for okhttp tmeplate
2016-06-09 00:47:49 +08:00
Artur Dzmitryieu
0a9b888e7f Update language description 2016-06-08 10:56:53 -04:00
wing328
baed578010 file an issue ticket 2016-06-08 21:21:39 +08:00
wing328
fccc30eb11 add info about pulling latest master 2016-06-08 21:20:03 +08:00
Wolfgang Berger
cd6a805910 updates templates with JSONModel workaround 2016-06-08 13:31:04 +02:00
cbornet
23278bb51d fix test 2016-06-08 11:38:44 +02:00
cbornet
b4d521ca7b add a java8-localdatetime dateLibrary option for leagacy app backward compatibility 2016-06-08 11:07:13 +02:00
cbornet
5fd948f234 use OffsetDateTime instead of LocalDateTime
Fix #2138
2016-06-08 10:18:49 +02:00
wing328
b978914c96 Merge pull request #3061 from taxpon/issue-3055
[Python] Fix bug of test files about packageName
2016-06-08 10:42:17 +08:00
Takuro Wada
df11034c46 Add venv and .python-version to .gitignore 2016-06-08 09:25:35 +09:00
Takuro Wada
7916f5243d [Python] Fix bug of test files about packageName 2016-06-08 09:24:12 +09:00
cbornet
3ae39c9562 support joda in feign and use it in sample 2016-06-07 22:39:34 +02:00
wing328
6a73f29cef Merge pull request #3038 from Landschaft/master
[Swift] #3036 Make APIHelper.convertBoolToString return nil for nil input
2016-06-08 00:26:55 +08:00
wing328
012797adf1 add naming convention for vendor extension 2016-06-07 23:53:41 +08:00
Jan Schmidle
10e970e707 fix date format in example generator 2016-06-07 17:46:06 +02:00
wing328
bd2250b6ca Merge pull request #3058 from clasnake/3044/gradle_for_scala
Add gradle support for the scala client.
2016-06-07 23:45:27 +08:00
wing328
391cab5220 Merge pull request #3063 from ePaul/patch-1
[Github issue template] instructions about how to paste YAML or JSON code
2016-06-07 23:28:29 +08:00
wing328
27cd38ba61 Merge pull request #3043 from qtstc/master
Stop Reading Custom Template Files from subdirectory
2016-06-07 19:19:03 +08:00
wing328
70005a2ec6 Merge pull request #3066 from taxpon/issue-3064-python-configuration-bug
Fix 'isOauth' to 'isOAuth' in python template
2016-06-07 19:01:20 +08:00
wing328
dd52f01fc6 Merge pull request #3070 from wing328/remove_ignore_global_file
Replaced global license file with default LICENSE
2016-06-07 15:17:30 +08:00
wing328
3ae48b179a replaced global license file with default LICENSE 2016-06-07 15:15:20 +08:00
wing328
127bac4790 Merge pull request #3067 from jimschubert/bug/3047
[swagger-codegen-ignore] Skip file case test Windows
2016-06-07 14:37:34 +08:00
Jim Schubert
483dba2aff [swagger-codegen-ignore] Skip file case test Windows
There doesn't appear to be an excellent way to resolve a case sensitive
test on Windows, so conditionally skipping the test on Windows.

See #3047
2016-06-06 21:24:08 -04:00
Takuro Wada
3c919974a7 Fix 'isOauth' to 'isOAuth' in python template 2016-06-07 08:30:17 +09:00
Artur Dzmitryieu
ad25052223 Update a Readme and add sample output for petstore json 2016-06-06 15:03:44 -04:00
Paŭlo Ebermann
08f86ae0b6 instructions about how to paste YAML or JSON code
Hopefully that will make issues easier to read.
2016-06-06 20:30:44 +02:00
clasnake
5adb80bd1b Delete the build folder. 2016-06-06 22:22:07 +08:00
Wolfgang Berger
e258fb97ca updates for ISO8601 0.5.1 2016-06-06 16:17:39 +02:00
clasnake
92d4f5df22 Add build folder in the sample scala client into gitignore. 2016-06-06 22:11:16 +08:00
clasnake
4c9e7ae572 Add gradle support for the scala client. 2016-06-06 22:04:17 +08:00
cbornet
1836062e6f don't put RequestMapping on the interface
as Spring-MVC will automatically consider it as a controller which is not necessarily the case (eg. for a spring-cloud FeignClient)
2016-06-06 14:40:11 +02:00
wing328
895f13cc11 Merge pull request #3050 from taxpon/issue-3041
[Python] Follow PEP8 rules ( Issue #3041 )
2016-06-06 18:18:36 +08:00
Mateusz Mackowiak
24ecf9d74f [Objc] Support for x-unique-id-key vendorExtensions 2016-06-06 12:13:06 +02:00
cbornet
556f529933 add option to use single content-type produces/consumes 2016-06-06 11:45:07 +02:00
ant3
b8ebee1ec3 Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients 2016-06-05 23:13:52 +01:00
ant3
9a9d5ebd9f Allow generation of Jersey2 clients with JSR310 classes
If the -DdateLibrary=java8 option is set on the command line then
jersey2 client code will be generated using JSR310 classes rather than
Joda time.  Because JSR310 requires java8 the java target version is
also changed in the build files.
2016-06-05 23:11:29 +01:00
wing328
eeb14ae936 Merge pull request #3018 from mateuszmackowiak/objc/binary_data
[Objc] Proper binary data handle
2016-06-05 22:28:56 +08:00
Takuro Wada
955d39f709 [Python] Follow PEP8 rules ( Issue #3041 ) 2016-06-05 23:15:36 +09:00
wing328
286eae9577 Merge pull request #3049 from clasnake/gitignore
Add build folder under java sample clients into gitignore in sample.
2016-06-05 22:02:39 +08:00
wing328
2e60847f7f Merge pull request #3045 from clasnake/3006/sbt_for_java_scala
Add sbt support for feign, retrofit, retrofit2 and retrofit2rx.
2016-06-05 22:01:17 +08:00
wing328
f2f6940006 Merge pull request #2987 from mbarclay/master
Added date format string #2935
2016-06-05 21:42:56 +08:00
clasnake
992a22f409 Add build folder under java sample clients into gitignore in sample. 2016-06-05 09:22:13 +08:00
Tony Tam
4f92194227 Merge branch 'dockerfiles' of https://github.com/jimschubert/swagger-codegen into jimschubert-dockerfiles 2016-06-04 15:27:39 -07:00
zhenjun115
67c3f98d96 enable python api client to return just data without http header info when need; 2016-06-04 23:30:10 +08:00
clasnake
f3cff97acc Regenerate the sample client for feign. 2016-06-04 22:21:27 +08:00
clasnake
a84ed9cb57 Fix build.sbt.mustache for feign. 2016-06-04 22:18:23 +08:00
clasnake
4da829315f Add sbt support for feign. 2016-06-04 21:51:49 +08:00
clasnake
503fb138f5 Add sbt support for retrofit2 and retrofit2rx. 2016-06-04 21:13:10 +08:00
clasnake
9ed290efea Add sbt support for retrofit. 2016-06-04 20:53:21 +08:00
tao
83e8a2e90c stop reading custom template file from subdirectories 2016-06-03 16:08:07 -07:00
Artur Dzmitryieu
2bbe26b41a Add new jax-rs language that uses only 2.0 spec API's 2016-06-03 15:52:46 -04:00
Landschaft
17a639be75 [Swift] #3036 Make APIHelper.convertBoolToString return nil for nil input. This will prevent the creation of an empty body for GET requests. 2016-06-03 21:14:45 +02:00
wing328
34fed26e79 add epaul to the core team 2016-06-04 00:02:30 +08:00
cbornet
a452bbf039 add interfaceOnly option test 2016-06-03 16:25:02 +02:00
cbornet
3b37584c1f update README 2016-06-03 16:21:37 +02:00
cbornet
fe8b0cf07b add option to only generate stubs of the API and no server files
Fix #3025
2016-06-03 16:21:37 +02:00
wing328
ee5d2e99b1 Merge pull request #3035 from leonyu/typescript-fetch-update-typings-to-v1
Typescript fetch: update typings to 1.0.4
2016-06-03 18:05:44 +08:00
wing328
ac4c460338 Merge pull request #3027 from pablograna/fix-eclipse-errors
Use UnsupportedOperationException.
2016-06-03 15:48:28 +08:00
wing328
75de07d439 Merge pull request #3030 from clasnake/3006/sbt_for_java_scala
3006/sbt for java scala
2016-06-03 14:51:56 +08:00
Griffin Schneider
689841ce8e [ObjC] Fix various bugs in generated code. (#3031)
* [ObjC] Fix bug where ApiClient.timeoutInterval didn't do anything.

* [ObjC] Fix bug where <AFNetworking.h> couldn't be found.

* [ObjC] Fix useages of 'SWG' instead of {{classPrefix}} in Sanitizer-body.mustache.
2016-06-03 14:47:59 +08:00
Leon Yu
a34373fe34 Update typings version
rebuild test target
2016-06-02 18:56:08 -04:00
clasnake
f4ba31964a Merge branch 'master' into 3006/sbt_for_java_scala
Conflicts:
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/ApiException.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Configuration.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Pair.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/OAuth.java
2016-06-03 00:43:43 +08:00
clasnake
f0d3bd8f21 Add sbt support for jersey2, fix dependency issue for okhttp-gson. 2016-06-03 00:37:53 +08:00
Jakub Malek
01145be00d NancyFx:
- Moved model enum definitions to model class to avoid name duplications
2016-06-02 16:06:47 +02:00
Pablo Gra\~na
328787186c Use UnsupportedOperationException.
Replaced NotImplementedException with UnsupportedOperationException. See
bug #3011.

Eclipse was throwing some errors related to differences in package names
vs file path. I renamed the packages io.swagger.codegen.Go to
io.swagger.codegen.go, io.swagger.codegen.slim to package
io.swagger.codegen.lumen and io.swagger.codegen.springBoot to
io.swagger.codegen.springboot in some test files.
2016-06-02 08:20:10 -03:00
Jakub Malek
460f8130db NancyFx:
- Fixed Query and Headers parameters parsing
2016-06-02 13:12:16 +02:00
Jakub Malek
9c8373aea2 NancyFx:
- Fixed model template
2016-06-02 11:53:25 +02:00
wing328
a3610f1c12 [Java] fix warning in pom.xml (java okhttp-gson) (#3023)
* fix warning in pom.xml

* minor fix to pom (okhttp-gson)
2016-06-02 17:37:11 +08:00
Jakub Malek
adb02a030f NancyFx:
- Skipping parsing nulls of nullable types
2016-06-02 11:18:51 +02:00
Jakub Malek
a458e53e25 NancyFx
- Detailed exception of not expected parse error
2016-06-02 11:14:05 +02:00
Jakub Malek
d1cf803e49 NancyFx:
- Yet another fix for nullable enums parsing
2016-06-02 11:05:40 +02:00
Jakub Malek
4c69e02a21 NancyFx:
- Fixed parsing nullable enums
2016-06-02 11:00:16 +02:00
Jakub Malek
d201d6331c NancyFx:
- Details exception for error of dynamic value of parameter
2016-06-02 10:52:21 +02:00
Jakub Malek
0996f8c930 NancyFx:
- Detailed exception of get parameter error
2016-06-02 09:53:42 +02:00
Jakub Malek
da5804d583 NancyFx:
- Using nullable enum types in API
2016-06-02 08:57:49 +02:00
Takuro Wada
91c35509b8 set 'None' to body for request if given body is 'None' ( issue #3020 ) (#3021) 2016-06-02 14:51:13 +08:00
wing328
23d2c56096 [JAX-RS] fix library setting "jersey2" (#3016)
* to fix #2981

* update sample, update ci to include jaxrs (jersey1, 2)

* avoid duplicated artifactId in pom (jaxrs jersey1)

* update jetty dependency for jersey1 jaxrs

* update bin to set proper artifact-id

* fix jersey1 jaxrs pom.xml

* fix dependency in jaxrs jersey2 pom

* downgrade jetty plugin to 9.3.0.v20150612

* update petstore sample for jaxrs jersey 1

* restore jetty to previous version. update test order

* downgrade jetty maven plugin version

* restore original version of jetty plugin
2016-06-02 14:33:08 +08:00
Jakub Malek
1cfb3d1c9c NancyFx:
- Changed enum class name format
- CodegenProperty parent and parentClass replaced by Booolen flag isInherited
2016-06-02 08:14:49 +02:00
wing328
85550285a1 Merge pull request #3017 from mateuszmackowiak/objc/user_agent
[Objc] Add customizable user-agent #2715
2016-06-02 14:11:15 +08:00
wing328
36a8ed2c37 Merge pull request #3013 from DavidBiesack/preserve-schema-name
use {{name}} not {{classname}} in HTML section header/anchors
2016-06-02 11:49:30 +08:00
Mateusz Mackowiak
7a87746af1 [Objc] Proper binary data handle 2016-06-01 16:43:35 +02:00
wing328
43fe3fa6d0 Merge pull request #3003 from Cosium/feign-disable-fail_on_unknwon_properties
Feign: disable FAIL_ON_UNKNOWN_PROPERTIES by default
2016-06-01 22:33:36 +08:00
wing328
8f82034a4f Merge pull request #2947 from mikolajprzybysz/version-check-mustache
[PHP] Check skipping artifiactVersion in other mustache templates, since it is not required anymore
2016-06-01 22:12:13 +08:00
Mateusz Mackowiak
2ead00c96d [Objc] Add customizable user-agent #2715 2016-06-01 15:51:52 +02:00
Jakub Malek
dbc6c2f163 Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into nancyfx-codegen 2016-06-01 15:04:41 +02:00
Jakub Malek
fc9b4501fc NancyFx:
- Fixed inheritance support
2016-06-01 15:04:18 +02:00
Mikolaj Przybysz
47576471e2 Replaced double quotes with singles 2016-06-01 10:57:20 +02:00
Mikolaj Przybysz
9f94220010 Merge branch 'version-check-mustache' of github.com:mikolajprzybysz/swagger-codegen into version-check-mustache
Conflicts:
	modules/swagger-codegen/src/main/resources/php/configuration.mustache
2016-06-01 10:45:18 +02:00
Mikolaj Przybysz
4f54e5cdc7 Improved formatting 2016-06-01 10:43:22 +02:00
Mikolaj Przybysz
37264b0bcf Removed printing artifactVersion if it is not set from debug information 2016-06-01 10:35:52 +02:00
Mikolaj Przybysz
ce2e994306 Removed printing artifactVersion if it is not set 2016-06-01 10:30:55 +02:00
wing328
7b6747e6f3 Merge pull request #2872 from dmytrobr/feature/issue-2868
use Title attribute as model name
2016-06-01 10:55:54 +08:00
wing328
1029b1891d Merge pull request #3010 from mateuszmackowiak/objc/core_data_update_license
[Objc] core data objc update license
2016-06-01 10:09:48 +08:00
David Biesack
147497ae34 use {{name}} not {{classname}} in HTML seaction head/anchors 2016-05-31 15:57:40 -04:00
Réda Housni Alaoui
5740de9cc7 Feign: disable FAIL_ON_UNKNOWN_PROPERTIES by default 2016-05-31 18:51:11 +02:00
Mateusz Mackowiak
fbd8deef46 [Objc] core data objc update license 2016-05-31 18:27:34 +02:00
wing328
1d8ba34651 Merge pull request #3009 from wing328/fix_okhttp_sbt
[Java] fix build.sbt for Java API client (okhttp-gson)
2016-05-31 23:24:10 +08:00
wing328
73ab94dfbf fix sbt build for okhttp-gson 2016-05-31 22:22:54 +08:00
wing328
a223dcd7c5 add Avenida Compras S.A 2016-05-31 21:35:19 +08:00
Marcin Stefaniuk
e1df89c8fa Formatting fix. 2016-05-31 13:49:45 +02:00
Jakub Malek
30b7eb7854 NancyFx:
- Omitting copyright and licenceurl tags i nuspec when not specified
2016-05-31 09:01:26 +02:00
Jakub Malek
849aa5064d NancyFx:
- Including dependencies in csproj
2016-05-31 08:50:36 +02:00
wing328
af0c8b5ed0 Merge pull request #3005 from pablograna/remove-unnecessary-call-to-parser
Remove unnecessary 2nd call to SwaggerParser.
2016-05-31 14:10:20 +08:00
Pablo Gra\~na
50a346ca91 Remove unnecessary 2nd call to SwaggerParser.
Both CodeGenMojo and CodegenConfigurator where parsing the swagger input.
The result in CodeGenMojo was discarded. I simply removed the line in
CodeGenMojo.
2016-05-30 18:56:15 -03:00
Mikołaj Przybysz
794e7e4a22 Merge pull request #3 from swagger-api/master
Update
2016-05-30 17:32:21 +02:00
wing328
4f9b43b555 Merge pull request #2988 from wing328/objc_core_data_cherrypick2
[Objc] Basic Core data support [Optional]
2016-05-30 23:28:22 +08:00
wing328
14aefe786e Merge pull request #3000 from zlx/rails-5-license
Add LICENSE into rails5
2016-05-30 22:07:10 +08:00
wing328
7719cafb94 fix CI issue 2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
a8daf94831 Remove nullability warnings 2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
8aa777405a [Objc] CoreData pod spec add resources only if useCoreData is on 2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
bfd71c1e29 [Objc] CoreData added test 2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
5145beea05 [Objc] coraData cli option changed from y/n to true false 2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
ceda86b9c3 [Objc] Basic Core data support 2016-05-30 22:02:16 +08:00
wing328
81b6ccfe1c Merge pull request #2999 from wing328/update_license
Add appendix to Apache license
2016-05-30 21:59:43 +08:00
Jakub Malek
16200ae424 NancyFx:
- Mutable model generation for option -Dimmutable-false
2016-05-30 15:49:37 +02:00
Newell Zhu
e7baa17ba0 Add LICENSE into rails5 2016-05-30 21:38:59 +08:00
wing328
867a4f80ee Merge pull request #2996 from wing328/package_json_license
Update nodejs/ts package.json use Apache-2.0 license
2016-05-30 21:34:24 +08:00
wing328
fb68f61a03 Merge pull request #2992 from jimschubert/swagger_codegen_ignore_docs
[codegen ignore] Add tests and docs, fix two minor issues
2016-05-30 21:34:12 +08:00
wing328
b6595f7a1c add appendix to license 2016-05-30 21:23:12 +08:00
Jakub Malek
c6d4df3e41 NancyFx:
- Handling class name mapping
2016-05-30 15:04:16 +02:00
Mikolaj Przybysz
8369bae08a Improved formatting 2016-05-30 15:01:53 +02:00
Jakub Malek
c734a216af NancyFx:
- Handling importMapping
2016-05-30 13:21:55 +02:00
Jakub Malek
ba26df95e2 NancyFx:
- Added generation of .nuspec file
2016-05-30 12:09:00 +02:00
Jakub Malek
1d167b709d NancyFx:
- Including API docs
2016-05-30 11:21:21 +02:00
Jakub Malek
a72640ce9c NancyFx:
- Sealed class for generated Modules
- Empty constructor added to model classes
- Code cleanup
2016-05-30 10:33:22 +02:00
wing328
9d581a791d Merge pull request #2968 from zhenjun115/java_api_client
add markdown docs for java api client using retrofit2;
2016-05-30 11:15:32 +08:00
wing328
535a782239 add [Kabuku](http://www.kabuku.co.jp/en) 2016-05-30 11:01:32 +08:00
wing328
6e83939f0e Merge pull request #2984 from daknin/2983
2983: Java Feign client generator:  HTTP header name should be named …
2016-05-30 10:40:10 +08:00
Darrell King
8a403a06e3 2983: Java Feign client generator: HTTP header name should be named Accept not Accepts 2016-05-29 21:14:59 +01:00
Jim Schubert
e0c3aa276d [codegen ignore] Lazy test setup
Moved temp directory preparation to occur at the start of tests and
added temp directory prefix to help avoid conflicts with other tests.
2016-05-29 09:47:47 -04:00
wing328
a1e9b8f81e Merge pull request #2990 from jimschubert/cs/number_to_decimal
[csharp] map number/no format to Decimal
2016-05-29 20:58:31 +08:00
wing328
a566b086cf add new files for JS client 2016-05-29 20:54:43 +08:00
wing328
4d8d4e6995 Merge pull request #2995 from wing328/feature/model_map_property
Fix spec for map and array
2016-05-29 18:10:48 +08:00
wing328
a27cda68ce update nodejs/ts package license to use Apache-2.0 2016-05-29 18:08:32 +08:00
wing328
6d1fd2c78d fix spec for map and array 2016-05-29 17:28:33 +08:00
wing328
00beca9583 Merge pull request #2993 from wing328/add_default_license
Add defaulat license (Apache2.0) to all generators
2016-05-29 16:57:38 +08:00
wing328
4b74f6ccef add defaulat license (apache2.0) to all generators 2016-05-29 15:02:06 +08:00
wing328
e6825eaff4 Merge pull request #2989 from wing328/ts_querystring_cherrypick2
[Typescript-Node] Add Support for useQuerystring Request Option #2905
2016-05-29 12:01:56 +08:00
Jim Schubert
d172de260d [codegen ignore] Add tests, fix two minor issues
Tests are create to act on actual files to gauarantee functionality of
.swagger-codegen-ignore processing. Found two minor issues, one with
directory processing of files below the directory and another with
filename.* patterns reversing as *filename. for the pattern.

Added documentation to the README about .swagger-codegen-ignore file
support and syntax.
2016-05-28 22:25:45 -04:00
Jim Schubert
eccd4d5245 [csharp] map number/no format to Decimal 2016-05-28 15:09:50 -04:00
Malcolm Barclay
5777d21579 Merge remote-tracking branch 'upstream/master'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2016-05-28 18:47:41 +01:00
Alexander Fisher
449e74b873 Move changes to samples to source code. Build, run, test. 2016-05-29 01:30:37 +08:00
Alexander Fisher
abf28797a4 Add node and corejs to ambient typings since they represent native types. Update client to not use finally since this doesn't exist on a node js Promise. 2016-05-29 01:30:30 +08:00
Alexander Fisher
b3d5271582 Honor gitignore in npm folder. 2016-05-29 01:30:18 +08:00
Alexander Fisher
23c9a17b6b Update typings to not use globals/ambients. Update tsconfig to use exclude rather than files. Add gitignore for output files. 2016-05-29 01:30:06 +08:00
Alexander Fisher
8094425473 Run bash to generate new client. 2016-05-29 01:29:20 +08:00
Alexander Fisher
7f2a16a78b Add ability to set useQuerystring on request globally for api. 2016-05-29 01:29:14 +08:00
Malcolm Barclay
f2bd3d981e Updated petstore swift swagger client.
Enabled execute (755) permissions on swift-petstore.sh Ran integration test (passed).
2016-05-28 15:11:25 +01:00
Malcolm Barclay
955d837609 Updated petstore swift-promisekit swagger client.
Ran integration tests (passed)
2016-05-28 12:51:02 +01:00
wing328
bd1aab0cf0 Merge branch 'mateuszmackowiak-objc/License' 2016-05-28 11:12:19 +08:00
wing328
063f83f18b Merge branch 'objc/License' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-objc/License 2016-05-28 10:16:57 +08:00
Jim Schubert
fafcd33e27 [csharp] Intercept hooks for req/res and ExceptionFactory 2016-05-27 22:10:06 -04:00
Guo Huang
6415018c8f removed tab in logger, added warnings for import 2016-05-27 09:42:08 -07:00
Guo Huang
4b41877419 updated read me and removed extra space 2016-05-27 09:18:23 -07:00
Mateusz Mackowiak
ef66f9622c Moved GlobalSupportingFile to separate file 2016-05-27 16:04:20 +02:00
Mateusz Mackowiak
d82c77da34 - [Objc] Fix test after removing license property
- Moved adding License file to DefaultGenerator
2016-05-27 12:46:09 +02:00
Guo Huang
ef71d50eee fixed spacing issue 2016-05-26 22:49:13 -07:00
Malcolm Barclay
a56d927b0c Added date format string #2935
Support decoding of RFC3339 compliant date-time strings with fractional seconds, but no timezone.
2016-05-27 06:48:39 +01:00
Guo Huang
db9684ff19 issue#2970, [Go] add go server codeine template 2016-05-26 22:34:18 -07:00
wing328
f5ff62e685 Merge pull request #2972 from scottrw93/license
[Python] Include license in generated client
2016-05-27 11:54:47 +08:00
Jim Schubert
b996d0c769 [docker] Add container docs and example usage 2016-05-26 21:26:34 -04:00
Scott Williams
c18241cffc Update license header 2016-05-26 21:44:40 +01:00
Scott Williams
23271d74ea Update license header 2016-05-26 21:42:37 +01:00
wing328
c3b5cfbb24 Merge pull request #2976 from wing328/ts_fetch_ci
[TypeScript] update pom to cover TS Fetch API clients
2016-05-26 21:41:59 +08:00
Mikolaj Przybysz
030b1bc8c2 added default version 1.0.0 to userAgent 2016-05-26 15:12:28 +02:00
wing328
662d4efcaf Merge pull request #2957 from fabdslv/rm-force-unwrap
[Swift] Remove force unwrap in model constructor
2016-05-26 18:38:54 +08:00
wing328
3e131d1901 update pom to cover ts fetch api client 2016-05-26 17:50:13 +08:00
wing328
648ef35309 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-26 17:21:25 +08:00
wing328
8443feaf82 Merge branch 'zlx-feature/ruby_enum_support2' 2016-05-26 17:21:07 +08:00
wing328
aeaf60713f Merge branch 'feature/ruby_enum_support2' of https://github.com/zlx/swagger-codegen into zlx-feature/ruby_enum_support2
Conflicts:
	samples/client/petstore/ruby/README.md
	samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb
	samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb
	samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb
2016-05-26 17:20:49 +08:00
wing328
d8dec247f2 Merge pull request #2973 from leonyu/update_tsify
update package.json and fix webpack.html
2016-05-26 16:54:33 +08:00
wing328
95ba8ac99b Merge pull request #2952 from jaz-ah/swift/dirs
[Swift] change swift directory structure
2016-05-26 16:53:57 +08:00
wing328
a86a4ac94e add dbbest 2016-05-26 15:42:45 +08:00
wing328
f448ec3728 Merge pull request #2969 from guohuang/license
[Go] add apache v2 LICENSE
2016-05-26 15:05:42 +08:00
wing328
f47b6eb386 Merge pull request #2971 from arnested/php-license
[PHP] Add apache v2 license to PHP client
2016-05-26 15:02:53 +08:00
Leon Yu
a589a6b91c update package.json and fix webpack.html 2016-05-25 22:51:10 -04:00
Arne Jørgensen
e41019fb2b [PHP] Regenerate petstore sample 2016-05-26 00:13:45 +02:00
Scott Williams
e0dbb44b37 Put license header in shared file 2016-05-25 22:35:38 +01:00
Scott Williams
349b727b2c Include license in genrated client 2016-05-25 22:20:08 +01:00
Arne Jørgensen
5c97d1b8f7 [PHP] Improve code style of generated code
Avoid trailing whitespace.
2016-05-25 22:53:01 +02:00
Arne Jørgensen
d9d3a41deb [PHP] add apache v2 license to PHP client
See #2963.
2016-05-25 22:53:01 +02:00
Guo Huang
7b57a26a97 added apache LICENSE 2016-05-25 10:11:52 -07:00
Mateusz Mackowiak
c68168fa27 - Remove optional license property
- License in all header files
2016-05-25 18:13:27 +02:00
wing328
ce426ee868 add SCOOP software 2016-05-26 00:00:23 +08:00
zhenjun115
09a29063be add markdown docs for java api client using retrofit2; 2016-05-25 23:44:44 +08:00
wing328
4df140956f update version to 2.2.0-SNAPSHOT 2016-05-25 22:17:11 +08:00
wing328
9598974d45 Merge pull request #2908 from iomark/master
[Objc] fixed code generation for collection parameter
2016-05-25 21:57:00 +08:00
wing328
31aee5b3a7 Merge pull request #2950 from wing328/update_pom_220
Update pom.xml to use 2.2.0-SNAPSHOT
2016-05-25 21:10:43 +08:00
Mateusz Mackowiak
537ee960b6 [Objc] Add Apache v2 license to auto-generated files #2963 2016-05-25 15:09:05 +02:00
wing328
0a724a3008 update pom for swagger codegen module 2016-05-25 17:25:18 +08:00
Marcin Stefaniuk
c59f2b0322 Versioning of generated model (namespace, base context). 2016-05-25 11:23:11 +02:00
wing328
38a422212d Merge pull request #2948 from mikolajprzybysz/use-php-eol
[PHP] Replaced \n with PHP_EOL
2016-05-25 16:49:37 +08:00
wing328
2f11049218 Merge pull request #2960 from wing328/chsarp_add_license
[C#] add apache v2 license to C# API client
2016-05-25 14:57:17 +08:00
wing328
8096308657 add apache v2 license to csharp api client 2016-05-25 14:41:17 +08:00
wing328
0f624338fd Merge pull request #2954 from wing328/add_test_array
Add new test model to array properties
2016-05-25 13:56:57 +08:00
Jim Schubert
436731184d [docker] Update root Dockerfile and run-in-docker
This update allows the root Dockerfile to be used as a development
container and updates run-in-docker.sh to use the same entrypoint script
while maintaining backward compatibility for anyone who has scripted
mappings to /gen and /root/.m2/repository.
2016-05-24 23:21:50 -04:00
Jim Schubert
fe66364f04 [docker] Runnable CLI, reduced container size 2016-05-24 19:58:26 -04:00
Joseph Zuromski
d55a691e11 fix path 2016-05-24 14:37:37 -07:00
Fabien Da Silva
4404b907bc [Swift] Remove force unwrap in model constructor
Fix #2955
2016-05-24 21:54:46 +02:00
Tony Tam
fefd507323 Merge pull request #2956 from sreich/patch-1
add custom generator example to readme
2016-05-24 12:10:37 -07:00
Shaun Reich
06dd7c4794 add custom generator example to readme
fixes #2923
2016-05-24 14:44:21 -04:00
Jim Schubert
b2c14c98c9 Limit base image to 1.0 2016-05-24 14:11:57 -04:00
wing328
105b4b9199 new test case to cover model with array properties 2016-05-25 01:18:50 +08:00
wing328
d0770d25f5 Merge pull request #2953 from wing328/ruby_add_license
[Ruby] add licence template for ruby api client
2016-05-25 00:50:29 +08:00
wing328
29008b5802 add licence template for ruby api client 2016-05-25 00:48:31 +08:00
wing328
68878ff9bd Merge pull request #2951 from wing328/ruby_add_license
[Ruby] add apache v2 license to remaining ruby files (test, spec, etc)
2016-05-25 00:07:05 +08:00
wing328
dbc3e418a9 udpate pom for other sub modules 2016-05-24 23:27:11 +08:00
wing328
568fa4f514 add apache license to remaining ruby files (test, spec, etc) 2016-05-24 23:20:23 +08:00
wing328
04eca71be4 update pom to use 2.2.0-SNAPSHOT 2016-05-24 22:47:03 +08:00
Jakub Malek
bf68801295 NancyFx:
- Passing NancyContext to service instead of Request
2016-05-24 16:19:45 +02:00
Jakub Malek
bc6fcbdc7b NancyFx:
- Unnecessary dependencies removal
- Nancy version update
2016-05-24 16:07:22 +02:00
Jakub Malek
da3aa7214d NancyFx:
- Fixed Module classes naming (removed double 'Module' suffix)
- Using partial classes for generated Nancy modules
2016-05-24 15:17:27 +02:00
Mikolaj Przybysz
6aa821d76d Rebuild php petstore sample client 2016-05-24 15:03:25 +02:00
Mikolaj Przybysz
041c5d1d34 Replaced \n with PHP_EOL 2016-05-24 14:25:16 +02:00
Jakub Malek
cef6c9d8ba NancyFx:
- Using NodaTime for date types
2016-05-24 14:08:09 +02:00
Mikolaj Przybysz
3484704fea Updated condition for artifactVersion check 2016-05-24 14:07:51 +02:00
Mikolaj Przybysz
18f32b4163 Proper printing of invokerPackage in configuration debug report 2016-05-24 14:03:31 +02:00
Mikolaj Przybysz
c54b4faf13 Removed printing artifactVersion if it is not set from debug information 2016-05-24 14:02:41 +02:00
Marcin Stefaniuk
d0e3b5cc71 Moving enum definition of model lists outside class. 2016-05-24 13:07:14 +02:00
Mikolaj Przybysz
cce21abaec Removed printing artifactVersion if it is not set 2016-05-24 12:26:02 +02:00
wing328
d05d552b74 Merge pull request #2946 from wing328/ruby_license
[Ruby] update Ruby API client to use apache v2 license
2016-05-24 18:11:28 +08:00
Mikołaj Przybysz
e687ad5823 Merge pull request #2 from swagger-api/master
Update
2016-05-24 11:53:56 +02:00
wing328
c7110debee update ruby api client to use apache v2 license 2016-05-24 17:50:28 +08:00
Marcin Stefaniuk
4b2e3a01f9 Renaming request dispatcher to Nancy specific Module. 2016-05-24 11:31:27 +02:00
wing328
7d475b1f93 Merge branch 'zhenjun115-java_api_client' 2016-05-24 17:03:20 +08:00
wing328
d82bbfdaf4 Merge branch 'java_api_client' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-java_api_client 2016-05-24 16:36:33 +08:00
Jakub Malek
ba38a3b6cb NancyFx:
- Removed "Enum" suffix of Enum class name
2016-05-24 10:32:09 +02:00
Jakub Malek
c653aeec0b NancyFX:
- Fixed parsing enum parameters in NancyModule
2016-05-24 10:25:18 +02:00
Jakub Malek
57aa6d01d2 NancyFx:
- Using virtual interface implementation in AbstractService
 - Fixed namespace for module classes
 - Using Parameters utility for parsing parameters in NancyModule
 - Excluding obj folder from csproj
2016-05-24 10:14:22 +02:00
Joseph Zuromski
673784491e couple new files 2016-05-23 20:09:06 -07:00
Joseph Zuromski
00c4877baf move swift samples into swift/default and swift/promisekit directories 2016-05-23 20:08:00 -07:00
Jim Schubert
1da350e819 [docker] Cleanup and reduce container sizes 2016-05-23 21:54:35 -04:00
Jakub Malek
04af1cf2a7 NancyFx:
- Passing Nancy.Request to service interface
 - Generating AbstractService code
 - Removed null defaults from constructors in models
 - Fixed project namespace
2016-05-23 16:53:01 +02:00
Newell Zhu
24a0ced972 regenerate ruby spec file 2016-05-23 21:30:40 +08:00
wing328
917192e558 add Revault Sàrl 2016-05-23 20:56:14 +08:00
Newell Zhu
a9b8150442 regenerate ruby client sample 2016-05-23 20:54:45 +08:00
Newell Zhu
942b015c8f Add normal class enum support 2016-05-23 20:54:30 +08:00
Marcin Stefaniuk
9354fc8b0f Retrieving enum params from api request. 2016-05-23 13:56:28 +02:00
Marcin Stefaniuk
36e94f7ed1 Enumerations on api input. 2016-05-23 13:40:12 +02:00
wing328
9b9d5859ad Merge pull request #2864 from revaultch/master
typescript-angular2 query string fix
2016-05-23 17:56:31 +08:00
Urs Keller
91177cd536 typescript-angular2 query string fix 2016-05-23 10:55:54 +02:00
wing328
8ba19f0112 Merge pull request #2939 from wing328/php_enum_test
[PHP] add enum test in PHP API client
2016-05-23 15:58:57 +08:00
wing328
7b1cfde891 add enum test in php api client 2016-05-23 15:38:20 +08:00
wing328
6c33552d0d Merge pull request #2934 from alexandern/master
Mispelling in Objective-C initialization template
2016-05-23 11:00:43 +08:00
Alex Nolasco
11c6a42dcc Merge pull request #2 from alexandern/alexandern-patch-1
Misspellings
2016-05-22 15:15:22 -04:00
Alex Nolasco
3035aeb803 Misspellings
codition => condition
2016-05-22 15:15:06 -04:00
Alex Nolasco
c719f4d8c3 Merge pull request #1 from alexandern/alexandern-patch-1
Mispelling in Objective-C initialization
2016-05-22 14:09:10 -04:00
Alex Nolasco
4b4d5aeb2e Mispelling
initalise=> initialize
2016-05-22 14:08:23 -04:00
wing328
810d165f21 add zlx to ruby core team 2016-05-22 22:48:43 +08:00
wing328
52a928bb2e Merge pull request #2931 from Edubits/swift-sample-without-promisekit
[Swift] Add sample/tests for Swift client without PromiseKit
2016-05-21 23:21:00 +08:00
wing328
6383f6fcb6 Merge pull request #2932 from swagger-api/readonly_var
[C#] fix csharp constructor for model with read-only 1st property
2016-05-21 23:01:22 +08:00
wing328
69ec14d628 fix csharp constructor for model with read-only 1st property 2016-05-21 22:42:37 +08:00
Robin Eggenkamp
1a1bf74d01 [Swift] Add sample/tests for Swift client without PromiseKit 2016-05-21 15:57:52 +02:00
wing328
46fe27a6f6 Merge pull request #2929 from catinred2/basicAuth
show security defs
2016-05-21 18:26:54 +08:00
wing328
e1367ee743 Merge pull request #2917 from Vrolijkx/feature/typescript_angular2_should_generate_correct_output
Feature/typescript angular2 should generate correct output
2016-05-21 17:42:00 +08:00
wing328
bc44f74786 Merge pull request #2912 from zlx/feature/ruby_enum_support
Add Ruby enum support
2016-05-21 17:39:56 +08:00
wing328
aaca9a4b6f Merge pull request #2922 from zhenjun115/android_api_client
add gradle wrapper mustache for android api client;
2016-05-21 17:34:29 +08:00
Newell Zhu
a7ca3870df remove ruby model leading space 2016-05-21 17:18:53 +08:00
wing328
3ddff7da58 Merge pull request #2930 from wing328/fix_consumes_and_produces3
[Javascript][Clojure] Fix mediaType
2016-05-21 16:41:26 +08:00
xming
90cf56ab43 more comprehensible text 2016-05-21 16:37:00 +08:00
wing328
eb3a2949a0 Merge branch 'jaz-ah-swift/podupdate' 2016-05-21 16:24:33 +08:00
wing328
e903628993 Merge branch 'swift/podupdate' of https://github.com/jaz-ah/swagger-codegen into jaz-ah-swift/podupdate
Conflicts:
	samples/client/petstore/swift/SwaggerClientTests/Pods/Pods.xcodeproj/project.pbxproj
2016-05-21 16:24:20 +08:00
wing328
42b08946d4 fix mediaType in clojure client 2016-05-21 16:18:44 +08:00
wing328
a1563ee6c6 unescape mediaType in JS 2016-05-21 16:12:42 +08:00
wing328
cd0d9f55c2 Merge pull request #2928 from catinred2/basePath
add basePathWithoutHost
2016-05-21 16:06:17 +08:00
xming
e884b2e700 add basePathWithoutHost 2016-05-21 14:51:44 +08:00
xming
e44e9fd43a show security defs 2016-05-21 11:51:37 +08:00
Spencer Hawkins
5dcda94164 Merge branch 'master' into user/shawkins/fix/dont_modify_parameter_names 2016-05-20 12:32:19 -07:00
Spencer Hawkins
756f0ed64e Don't modify param names in flask-connexion code generator 2016-05-20 12:30:29 -07:00
Kristof Vrolijkx
cebaa6443c Fix array problem 2016-05-20 20:30:32 +02:00
zhenjun115
9a7e269de1 remove trailing spaces in the mustache template; 2016-05-20 22:39:53 +08:00
zhenjun115
87b25080c3 remove duplicated gradle wrapper mustache files from android api client; 2016-05-20 22:01:55 +08:00
Marcin Stefaniuk
e17b02183b Fix reference to subtemplate. 2016-05-20 15:56:35 +02:00
zhenjun115
359c4b0e53 gradle wrapper mustache for java api client; 2016-05-20 21:44:32 +08:00
Marcin Stefaniuk
f4c3b9ec9f Fixed operation parameter input enums generation. 2016-05-20 15:29:53 +02:00
zhenjun115
f2a2014ef4 add gradle wrapper mustache for android api client; 2016-05-20 20:24:22 +08:00
Marcin Stefaniuk
eaddc18537 Switching from custom exception to System.ArgumentException. 2016-05-20 14:22:48 +02:00
wing328
2e402da3ef Merge branch 'guohuang-travis' 2016-05-20 18:37:00 +08:00
wing328
0134723afa add back pom.xml for go petstore 2016-05-20 18:36:36 +08:00
wing328
a96d38e223 Merge branch 'travis' of https://github.com/guohuang/swagger-codegen into guohuang-travis 2016-05-20 18:31:55 +08:00
wing328
e02cfe8de2 Merge pull request #2921 from wing328/fix_consumes_and_produces2
Replaced {{mediaType}} with {{{mediaType}}} to keep the original media
2016-05-20 18:12:57 +08:00
wing328
c6f03806df Replaced {{mediaType}} with {{{mediaType}} to keep the original media 2016-05-20 17:48:47 +08:00
Marcin Stefaniuk
0005faf77d Handling collections of enumerables. 2016-05-20 10:43:40 +02:00
wing328
6c71dc3d18 Merge pull request #2910 from wing328/typescript_better_ci
[TypeScript] Add CI for typescript API clients
2016-05-20 16:02:46 +08:00
wing328
6231970ac6 run ruby test first 2016-05-20 15:24:13 +08:00
wing328
70619525cd commented out TS fetch related tests in pom.xml 2016-05-20 15:09:35 +08:00
wing328
1e45af2fbc install typescript in travis ci 2016-05-20 14:15:04 +08:00
Newell Zhu
f45d6a4d60 Generate ruby enum 2016-05-20 08:44:53 +08:00
Kristof Vrolijkx
d84c1cdfd7 Fix any problem
+ added integration test
2016-05-19 22:25:56 +02:00
Joseph Zuromski
4e0e91e58b move up to ios 9.3 2016-05-19 12:35:17 -07:00
Kristof Vrolijkx
d5626d02da fix indentation 2016-05-19 20:22:53 +02:00
Kristof Vrolijkx
a776b37cb1 fix indentation 2016-05-19 20:21:24 +02:00
Kristof Vrolijkx
244794b6a2 fix integration tests 2016-05-19 20:14:27 +02:00
Kristof Vrolijkx
d583e179ba Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into feature/node-promise-cleanup 2016-05-19 20:08:34 +02:00
Kristof Vrolijkx
9070f1a0af Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen
# Conflicts:
#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractTypeScriptClientCodegen.java
2016-05-19 20:05:55 +02:00
Kristof Vrolijkx
7e3faed37b small code cleanump 2016-05-19 20:03:39 +02:00
wing328
69de0ecb9b update wording for ts test cases 2016-05-20 00:56:26 +08:00
wing328
48971ebd7b update pom to include ci for typescript-fetch clients 2016-05-20 00:34:32 +08:00
wing328
fe3d89f628 add CI for typescript fetch 2016-05-20 00:34:32 +08:00
wing328
f7ed6f040d add ci test for typescript angular 2016-05-20 00:34:31 +08:00
wing328
1e80455d82 add swagger codege ignore to ts node npm 2016-05-20 00:34:31 +08:00
wing328
3b4331a7ee add ci to ts node npm 2016-05-20 00:34:31 +08:00
wing328
798e070e78 Merge pull request #2913 from wing328/skip_integration_test
Skip integration test
2016-05-20 00:12:16 +08:00
wing328
71176a84ba skip integration test 2016-05-20 00:08:40 +08:00
Marcin Stefaniuk
e7781d0d91 Handling enum properties and nullability. 2016-05-19 15:06:08 +02:00
Marcin Stefaniuk
8f2523c448 Generation of enum types for parameters and properties. 2016-05-19 14:41:47 +02:00
wing328
624e8ae41f Merge pull request #2899 from jimschubert/feature/codegen-ignore
Feature/codegen ignore
2016-05-19 18:02:23 +08:00
Igor Markov
c245f2199f [Objc] fixed code generation for collection parameter 2016-05-19 11:50:57 +03:00
wing328
861c6184d0 Merge branch 'jaz-ah-swift/enums' 2016-05-19 16:10:59 +08:00
wing328
a31f78b454 Merge branch 'swift/enums' of https://github.com/jaz-ah/swagger-codegen into jaz-ah-swift/enums
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwiftCodegen.java
2016-05-19 16:10:47 +08:00
wing328
2dda6a6e9a Merge pull request #2640 from fabdslv/issue-2531
[Swift] Enum parameters are now handled
2016-05-19 15:46:25 +08:00
Marcin Stefaniuk
be44df44a5 Fix of model builder validation method. 2016-05-19 09:08:02 +02:00
Marcin Stefaniuk
f5f5a359e0 Fix of model builder validation method. 2016-05-19 08:59:29 +02:00
wing328
2ea40ada8b Merge pull request #2882 from Vrolijkx/feature/integration-test
Adding correct code generation for additional properties in typescript angular2.
2016-05-19 14:37:30 +08:00
Joseph Zuromski
9bdf7c4bbb move back to alamofire 3.1.5 because alamofire 3.2.x and up cause issues speaking to the petstore service - has to do w/ Accept/content type changes 2016-05-18 09:48:12 -07:00
wing328
19449c69b4 Merge pull request #2903 from wing328/master
[ObjC] remove try-catch block from objc sample code
2016-05-19 00:13:53 +08:00
wing328
22413855cd remove try-catch block from objc sample code 2016-05-18 23:51:52 +08:00
Joseph Zuromski
98385aa746 checkpoint updating pod dependencies/moving to cocoapods1.0 2016-05-18 08:51:29 -07:00
wing328
992ec94b32 Merge pull request #2902 from cbornet/issue_template
Add an issue template
2016-05-18 23:40:08 +08:00
cbornet
31e61b4900 add an issue template 2016-05-18 17:00:16 +02:00
Marcin Stefaniuk
dba662da59 Code formatting. 2016-05-18 15:09:39 +02:00
Jakub Malek
6564df79de NancyFx: With() method added for model classes 2016-05-18 15:03:47 +02:00
Marcin Stefaniuk
cdb9ab826e Fix of model template. 2016-05-18 14:59:16 +02:00
Jakub Malek
806e22deb5 NancyFx: Template for immutable model classes with builders 2016-05-18 14:54:40 +02:00
Jim Schubert
21e2b7bb2a [feature] Support for .swagger-codegen-ignore
Adds a .swagger-codegen-ignore file with instructions and examples.
The .swagger-codegen-ignore file is treated as a supporting file.

Every project will generate a .swagger-codegen-ignore file containing
instructions and examples.

This also adds support for 'common' files (defaults like
.swagger-codegen-ignore). In the case of the ignore file, a generator
may include a compiled template ignore file which outputs to the
outputDir folder as .swagger-codegen-ignore and the default file
generation will honor the already generated file.

The rules for .swagger-codegen-ignore are a simple subset of what you'd
find in .gitignore or .dockerignore. It supports recursive matching
(**), simple matching (*), matching files in the project root
(/filename), matching against directories (dir/), negation rules
(!previously/excluded/**/file).
2016-05-18 08:34:52 -04:00
Jakub Malek
123a441257 NancyFX:
- Utility methods for obtaining value from header and path parameter added to requestExtensions.mustache template
- Added support of parsing arrays (IEnumerable, ICollection, IList, List, ISet, Set, HashSet) for query, header and path parameters
2016-05-18 14:23:17 +02:00
Kristof Vrolijkx
816ba6fb39 Code review remarks 2016-05-18 08:42:37 +02:00
wing328
ea15b72b3f Merge pull request #2898 from wing328/upgrade_swagger_core
Upgrade swagger core to 1.5.9
2016-05-18 11:23:57 +08:00
wing328
204fb3bde1 upgrade swagger core to 1.5.9 2016-05-18 10:53:36 +08:00
wing328
d299f18f16 Merge pull request #2883 from scottrw93/requirements
Add requirments.txt and tox.ini
2016-05-18 09:54:40 +08:00
Guo Huang
b519015f61 fixed travis build error 2016-05-17 13:53:12 -07:00
Scott Williams
af64746870 Fix tox for 2.7 tests 2016-05-17 19:50:03 +01:00
wing328
1b4a3e72dd Merge pull request #2878 from mateuszmackowiak/objc/common_api_protocol
[Objc] - Common protocol for Api
2016-05-17 23:45:53 +08:00
zhenjun115
a093e7b74d gradle wrapper for java api client; 2016-05-17 23:40:57 +08:00
wing328
c649e63e74 Merge pull request #2808 from mikolajprzybysz/broken-repo-path
[PHP] Fixing bug with composer project path in generated sdk
2016-05-17 23:30:02 +08:00
wing328
89614af25d Merge pull request #2890 from cbornet/retrofit2_oauth_loop
[Retrofit2] Don't retry if the access token doesn't change
2016-05-17 22:31:30 +08:00
Marcin Stefaniuk
1a670391ed Respecting packageName option. 2016-05-17 15:33:36 +02:00
wing328
fc5dc44022 Merge branch 'zlx-feature/patch-2' 2016-05-17 21:09:59 +08:00
wing328
a6068a585f Merge branch 'feature/patch-2' of https://github.com/zlx/swagger-codegen into zlx-feature/patch-2
Conflicts:
	samples/client/petstore/ruby/README.md
2016-05-17 21:05:37 +08:00
Newell Zhu
a62fa1c80c replace old syntax for rspec 2016-05-17 20:25:27 +08:00
Newell Zhu
1c3f1b4bf8 regenerate ruby sample after remove tailing 2016-05-17 20:13:38 +08:00
Newell Zhu
6c626ccc7a remove tailing spaces 2016-05-17 19:53:36 +08:00
wing328
d161389599 Merge pull request #2879 from wing328/csharp_move_test_cases
[C#] move existing test cases to auto-generated test files
2016-05-17 19:30:42 +08:00
Jakub Malek
34a8374531 Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into nancyfx-codegen 2016-05-17 13:01:43 +02:00
Jakub Malek
e30e1d9a9e RequestExceptions utility class template for NancyFx
Fixed package name to case-sensitive in GoClientOptionsTest, GoModelTest, LumenServerOptionsTest and SpringBootServerOptionsTest
2016-05-17 13:01:16 +02:00
Marcin Stefaniuk
3a2cbd8904 Added nuget packages, handling empty return types and fixes. 2016-05-17 12:58:50 +02:00
cbornet
596a076077 fix wrong method call 2016-05-17 10:35:37 +02:00
wing328
6fdea1cf6d Merge pull request #2889 from BeneficialName/patch-1
Added WEXO to list of companies using Swagger Codegen
2016-05-17 16:30:03 +08:00
cbornet
fc1d06d810 update retrofit2 samples 2016-05-17 10:25:52 +02:00
cbornet
69d956f16b don't retry if the access token doesn't change
See #1541
2016-05-17 09:45:42 +02:00
Kim Sondrup
706dfea1a9 Added WEXO to list of companies using Swagger Codegen 2016-05-17 09:36:35 +02:00
wing328
1b117e7cec Merge pull request #2888 from akajla09/javaTests
Java: Add basic junit test templates for api clients
2016-05-17 12:00:07 +08:00
wing328
e69122359d Merge pull request #2880 from zhenjun115/android_api_client
gradle wrapper for android api client;
2016-05-17 11:03:13 +08:00
Aditya Kajla
5633fdfb3d Java: Add basic junit test templates for api clients 2016-05-16 17:55:29 -07:00
wing328
828c93e7f2 Merge pull request #2887 from kbrooks/patch-1
Adding IMS Health to the list of companies
2016-05-17 08:31:52 +08:00
Kyle Brooks
7c3facb682 Adding IMS Health to the list of companies
This is where I work, and I am using swagger-codegen for a project at work, so it counts.
2016-05-16 17:10:34 -07:00
Scott Williams
ad6b347170 Add requirments.txt and tox.ini 2016-05-16 22:16:56 +01:00
Kristof Vrolijkx
66a49e7b11 always use es6 Promise syntax 2016-05-16 21:08:03 +02:00
Kristof Vrolijkx
b61abf79c6 Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen 2016-05-16 20:57:40 +02:00
Kristof Vrolijkx
ca2174f079 small code movement 2016-05-16 20:42:42 +02:00
Kristof Vrolijkx
5b1c779e57 fix unit test 2016-05-16 20:33:49 +02:00
Kristof Vrolijkx
b36290f88a adding node-es5-spec (still failing) 2016-05-16 20:12:44 +02:00
Kristof Vrolijkx
ec65eb5975 some small optimizations 2016-05-16 17:58:06 +02:00
Kristof Vrolijkx
68d47be9fd remove not needed peer dependencies and add any type too additional properties if also other properties defined. 2016-05-16 17:51:00 +02:00
Marcin Stefaniuk
8fc25d9aad Merge remote-tracking branch 'origin/nancyfx-codegen' into nancyfx-codegen 2016-05-16 17:20:43 +02:00
Marcin Stefaniuk
12fc1332a4 NancyFX generation script. 2016-05-16 17:20:07 +02:00
wing328
5af4156c02 Merge pull request #2866 from jimschubert/cs/ignore_model_tests_option
[generator] Individual options to exclude tests and docs for apis and models
2016-05-16 23:10:41 +08:00
Marcin Stefaniuk
874509a592 Introducing service interface and some validation. 2016-05-16 16:27:03 +02:00
Marcin Stefaniuk
37e76f4c68 Main files of nancyfx generator. 2016-05-16 16:27:03 +02:00
Marcin Stefaniuk
4145f2d76a Introducing service interface and some validation. 2016-05-16 16:25:17 +02:00
wing328
44d64a8793 Merge pull request #2796 from guohuang/multi
Updat api_client.go to use the new SetMultiValueQueryParams method
2016-05-16 21:48:01 +08:00
zhenjun115
f79b894411 gradle wrapper for android api client; 2016-05-16 21:14:19 +08:00
Kristof Vrolijkx
aa8b253e38 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into feature/integration-test 2016-05-16 13:47:22 +02:00
Kristof Vrolijkx
c018936c15 add support for additional properties in codegen 2016-05-16 13:47:09 +02:00
Kristof Vrolijkx
37ae53c2cc add support for additional properties in codegen 2016-05-16 13:45:12 +02:00
Marcin Stefaniuk
496de14cff Main files of nancyfx generator. 2016-05-16 10:49:24 +02:00
wing328
4be97eb35c remove old test cases (c# petstore) 2016-05-16 16:36:38 +08:00
wing328
373e5fbde2 fix indention in tostring and constructor, add existing test cases to
auto-generated test files
2016-05-16 16:35:25 +08:00
Mateusz Mackowiak
36135134cb [Objc] - Fixed undeclared selector 2016-05-16 09:19:36 +02:00
Mateusz Mackowiak
7e1b080e24 [Objc] - Default headers in shared configuration 2016-05-16 08:55:08 +02:00
wing328
10f11ad91e add zlx 2016-05-16 14:37:47 +08:00
wing328
3e17869804 Merge pull request #2857 from jimschubert/cs/client_api_base
[csharp] Add common IApiAccessor interface
2016-05-16 14:29:26 +08:00
Mateusz Mackowiak
db27498961 [Objc] Remove try catch form documentation. 2016-05-16 07:48:22 +02:00
Mateusz Mackowiak
5c8516ce24 [Objc] - Common protocol for Api and added NSParameterAssert if missing required param + calling completion block with error rather than throwing an exception 2016-05-16 07:30:25 +02:00
wing328
acfa393b6b Merge pull request #2871 from zlx/feature/rails5
Feature/rails5
2016-05-16 11:54:38 +08:00
wing328
f60bffe484 Merge pull request #2771 from taxpon/issue-2770
Update typescript-angular2 client to adapt to rc (#2770)
2016-05-16 11:37:56 +08:00
wing328
8103ef3f2c Merge pull request #2877 from cbornet/lib_versions
[JAVA]Update versions in java libraries descriptions
2016-05-15 22:38:55 +08:00
wing328
935d6d35d1 Merge branch 'arnested-php-generated-codestyle' 2016-05-15 22:22:22 +08:00
wing328
de1949c644 Merge branch 'php-generated-codestyle' of https://github.com/arnested/swagger-codegen into arnested-php-generated-codestyle 2016-05-15 22:11:19 +08:00
cbornet
b1572af65d update versions in java libraries descriptions 2016-05-15 16:08:43 +02:00
wing328
a9fd820a27 Merge pull request #2876 from wing328/fix_android_pom
[Android] update android volley dependencies, add source and target in pom.xml
2016-05-15 17:13:36 +08:00
wing328
1f4723457b Merge pull request #2873 from webbj74/fix-readme-silex
Fixes instructions for generating PHP Silex code.
2016-05-15 17:12:27 +08:00
wing328
cda6bc380e update android volley dependencies, add source and target in pom.xml 2016-05-15 17:06:46 +08:00
wing328
6697c865c2 Merge branch 'zhenjun115-android_api_client' 2016-05-15 14:45:40 +08:00
wing328
d01305671f minor fix to android after switching default lib 2016-05-15 14:40:20 +08:00
zhenjun115
c5136e4dda change volley to the default http library for android (existing errors); 2016-05-15 13:43:08 +08:00
Newell Zhu
33a1d24e1e change better method call 2016-05-15 11:53:54 +08:00
J Webb
f38bdae6c0 Fixes instructions for generating PHP Silex code. 2016-05-14 16:38:00 -04:00
Dmytro Kryvoshei
ea15b859b7 use Title attribute as model name
this allows to use names defined by user in Response model instead of
"inline_response". Also user could use title to have specific name for
request model instead of parameter name
2016-05-14 15:30:57 -04:00
wing328
093fc4680b Merge branch 'JMDHo-patch-2' 2016-05-15 01:35:19 +08:00
wing328
1d6eef715c update swift petstore sample 2016-05-15 01:35:01 +08:00
wing328
a466844063 Merge branch 'patch-2' of https://github.com/JMDHo/swagger-codegen into JMDHo-patch-2 2016-05-15 01:21:47 +08:00
Newell Zhu
83b5c2eeec Add Rails5 sample 2016-05-15 00:25:00 +08:00
Newell Zhu
d0dcec85cc build route.mustache 2016-05-15 00:20:38 +08:00
Newell Zhu
da50a6e1f0 Complete controller mustache 2016-05-15 00:20:38 +08:00
Newell Zhu
8847462198 setup rails 5 basic structure 2016-05-15 00:20:38 +08:00
wing328
1520b90b0d Merge pull request #2812 from achew22/undefined_ts
Update TypeScript to do a better check for empty on basePath.
2016-05-14 22:22:26 +08:00
wing328
7253375b13 Merge pull request #2811 from achew22/injection_ts
Update the injector static variable to contain all injected values.
2016-05-14 22:17:20 +08:00
Arne Jørgensen
d3fe0ae28a [PHP] Improve codestyle of phpunit tests 2016-05-14 13:45:41 +02:00
Arne Jørgensen
1f02fd281f [PHP] Regenerate petstore sample 2016-05-14 13:45:41 +02:00
Arne Jørgensen
cc395fdf63 [PHP] Improve generated codestyle 2016-05-14 13:45:41 +02:00
wing328
b3a335f97b Merge pull request #2863 from cbornet/fix_feign_oauth
[Feign]Fix issue with expired token refreshing
2016-05-14 18:04:12 +08:00
wing328
31848a1920 Merge pull request #2867 from wing328/php_debug_message
[PHP] add debug switch to print out downloaded file info
2016-05-14 17:56:28 +08:00
wing328
2a11720b1d Merge pull request #2862 from mateuszmackowiak/master
[Objc] Moved the generated files to Api, Core and Model folders
2016-05-14 17:48:22 +08:00
wing328
c982a3a1b7 Merge pull request #2865 from leonyu/functional_programming_interface
functional programming api for typescript-fetch
2016-05-14 17:27:33 +08:00
wing328
0b7d0c34af add debug switch to print out downloaded file info 2016-05-14 17:11:48 +08:00
Jim Schubert
f6b42b1a4f [python] Excluded tests shouldn't write test init 2016-05-13 22:27:46 -04:00
Jim Schubert
96b98d22c5 [generator] Exclude api/model tests & docs via options
Adds support for system properties apiTests, modelTests, modelTests, modelDocs.
All accepting a boolean value to explicitly define whether or not these
should be generated.

These properties aren't considered "features", so specifying
-DmodelTests=false for example won't cause api or supportFiles to be ignored.

Includes additionalProperty excludeTests for when apiTests and modelTests are
both set to false.

Also includes update to csharp client generator to prevent generation of
the Test project or inclusion of the Test project when both api and
model tests are excluded.

see #2506
2016-05-13 22:04:45 -04:00
Leon Yu
885d3543df functional programming api for typescript-fetch 2016-05-13 17:59:01 -04:00
Guo Huang
164c728088 Merge branch 'travis' of https://github.com/guohuang/swagger-codegen into travis
# Conflicts:
#	samples/client/petstore/go/go-petstore/.travis.yml
2016-05-13 13:31:53 -07:00
Guo Huang
492dbcb572 added travis yml to code gen 2016-05-13 13:29:51 -07:00
Guo Huang
0facbd708a added travis yml to code gen 2016-05-13 13:20:31 -07:00
cbornet
b543a53dc7 update feign sample 2016-05-13 16:33:49 +00:00
cbornet
f87d718836 fix issue with expired token refreshing 2016-05-13 16:23:51 +00:00
Mateusz Mackowiak
70cbe1042c [Objc] Moved the generated files to Api, Core and Model folders
- Added known response codes in comment
2016-05-13 17:46:49 +02:00
wing328
1939ce8e91 Merge branch 'jimschubert-cs/req_properties_2584' 2016-05-13 22:17:55 +08:00
wing328
3ec8a96a94 update csharp petstore sample 2016-05-13 22:17:16 +08:00
wing328
303aec7647 Merge branch 'cs/req_properties_2584' of https://github.com/jimschubert/swagger-codegen into jimschubert-cs/req_properties_2584
Conflicts:
	samples/client/petstore/csharp/SwaggerClient/IO.Swagger.sln
	samples/client/petstore/csharp/SwaggerClient/README.md
	samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/IO.Swagger.Test.csproj
	samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/IO.Swagger.csproj
2016-05-13 21:49:16 +08:00
wing328
68d0e975f9 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-13 21:03:50 +08:00
wing328
3c9b8dc722 Merge branch 'leonyu-typescript-fetch-basic-unit-test' 2016-05-13 21:03:34 +08:00
wing328
1e00bbfb8d Merge branch 'typescript-fetch-basic-unit-test' of https://github.com/leonyu/swagger-codegen into leonyu-typescript-fetch-basic-unit-test 2016-05-13 18:02:38 +08:00
wing328
e24405e706 Merge pull request #2861 from BeneficialName/php-fix-prop-name-as-var
[PHP] list_invalid_properties now don't call undefined variables
2016-05-13 17:35:18 +08:00
wing328
406357e3b8 Merge pull request #2854 from BeneficialName/php-cleanup
[PHP] Cleanup to make coding style more consistent
2016-05-13 17:31:36 +08:00
Kim Sondrup
7737a59705 Run ./bin/php-petstore.sh 2016-05-13 11:01:10 +02:00
Kim Sondrup
bf259a8065 Merge remote-tracking branch 'swagger/master' into php-cleanup 2016-05-13 11:00:34 +02:00
wing328
26aa8e7c05 Merge pull request #2852 from BeneficialName/php-model-change
[PHP] method list_invalid_properties change to camelCase
2016-05-13 16:55:17 +08:00
Kim Sondrup
e31c71f685 [PHP] list_invalid_properties now don't call undefined variables 2016-05-13 10:54:29 +02:00
wing328
8769e9b4f9 Merge branch 'cjolif-enum' 2016-05-13 16:40:20 +08:00
wing328
610af20712 update swift sample 2016-05-13 16:40:01 +08:00
wing328
e0ce491b44 Merge branch 'enum' of https://github.com/cjolif/swagger-codegen into cjolif-enum 2016-05-13 16:32:38 +08:00
wing328
48fbaa793a Merge pull request #2842 from mikolajprzybysz/allow-version-skip
[PHP] Allow version skip in composer.json
2016-05-13 15:51:53 +08:00
Leon Yu
aed31fbff3 basic integration test for typescript-fetch
fix postpublish script
2016-05-13 01:45:54 -04:00
abcsun
4d6d63754d add parameters validation from request & adjust the mustache output style 2016-05-13 11:43:29 +08:00
Jim Schubert
993a21ed5f [csharp] Add interface for API config aspects
This allows developers to gain access to each API's
Configuration and  GetBasePath without need for reflection.
2016-05-12 22:06:30 -04:00
Jim Schubert
726228a27d [csharp] Make APIs partial classes 2016-05-12 22:02:11 -04:00
Kim Sondrup
b2f5d8c060 [PHP] Made coding standard more consistent across template files 2016-05-13 01:47:59 +02:00
Kim Sondrup
6bb953d0aa [PHP] Remove trailing spaces from templates 2016-05-13 00:31:45 +02:00
Kim Sondrup
840adb8aa3 [PHP] model list_invalid_properties change to camelCase 2016-05-12 20:05:55 +02:00
wing328
153af0c6cb Merge pull request #2843 from zhenjun115/android_volley_api_client
Android volley api client
2016-05-13 00:21:44 +08:00
wing328
aaf8c867a2 Merge pull request #2845 from cjolif/master
fix typo
2016-05-13 00:20:59 +08:00
Christophe Jolif
154f85992e fix typo 2016-05-12 17:10:01 +02:00
zhenjun115
32a6099853 add gitignore.mustache and git_push.mustache for android api client using volley; 2016-05-12 23:04:43 +08:00
Mikolaj Przybysz
a06ba7d4b8 Enable skipping version in composer.json 2016-05-12 16:53:21 +02:00
wing328
dfda700e7e Merge branch 'mateuszmackowiak-objc/moved_logger_and_optimalizations' 2016-05-12 22:40:08 +08:00
Mikolaj Przybysz
bbb1c13b79 Modified code to be able to use composer properties and git properties alternatively and together 2016-05-12 16:38:13 +02:00
wing328
a05133bdc6 Merge branch 'objc/moved_logger_and_optimalizations' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-objc/moved_logger_and_optimalizations
Conflicts:
	samples/client/petstore/objc/README.md
	samples/client/petstore/objc/SwaggerClient.podspec
2016-05-12 22:38:06 +08:00
wing328
b61fa55e45 Merge branch 'objc/bump_podspec_versions' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-objc/bump_podspec_versions 2016-05-12 22:21:22 +08:00
wing328
eb3f5fb218 Merge branch 'kolyjjj-upgrade_version' 2016-05-12 21:57:18 +08:00
zhenjun115
a7ec1b9fd0 Merge pull request #1 from swagger-api/master
sync branch master
2016-05-12 21:53:48 +08:00
Mikolaj Przybysz
329d22ec00 Revert "Fixing php sdk composer project path"
This reverts commit 4bbc911664.
2016-05-12 14:29:00 +02:00
Mikołaj Przybysz
ce821a5100 Merge pull request #1 from swagger-api/master
Update
2016-05-12 12:17:57 +02:00
Christophe Jolif
524ced1d9b Fix regression on swift enum name as well as make sure enum var name with colons ouput compiable swift. Add a test. fixes #2824, fixes #2835 2016-05-12 11:57:43 +02:00
Kristof Vrolijkx
6e000cc2a1 Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen into feature/integration-test 2016-05-11 21:59:16 +02:00
Mateusz Mackowiak
ac37c43649 [Objc] Moved [request setHTTPShouldHandleCookies:NO]; to postProcessRequest method for easier override to modify request. 2016-05-11 18:20:15 +02:00
Mateusz Mackowiak
567c23a3df [Objc] Support for variations of application/json type 2016-05-11 17:39:28 +02:00
Takuro Wada
77428b8a83 Fix npm error & import error in generated code 2016-05-12 00:32:09 +09:00
kolyjjj
3948ae27a4 upgrade version and delete scala-test property 2016-05-11 18:28:01 +08:00
wing328
d6ad7dc0b0 Merge pull request #2831 from zhenjun115/master
a new pom.mustache for android api client using volley HTTP library;
2016-05-11 17:43:42 +08:00
wing328
311a5ce907 Merge pull request #2832 from wing328/refactor_character_mapping
Refactor special mapping to default codegen
2016-05-11 16:57:29 +08:00
Mateusz Mackowiak
6206785038 [Objc] bump AFNetworking version to 3 2016-05-11 10:40:43 +02:00
wing328
dfe7e33fa5 update mapping to use minus for - 2016-05-11 16:34:30 +08:00
wing328
2784db0604 fix escpaing " and \ 2016-05-11 16:14:03 +08:00
wing328
3c117d5857 refactor special mapping to defualt codegen 2016-05-11 15:44:06 +08:00
zhenjun115
ee15ef3579 a new pom.mustache for android api client using volley HTTP library; 2016-05-11 13:05:54 +08:00
wing328
9df91a08cd add cchafer (author of Akka Scala) 2016-05-11 11:27:37 +08:00
Mateusz Mackowiak
fa7d3c9bad [Objc]
- Moved Logging to separate Logger file
- Moved selectHeaderAccept and selectHeaderContentType to sanitizer
- little optimizations
2016-05-10 22:06:50 +02:00
Mateusz Mackowiak
94f49d2275 [Objc] bump version of JSONModel to 1.2 and ISO8601 to 0.5 2016-05-10 21:53:14 +02:00
Guo Huang
80d210a413 added travis.yml, remove old README.md 2016-05-10 11:13:56 -07:00
Mikolaj Przybysz
82f1a1bce5 Added gitUserId and gitRepoId to php config-help 2016-05-10 20:05:31 +02:00
wing328
bcb1acc210 Merge pull request #2822 from wing328/php_fix_doc
[PHP] fix broken links in php doc
2016-05-11 00:43:23 +08:00
wing328
745e1aba32 fix broken links in php doc 2016-05-11 00:03:14 +08:00
wing328
73b78bc294 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-10 22:39:11 +08:00
wing328
6520f9bfc7 Merge branch 'mikolajprzybysz-issue-2743' 2016-05-10 22:38:49 +08:00
wing328
1cb1b0351c update php sample 2016-05-10 22:38:21 +08:00
wing328
753b5c8164 Merge pull request #2820 from zlx/feature/patch-1
fix typo
2016-05-10 22:34:29 +08:00
wing328
3c72547e27 Merge branch 'issue-2743' of https://github.com/mikolajprzybysz/swagger-codegen into mikolajprzybysz-issue-2743 2016-05-10 22:33:00 +08:00
Newell Zhu
0f97386b0b fix typo 2016-05-10 22:16:25 +08:00
wing328
4f28ed3cd3 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-10 20:02:33 +08:00
wing328
67efffcc19 Merge branch 'guohuang-csharp-bug' 2016-05-10 20:02:13 +08:00
wing328
55746f01b1 Merge branch 'csharp-bug' of https://github.com/guohuang/swagger-codegen into guohuang-csharp-bug 2016-05-10 20:01:44 +08:00
wing328
5aaf570782 Merge pull request #2818 from wing328/bug/fix_2795
[C#] fix constructor with readonly property at the end
2016-05-10 19:08:17 +08:00
Jean-Michel Douliez
6178149f10 Update api.mustache 2016-05-10 12:46:30 +02:00
Jean-Michel Douliez
9f19a74123 Update APIHelper.mustache 2016-05-10 12:45:38 +02:00
wing328
e756ba081a Merge branch 'leonyu-update_typings_json' 2016-05-10 18:01:42 +08:00
wing328
cd6f5877ac add bin/typescript-fetch-petstore-all.sh 2016-05-10 18:01:17 +08:00
wing328
62db8e854b Merge branch 'update_typings_json' of https://github.com/leonyu/swagger-codegen into leonyu-update_typings_json 2016-05-10 17:51:28 +08:00
wing328
1b36083afd fix #2795 2016-05-10 17:40:21 +08:00
wing328
5bbed79581 Merge pull request #2815 from wing328/ruby_move_test_case
[Ruby] update Ruby test cases
2016-05-10 15:22:01 +08:00
wing328
31daa2b092 update ruby test files 2016-05-10 14:56:14 +08:00
wing328
d54877b5d3 add ruby spec for configuration, api client, replace should with expect 2016-05-10 14:18:06 +08:00
Guo Huang
e7f68287c1 updated function to support multiple collection formats 2016-05-09 22:01:32 -07:00
Andrew Z Allen
0b8c936972 Update TypeScript to do a better check for empty on basePath.
In Angular if a value is not defined for injection it is passed as
undefined. That means that most of the time `if (value) {` is a
reasonable test. Unfortunately since `""` (empty string) is also falsey
by nature, an empty string will not trigger the if properly.

Instead you should check `if (value !== undefined) {`.
2016-05-09 22:59:25 -06:00
Andrew Z Allen
51ad775aee Update the injector static variable to contain all injected values.
In Angular.js, values are injected into service in one of two ways:

1) Inline (by name).
2) By a static injector variable.

The TypeScript generator uses the 2nd method. This method requires you
to explicitly enumerate all the values you would like to have injected.
If you fail to inject a value the Angular DI system will simply pass you
`undefined`. The constructor is expecting 3 values to be passed (the
final being basePath) but the injector static only defines 2 values.
This results in basePath always being undefined no matter what you
define it to be.

This change updates the injector variable to handle that properly.
2016-05-09 22:46:50 -06:00
wing328
e17710fc72 add pagerduty 2016-05-10 10:38:16 +08:00
Leon Yu
3185606124 Update typings
Expose type definition

Add readme
2016-05-09 20:33:24 -04:00
Mikolaj Przybysz
4bbc911664 Fixing php sdk composer project path 2016-05-09 19:56:20 +02:00
Mikolaj Przybysz
449d6b7d5f issue-2743 fixing docs path and composer autoloader-dev 2016-05-09 19:03:49 +02:00
wing328
b5dba68dfa Merge branch 'arnested-php-fix-array-handling-2' 2016-05-10 00:40:24 +08:00
wing328
363c40ec55 update php petstore sample 2016-05-10 00:39:55 +08:00
wing328
d0529cffdb Merge branch 'php-fix-array-handling-2' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling-2
Conflicts:
	modules/swagger-codegen/src/main/resources/php/model.mustache
	samples/client/petstore/php/SwaggerClient-php/README.md
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-10 00:29:13 +08:00
wing328
65ee4cb835 Merge pull request #2806 from wing328/fix_java_default_import
[Java] fix java import issue due to enum and inner model
2016-05-09 23:35:33 +08:00
wing328
477f6f8d4d use modelPackage instead to import all models 2016-05-09 23:17:37 +08:00
wing328
b27d8c22c7 fix java import issue due to enum and inner model (array of array of
model)
2016-05-09 23:12:12 +08:00
wing328
d3c434e40f add mateuszmackowiak to core team 2016-05-09 21:53:01 +08:00
wing328
b03b377a86 Merge pull request #2804 from wing328/bug/fix_2668
[Java] To fix missing import for @JsonValue
2016-05-09 21:47:28 +08:00
wing328
28c7ea5426 Merge pull request #2799 from mateuszmackowiak/obj/ApiClient-Sanitizer
Sanitizer for separating sanitize and service logic
2016-05-09 18:01:36 +08:00
wing328
c6eae8a6a6 Merge branch 'mateuszmackowiak-obj/Generic_List_and_Maps' 2016-05-09 17:47:39 +08:00
wing328
899af7a5fa Merge branch 'obj/Generic_List_and_Maps' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-obj/Generic_List_and_Maps 2016-05-09 17:33:05 +08:00
wing328
94978e019e Merge branch 'abcsun-php_parameter_validation' 2016-05-09 16:33:25 +08:00
wing328
f30b32afc4 minor fix to mustache layout 2016-05-09 16:32:49 +08:00
wing328
cf6e8cffbb Merge branch 'php_parameter_validation' of https://github.com/abcsun/swagger-codegen into abcsun-php_parameter_validation
Conflicts:
	samples/client/petstore/php/SwaggerClient-php/README.md
	samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php
2016-05-09 16:21:40 +08:00
wing328
126510b1ad Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-09 16:08:39 +08:00
Mateusz Mackowiak
ea87f95f77 Rebase obj/Generic_List_and_Maps 2016-05-09 10:08:28 +02:00
wing328
d1cc2488b1 Merge pull request #2773 from zhenjun115/master
add pom.xml based on build.gradle for android api client( using the v…
2016-05-09 16:06:39 +08:00
Mateusz Mackowiak
93a39242a6 Merge branch 'master' into obj/ApiClient-Sanitizer 2016-05-09 09:49:27 +02:00
wing328
8a9ba0b3f3 Merge pull request #2803 from diyfr/SpringBootServer
Add Springboot documentation
2016-05-09 15:39:30 +08:00
diyfr
c039526993 Add Springboot documentation 2016-05-09 08:21:32 +02:00
wing328
e367a74504 Merge pull request #2791 from leonyu/typescript-fetch-package-json
Typescript fetch update
2016-05-09 12:45:26 +08:00
wing328
dbe8ef9df8 Merge pull request #2785 from wing328/bug/escape_unicode
Fix unicode issue in escapeText
2016-05-09 11:35:25 +08:00
wing328
1a2bf79d51 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
Conflicts:
	samples/client/petstore/objc/README.md
2016-05-09 11:22:25 +08:00
wing328
edc87b1480 Merge branch 'mateuszmackowiak-obj/SupportForByteArray' 2016-05-09 11:21:39 +08:00
wing328
f28e2f2a1b Merge branch 'obj/SupportForByteArray' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-obj/SupportForByteArray 2016-05-09 11:21:21 +08:00
wing328
13b413151b Merge pull request #2797 from mateuszmackowiak/obj/ApiClient_AFNetworking3
Use AFHttpSessionManager instead of AFHTTPRequestOperationManager #1981
2016-05-09 11:19:04 +08:00
wing328
caea3876b5 Merge branch 'scottrw93-validation' 2016-05-09 11:03:46 +08:00
wing328
36ada7f5fc Merge branch 'validation' of https://github.com/scottrw93/swagger-codegen into scottrw93-validation 2016-05-09 10:51:23 +08:00
Scott Williams
4718c34984 Replace tabs with spaces 2016-05-09 01:25:13 +01:00
Scott Williams
25ebd5466d Update pattern to support Perl /pattern/modifiers convention 2016-05-09 01:11:29 +01:00
wing328
beb88e0f3c Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-09 01:17:59 +08:00
wing328
9e8cbae0ec rearrange order for core member list 2016-05-09 00:46:17 +08:00
wing328
cfa2c54c15 removed kristof 2016-05-09 00:45:29 +08:00
wing328
20f3850eb2 add guideline for becoming a core team member 2016-05-09 00:30:55 +08:00
wing328
6b6a559aa5 add .net2.0 template creator 2016-05-08 23:24:14 +08:00
wing328
d4383ce4c1 update core team (js) 2016-05-08 22:33:52 +08:00
wing328
dcbc8975a0 update core team 2016-05-08 22:24:52 +08:00
Jim Schubert
705ed78de1 [csharp] regenerate client 2016-05-08 08:35:28 -04:00
Mateusz Mackowiak
fbd6a95799 [Objc] Generator supports binary and BiteArray and maps data to NSData 2016-05-08 12:54:12 +02:00
wing328
46957bb6aa add swagger codegen core team 2016-05-08 18:48:22 +08:00
Jim Schubert
618f4bdd39 [csharp] Constructor handling for serialization
Resolving an issue with serializing classes that contain required
properties. When the only constructor has defaulted parameters, no
parameterless constructor is generated but JSON.Net attempts to call
the missing constructor on deserialization (because of DataContract).

See: https://manski.net/2014/10/net-serializers-comparison-chart/

The fix here is to create a protected constructor, annotate it with
JsonConstructorAttribute to inform JSON.Net it is the constructor to use
during serialization, then provide settings that explicitly allow
JSON.Net to access non-public constructors during serialiazation.
2016-05-07 22:22:48 -04:00
zhenjun115
6709a92cbc remove pom.mustache from android api client using volley HTTP library; 2016-05-07 23:38:05 +08:00
wing328
c3690d8675 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-07 23:10:25 +08:00
Mateusz Mackowiak
74c233e194 Sanitizer for separating sanitize and service logic 2016-05-07 15:18:10 +02:00
Mateusz Mackowiak
07b466a291 Objective c generator converts map and array properties to proper format using generics 2016-05-07 14:13:25 +02:00
Mateusz Mackowiak
81c6edcdd4 Merge commit '084f15fc2e6db460b037b08708a3713b8ef61be6' into obj/ApiClient_AFNetworking3 2016-05-07 13:57:15 +02:00
wing328
084f15fc2e Merge pull request #2786 from mateuszmackowiak/objc/responseDeserializer
[Objc] ResponseDeserializer for separating deserialization and service logic
2016-05-07 19:50:34 +08:00
Mateusz Mackowiak
a71d8d935a Use AFHttpSessionManager instead of AFHTTPRequestOperationManager #1981 2016-05-07 12:16:05 +02:00
abcsun
9efef02d5f formate the module.mustache 2016-05-07 18:12:28 +08:00
wing328
7d33e1655d Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
Conflicts:
	samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.mustache
2016-05-07 17:55:39 +08:00
wing328
4c0ed319d8 Merge branch 'jimschubert-csharp_default_paths' 2016-05-07 17:54:38 +08:00
wing328
77e56084ac regenerate c# petstore sample 2016-05-07 17:49:54 +08:00
wing328
2ab315fa6f Merge branch 'csharp_default_paths' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp_default_paths
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java
	samples/client/petstore/csharp/SwaggerClient/README.md
	samples/client/petstore/csharp/SwaggerClient/docs/FormatTest.md
	samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs
	samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/InlineResponse200.cs
	samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.csproj
	samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.userprefs
	samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.csproj.FilesWrittenAbsolute.txt
2016-05-07 17:30:40 +08:00
abcsun
df1d36cf47 modify the properties from container array 2016-05-07 15:55:38 +08:00
abcsun
0695708594 sync from origin master & do the parameters validation in model 2016-05-07 15:43:19 +08:00
Guo Huang
0bc34dcae8 updated api_client.go to use the new SetMultiValueQueryParams method 2016-05-06 23:48:46 -07:00
zhenjun115
101f9a4086 add generated markdown files to android api client for default and volley; 2016-05-07 14:33:47 +08:00
zhenjun115
3629fbac44 add pom.mustache for android api client(using volley HTTP library);update android api client samples(using volley HTTP library); 2016-05-07 14:12:19 +08:00
wing328
bff6c8bab4 add bitly 2016-05-07 08:47:30 +08:00
Scott Williams
fed22a1f72 Add regex support 2016-05-06 22:52:44 +01:00
Arne Jørgensen
bf8b7b760c [PHP] Regenerate petstore sample 2016-05-06 23:48:52 +02:00
Arne Jørgensen
f5a802d9af [PHP] Fix default values in derived classes
Fixes flaw in 9f40a82310.
2016-05-06 23:48:52 +02:00
Leon Yu
64548d9bf5 Update bin 2016-05-06 15:59:37 -04:00
Leon Yu
b3937c2656 Package management option
ES6 target

Fix enum
2016-05-06 15:59:07 -04:00
Guo Huang
5bb1853018 added support for multi 2016-05-06 11:48:20 -07:00
wing328
34ec63e908 Merge pull request #2787 from xhh/js-enum
[JavaScript] Fix the exporting of outer enum model in JS client
2016-05-06 18:56:38 +08:00
xhh
020a9fcdc0 Fix enum model docs for JS and Java clients 2016-05-06 18:41:15 +08:00
Mateusz Mackowiak
fa68f84ec6 - Remove petsotre demo leftovers
- Moved description method to basic class
2016-05-06 12:35:02 +02:00
xhh
5acef6d634 Update petstore sample for JS-promise client 2016-05-06 18:02:32 +08:00
xhh
3dbab1b893 JavaScript client: fix exporting of outer enum model 2016-05-06 17:45:03 +08:00
Mateusz Mackowiak
385bf6d9ea Additional UnknownResponseObjectErrorCode if response object expected type is an unknown type 2016-05-06 11:41:30 +02:00
wing328
db65a1526f Merge pull request #2761 from kolyjjj/upgradeswaggertools
[koly] update swagger tools to 0.10.1
2016-05-06 17:18:32 +08:00
wing328
ce4a976916 Merge pull request #2775 from guohuang/tests
fixed array return type return as pointer issue
2016-05-06 17:07:02 +08:00
Mateusz Mackowiak
75cc10fdfa Fix typo 2016-05-06 10:51:59 +02:00
wing328
d3e77a4104 Merge pull request #2784 from catinred2/htmlDocs_response
Html docs response
2016-05-06 16:46:44 +08:00
Mateusz Mackowiak
65d85b7760 ResponseDeserializer for separating deserialization and service logic 2016-05-06 10:46:03 +02:00
wing328
3a80a4ff1e fix double byte characters in description, upgrade to lang3 2016-05-06 16:36:45 +08:00
xming
70d6e64a8d add link to param type 2016-05-06 15:31:09 +08:00
wing328
5a7e0fd181 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
Conflicts:
	samples/server/petstore/springboot/src/main/java/io/swagger/api/ApiException.java
	samples/server/petstore/springboot/src/main/java/io/swagger/api/ApiOriginFilter.java
	samples/server/petstore/springboot/src/main/java/io/swagger/api/ApiResponseMessage.java
	samples/server/petstore/springboot/src/main/java/io/swagger/api/NotFoundException.java
	samples/server/petstore/springboot/src/main/java/io/swagger/api/PetApi.java
	samples/server/petstore/springboot/src/main/java/io/swagger/api/StoreApi.java
	samples/server/petstore/springboot/src/main/java/io/swagger/api/UserApi.java
	samples/server/petstore/springboot/src/main/java/io/swagger/configuration/SwaggerDocumentationConfig.java
	samples/server/petstore/springboot/src/main/java/io/swagger/model/Category.java
	samples/server/petstore/springboot/src/main/java/io/swagger/model/ModelApiResponse.java
	samples/server/petstore/springboot/src/main/java/io/swagger/model/Order.java
	samples/server/petstore/springboot/src/main/java/io/swagger/model/Pet.java
	samples/server/petstore/springboot/src/main/java/io/swagger/model/Tag.java
	samples/server/petstore/springboot/src/main/java/io/swagger/model/User.java
2016-05-06 15:09:34 +08:00
Takuro Wada
724c25728e Move @angular dependencies to peerDependencies 2016-05-06 16:04:24 +09:00
wing328
1dd8faf8b7 Merge pull request #2783 from GriffinSchneider/patch-1
Replace 'BEARER' with 'Bearer' everywhere for RFC6750 compliance.
2016-05-06 15:01:22 +08:00
xming
ea14b3b559 Merge branch 'master' into htmlDocs_response 2016-05-06 13:57:27 +08:00
wing328
dc50709f56 Merge branch 'arnested-php-fix-array-handling' 2016-05-06 10:47:00 +08:00
wing328
ac2cb647b5 Merge branch 'php-fix-array-handling' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling
Conflicts:
	modules/swagger-codegen/src/main/resources/php/model.mustache
	samples/client/petstore/php/SwaggerClient-php/README.md
	samples/client/petstore/php/SwaggerClient-php/docs/FormatTest.md
	samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-06 10:46:36 +08:00
xming
0f1842bb06 add datatype link under responses 2016-05-06 10:35:45 +08:00
Griffin Schneider
e5ab34b658 Replace 'BEARER' with 'Bearer' everywhere.
RFC6750 indicates that the correct header format is 'Bearer <token>',
not 'BEARER <token>'.
2016-05-05 16:14:45 -04:00
Guo Huang
ebdf12bcd4 fixed code gen using {{#isListContainer}}*{{/isListContainer}} field 2016-05-05 11:41:58 -07:00
wing328
b92e240ac2 Merge branch 'leonyu-typescript-fetch' 2016-05-05 17:13:10 +08:00
wing328
e04c4ec640 add typescript-fetch client generator 2016-05-05 17:12:28 +08:00
wing328
e0ec38df72 Merge branch 'typescript-fetch' of https://github.com/leonyu/swagger-codegen into leonyu-typescript-fetch 2016-05-05 16:43:30 +08:00
wing328
e1d4a6205c Merge branch 'diyfr-SpringBootServer' 2016-05-05 15:31:57 +08:00
wing328
3b8a66bb8c rename spsringboot sh, change permission, add ModelApiResponse.java 2016-05-05 15:31:17 +08:00
wing328
3dccc7d2a1 Merge branch 'SpringBootServer' of https://github.com/diyfr/swagger-codegen into diyfr-SpringBootServer 2016-05-05 15:28:10 +08:00
wing328
060a557dee Merge branch 'diyfr-SpringBootServer' 2016-05-05 15:24:32 +08:00
wing328
39cbee5ca2 rename springboot sh, chmod a+x, add ModelApiResponse 2016-05-05 15:23:56 +08:00
wing328
8146c874db Merge branch 'SpringBootServer' of https://github.com/diyfr/swagger-codegen into diyfr-SpringBootServer 2016-05-05 15:03:23 +08:00
abcsun
22ea2d87e0 add validation to model 2016-05-05 11:41:14 +08:00
Jim Schubert
9b1d43c6f5 [csharp] default optionalProjectFileFlag to true
Possible breaking change.

optionalProjectFileFlag handles the generation of csproj and sln
files. Not modifying the plurality of the option to reduce the
impact of the breaking change for existing settings:

optionalProjectFileFlag=true
    => generates additional .sln file
optionalProjectFileFlag=false
    => no change
unspecified
    => additional files (csproj, sln) may overwrite existing files
2016-05-04 21:44:52 -04:00
Guo Huang
82770e9566 Issue #2756: add null checking to avoid null exception 2016-05-04 13:22:46 -07:00
Leon Yu
bbeb1a3f6f add dev-dependencies 2016-05-04 14:36:04 -04:00
Guo Huang
41b7649e62 fixed array return type return as pointer issue 2016-05-04 10:39:30 -07:00
diyfr
8209653fb0 Add SpringBoot server generator 2016-05-04 16:38:36 +02:00
黄真俊
e868690c03 add pom.xml based on build.gradle for android api client( using the volley HTTP library ); 2016-05-04 19:51:53 +08:00
wing328
ec5d300bab added Pepipost 2016-05-04 18:26:13 +08:00
kolyjjj
98a2a22abf [koly] generate nodejs codes 2016-05-04 17:56:02 +08:00
Takuro Wada
366c7d6917 Add Opeiontal decorator to basePath 2016-05-04 18:38:54 +09:00
abcsun
f4ef2b0325 add valid function and validation to each setter 2016-05-04 16:56:56 +08:00
Takuro Wada
949da93a05 Update typescript-angular2 client to adopt to rc 2016-05-04 17:19:00 +09:00
abcsun
c8f2715edc fix the minLength validation 2016-05-04 14:52:12 +08:00
wing328
33291f5780 Merge branch 'guohuang-tests' 2016-05-04 10:21:47 +08:00
wing328
27b8d1af81 Merge branch 'tests' of https://github.com/guohuang/swagger-codegen into guohuang-tests
Conflicts:
	samples/client/petstore/go/pet_api_test.go
2016-05-04 10:21:38 +08:00
wing328
4117608654 Merge pull request #2749 from guohuang/pointer
changed go client to return object pointer
2016-05-04 10:17:07 +08:00
wing328
dc262a3567 Merge pull request #2765 from Vrolijkx/master
Reverting remove of client.ts in typescript-node
2016-05-04 09:57:21 +08:00
wing328
96f90106ec Merge branch 'wing328-bherila-typescript-es6-promises' 2016-05-04 09:54:56 +08:00
wing328
8181720397 Merge branch 'bherila-typescript-es6-promises' of https://github.com/wing328/swagger-codegen into wing328-bherila-typescript-es6-promises
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractTypeScriptClientCodegen.java
2016-05-04 09:54:42 +08:00
Guo Huang
60ee308da5 added assert to check response status match the query 2016-05-03 11:55:51 -07:00
Kristof Vrolijkx
a98c58a76f Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-03 20:55:28 +02:00
Kristof Vrolijkx
9fb85ae8fe removing comment 2016-05-03 20:36:24 +02:00
Guo Huang
035ee18ba4 fixed testing issue 2016-05-03 10:27:27 -07:00
Guo Huang
a5b08a8ce7 fixed merge conflict 2016-05-03 10:16:47 -07:00
Guo Huang
3168de5f74 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into pointer
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/api.mustache
#	samples/client/petstore/go/go-petstore/pet_api.go
#	samples/client/petstore/go/go-petstore/store_api.go
#	samples/client/petstore/go/go-petstore/user_api.go
2016-05-03 10:03:48 -07:00
kolyjjj
0ce6fd7b36 [koly] update swagger tools to 0.10.1 2016-05-03 22:18:43 +08:00
wing328
bed21e418b Merge pull request #2508 from wing328/php_enum
[PHP][C#] better enum support
2016-05-03 20:09:51 +08:00
diyfr
9604257649 #2742 Issue multiple methods if use multi tags 2016-05-03 13:45:31 +02:00
wing328
2c41451b67 add new java file for enum mustache template 2016-05-03 18:24:25 +08:00
wing328
bfdd49a2b2 add new JS enum mustache template 2016-05-03 18:24:00 +08:00
wing328
3346c84a1f better enum support for typescript 2016-05-03 18:23:08 +08:00
wing328
982a035cc1 add better enum support to swift 2016-05-03 18:12:35 +08:00
wing328
40815f5f00 Merge pull request #2746 from guohuang/tests
added user api test
2016-05-03 16:57:02 +08:00
wing328
6b0b343b92 add option to support ES6 2016-05-03 16:42:02 +08:00
Kristof Vrolijkx
ea8516d747 Readding client.ts 2016-05-03 08:39:39 +02:00
wing328
333a5edeae Merge branch 'typescript-es6-promises' of https://github.com/bherila/swagger-codegen into bherila-typescript-es6-promises 2016-05-03 14:29:52 +08:00
wing328
1d6ec92141 add sh for groovy petstore 2016-05-03 14:11:49 +08:00
wing328
0bce28cff2 add back ts resource folder with new folder name 2016-05-03 14:09:08 +08:00
wing328
5c97717fc8 temporary remove ts resource folder 2016-05-03 14:08:02 +08:00
wing328
acb34e3db0 better JS enum class support 2016-05-03 11:21:17 +08:00
wing328
d35e30d578 better enum support for JS 2016-05-03 11:21:17 +08:00
wing328
6e8a19bc5b fix enum for jaxrs and resteasy 2016-05-03 11:20:45 +08:00
wing328
8f2573f8a7 add new files for retrofit2rx 2016-05-03 11:20:45 +08:00
wing328
fc982d1205 add new files for java petstore 2016-05-03 11:20:44 +08:00
wing328
6370165912 fix retrofit 1, 2 java sample 2016-05-03 11:19:59 +08:00
wing328
3913388331 fix java okhttp enum mismatche tab 2016-05-03 11:19:59 +08:00
wing328
70b25a682d fix java default and feign sample 2016-05-03 11:19:59 +08:00
wing328
0310d95800 fix csharp enum issue after rebase 2016-05-03 11:19:19 +08:00
xhh
4419e71d4b improve enum support in java okhttp-gson client 2016-05-03 11:16:05 +08:00
xhh
8588c5ce0a add enum support to java 2016-05-03 11:16:05 +08:00
wing328
be83c0cc3c add new enum file for csharp and php 2016-05-03 11:16:05 +08:00
wing328
f5bee0c1b7 fix java docstring 2016-05-03 11:16:05 +08:00
wing328
2942ef8b73 add double enum support to C# 2016-05-03 11:16:05 +08:00
wing328
a7ca0ad11f add enum number support to php 2016-05-03 11:16:05 +08:00
wing328
531b536ffb add enum number support to C# 2016-05-03 11:15:40 +08:00
wing328
00e15b76ec clean up post process model in csharp, add default value for enum 2016-05-03 11:14:45 +08:00
wing328
45f3cfd5cf better enum support for csharp 2016-05-03 11:14:45 +08:00
wing328
217d93401b better php enum naming 2016-05-03 11:14:45 +08:00
wing328
11deb43829 add enum class support to php 2016-05-03 11:14:45 +08:00
wing328
2c9e9ee425 fix getter for allowableValues for php enum 2016-05-03 11:14:45 +08:00
wing328
800a858acb add enum support to php, refactor post process model enum 2016-05-03 11:14:44 +08:00
wing328
f2d180f9a8 Merge pull request #2754 from wing328/add_uuid_mapping
Add uuid mapping
2016-05-03 11:13:45 +08:00
wing328
766c73497d Merge pull request #2750 from neilotoole/issue-2748-formatting
Issue #2748 - generated code now conforms more closely to conventions
2016-05-03 10:01:53 +08:00
Ben Herila
6c3701a403 ES6-ify typescript promises, update tests, remove bluebird dependency in favor of ES6 promises 2016-05-02 18:49:39 -07:00
Ben Herila
3fba32573c Ensure generated enum values are valid, resolves #2457 2016-05-02 18:47:03 -07:00
Ben Herila
282f497839 Specify default base path in file, rather than hard-coded in each class 2016-05-02 18:47:03 -07:00
Ben Herila
d694118685 Rewrite Promise.defer in new style, resolves swagger-api/swagger-codegen#2251 2016-05-02 18:47:03 -07:00
Scott Williams
1fef0ef691 Fix import statement 2016-05-02 16:39:25 +01:00
Scott Williams
4a440f4ee4 Fix excpetion message to include 2016-05-02 16:37:32 +01:00
Scott Williams
3dbdc83981 Add validation to model 2016-05-02 16:25:46 +01:00
Neil O'Toole
803c62e0dc fixed new line issue 2016-05-02 15:53:19 +01:00
wing328
2111e9ef8d add new sample files 2016-05-02 22:41:50 +08:00
wing328
d64af1b836 fix typescript tmeplate folder 2016-05-02 22:16:07 +08:00
wing328
d6158c4c55 fix uuid for java, php, ruby and csharp 2016-05-02 22:06:33 +08:00
Mikolaj Przybysz
9bf4e12056 issue-2743 generating docs in root/docs(Api/Model) 2016-05-02 11:40:56 +02:00
Mikolaj Przybysz
ce6dd4b2c2 issue-2743 added autoloading of tests into composer while in dev (ref.: https://getcomposer.org/doc/04-schema.md#autoload-dev) 2016-05-02 11:39:56 +02:00
Mikolaj Przybysz
b1c030d698 issue-2743 generating unit tests in root/test directory 2016-05-02 11:37:17 +02:00
Jim Schubert
3ed715b26e [csharp] Fix ASP.NET Core 1.0 src location 2016-05-01 20:42:10 -04:00
Jim Schubert
aa778edbd8 [csharp] Regenerate sample client
In this commit, FormatTest.cs was modified manually. Unrelated to this
commit, a Guid with default parameter of null was not marked nullable.
2016-05-01 20:28:50 -04:00
Jim Schubert
7d8df7ef93 Merge remote-tracking branch 'origin/master' into csharp_default_paths 2016-05-01 20:16:47 -04:00
Jim Schubert
7b578a4c4e Update C# client structure using common standards
Aligns C# project outputs more with community accepted standards and
leverges Nuget for package management.

This also moves the generated C# sample code out of the test project's
Lib folder. The output structure here was causing some issues with
maintainability (e.g. had to update test project with generated code).

(see: https://gist.github.com/davidfowl/ed7564297c61fe9ab814)
Output for a project, IO.Swagger will now look like:

    .
    ├── IO.Swagger.sln
    ├── README.md
    ├── bin
    ├── build.bat
    ├── build.sh
    ├── docs
    ├── packages
    └── src
        ├── IO.Swagger
        │   └── packages.config
        └── IO.Swagger.Test
            └── packages.config

This is a change from the Java-like src/main/csharp/IO/Swagger/etc
structure and will be a breaking change for some.
2016-05-01 20:03:45 -04:00
Kristof Vrolijkx
d78b5f1773 adding diff for files in integration test 2016-05-01 22:45:06 +02:00
Scott Williams
97e69aabc3 Add support for max/min string length 2016-05-01 16:38:56 +01:00
Scott Williams
cea6bce196 Follow convention in place when accessing attributes 2016-05-01 16:15:29 +01:00
Scott Williams
6e8497fdb7 Add validation to api class 2016-05-01 16:09:02 +01:00
Kristof Vrolijkx
15feb208e7 improving integration test concept. 2016-05-01 17:06:12 +02:00
Neil O'Toole
5fdf615de7 Issue #2478 - generated code now conforms more closely to conventions 2016-05-01 14:41:40 +01:00
Kristof Vrolijkx
f8046bc9c9 small example of a first integration-test of the code-generator 2016-05-01 14:27:41 +02:00
Guo Huang
56d1b896b7 enable testing array after resty fixed their issue 2016-04-30 23:35:04 -07:00
Guo Huang
e6fb2507a4 changed go client to return object pointer 2016-04-30 23:18:59 -07:00
wing328
8f258b9a48 Merge branch 'demonfiddler-master' 2016-05-01 12:09:34 +08:00
wing328
ab7b73ca21 update js samples 2016-05-01 12:09:23 +08:00
wing328
2d5cc50bd1 Merge branch 'master' of https://github.com/demonfiddler/swagger-codegen into demonfiddler-master
Conflicts:
	samples/client/petstore/javascript-promise/README.md
	samples/client/petstore/javascript-promise/docs/PetApi.md
	samples/client/petstore/javascript-promise/docs/StoreApi.md
	samples/client/petstore/javascript-promise/src/api/PetApi.js
	samples/client/petstore/javascript-promise/src/index.js
	samples/client/petstore/javascript/README.md
	samples/client/petstore/javascript/docs/PetApi.md
	samples/client/petstore/javascript/docs/StoreApi.md
	samples/client/petstore/javascript/src/api/PetApi.js
	samples/client/petstore/javascript/src/index.js
2016-05-01 12:05:49 +08:00
wing328
27c62cbfdb Merge pull request #2747 from wing328/fix_js_git_user
[Javascript] update JS readme to use gitUserId instead
2016-04-30 22:45:10 +08:00
wing328
8d9a09efb1 update JS test case 2016-04-30 21:36:25 +08:00
wing328
7f09a86a1e update wording related to git 2016-04-30 20:23:35 +08:00
wing328
83567861e0 update JS readme to use gitUserId instead 2016-04-30 20:15:45 +08:00
Guo Huang
09248bcd25 added comments for skip test 2016-04-29 16:17:18 -07:00
Guo Huang
ed219f8a9a fix typo 2016-04-29 16:10:10 -07:00
Guo Huang
ad28879fce changed tabs to spaces 2016-04-29 16:02:41 -07:00
Guo Huang
a6e45bf97d added user api test 2016-04-29 15:59:21 -07:00
wing328
02e898816f Merge pull request #2740 from wing328/ruby_not_overwrite_test
[Ruby] skip overwriting ruby spec files
2016-04-30 00:21:18 +08:00
wing328
cd377ba69c Merge pull request #2732 from guohuang/package-name2
added packageName in the codegen option
2016-04-29 22:33:50 +08:00
wing328
92d39ec0ab Merge pull request #2738 from Vrolijkx/master
Adding generation of packaging information for typescript nodeJs app.
2016-04-29 22:30:54 +08:00
wing328
3bcd937270 Merge pull request #2720 from diyfr/Update-to-Springfox-2.4
Update SpringMVC model to Springfox 2.4.0
2016-04-29 17:54:12 +08:00
wing328
b021bd5ed8 Merge pull request #2737 from guohuang/pom-update
updated reference to use go-resty
2016-04-29 17:47:23 +08:00
wing328
0612255f95 Merge pull request #2728 from guohuang/import_bug
Issue #2725: added condition to import json based on return type
2016-04-29 17:03:52 +08:00
wing328
f0906bd19a Merge pull request #2733 from abcsun/php_parameter_validation
[PHP] add parameter validation in methord call
2016-04-29 16:56:52 +08:00
Kristof Vrolijkx
de5363c21b Correcting author 2016-04-29 08:49:48 +02:00
Guo Huang
20bb1aa869 added test.go.bak 2016-04-28 21:43:14 -07:00
Guo Huang
2cb498d9fb renamed file 2016-04-28 21:42:04 -07:00
Guo Huang
0d0ff13e83 added test.go backup file 2016-04-28 21:39:56 -07:00
wing328
90442db86d skip overwriting ruby spec files 2016-04-29 11:10:52 +08:00
abcsun
72120099b4 change the validation to allParams 2016-04-29 11:04:27 +08:00
wing328
6b3735e58d Merge pull request #2727 from scottrw93/test-cases
Add test cases for Python Client
2016-04-29 10:18:53 +08:00
Leon Yu
19d22d834c TypeScript Fetch: implementation 2016-04-28 19:22:22 -04:00
Kristof Vrolijkx
a804738e8d Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-28 21:55:21 +02:00
Kristof Vrolijkx
db7a56a16f fixing sample and typscript compile. 2016-04-28 21:54:48 +02:00
Guo Huang
619e9f17a0 updated reference to use go-resty 2016-04-28 10:09:04 -07:00
diyfr
bb3dbb1d1b Confuse with maven version package (javax:javax.servlet-api &&
javax:servlet-api )
2016-04-28 15:10:39 +02:00
diyfr
4921ee8c4c Update javax-servlet-api 3.0(missing in repo maven) to 3.0.1 2016-04-28 13:57:18 +02:00
diyfr
1836f4e8c6 Generate springmvc sample petstore 2016-04-28 10:55:48 +02:00
diyfr
91a023569b Update missing dependencies ApiInfoBuilder 2016-04-28 10:50:25 +02:00
diyfr
31f5675e72 Create windows script for spring-mvc-petstore-j8-async-server sample 2016-04-28 10:37:55 +02:00
diyfr
2d0a5210db Create Windows Script for Pet Sample with springMVC 2016-04-28 10:17:44 +02:00
wing328
b5e5ea6b6e Merge pull request #2734 from achew22/javascript_closure_angular_types
Improve type checking for closure-angular
2016-04-28 15:42:45 +08:00
Andrew Z Allen
8a330e9dad Improve type checking for closure-angular
Closure angular now has more accurate type checking enabled.
2016-04-28 06:16:43 +00:00
diyfr
0de7b49046 Update jetty-version 2016-04-28 08:12:21 +02:00
Guo Huang
8caa8abfc1 added packageName in the codegen option 2016-04-27 22:47:57 -07:00
wing328
f1ba6f5598 Merge pull request #2479 from ergon/feature/update-mainline-retrofit
Update retrofit2 and retrofit2rx to use retrofit 2.0.1
2016-04-28 11:44:55 +08:00
abcsun
fbde7f88ee add parameter validation in methord call 2016-04-28 10:39:54 +08:00
Scott Williams
1674ec3799 Fix generated test directory name conflicting with sample test directory name 2016-04-27 22:53:22 +01:00
Guo Huang
3540c44e71 renamed variable 2016-04-27 14:33:04 -07:00
Guo Huang
2f8a8c05e0 Issue #2725: added condition to import json based on return type 2016-04-27 14:29:05 -07:00
Kristof Vrolijkx
fbbcdab439 fixing generation of incorrect package, typings and tsconfig 2016-04-27 23:11:39 +02:00
Scott Williams
066baf3c16 Update comments in generated unit test stubs 2016-04-27 22:02:48 +01:00
Scott Williams
f59c43dffb Issue #2276 Auto generated test stubs 2016-04-27 20:53:48 +01:00
Arne Jørgensen
5d57bb1e62 [PHP] Regenerate petstore sample 2016-04-27 21:04:06 +02:00
Arne Jørgensen
9f40a82310 [PHP] Fix ArrayAccess interface implmentation in models
The models didn't implement a generally working ArrayAccess
interface. This would fail on list container types (array).

This commit refactors some internals of the model object. The model
properties are no longer stored as separate properties on the PHP object
but as entries in a `$container` property.

This is needed to make the model work also for list containers. Besides
it avoids potential problems where the model would specify property
names that could collide with names used by the Swagger model
implementation itself (i.e. `$attributeMap`).
2016-04-27 21:00:58 +02:00
Arne Jørgensen
bbe12c1658 [PHP] Use parentSchema instead parent to detect inheritance
`parent` in a model is set not only when the model inherits from another
model but also when a parent container exists.

So We will now use `parentSchema` to check whether a parent class
exists. If si we still use `parent` to output the class name because
that has been converted to a proper model name and `parentSchema`
hasn't.
2016-04-27 21:00:58 +02:00
Arne Jørgensen
7f99469efd [PHP] Add test case testing ArrayAccess interface
Test if we implement the ArrayAccess interface correct on out model objects.
2016-04-27 21:00:58 +02:00
wing328
67b6c3f3d3 Merge pull request #2721 from fabdslv/issue-2116
Fix typo introduced while fixing #2116
2016-04-27 21:42:16 +08:00
wing328
46f049bef1 Merge pull request #2719 from wing328/add_uuid_mapping
[Python] mapped uuid to str in python
2016-04-27 21:14:00 +08:00
Fabien Da Silva
74fb6175b6 Fix typo introduced while fixing #2116 2016-04-27 13:25:33 +02:00
Jean-Michel Douliez
4b39e0579f returning non nil potentially void dictionary 2016-04-27 12:16:44 +02:00
wing328
0244c62b47 Merge pull request #2718 from neilotoole/issue-2717
issue #2717 - go code won't compile due to not respecting packageName variable
2016-04-27 17:55:59 +08:00
diyfr
adf0833527 Update swaggerConfig.mustache with springfox-code-2.4.0
ApiInfo have a Builder in springfox version 2.4.0 
see springfox.documentation.builders.ApiInfoBuilder
nota String contact is deprecated use springfox.documentation.service (String name, String url, String email)
2016-04-27 11:41:34 +02:00
diyfr
c503396a42 Update Dependacies
Update to Springfox 2.4 and maven war plugin to 2.6
2016-04-27 11:39:30 +02:00
wing328
87c6566bd0 mapped uuid to str in python 2016-04-27 17:37:44 +08:00
wing328
59f9849ca0 Merge pull request #2716 from wing328/better_naming_pattern_function
Renmae toJSONSchemaPattern to toRegularExpression
2016-04-27 16:39:34 +08:00
Neil O'Toole
8753faf2a5 issue #2717 - go code won't compile due to not respecting packageName var 2016-04-27 09:19:23 +01:00
wing328
4d3f82e701 renmae toJSONSchemaPattern to toRegularExpression 2016-04-27 16:09:53 +08:00
Silvio Heuberger
39c08b2cfc Regenrate samples after updating the libraries in pom and build.gradle mustache 2016-04-27 10:03:45 +02:00
Silvio Heuberger
21b39e24af Update libraries to the newest stable version 2016-04-27 10:01:56 +02:00
wing328
3289933405 Merge pull request #2708 from PagerDuty/ruby-model-boolean-fix
Fix ruby model Boolean Attributes not being set
2016-04-27 13:46:21 +08:00
wing328
d9e4d5ccd1 Merge pull request #2637 from fabdslv/issue-2116
[Swift] Force required attrs to be defined with unwrapRequired
2016-04-27 13:32:41 +08:00
wing328
3ea3f9f0bf Merge pull request #2712 from neilotoole/issue-2711-equals-hashcode
issue #2711 adding equals, hashcode etc to model classes
2016-04-27 13:17:40 +08:00
wing328
1169abac2e Merge pull request #2707 from wing328/qt5_date
[Qt5][C++] fix date mapping in qt5cpp
2016-04-27 10:33:14 +08:00
Neil O'Toole
dab2b13df1 issue #2711 adding equals, hashcode etc to model classes 2016-04-27 01:32:02 +01:00
Jean-Michel Douliez
09a0222308 accepting non nil potentially void dictionary 2016-04-26 19:31:07 +02:00
Brian Hou
1361bb7c0b Fix ruby model boolean attributes 2016-04-26 10:21:16 -07:00
wing328
2b71165584 fix date mapping in qt5cpp 2016-04-27 00:06:29 +08:00
wing328
07d2374320 Merge pull request #2699 from mateuszmackowiak/feature/obj/jsonModel_deserialization_errors
#1907 JsonModel deserialization errors
2016-04-26 21:20:50 +08:00
Silvio Heuberger
4b3dad7fb0 Fix pom.mustache of retrofit2 client lib 2016-04-26 14:24:47 +02:00
Silvio Heuberger
a3701cd81c Update retrofit2 and retrofit2rx to use retrofit 2.0.1 2016-04-26 14:24:47 +02:00
Jean-Michel Douliez
8f0bd7301f Update api.mustache 2016-04-26 14:12:58 +02:00
Fabien Da Silva
bf71b51f9b [Swift] Enum parameters are now handled
Fix #2531
2016-04-26 12:31:08 +02:00
wing328
47242c510d Merge pull request #2697 from wing328/ruby_parameter_validation
[Ruby] Add parameter validation in method call
2016-04-26 14:06:01 +08:00
Kristof Vrolijkx
c91f23c2ca adding extra nodeClientOptions 2016-04-25 23:00:48 +02:00
Mateusz Mackowiak
18783e3fc7 #1907 JsonModel deserialization errors 2016-04-25 19:04:00 +02:00
Fabien Da Silva
dc4c8e5864 [Swift] Force required attrs to be defined with unwrapRequired
Fix #2116
Removal of forced unwrapping, replaced by required attributes in constructor
2016-04-25 18:36:32 +02:00
wing328
875414ff64 add new ruby files 2016-04-26 00:32:01 +08:00
wing328
354449ebfe add validation to method parameters 2016-04-26 00:06:44 +08:00
wing328
89703d86b7 add hasValidation to codegenParameter 2016-04-25 22:45:45 +08:00
wing328
0792ddc9b4 Merge pull request #2695 from wing328/model-min-max-pattern
[Ruby] Add more validation rules to Ruby models
2016-04-25 22:41:19 +08:00
wing328
4854b79a31 add pattern check to ruby model 2016-04-25 22:23:23 +08:00
wing328
0e58265eb5 use instance variable in validation rule 2016-04-25 21:52:37 +08:00
wing328
82ee716f53 Merge pull request #2692 from guohuang/apiclient_update
Rewrite Api_Client.go to use resty api
2016-04-25 21:34:39 +08:00
wing328
e17a620506 add methods to validate the ruby object 2016-04-25 19:18:05 +08:00
wing328
3c36f1df37 use ArgumentError in ruby model 2016-04-25 17:45:32 +08:00
wing328
ab986a7228 add more validation test for ruby model 2016-04-25 17:36:32 +08:00
wing328
e143c6cd2f add validation to ruby model 2016-04-25 17:07:42 +08:00
Kristof Vrolijkx
28f444e808 start adding packaging info to nodejs client. 2016-04-25 08:08:19 +02:00
Guo Huang
7599dcb112 changed Api to API based on golang's convention 2016-04-24 21:10:32 -07:00
Guo Huang
9f0ac5df82 added missing model api response md 2016-04-24 15:52:26 -07:00
Guo Huang
ea445c1e28 added missing file 2016-04-24 15:44:52 -07:00
wing328
d225da082c Merge pull request #2691 from wing328/add_required_optional_vars
Add requiredVars and optionalVars for codegen model
2016-04-24 21:21:34 +08:00
wing328
ef9c9bc267 Merge pull request #2693 from wing328/groovy_codegen
[Groovy] add back the Groovy code generator
2016-04-24 19:14:38 +08:00
Kristof Vrolijkx
4ad7ea6556 Updating sample and scripts 2016-04-24 11:21:31 +02:00
wing328
fb883e5f03 add back groovy code generator 2016-04-24 16:33:15 +08:00
Guo Huang
1de18eb074 added implementation of the new ApiResponse struct 2016-04-23 17:50:17 -07:00
Guo Huang
7df5c8ffbf added model ApiResponse, moved ApiResponse parameter 2016-04-23 16:41:14 -07:00
Guo Huang
e7df5f9551 fixed multiple import mapping issue 2016-04-23 09:52:17 -07:00
wing328
a281afaebf add requiredVars and optionalVars for codegen model 2016-04-23 22:48:24 +08:00
wing328
5a6fb39aa5 Merge pull request #2689 from wing328/bug/fix_2688
[General] Better handle of example value
2016-04-23 18:13:43 +08:00
wing328
f1d75f46cf fix #2688 2016-04-23 16:49:52 +08:00
wing328
5602cb6db8 Merge pull request #2676 from Vrolijkx/master
Typescript angular2 client can be published to npm
2016-04-23 14:58:28 +08:00
wing328
f127bbe891 Merge pull request #2685 from wing328/java_client_update
[Java] update maven and gradle version for Java api client
2016-04-23 13:51:49 +08:00
wing328
1ca246c4c8 update java version in pom for java api client 2016-04-23 12:59:36 +08:00
Tony Tam
bae870072c Merge pull request #2686 from skirkpatrick/update_maven_java_version
[Java] Update Java version to 1.7 in generated pom
2016-04-22 13:24:43 -07:00
Scott Kirkpatrick
bf35d57178 Update Java version to 1.7 in generated pom
This fixes #2607 and brings the Java version in the generated pom
to match the version in the generated build.gradle.
2016-04-22 11:47:34 -07:00
wing328
8c27f296fb update maven and gradle version for java api client 2016-04-22 23:13:12 +08:00
wing328
aa6d0cc9e4 Merge pull request #2681 from swagger-api/revert-2679-revert-2435-java-docs
[Java] Add auto-generated documentation in Markdown to Java clients
2016-04-22 20:31:07 +08:00
wing328
ebab222c63 add new file for jaxrs resteasy 2016-04-22 19:56:01 +08:00
wing328
7419d8634b update jaxrs and jaxrs-resteasy petstore sample 2016-04-22 19:34:48 +08:00
wing328
920dbb2183 regenerate petstore sample for springmv 2016-04-22 17:55:02 +08:00
wing328
2f365b0a16 add new model file 2016-04-22 17:38:00 +08:00
wing328
a63dbeb4c8 fix bug related to api, model doc for java server generator 2016-04-22 17:05:22 +08:00
wing328
fb04bb7d4d Revert "Revert "[Java] Add auto-generated documentation in Markdown to Java clients"" 2016-04-22 10:13:54 +08:00
wing328
8d88cd3709 Merge pull request #2679 from swagger-api/revert-2435-java-docs
Revert "[Java] Add auto-generated documentation in Markdown to Java clients"
2016-04-22 00:23:53 +08:00
wing328
c171356d24 Revert "[Java] Add auto-generated documentation in Markdown to Java clients" 2016-04-22 00:21:04 +08:00
wing328
b847838a0c Merge pull request #2655 from kolyjjj/issue2621
include underscore when generating nodejs controller and service method
2016-04-21 23:35:17 +08:00
wing328
bb54f8a39e Merge pull request #2674 from cjolif/int64
Make sure to convert Int32/Int64 to NSNumber. fixes #2669.
2016-04-21 22:20:15 +08:00
Kristof Vrolijkx
4c1c67cf2b Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-21 15:52:56 +02:00
Kristof Vrolijkx
9195e92023 using all config properties and adding extra space to package.mustache. 2016-04-21 15:52:43 +02:00
Kristof Vrolijkx
e118fddb47 generation of package.json and compilation files 2016-04-21 15:43:53 +02:00
wing328
a1a990804e Merge pull request #2671 from andriydruk/android_equals_hashcode_fix
[Android] fix equals and hashCode
2016-04-21 20:58:31 +08:00
Christophe Jolif
762d4d6c78 Make sure to convert Int32/Int64 to NSNumber. fixes #2669. 2016-04-21 14:01:16 +02:00
Kristof Vrolijkx
a75b0251c4 Starting addition of full npm package generation 2016-04-21 13:43:51 +02:00
wing328
522fb3a1ed Merge pull request #2435 from xhh/java-docs
[Java] Add auto-generated documentation in Markdown to Java clients
2016-04-21 19:05:40 +08:00
xhh
ace9fc2ccc Merge branch 'master' into java-docs 2016-04-21 18:35:27 +08:00
xhh
f8489c1fcf Fix typo, regenerate Java petstore clients 2016-04-21 18:34:00 +08:00
Andriy Druk
7888205657 fix equals and hashcode for Android 2016-04-21 13:28:04 +03:00
wing328
82a0f142e0 Merge pull request #2670 from wing328/csharp_fix_constructor2
[C#] fix constructor for readonly property and remove trailing space
2016-04-21 18:25:57 +08:00
xhh
ad258a34cc Fix test cases for Java petstore clients 2016-04-21 18:14:11 +08:00
wing328
c4b32f24cf remove trailing space 2016-04-21 17:23:36 +08:00
wing328
6075f078b6 minor fix to constructor 2016-04-21 17:18:44 +08:00
wing328
aea6697abd Merge pull request #2661 from wing328/python_fix_property
[Python] add property as a reserved word
2016-04-21 15:16:40 +08:00
wing328
a54720a586 fix typo 2016-04-21 14:36:17 +08:00
wing328
7eebf17f58 add getting started section 2016-04-21 14:34:48 +08:00
Guo Huang
e555b3ad34 added debug setter and getter in Go configuration 2016-04-20 22:36:32 -07:00
Guo Huang
a2002d9148 added fileName parameter for upload method 2016-04-20 21:30:05 -07:00
Guo Huang
7636a772c6 fixed file upload issue 2016-04-20 13:49:02 -07:00
Guo Huang
10c7c41e82 added config to allow client to see debug log 2016-04-20 12:54:05 -07:00
Guo Huang
287f3ff20b fixed io/ioutil import issue, fixed param casing issue 2016-04-20 12:27:22 -07:00
wing328
8eb3f8a448 fix python property name 2016-04-20 22:12:09 +08:00
kolyjjj
8b9c8d64d9 add method doc 2016-04-20 22:07:59 +08:00
Kristof Vrolijkx
26c8eb1068 some small import fixes 2016-04-20 16:07:02 +02:00
wing328
56ac576a18 Merge pull request #2658 from wing328/php_lumen
[PHP] Add PHP Lumen generator
2016-04-20 21:21:34 +08:00
abcsun
2a67161a3d move the lumen generator to corresponding folder 2016-04-20 20:57:04 +08:00
abcsun
8866403629 remove the output folder 2016-04-20 20:56:59 +08:00
abcsun
1b71597e84 update the routes.mustache 2016-04-20 20:56:30 +08:00
abcsun
a037af1b72 add route.mustache 2016-04-20 20:56:21 +08:00
abcsun
a92ac4537e init lumen 5.2 2016-04-20 20:56:13 +08:00
wing328
cd2c624020 Merge pull request #2656 from wing328/ruby_gemspec_improve
[Ruby] add default value to gem spec
2016-04-20 20:20:13 +08:00
wing328
37600e1172 add default value to gem spec 2016-04-20 18:49:29 +08:00
kolyjjj
fe704eee1f include underscore when generating nodejs controller and service method 2016-04-20 18:32:14 +08:00
Kristof Vrolijkx
1825a467d8 Adding an index file and avoiding the use of the model.d.ts files because typescript doesn't compile it correctly. 2016-04-20 11:10:29 +02:00
wing328
2af29fa831 Merge pull request #2651 from wing328/swift_petstore_cleanup
[Swift] update Petstore sample for Swift
2016-04-20 16:39:33 +08:00
wing328
1178d31d1f update petstore sample 2016-04-20 15:57:18 +08:00
wing328
bc5c83af3b Merge pull request #2511 from oskarcarlstedt/master
Fixing broken enumeration swagger/json types for JaxRS-CXF templates.
2016-04-20 14:19:57 +08:00
Guo Huang
edfc4f88e1 formatted api_client code, grouped public function 2016-04-19 21:02:22 -07:00
wing328
bf15b2a43b Merge pull request #2650 from scottrw93/update-req-versions
Update required packages to latest stable version
2016-04-20 11:33:33 +08:00
wing328
e8f7af8985 Merge pull request #2647 from wing328/ruby_version_upgrade
[Ruby] update gem spec
2016-04-20 11:21:26 +08:00
wing328
34e075cfe2 Merge pull request #2649 from arnested/php-composer-update
[PHP] Update PHP dependencies
2016-04-20 10:47:36 +08:00
Guo Huang
0e3bb2c23e added more tests functions, clean up generated code 2016-04-19 15:48:34 -07:00
Guo Huang
9cf6eb4d8b added ApiResponse to all api calls 2016-04-19 15:18:13 -07:00
Scott Williams
79bbab04ec Update required packages to latest stable version 2016-04-19 21:17:43 +01:00
Guo Huang
611b711a7e clean up generated code, added delete pet test 2016-04-19 12:52:51 -07:00
Arne Jørgensen
ecfb71a0df [PHP] Regenerated petstore sample 2016-04-19 21:32:11 +02:00
Arne Jørgensen
357cb70795 [PHP] Update PHP dependencies
Updated minimum supported PHP version to 5.4.

Updated development requirements to newest versions supporting PHP 5.4.
2016-04-19 21:30:00 +02:00
Guo Huang
fe1afc35e6 Removed fileParams as the file content will be posted via postBody, fixed file upload issue 2016-04-19 11:46:57 -07:00
wing328
ccc52c2554 update gem spec 2016-04-19 23:41:26 +08:00
wing328
25ccb250cc Merge pull request #2645 from Vrolijkx/master
Typescript angular2 client
2016-04-19 21:16:03 +08:00
xhh
a3f57d6cbd Escape model name in Java okhttp-gson client 2016-04-19 20:29:49 +08:00
xhh
f10d4c8e23 Merge branch 'master' into java-docs
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	samples/client/petstore/java/default/pom.xml
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Animal.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Cat.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Dog.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Cat.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Dog.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Name.java
2016-04-19 20:19:10 +08:00
Kristof Vrolijkx
dcad308f53 #1809 added typescript-angular2-petstore.sh to all all-petstore.sh 2016-04-19 14:16:38 +02:00
Kristof Vrolijkx
a69757ad73 #1809 adding samples with .sh and .bat scripts 2016-04-19 14:13:16 +02:00
Kristof Vrolijkx
d2510b6593 #1809 replacing JSOG with JSON which is provided by the browser. 2016-04-19 13:25:28 +02:00
Kristof Vrolijkx
c3dfa5dbab #1809 resolve casing conflict part2 2016-04-19 13:00:38 +02:00
Kristof Vrolijkx
e94c433874 #1809 resolve casing conflict part1 2016-04-19 13:00:18 +02:00
Kristof Vrolijkx
034c1fbb21 #1809 resolve casing conflict part1 2016-04-19 12:59:23 +02:00
Kristof Vrolijkx
13cd2af105 Revert: #1809 changing the poms 2016-04-19 11:57:55 +02:00
Kristof Vrolijkx
c54bceffe3 #1809 Some small template changes. 2016-04-19 11:56:29 +02:00
Kristof Vrolijkx
f4fc88c6be #1809 Adding basic angular2 typescript codegen. 2016-04-19 11:02:36 +02:00
wing328
3332692d30 Merge pull request #2634 from yonaskolb/swift_enum_type
Append reserved swift enum type with "Enum"
2016-04-19 16:38:06 +08:00
wing328
75001f4ead Merge pull request #2635 from wing328/template_folder_exception
Add exception handling for template directory that does not exist
2016-04-19 16:28:24 +08:00
wing328
894111e3de Merge pull request #2633 from yonaskolb/swift_case_sensitive_reserved_types
Make swift reserved words case sensitive again
2016-04-19 16:27:49 +08:00
wing328
8b3feda0ba Merge pull request #2642 from yonaskolb/unescaped_operation_description
add unescapedNotes to CodegenOperation
2016-04-19 16:25:10 +08:00
Guo Huang
d0123f40b7 fixed go reflection type checking issue 2016-04-18 23:30:30 -07:00
Guo Huang
b57d27d3fc added isFile logic to generate file parameters 2016-04-18 23:15:26 -07:00
Guo Huang
2fcda964ad added ParameterToString method to handle string array issue 2016-04-18 23:06:18 -07:00
wing328
206657d0d9 Merge pull request #2639 from arnested/feature/php-test-fix
[PHP] Fix class name in test cases
2016-04-19 10:55:27 +08:00
Yonas Kolb
2ccb7a38f9 add unescapedNotes to CodegenOperation 2016-04-19 11:42:33 +10:00
Guo Huang
af19a70f72 updated api_client.go to ensure there is value before setting the request 2016-04-18 17:09:47 -07:00
Yonas Kolb
491ceb8987 improve line indentation 2016-04-19 10:04:11 +10:00
Guo Huang
36219a00e9 fix go build errors after upgrading to the new api client 2016-04-18 14:38:11 -07:00
Tony Tam
35ef2324e0 Merge pull request #2638 from pqrkchqps/patch-1
Update README.md
2016-04-18 13:44:37 -07:00
Arne Jørgensen
dcccfa4b99 Fix class name in test cases 2016-04-18 22:10:35 +02:00
John
2efb439f2e Update README.md
Adding a company to the list of companies using swagger.
2016-04-18 13:53:14 -05:00
wing328
a069ea1435 add http://developer.mypurecloud.com/ 2016-04-18 22:15:50 +08:00
wing328
89e150cfb2 remove unused import 2016-04-18 16:55:34 +08:00
wing328
e7388891e1 add exception handling for template dir that does not exist 2016-04-18 16:51:47 +08:00
Guo Huang
8b896a2353 updated api.mustache to call the api client http request 2016-04-17 23:45:23 -07:00
Yonas Kolb
3de7a4ba85 Append reserved swift enum type with "Enum" 2016-04-18 15:24:37 +10:00
Yonas Kolb
074ecf23e1 make reserved word checking case sensitive 2016-04-18 14:27:26 +10:00
Yonas Kolb
c87e6d6f41 Merge branch 'master' into swift_case_sensitive_reserved_types
# Conflicts:
#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwiftCodegen.java
2016-04-18 14:22:27 +10:00
Yonas Kolb
f1503e2150 make swift reserved words case sensitive again 2016-04-18 13:55:12 +10:00
Guo Huang
87f9ff189a Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into apiclient_update
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/api.mustache
2016-04-17 20:41:07 -07:00
Guo Huang
c0292564ee updated api.mustache to use the new api client 2016-04-17 20:37:19 -07:00
wing328
c375f2fed5 Merge pull request #2629 from yonaskolb/param_unescape
Add unescaped Parameter description
2016-04-18 11:18:22 +08:00
wing328
40fd362467 Merge pull request #2632 from wing328/csharp_doc_enhance
[C#] update csharp doc with minor enhancements and bug fixes
2016-04-18 10:27:01 +08:00
wing328
cbccee9c39 update csharp doc with minor enhancements and bug fixes 2016-04-18 00:19:16 +08:00
wing328
8c0cff57ba Merge pull request #2595 from KevinGlinski/csharpdoc
[CSharp] Add auto-generated CSharp documentation in Markdown
2016-04-17 22:47:02 +08:00
wing328
5a06fc2119 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-17 17:52:45 +08:00
wing328
256d96684f Merge branch 'kolyjjj-issue2374' 2016-04-17 17:52:15 +08:00
wing328
00aaf57f55 update springmvc sample 2016-04-17 17:51:22 +08:00
wing328
a0b429d690 Merge branch 'issue2374' of https://github.com/kolyjjj/swagger-codegen into kolyjjj-issue2374
Conflicts:
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiException.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiOriginFilter.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiResponseMessage.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/NotFoundException.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/PetApi.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/StoreApi.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/UserApi.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/SwaggerConfig.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/SwaggerUiConfiguration.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/WebApplication.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/WebMvcConfiguration.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/ApiResponse.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Category.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Order.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Pet.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Tag.java
	samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/User.java
2016-04-17 17:47:58 +08:00
wing328
3c14fca9ea Merge pull request #2628 from wing328/go_enhancement
[Go] update test cases
2016-04-17 17:22:51 +08:00
Yonas Kolb
9e19114c15 unescape parameter description 2016-04-17 19:11:04 +10:00
wing328
e612870e89 add new files 2016-04-17 17:10:28 +08:00
wing328
70e42cb0db add new go files 2016-04-17 17:10:10 +08:00
wing328
23a9f069d7 remove go from pom.xml 2016-04-17 16:59:23 +08:00
wing328
993d121e35 update go test, update pom 2016-04-17 16:41:35 +08:00
wing328
8d450a29da Merge pull request #2608 from guohuang/issue2359
issue#2359: added README document generation for Go
2016-04-17 16:14:59 +08:00
wing328
3191eb3234 Merge branch 'guohuang-bug' 2016-04-17 16:09:45 +08:00
wing328
9257c94985 Merge branch 'bug' of https://github.com/guohuang/swagger-codegen into guohuang-bug 2016-04-17 16:09:27 +08:00
wing328
e9f6b706d9 Merge branch 'guohuang-issue2611' 2016-04-17 16:02:19 +08:00
wing328
8af6903757 Merge branch 'issue2611' of https://github.com/guohuang/swagger-codegen into guohuang-issue2611
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
	samples/client/petstore/go/pet_api_test.go
2016-04-17 16:02:12 +08:00
wing328
48a42358f0 Merge pull request #2627 from guohuang/remove_package_name
Removed "packageName" folder for easy installation
2016-04-17 15:58:49 +08:00
Guo Huang
3118f932c8 added CallApiAsync method in api_client 2016-04-16 22:58:13 -07:00
Guo Huang
85d30191df fixed go build issue after removing swagger folder 2016-04-16 22:22:23 -07:00
Guo Huang
81a39990f4 Removed "packageName" folder for easy installation 2016-04-16 17:00:46 -07:00
Guo Huang
d72b501e40 added required parameters validation for Go 2016-04-16 16:43:04 -07:00
Guo Huang
a8273b9f08 changed code to use pacageVersion, removed unneeded comments 2016-04-16 15:47:34 -07:00
Guo Huang
c458834652 updated pom file, temporary disable unit test errors 2016-04-16 15:37:49 -07:00
wing328
49337a2326 Merge pull request #2623 from wing328/update_petstore_json
Restore petstore.json from petstore.yaml
2016-04-17 04:03:38 +08:00
wing328
5f6cc62802 fix test case 2016-04-17 03:51:38 +08:00
wing328
a3c6d3af5e restore petstore.json from petstore.yaml 2016-04-17 03:25:12 +08:00
wing328
bb8db88b95 Merge pull request #2620 from wing328/petstore_json_restore
Update shell script to use petstore.yaml instead of petstore.json
2016-04-16 19:17:07 +08:00
wing328
8e85476cbb add new fles 2016-04-16 18:19:23 +08:00
wing328
e62ba9b35d update qt5cpp and tizen sample 2016-04-16 18:16:42 +08:00
wing328
1d5a0e5b33 update sample for JS closure angular 2016-04-16 18:11:40 +08:00
wing328
7d0c963469 update sample for html, flash 2016-04-16 17:51:12 +08:00
wing328
1fb3edc612 update akka-scala petstore, minor fix 2016-04-16 17:49:34 +08:00
wing328
8b45d88b93 Merge pull request #2322 from gibiansky/better-haskell-servant
Improve Haskell Code Generation
2016-04-16 17:26:52 +08:00
wing328
4b4b62b1a3 Merge pull request #2613 from tomekc/swift-validate-response
[swift] Check server response and fail request in case of non-2xx response
2016-04-16 16:36:25 +08:00
Guo Huang
69150883c1 added pom.mustache to generate pom.xml 2016-04-15 14:57:47 -07:00
Guo Huang
7f4aa6f1fc issue#2611: added pom.xml for building Go 2016-04-15 10:53:23 -07:00
wing328
bb8af3da73 Merge pull request #2614 from wing328/bug/fix_requiredParamCount
Bug fix for requiredParamCount
2016-04-16 01:36:14 +08:00
wing328
15971eda2e update test case for scala 2016-04-16 01:14:52 +08:00
wing328
0b42b533d9 add new files 2016-04-16 00:44:36 +08:00
wing328
79decc53a1 fix requireParameterCount in scala 2016-04-16 00:09:15 +08:00
wing328
c317f99466 fix required parameter in scala api client 2016-04-15 23:08:16 +08:00
wing328
87e542c69c replace requiredParam with reuqired 2016-04-15 22:54:46 +08:00
Tomek Cejner
1fa5c73dcc [swift] Validate response; return error in case if non 2xx status. 2016-04-15 16:45:35 +02:00
wing328
35144b2c1d Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-15 22:06:09 +08:00
wing328
51d254973a Merge pull request #2573 from hcwilhelm/replace-requiredParamCount
replaced requiredParamCount with allParams
2016-04-15 22:04:45 +08:00
wing328
c284e628fd Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-15 21:44:58 +08:00
wing328
907664fb6e Merge pull request #2612 from wing328/server_use_petstore_yaml
Update server generator to use swagger.yaml instead of swagger.json
2016-04-15 20:49:52 +08:00
wing328
c575b3f498 Merge pull request #2587 from fabdslv/issue-2451
[Java + Android] Update dependencies and generate samples
2016-04-15 20:34:06 +08:00
wing328
b58ed4822d add new file in jaxrs resteasy 2016-04-15 20:29:30 +08:00
wing328
ea6210fe52 revert to git commit -m 4d85314fea 2016-04-15 20:29:01 +08:00
wing328
4b730564e3 new file in jaxrs resteasy 2016-04-15 20:26:15 +08:00
wing328
ce6b70a873 update springmvc bin to use petstore.yaml 2016-04-15 20:07:00 +08:00
wing328
c93fcc2643 update php, nodejs, scalatra server for petstore 2016-04-15 20:05:45 +08:00
wing328
400cc9e6f9 update sample for jaxrs 2016-04-15 18:18:18 +08:00
wing328
d64751958e update sample for some server generators 2016-04-15 17:55:40 +08:00
wing328
0982afbca0 update server generator to use petstore.yaml 2016-04-15 17:42:18 +08:00
wing328
4d85314fea Merge pull request #2606 from wing328/spring-mvc-request-header
[Java][SpringMVC] To fix header parameter annotation using baseName
2016-04-15 16:40:11 +08:00
wing328
81623777c7 Merge pull request #2609 from guohuang/issue2543
issue#2543: added api_client to set content-type and accept for http request
2016-04-15 16:38:47 +08:00
Guo Huang
11f90de808 issue#2543: added api_client to set content-type and accept for http request 2016-04-14 16:11:14 -07:00
Guo Huang
5fad90c3f6 issue#2359: added README document generation for Go 2016-04-14 14:10:15 -07:00
Kevin Glinski
96bf984fcf fixing module names 2016-04-14 13:23:33 -04:00
wing328
7da2893e0e to fix #2585 2016-04-15 00:42:59 +08:00
kolyjjj
ed164a77bd [issue-2374][koly] generated the spring mvc sample 2016-04-14 23:25:43 +08:00
kolyjjj
03c4e5170f [issue-2374][koly] use petstore.yaml instead of petstore.json, the latter contains data only for test 2016-04-14 23:17:33 +08:00
kolyjjj
c6068dcd9b [issue-2374][koly] use three brackets to unescape variables 2016-04-14 22:20:00 +08:00
kolyjjj
4b6aec0d6f merge 2016-04-14 21:51:01 +08:00
kolyjjj
4b7233063c [issue-2374][koly] add return class in @apiresponse and use java languageSpecificPrimitives in super class 2016-04-14 21:32:52 +08:00
Kevin Glinski
f02ee42594 merge from upstream 2016-04-14 08:35:05 -04:00
Kevin Glinski
2beeabb33a fixing typeos 2016-04-14 08:22:56 -04:00
Kevin Glinski
a7a39ab08b adding readme text and nav links 2016-04-14 08:18:55 -04:00
wing328
4f84c7d3bc Merge pull request #2583 from cjolif/nilasdefault
make sure user is not forced to pass nil for optional parameters
2016-04-14 19:23:24 +08:00
wing328
aff2eab055 Merge pull request #2601 from wing328/python_update_spec
[Python] update python to use test spec
2016-04-14 18:59:13 +08:00
wing328
5a88b9e896 update python to use test spec 2016-04-14 18:30:54 +08:00
wing328
d260604d34 Merge pull request #2574 from pixelshaded/feature/HandleFalseyParams
[Typescript-Node] Verify required parameter is not undefined instead of falsey.
2016-04-14 17:52:38 +08:00
wing328
09af45c20f Merge pull request #2513 from jaz-ah/issue/2512
[Android] fix issue 2512: crash w/ NPE when dereferencing networkStatus which c…
2016-04-14 17:11:18 +08:00
wing328
261fa26b1e Merge pull request #2597 from wing328/petstore_test_spec
[C#][Perl][Ruby][PHP] update Petstore spec
2016-04-14 16:49:22 +08:00
wing328
31120590f5 regenerate csharp sample 2016-04-14 16:30:22 +08:00
wing328
5d4c68b98a new ruby file 2016-04-14 16:24:06 +08:00
wing328
f4e69597e5 fix typo 2016-04-14 16:24:06 +08:00
wing328
5c632e9862 update csharp test case to use another petstore spec 2016-04-14 16:24:06 +08:00
wing328
aa04bbb92e update pet store test case for perl after switching spec 2016-04-14 16:19:39 +08:00
wing328
8f70230906 update ruby test case 2016-04-14 16:19:39 +08:00
wing328
d19ed8a89b fix php test cases with petstore test yaml 2016-04-14 16:19:38 +08:00
wing328
1b10a513ff Merge pull request #2594 from guohuang/issue2589
issue#2589: added fully qualified names memory stream for C#
2016-04-14 15:54:46 +08:00
Joseph Zuromski
7bbe4404d7 fix regression introduced in commit 00c97c8ff6 2016-04-14 00:44:30 -07:00
wing328
a5a75db2cf Merge pull request #2598 from wing328/go_update_sample
[Go] regenerate go sample, rename configuration.go
2016-04-14 15:44:28 +08:00
wing328
c702a6aaa4 regenerate go sample, rename configuration.go 2016-04-14 15:15:19 +08:00
Joseph Zuromski
d9cee4c269 update samples 2016-04-14 00:00:22 -07:00
wing328
c880928519 Merge pull request #2596 from jaz-ah/swift/spacing
[Swift] minor spacing cleanup in Models.mustache
2016-04-14 14:55:02 +08:00
Joseph Zuromski
8331aac869 Merge branch 'master' into issue/2512 2016-04-13 23:37:45 -07:00
Joseph Zuromski
86a7637010 [Swift] minor spacing cleanup in Models.mustache 2016-04-13 23:36:16 -07:00
wing328
994a77573d Merge pull request #2592 from guohuang/issue2582
issue#2582: change go api file name to snake case
2016-04-14 14:35:59 +08:00
wing328
cf4e01e4dd Merge pull request #2591 from neilotoole/issue-2564-export-params-vendor
Issue #2564 : Query structs now export their fields
2016-04-14 14:15:08 +08:00
Guo Huang
35fbb3e53a updated csharp project to use System.IO.Stream instead of Stream to avoid namespace issue 2016-04-13 22:44:00 -07:00
Guo Huang
ad1bb22661 fixed model file name to be snake case 2016-04-13 22:26:03 -07:00
wing328
50eacbe95f Merge pull request #2593 from guohuang/issue2579
isssue#2579: added "UserAgent" in configuration
2016-04-14 12:46:39 +08:00
Guo Huang
a11a4541db changed code to use packageVersion instead of version 2016-04-13 21:12:02 -07:00
wing328
4e49183fe0 Merge pull request #2590 from guohuang/bug
added import tests for Go
2016-04-14 12:01:39 +08:00
Kevin Glinski
67fe023efb fixing typeo 2016-04-13 21:52:59 -04:00
Kevin Glinski
ffff0ab535 adding csharp documentation 2016-04-13 21:50:35 -04:00
Guo Huang
2dca8b003d issue#2589: added fully qualified names memory stream for C# 2016-04-13 16:56:36 -07:00
Guo Huang
b02a88f0eb fixed httpUserAgent not populating value issue 2016-04-13 16:26:10 -07:00
Guo Huang
1f085ccd52 isssue#2579: added "UserAgen" in configuration 2016-04-13 16:08:14 -07:00
Guo Huang
eb7d3dfe15 issue#2582: change go api file name to snake case 2016-04-13 15:40:11 -07:00
Neil O'Toole
2f3897f6d5 Issue #2564 : Query structs now export their fields 2016-04-13 16:05:03 -06:00
Guo Huang
13e56514ee added import tests for Go 2016-04-13 14:03:19 -07:00
Fabien Da Silva
06f6bcb57d [Java + Android] Update generated samples 2016-04-13 17:28:11 +02:00
Fabien Da Silva
4f8bbea660 [Android] Update build.gradle and pom.xml in Java libraries
Fix #2451
2016-04-13 14:39:20 +02:00
Christophe Jolif
fca0d0f0f7 make sure user is not forced to pass nil for optional parameters 2016-04-13 11:14:48 +02:00
wing328
3aeef74dd0 add link to wiki, faq 2016-04-13 15:57:02 +08:00
wing328
410723d23b Merge pull request #2577 from guohuang/issue2569
issue #2569: added model tests for Go
2016-04-13 15:43:33 +08:00
wing328
b1077f9684 Merge pull request #2580 from wing328/flask_optional_argument
[Python][Flask] add optional argument to flask controller
2016-04-13 15:41:41 +08:00
wing328
668dccfbcf Merge pull request #2581 from guohuang/bug
Removed local variable declaration in Go
2016-04-13 13:58:53 +08:00
Guo Huang
2a2f8b1338 removed local variable declaration in Go 2016-04-12 20:50:58 -07:00
wing328
03b7af092b add optional argument to flask controller 2016-04-13 11:42:02 +08:00
Guo Huang
579e356e5b removed unneeded test fields 2016-04-12 20:38:19 -07:00
wing328
63977a2093 Merge pull request #2578 from guohuang/issue2535
remove unneeded function line
2016-04-13 11:23:59 +08:00
Guo Huang
6b92362735 remove unneeded function line 2016-04-12 20:20:32 -07:00
wing328
acdccdb4cb Merge pull request #2567 from guohuang/issue2535
issue #2535, added authentication header for GO
2016-04-13 09:38:26 +08:00
wing328
01ad3c3d3a Merge pull request #2563 from neilotoole/issue-2561-post-process-params
Issue #2561 : set isXYZParam flags before postProcessParameter [updated]
2016-04-13 09:02:58 +08:00
Guo Huang
b4bc0be0cb fixed all model test errors 2016-04-12 17:05:01 -07:00
Guo Huang
68f4113429 issue #2569: added model tests for Go 2016-04-12 16:07:09 -07:00
Guo Huang
930756a76a added missing ")" for api key 2016-04-12 09:21:08 -07:00
Alexander Fisher
da5a15b8e5 Favor explicit check for null or undefined for clarity sake. 2016-04-12 11:28:47 -04:00
Alexander Fisher
0ad7e715c4 Update error message to be clear on exact problem. 2016-04-12 11:18:23 -04:00
Alexander Fisher
60f830ccf2 Use loose equality check on null so that we throw not only on undefined params but also null ones. 2016-04-12 11:13:37 -04:00
Alexander Fisher
f20605d90e Verify parameter is not undefined instead of falsey. 2016-04-12 08:56:28 -04:00
hcwilhelm
be0efa3b25 replayced requiredParamCount with allParams 2016-04-12 14:39:28 +02:00
wing328
cd91f457bf Merge pull request #2571 from wing328/objc-docstring
[ObjC] update docstring in ObjC API header files
2016-04-12 16:02:39 +08:00
wing328
221e6ad57a Merge pull request #2570 from wing328/fix_indention
Fix indention in the generated code
2016-04-12 16:00:18 +08:00
wing328
feee8de4be udpate docstring in objc 2016-04-12 15:33:40 +08:00
wing328
b26cd66651 Merge pull request #2560 from wing328/flask_python2
[Python][Flask] add support for python2
2016-04-12 15:02:43 +08:00
wing328
16a20f6194 update perl indention 2016-04-12 14:51:18 +08:00
Guo Huang
6154619924 updated code to use query struct 2016-04-11 23:28:06 -07:00
Guo Huang
4e6ff1a567 added api prefix for authentication 2016-04-11 22:25:02 -07:00
wing328
b34c9dd7ee fix indention in c# 2016-04-12 12:42:09 +08:00
Guo Huang
7fda8699b1 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue2535
# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/configuration.mustache
#	samples/client/petstore/go/swagger/Configuration.go
2016-04-11 20:17:57 -07:00
wing328
fb8c001075 Merge pull request #2562 from guohuang/issue2548
issue #2548, added docstring to Go model and its properties
2016-04-12 10:49:19 +08:00
wing328
26c3cb64e1 Merge pull request #2546 from guohuang/issue1946
issue #1946, added AddDefaultHeader method for GO
2016-04-12 10:44:16 +08:00
wing328
6240183545 update nodejs to nodejs-server 2016-04-12 10:41:59 +08:00
Guo Huang
fc80bce82f issue #2535, added authentication header for GO 2016-04-11 15:49:13 -07:00
Neil O'Toole
30a1330c08 Issue #2561 : set isXYZParam flags before postProcessParameters 2016-04-11 12:24:52 -06:00
Guo Huang
9c455880b2 issue #2548, added docstring to Go model and its properties 2016-04-11 11:14:33 -07:00
Guo Huang
ae3c628875 issue#2534, added _sling.Set in the go api 2016-04-11 10:37:50 -07:00
Guo Huang
963df24eee Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1946 2016-04-11 10:19:49 -07:00
wing328
38903aa7f3 add support for python2 2016-04-12 00:43:13 +08:00
wing328
3e13f69b53 Merge pull request #2558 from wing328/master
[Go] update type mapping, fix indention in go model
2016-04-12 00:01:54 +08:00
wing328
d8963d0a85 udpate type mapping for go, fix indention in go model 2016-04-11 23:44:06 +08:00
wing328
c8f4edff68 Merge pull request #2554 from wing328/add_format_test
Add tests for different type and format for model's properties
2016-04-11 23:05:59 +08:00
wing328
0e1f1606cd update js code gen to handle different type, format 2016-04-11 22:20:30 +08:00
wing328
68cb030609 add new files for format test model 2016-04-11 22:11:53 +08:00
wing328
87af119d9a Merge pull request #2556 from hcwilhelm/model-option-scalatra
Model option scalatra
2016-04-11 21:26:10 +08:00
wing328
6c98a46bf1 Merge pull request #2555 from wing328/bug/doc_remove_isnotrequired
[Doc] minor fix to html doc
2016-04-11 21:11:52 +08:00
hcwilhelm
b2ee8d02a4 fix for optional field in scalatra client 2016-04-11 15:07:25 +02:00
hcwilhelm
659b216413 fix for optional field in scalatra client 2016-04-11 15:03:04 +02:00
wing328
1dc895e123 minor fix to html doc 2016-04-11 20:43:06 +08:00
wing328
f71334fe4a Merge pull request #2551 from hcwilhelm/asyncscala-handle-option
Fix handling optional fields in asyncscala client model
2016-04-11 20:40:02 +08:00
wing328
1c14fc7291 fix perl indention 2016-04-11 20:34:06 +08:00
wing328
1093698315 Merge pull request #2547 from jerry1621/csharp_sync_uwp
fix sync call for uwp
2016-04-11 19:48:21 +08:00
wing328
44a4219e3e fix swift mapping with int and number 2016-04-11 19:37:56 +08:00
hcwilhelm
9df6d19ddd Fix handling optional fields in asyncscala client model 2016-04-11 13:05:01 +02:00
wing328
6c7efd502b map bytearray to string in ts 2016-04-11 16:42:20 +08:00
Jerome Dreyer
e2941582fa fixed tab-spacing 2016-04-11 09:49:03 +02:00
wing328
b66540e12c Merge pull request #2537 from arnested/php-initialize-discriminator
[PHP] Set discriminator property in constructor
2016-04-11 14:28:06 +08:00
Jerome Dreyer
a8bbb37866 fix sync call for uwp 2016-04-11 08:24:18 +02:00
wing328
f5dd7ae031 Merge pull request #2518 from pixelshaded/feature/issue2274
Typescript Node: Support Multiple Api Key Auth Methods
2016-04-11 12:04:47 +08:00
Guo Huang
00fcf9946a issue #1946, added AddDefaultHeader method for GO 2016-04-10 20:50:53 -07:00
wing328
f304c3da8b Merge pull request #2544 from guohuang/issue1948
issue #1948, added missing apiresponse.go, renamed petapi_test.go, fixed compilation error
2016-04-11 10:51:01 +08:00
wing328
38bc120b12 Merge pull request #2427 from wing328/csharp_support_uwp
[C#] add UWP support to C# API client
2016-04-11 10:43:59 +08:00
Yonas Kolb
01c38f4a22 Merge pull request #2 from swagger-api/master
Merge from swagger-api
2016-04-11 11:49:57 +10:00
Guo Huang
21d7c8d260 added missing apiresponse.go, renamed petapi_test.go, fixed compilation error 2016-04-10 15:04:29 -07:00
wing328
4942ebdc73 Merge pull request #2532 from guohuang/issue1948
issue #1948, added testing code to test go api
2016-04-11 01:05:20 +08:00
wing328
8e6bbf5625 update sample 2016-04-11 01:02:01 +08:00
wing328
e952e4435e fix system.web import 2016-04-11 00:59:48 +08:00
wing328
a6a88decfd add a switch for excluding system.web for ump support 2016-04-11 00:59:48 +08:00
wing328
91a2cc4b5d fix wording "beta support" 2016-04-11 00:59:48 +08:00
wing328
559e11e6d2 add uwp support 2016-04-11 00:59:47 +08:00
wing328
f66046c932 Merge pull request #2541 from wing328/csharp_remove_trailing_whitespace
[C#] remove trailing spaces from C# API client
2016-04-10 23:47:05 +08:00
wing328
f52f6c64a2 Merge pull request #2542 from wing328/restore_petstore_yaml
[Petstore] restore petstore.yaml from http://petstore.swagger.io/v2/swagger.json
2016-04-10 23:46:55 +08:00
wing328
5bc4570b57 Merge pull request #2540 from wing328/bug/fix_issue2523
[ObjC] fix spec with no model for ObjC API client
2016-04-10 23:23:25 +08:00
wing328
6f7e3c71f2 update go sample 2016-04-10 23:16:32 +08:00
wing328
9bd7a708ae fix typo in the spec 2016-04-10 23:14:02 +08:00
wing328
070d87a97c restore petstore.yaml 2016-04-10 23:11:42 +08:00
wing328
1cd3255be6 remove trailing space for csharp api client 2016-04-10 22:04:52 +08:00
wing328
8657720c09 fix spec with no model for objc client 2016-04-10 19:34:09 +08:00
Guo Huang
b16439e17b formatted code 2016-04-09 21:43:46 -07:00
Guo Huang
33491a7a8f added testify assert 2016-04-09 21:40:47 -07:00
Guo Huang
aa9e19f3d9 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1948 2016-04-09 16:03:57 -07:00
Arne Jørgensen
747f6ba0bb Regenerate PHP petstore sample 2016-04-09 21:05:45 +02:00
Arne Jørgensen
65d677c385 Set discriminator property in constructor
When using inheritance let the constructor set the discriminator
property to the model name.

This avoids redundant and error prone stuff like:

```
  $animal = new \Swagger\Client\Model\Dog();
  $animal->setClassName('Dog');
```
2016-04-09 21:05:18 +02:00
wing328
c159239d1b Merge pull request #2529 from cobain/bugfix/issue2061_fix_DeprecationWarning_in_unit_tests
issue2061_fix_DeprecationWarning_in_unit_tests
2016-04-09 22:08:31 +08:00
wing328
5ea66f6762 Merge pull request #2484 from wing328/csharp_fix_constructor
[C#] fix extra comma in the constructor when last property is read-only
2016-04-09 21:14:30 +08:00
wing328
7cad373e2e Merge pull request #2528 from guohuang/issue1949
issue #1949 added Configuration struct for GO in codegen
2016-04-09 21:13:26 +08:00
wing328
251e4bb19d better code quality 2016-04-09 19:03:31 +08:00
wing328
be13632bb4 fix csharp extra comma in constructor 2016-04-09 19:03:31 +08:00
wing328
f7affc6344 add new object to test different format 2016-04-09 19:02:31 +08:00
wing328
693f04db99 Merge pull request #2482 from wing328/objc_doc
[ObjC] Add auto-generated documentation (markdown) to ObjC API client
2016-04-09 19:01:15 +08:00
wing328
5522edac0c Merge pull request #2466 from wing328/nodejs_method_name
[NodeJS] fix operationId issue with Nodejs
2016-04-09 18:53:55 +08:00
wing328
15c2be2052 Merge pull request #2519 from fabdslv/issue-2509
Provide dependency javax.annotation for android with Retrofit 2
2016-04-09 18:42:40 +08:00
wing328
b08fb4e2f2 Merge pull request #2472 from wing328/python_auto_doc
[Python] automatically generate documentation (markdown) for Python API client
2016-04-09 18:41:14 +08:00
wing328
e7b85f0ce7 Merge pull request #2436 from ircecho/master
[Dart]: generator used underscored filenames but used non-underscored class names to import the files
2016-04-09 18:37:16 +08:00
wing328
8bded815bc Merge pull request #2478 from ircecho/dev3
[Dart]: now uses double instead of num to represent double
2016-04-09 18:30:03 +08:00
wing328
50bbd9818c Merge pull request #2465 from wing328/php_improvement
[PHP] minor php code improvement
2016-04-09 18:18:18 +08:00
wing328
0be18399b6 fix tos in swagger spec 2016-04-09 18:15:22 +08:00
wing328
35edb00e9b update nodejs server sample 2016-04-09 18:12:46 +08:00
wing328
e045ed63e0 Merge pull request #2464 from wing328/ruby_improvement
[Ruby] minor ruby code improvement
2016-04-09 18:11:46 +08:00
wing328
64b01f7800 update nodejs server sample 2016-04-09 18:10:46 +08:00
wing328
290957f6c8 update php sample 2016-04-09 18:05:40 +08:00
wing328
02ac7d93c5 minor php code improvement 2016-04-09 17:59:28 +08:00
wing328
e3c73f5819 update ruby sample 2016-04-09 17:55:52 +08:00
wing328
dd8b581827 add new ruby files 2016-04-09 17:50:01 +08:00
wing328
074ae7e95d update ruby sample 2016-04-09 17:47:45 +08:00
wing328
45e903b41b minor ruby code improvement 2016-04-09 17:47:21 +08:00
wing328
9d5d047e46 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-04-09 17:46:04 +08:00
wing328
e5279203a1 Merge pull request #2434 from arnested/php-map-number-without-format
[PHP] Map number without format to float
2016-04-09 17:01:41 +08:00
wing328
e8c3b5e78c Merge pull request #2418 from scottrw93/i2410
Issue 2410: Suport HTTP body for DELETE operation
2016-04-09 16:58:01 +08:00
wing328
444076b212 Merge pull request #2533 from ePaul/bugfix/fix-link-to-release
fix link in README.md.
2016-04-09 16:48:18 +08:00
wing328
27afadbc6d Merge pull request #2417 from cjolif/int64
Generates Int32/Int64 for Swift when those are the required formats. …
2016-04-09 16:38:10 +08:00
wing328
3f51751670 Merge branch 'int64' of https://github.com/cjolif/swagger-codegen 2016-04-09 16:37:37 +08:00
wing328
36cad7c065 Merge pull request #2360 from stremlenye/master
Update JMustache dependency to support whitespace and line breaks trimming
2016-04-09 16:35:16 +08:00
Paŭlo Ebermann
48630b4c47 fix link in README.md.
This was missed in #2515.
2016-04-09 10:35:10 +02:00
Guo Huang
1f39a4d3a9 issue #1948, added testing code to test go api 2016-04-08 14:04:49 -07:00
wing328
10de0b5c5b update python sample after rebase 2016-04-08 23:54:47 +08:00
wing328
f44e5faf1b add http info support for python 2016-04-08 22:00:27 +08:00
zhenghaitao
bf15c88811 issue2061_fix_DeprecationWarning_in_unit_tests 2016-04-08 15:18:42 +08:00
Guo Huang
9cae125b2c updated sample files 2016-04-07 22:27:33 -07:00
Guo Huang
20a81ca66a Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1949 2016-04-07 22:22:22 -07:00
Guo Huang
316c2cb136 added Configuration struct for GO 2016-04-07 22:16:31 -07:00
wing328
75ed978cec Merge pull request #2526 from wing328/go_sample
[Go] update go sample
2016-04-08 12:35:37 +08:00
wing328
f635e22be6 update go sample 2016-04-08 12:22:15 +08:00
wing328
d84f848831 Merge pull request #2521 from gabrielvv/master
Fix typo in wget arg
2016-04-08 00:25:15 +08:00
gabrielvv
5f01613572 Update README.md 2016-04-07 18:17:47 +02:00
Fabien Da Silva
efd68445db Provide dependency to javax.annotation.Generated for android with Retrofit 2
Fix #2509
2016-04-07 17:38:10 +02:00
wing328
c0f5bcabb5 add python doc 2016-04-07 23:18:15 +08:00
wing328
a9a229f113 add new objc doc file 2016-04-07 23:17:32 +08:00
Alexander Fisher
dd6b720e4d Encapsulate authentications. 2016-04-07 10:37:05 -04:00
Alexander Fisher
b5dabee20a Generate enum from api key auth methods. Use this to set api key of authentication. Update test client to set multiple keys. 2016-04-07 10:19:16 -04:00
wing328
155458012e suggestion on new git branch 2016-04-07 14:48:06 +08:00
wing328
f3572063e5 add go, perl style guide 2016-04-07 14:43:32 +08:00
Joseph Zuromski
b9bbbc6cad make sure to only escape an enum if the actual final variable name is going to match the enum name - now that we camelCase variable names this cuts down on the amount of enum escaping we have. 2016-04-06 15:20:38 -07:00
Tony Tam
44ee91bf02 Merge pull request #2515 from swagger-api/release-prepare
release prepare
2016-04-06 14:31:44 -07:00
Tony Tam
1fe2d3a165 release prepare 2016-04-06 14:07:52 -07:00
Tony Tam
90364b3d9c Merge pull request #2504 from hcwilhelm/asyncscala-fix-dependency
fixed swagger-async-httpclient lib dependency
2016-04-06 14:05:19 -07:00
Joseph Zuromski
fb705cb9fa fix issue 2512: crash w/ NPE when dereferencing networkStatus which could be nil on a volley timeout error 2016-04-06 13:24:59 -07:00
oskar
d45d36d8a2 Fixing broken enumeration swagger/json types for JaxRS-CXF templates. 2016-04-06 21:51:17 +02:00
Tony Tam
ed25943fae added jersey2 to services 2016-04-06 12:49:10 -07:00
hcwilhelm
fdd6805233 fixed swagger-async-httpclient lib dependency 2016-04-06 15:26:51 +02:00
Wolfgang Berger
0259c45b7a Merge branch 'master' into feature/objc-sessionmanager-merge
* master: (682 commits)
  fix, tests for #2500
  added sample files
  rebuilt sample
  changed to use tag sanitization method
  Update doc to support resteasy
  add petstore yaml
  fix typo, update sinatra to use origianl petstore spec (yaml)
  made timestamp generation enabled by default
  rebuilt with generation timestamp disabled
  rebuilt
  added bootstrap sample
  added script
  made generation timestamp optional
  added bootstrap, renamed sample
  added bootstrap
  updated templates
  add new model in csharp
  minor fix to docstring in csharp
  add new files for perl, php, ruby
  add new files for JS
  ...
2016-04-06 11:14:24 +02:00
Andrew Gibiansky
6d386aaa90 Fix a bunch of minor bugs in the Haskell generator 2016-04-05 17:47:23 -07:00
Tony Tam
c624311cab Merge pull request #2501 from swagger-api/issue-2500
fix, tests for #2500
2016-04-05 15:25:39 -07:00
Tony Tam
3ea911dd74 fix, tests for #2500 2016-04-05 14:48:37 -07:00
Andrew Gibiansky
b8d723b7ae Add run*Client functions to provide a way to run requests without Servant types 2016-04-05 12:54:04 -07:00
Andrew Gibiansky
18de12516d Update for newest Servant types 2016-04-05 12:02:28 -07:00
Andrew Gibiansky
80015a8a86 Allow passing just objects in APIs using Aesons Value type 2016-04-05 12:02:08 -07:00
Andrew Gibiansky
c49b22bcdd Remove dots and dashes from model names 2016-04-05 12:01:49 -07:00
Andrew Gibiansky
569d458bc9 Allow null title, as in Kubernetes Swagger Spec 2016-04-05 12:01:22 -07:00
wing328
c936f4b436 add oauth support to objc 2016-04-05 23:31:22 +08:00
Tony Tam
a1c978751a Merge pull request #2497 from swagger-api/issue-2496
sanitize tags, update generation timestamp
2016-04-05 07:40:11 -07:00
Tony Tam
fd8ed46c9b added sample files 2016-04-05 07:15:26 -07:00
Tony Tam
be5eae6583 rebuilt sample 2016-04-05 07:08:46 -07:00
Tony Tam
03adae8e36 changed to use tag sanitization method 2016-04-05 07:08:32 -07:00
wing328
02c713c90d Merge pull request #2494 from chameleon82/fix_resteasy_doc
Update doc to support resteasy
2016-04-05 10:37:44 +08:00
Andrew Gibiansky
512e51777d Update Haskell codegen to latest Stack LTS 2016-04-04 18:52:07 -07:00
Andrew Gibiansky
f28bbf251c Fix handling of special characters in Haskell codegen 2016-04-04 18:51:56 -07:00
Andrew Gibiansky
a694dfb8fb Create new Haskell codegen implementation. 2016-04-04 18:34:04 -07:00
Alex
b0592449eb Update doc to support resteasy 2016-04-04 22:49:03 +06:00
wing328
af75243a31 Merge pull request #2490 from wing328/fix_spec_typo
[Sinatra] fix typo, update sinatra to use origianl petstore spec (yaml)
2016-04-04 16:29:13 +08:00
wing328
122df5195a add petstore yaml 2016-04-04 16:17:45 +08:00
wing328
c2cab84612 fix typo, update sinatra to use origianl petstore spec (yaml) 2016-04-04 16:17:23 +08:00
wing328
aa805a4003 Merge pull request #2488 from swagger-api/feature/jersey2
Add jersey2 server support
2016-04-04 16:16:23 +08:00
Tony Tam
ee08d16ae5 made timestamp generation enabled by default 2016-04-03 14:36:23 -06:00
Tony Tam
034ed5d149 rebuilt with generation timestamp disabled 2016-04-03 14:36:00 -06:00
Tony Tam
3e279fc6e4 rebuilt 2016-04-03 14:33:06 -06:00
Tony Tam
3b9c28f561 added bootstrap sample 2016-04-03 14:31:19 -06:00
Tony Tam
cc4b3ff5d3 added script 2016-04-03 13:32:16 -06:00
Tony Tam
aab280d564 made generation timestamp optional 2016-04-03 13:31:39 -06:00
Tony Tam
4bb12871c3 added bootstrap, renamed sample 2016-04-02 18:34:58 -06:00
Tony Tam
63d2784bbf added bootstrap 2016-04-02 08:25:12 -06:00
demonfiddler
7dfddd449d Fix for Issue #2146 "NPE in JavascriptClientCodegen if definition name does not start with an upper case character" 2016-04-01 19:58:01 +01:00
wing328
93657d5ec5 more fix to objc sample code 2016-04-01 19:42:01 +08:00
wing328
f6bc1f5262 tested and fixed sample code for objc 2016-04-01 19:12:14 +08:00
wing328
a4e3b3b6e1 fix sample code 2016-04-01 15:10:42 +08:00
Tony Tam
4acedffffb updated templates 2016-03-31 18:19:49 -06:00
Anton WIMMER
be23d44f12 dart now uses double instead of num to represent double 2016-03-31 16:33:41 +02:00
Anton WIMMER
d2f70cf107 Merge remote-tracking branch 'upstream/master' 2016-03-31 16:03:36 +02:00
wing328
ef1ca9f6df update objc codegen to generate api doc 2016-03-31 22:02:01 +08:00
demonfiddler
023a941a15 Fix for Issue #2471 "JavaScript client code generator emits invalid code for map and array types" 2016-03-31 14:39:03 +01:00
demonfiddler
77638bc21d Merge https://github.com/swagger-api/swagger-codegen 2016-03-31 14:38:15 +01:00
wing328
c39bf41d10 Merge pull request #2477 from wing328/csharp_fix_docstring
[C#] minor fix to docstring in csharp
2016-03-31 17:06:59 +08:00
wing328
13712ee5bc add new model in csharp 2016-03-31 16:53:12 +08:00
wing328
f521d6e166 minor fix to docstring in csharp 2016-03-31 16:52:00 +08:00
Tony Tam
94f86613a3 Merge pull request #2470 from swagger-api/update-swagger-core
updated versions
2016-03-30 07:53:31 -07:00
wing328
4a45b3fc02 Merge pull request #2473 from wing328/doc_fix_typo
Fix typo in README.md
2016-03-30 22:53:23 +08:00
wing328
eef07f4d84 add new files for perl, php, ruby 2016-03-30 22:38:53 +08:00
wing328
f23031fc96 add new files for JS 2016-03-30 21:54:38 +08:00
wing328
2104ef3192 doc for new models 2016-03-30 21:09:34 +08:00
wing328
20f1e97df3 fix typo in readme 2016-03-30 20:58:18 +08:00
wing328
56d1a11df5 minor fix to python readme 2016-03-30 18:14:31 +08:00
wing328
ba74c69fdb update doc for python, add new files 2016-03-30 17:50:38 +08:00
wing328
142a3bab72 generate doc for python api and doc 2016-03-30 15:14:58 +08:00
Tony Tam
d64e8b23a1 updated versions 2016-03-29 23:50:01 -07:00
Tony Tam
d16ae16551 updated versions 2016-03-29 23:46:36 -07:00
xhh
7a0eef61d0 Add enum to Java docs
* Parameter enum values
* Inner enum class (model property)
* Outer enum class (enum model/definition)
2016-03-29 18:17:51 +08:00
xhh
a6fd93db41 Merge branch 'master' into java-docs 2016-03-29 15:05:11 +08:00
Tony Tam
f0c3870386 fixed output path 2016-03-29 00:01:31 -07:00
wing328
981d2f1475 Merge pull request #2453 from wing328/bug/fix_2451
[Android] update build.gradle for android (default, volley)
2016-03-28 23:53:02 +08:00
wing328
16fe8e84dd Merge pull request #2433 from arnested/parent-constructor-and-initialize-discriminator-property
[PHP] Parent constructor
2016-03-28 18:08:25 +08:00
Arne Jørgensen
da518d55d2 Regenerate PHP petstore sample 2016-03-28 11:30:27 +02:00
Arne Jørgensen
0196cdd558 [PHP] Use parent constructor when inheriting 2016-03-28 11:30:27 +02:00
wing328
5d5a6e049c update maven version 2016-03-26 10:59:08 +08:00
demonfiddler
14ceb4bf84 Fix, tests for Issue#2240 "Support invokerPackage configuration option" 2016-03-25 16:36:06 +00:00
wing328
00c97c8ff6 update build.gradle for android (default, volley) 2016-03-25 17:35:21 +08:00
Tony Tam
cd0633a04f Updated to release version of swagger-parser 2016-03-24 13:27:47 -07:00
wing328
f80d6c9939 Merge pull request #2447 from wing328/js_update_sample
[Javascript] update Petstore sample
2016-03-24 20:08:44 +08:00
wing328
eb5c689fac update js sample 2016-03-24 19:54:25 +08:00
wing328
ec38afde0a Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-24 19:49:07 +08:00
xhh
64d1c40b23 Java docs: improve install instructions 2016-03-23 23:49:01 +08:00
wing328
eb69db5720 add kuary 2016-03-23 21:47:38 +08:00
Anton WIMMER
24bfe25277 dart generator now correct file names for import 2016-03-23 14:10:39 +01:00
xhh
407e96f1be Minor fix on class name in Java markdown docs 2016-03-23 20:57:37 +08:00
xhh
133d9475e5 Merge branch 'master' into java-docs 2016-03-23 20:34:30 +08:00
xhh
df7c255cd4 Java client: generate markdown docs for jersey2 and okhttp-gson clients 2016-03-23 20:32:33 +08:00
Arne Jørgensen
194e80ddab [PHP] Map number without format to float
Previously if you specified a property to be of type `number` and didn't
explicitly specify a format Codegen would map it into an (unknown) PHP
class `Number`.

We add a mapping from Swaggers `number` to PHPs `float`.
2016-03-23 13:24:12 +01:00
xhh
cb394152f9 Java client (default): add more docs to README 2016-03-23 20:05:40 +08:00
Christophe Jolif
fb56e11470 Make sure body params of type Int32/Int64 are correctly encoded for that create JSONEncodable extensions for Int32/Int64. Re-use extensions in Model.encodeToJSON to simplify code. 2016-03-22 22:23:47 +01:00
Tony Tam
327315e9ea Merge pull request #1966 from wing328/rename_nodejs_with_server
[NodeJS] rename nodejs to nodejs-server
2016-03-22 12:21:37 -07:00
wing328
abee93b2c5 fix links without http:// 2016-03-22 22:20:26 +08:00
wing328
84af7cf3de add beemo, FH Münster 2016-03-22 22:09:50 +08:00
wing328
7ba8a5955d Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-22 19:58:53 +08:00
wing328
52f9a747e9 Merge pull request #2426 from Stuart-campbell/master
Updates to objc api to address issue #2422
2016-03-22 19:57:27 +08:00
Stuart Campbell
87495a747f Changed tense of override to overridden. 2016-03-22 11:33:33 +00:00
Stuart Campbell
553ebd659a Updates to iOS ApiClient - added getting for for offline state and settings for reachability status. This addresses "Default iOS reachability status #2422" 2016-03-22 10:56:56 +00:00
xhh
1510684093 Add Markdown docs to Java (default) client 2016-03-22 17:38:56 +08:00
wing328
d776c66d28 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-22 17:22:55 +08:00
wing328
0941db6fbd lower case eureka 2016-03-22 16:13:37 +08:00
wing328
46b2ec27a9 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-22 16:11:39 +08:00
wing328
4026ba3e44 add - [Eureka](http://eure.jp/) 2016-03-22 15:57:23 +08:00
wing328
a44918f53a Merge pull request #2421 from kkrauth/patch-1
Missing multipart (form data) imports.
2016-03-21 22:07:48 +08:00
Scott Williams
a9409834df Re-generate python client 2016-03-19 20:37:56 +00:00
Kosta Krauth
a07eb3bb14 Missing multipart (form data) imports.
Swagger files that declare "in: formData" parameters will result in API class that cannot be compiled due to the usage of "@Multipart" annotations in method signatures.
2016-03-19 14:12:24 -04:00
Scott Williams
4e5ba15fa0 Issue 2410: Suport HTTP body for DELETE operation 2016-03-19 16:51:02 +00:00
Christophe Jolif
677890fc08 Generates Int32/Int64 for Swift when those are the required formats. Fixes #2133. 2016-03-19 13:03:33 +01:00
wing328
78e34bd7c7 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
Conflicts:
	modules/swagger-codegen/src/main/resources/perl/README.mustache
	samples/client/petstore/perl/README.md
	samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm
2016-03-19 18:20:35 +08:00
wing328
6ecf083b0f Merge pull request #2416 from wing328/perl_update_doc
[Perl] update perl documentation and code samples
2016-03-19 18:14:33 +08:00
wing328
b1cde11382 update readme with better app description 2016-03-19 17:46:28 +08:00
wing328
91f963b92d Merge pull request #2414 from xhh/java-default-value
Include parameter's default value in comment for operations
2016-03-19 17:44:21 +08:00
wing328
652099ab71 update perl readme 2016-03-19 17:02:51 +08:00
wing328
b89531a722 Merge pull request #2415 from wing328/php_update_sample
[PHP] update sample code, update test case
2016-03-19 16:39:14 +08:00
wing328
6e16883146 update perl documentation 2016-03-19 16:38:06 +08:00
wing328
97e821af6b update php readme 2016-03-19 16:15:41 +08:00
xhh
794aae3fcf Include parameter's default value in comment for operations
for Java feign, retrofit and retrofit2 clients
2016-03-19 16:12:34 +08:00
wing328
95cd8b73a6 update sample code, update test case 2016-03-19 16:03:36 +08:00
wing328
56122b4a01 Merge pull request #2408 from wing328/enhancement/getting-started
[JS][Ruby] Auto generate the "Getting Started" section in the README
2016-03-19 11:27:42 +08:00
wing328
d78113be95 fix summary tab in ruby api 2016-03-19 11:16:02 +08:00
wing328
04e56a165e update js doc 2016-03-19 11:11:18 +08:00
wing328
9e45a99e60 udpate ruby api doc 2016-03-19 11:09:49 +08:00
wing328
79c967dee1 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-19 11:09:33 +08:00
wing328
ac102a38f9 Merge pull request #2405 from wing328/bug/swift_propert_name
[Swift] use baseName for swift model property
2016-03-19 10:54:51 +08:00
wing328
b65d444498 Merge pull request #2411 from demonfiddler/master
[JavaScript] Recommission integration tests for Issue#2258.
2016-03-19 10:31:44 +08:00
demonfiddler
3082702429 [JavaScript] Recommission integration tests for Issue#2258. 2016-03-18 18:49:17 +00:00
wing328
adfc68d707 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-18 18:33:05 +08:00
wing328
c3507e43a3 Merge branch 'xhh-default-value-comment' 2016-03-18 16:26:18 +08:00
wing328
8ebe20dfd5 Merge branch 'default-value-comment' of https://github.com/xhh/swagger-codegen into xhh-default-value-comment
Conflicts:
	modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-03-18 16:26:06 +08:00
wing328
992dc32e6b Merge branch 'xhh-default-value-comment' 2016-03-18 16:21:12 +08:00
wing328
91489f711f Merge branch 'default-value-comment' of https://github.com/xhh/swagger-codegen into xhh-default-value-comment
Conflicts:
	modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-03-18 16:20:55 +08:00
wing328
d839875d90 Merge pull request #2396 from demonfiddler/master
[JavaScript] Generator options and template improvements
2016-03-18 16:11:35 +08:00
wing328
b8c5fa3c10 Merge pull request #1440 from arnested/php-polymorphism-model
Add polymorphism in the PHP client
2016-03-18 15:45:48 +08:00
wing328
9525d67cd8 use basename for swift model property 2016-03-18 12:02:26 +08:00
Arne Jørgensen
aa61204ede Regenerate PHP petstore sample 2016-03-18 00:52:12 +01:00
Arne Jørgensen
07630c18eb Add polymorphism in the PHP client API 2016-03-18 00:48:50 +01:00
Arne Jørgensen
64454a16e0 Add inheritance in the PHP client model 2016-03-18 00:48:49 +01:00
Arne Jørgensen
0b71f9ee50 Add discriminator to Codegen Operation object 2016-03-18 00:48:49 +01:00
xhh
33483055a5 Java clients: fix test cases on HTTP basic auth 2016-03-17 19:04:57 +08:00
demonfiddler
9511425019 Fix, tests for Issue #2258 "[JavaScript] Generator options and template improvements" 2016-03-17 11:02:15 +00:00
wing328
431593f3cf Merge pull request #2402 from wing328/docstring_default_value
Update docstring to include default value, if defined
2016-03-17 18:26:47 +08:00
wing328
05a8c47a36 update docstring to include default value 2016-03-17 17:43:21 +08:00
wing328
ca093e5aaa Merge pull request #2401 from wing328/php_getting_started
[PHP] update readme, add "Getting Started" section
2016-03-17 17:12:03 +08:00
wing328
b40603d274 update readme, add getting started 2016-03-17 16:53:09 +08:00
xhh
4100a8537b Display parameter's default value for operations
Done for Java clients (default, jersey2, okhttp-gson), Ruby client and
JavaScript client.
2016-03-17 16:22:36 +08:00
wing328
57b8a7ab2c Merge pull request #2400 from wing328/perl_getting_start
[Perl] add "Getting Started" section for Perl documentation
2016-03-17 15:59:36 +08:00
wing328
db4218a06f rpelace api with api_instance 2016-03-17 15:44:07 +08:00
wing328
035b27ad83 add getting start section for perl 2016-03-17 15:07:57 +08:00
wing328
04e97e3fd7 Merge pull request #2399 from wing328/perl_doc_default_value
[Perl] add default value to docstring in perl
2016-03-17 14:42:50 +08:00
wing328
2067e993bb add default value to docstring in perl 2016-03-17 14:27:20 +08:00
wing328
1e8d1edc7b Merge pull request #2391 from xhh/js-docs
[JavaScript] Add auto-generated documentation in Markdown to JS client
2016-03-17 13:17:57 +08:00
wing328
b00971edc9 Merge pull request #2398 from wing328/model_start_with_number2
Better handling of model name starting with number
2016-03-17 12:28:27 +08:00
wing328
ccd4a78514 Merge pull request #2397 from mmschettler/master
Fix c# client float property default values
2016-03-17 12:17:47 +08:00
wing328
8ca279f6f7 better handling of model name starting with number for android 2016-03-17 12:11:27 +08:00
xhh
5665c03d19 Fix test 2016-03-17 12:11:19 +08:00
wing328
47bb5689d9 better hanlding of model name starting with number 2016-03-17 11:49:06 +08:00
mmschettler
d2826a7376 Merge remote-tracking branch 'refs/remotes/swagger-api/master' 2016-03-16 22:49:01 +01:00
mmschettler
4594c53c81 c# client float default value
better solution
2016-03-16 22:42:05 +01:00
mmschettler
1b16d87dd5 Fix float default value
Decimal literals for floats must be casted to float, because that are
doubles by default
2016-03-16 22:08:14 +01:00
Tony Tam
b479964a60 Merge pull request #2394 from swagger-api/inflector-fixes
fixed typename generation for Map<?,List<?>> types and added gen fold…
2016-03-16 12:10:26 -07:00
Ole Lensmar
01353f25ba fixed typename generation for Map<?,List<?>> types and added gen folder to maven build in generated pom 2016-03-16 11:30:33 -04:00
wing328
ec03403492 Merge pull request #2393 from wing328/model_start_with_number
[PHP] better handling of model name starting with number
2016-03-16 23:25:42 +08:00
wing328
4b5a0a4872 beter handling of model name starting with number 2016-03-16 23:10:59 +08:00
wing328
4d19da41dd Merge pull request #2385 from arnested/php_date_time_iso8601_vs_atom
Use PHP's DateTime::ATOM for true ISO-8601 support
2016-03-16 20:40:44 +08:00
Arne Jørgensen
55ef72d47e Regenerate PHP petstore sample 2016-03-16 13:08:09 +01:00
xhh
90bd843be6 JavaScript: add auto-generated documentation in Markdown 2016-03-16 19:42:27 +08:00
Arne Jørgensen
3823612674 Use PHP's DateTime::ATOM for true ISO-8601 support
Currently we use PHP's DateTime::ISO8601 for the date-time properties
but according to
http://php.net/manual/en/class.datetime.php#datetime.constants.iso8601
it is actually not compatible with ISO-8601.

Instead we should use DateTime::ATOM.
2016-03-16 11:18:26 +01:00
wing328
a019e13b23 Merge pull request #2388 from wing328/php_api_doc
[PHP] Add documentation (markdown) to APIs and models
2016-03-16 18:08:06 +08:00
wing328
2eda3b16cf fix file example 2016-03-16 16:25:32 +08:00
wing328
c101c1204e add php documentation 2016-03-16 16:14:04 +08:00
wing328
7b31dabe77 fix perl, ruby auth doc in readme 2016-03-16 14:58:19 +08:00
wing328
1e73193ef6 Merge pull request #2349 from wing328/fix_resteasy
[JAX-RS] Fix RestEasy's model missing java.util.ArrayList
2016-03-16 14:40:40 +08:00
wing328
c746082171 update jaxrs sample 2016-03-16 14:28:13 +08:00
wing328
dc767d0475 add new files for resteasy 2016-03-16 14:27:06 +08:00
wing328
57c493b334 add jaxrs-resteasy to ci test 2016-03-16 14:26:03 +08:00
wing328
ab41214f06 fix error with resteasy 2016-03-16 14:26:03 +08:00
wing328
838a22ba04 Merge pull request #2351 from ieb/20160310
non default java clients wont compile if description is empty in API json.
2016-03-16 14:22:15 +08:00
wing328
259d113d35 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into php_api_doc 2016-03-16 11:42:27 +08:00
Tony Tam
5df69fd71e updated to work around https://github.com/swagger-api/swagger-core/issues/1714 2016-03-15 16:06:37 -07:00
Tony Tam
ed224d4c09 updated inflector templates 2016-03-15 15:58:55 -07:00
wing328
44e9b25dfd Merge pull request #2384 from wing328/add_petstore_yml
Add petstore (full) yml file
2016-03-15 22:12:43 +08:00
wing328
fb5f7716db add petstore (full) yml file 2016-03-15 21:42:25 +08:00
wing328
45bc15257e Merge pull request #2378 from arnested/feature/php-empty-datetime
Handle empty date-time gracefully
2016-03-15 20:45:59 +08:00
Arne Jørgensen
65b78f7ffe Handle empty date-time gracefully
Some API's return an invalid, empty string as a date-time property.

DateTime::__construct() will return the current time for empty input
which is probably not what is meant.

The invalid empty string is probably to be interpreted as a missing
field/value.

Let's handle this graceful.
2016-03-15 06:46:51 +01:00
wing328
d02d3df158 Merge pull request #2376 from wing328/user_agent_update
Update User-Agent for Ruby, Python, PHP, Java, Android
2016-03-15 12:16:01 +08:00
wing328
6d2649de00 fix http user agent in C# 2016-03-15 11:41:48 +08:00
wing328
1936af2cab update android user agent 2016-03-15 11:41:48 +08:00
wing328
be7a49385f set default user default for ruby, php, python, java 2016-03-15 11:41:47 +08:00
wing328
e10c28596c update user-agent for Ruby 2016-03-15 11:41:47 +08:00
wing328
df8d4fd8b8 remove releaseVersion (duplicated with packageVersion) 2016-03-15 11:40:09 +08:00
wing328
3c997ea743 Merge pull request #2375 from xhh/ruby-doc
[Ruby] Add require and print statements to Ruby client docs
2016-03-15 11:34:25 +08:00
wing328
532d22c5a3 add api documentation to php 2016-03-14 17:25:11 +08:00
xhh
7505b167b7 Ruby docs: add require and print statements 2016-03-14 15:42:59 +08:00
wing328
3147061345 add github integration 2016-03-14 13:39:07 +08:00
wing328
84564ae231 Merge pull request #2371 from wing328/csharp_user_agent
[C#] add httpUserAgent option, add configurable user-agent support to C#
2016-03-14 11:03:57 +08:00
wing328
c69abad852 Merge pull request #2372 from wing328/improve_perl_doc
[Perl] add authentication sample code to perl, add links to readme, API list, model list
2016-03-14 10:50:37 +08:00
wing328
b46a1759a8 Merge pull request #2370 from wing328/php_git_push
[PHP] change php git_push.sh location
2016-03-14 10:22:29 +08:00
wing328
7f6069f255 add auth sample code to perl, add links to readme, etc 2016-03-13 22:43:46 +08:00
wing328
cdecb5133f add httpUserAgent option, add customized user-agent support to C# 2016-03-13 17:28:43 +08:00
wing328
41383e78c3 change php git_push location 2016-03-13 15:58:04 +08:00
wing328
4a53db839d Merge pull request #2369 from wing328/csharp_http_basic
[C#] fix base64encode issue in csharp
2016-03-13 13:24:59 +08:00
wing328
0e45f868a0 fix base64encode in csharp, add test case 2016-03-13 00:05:32 +08:00
wing328
d3f26f72d9 Merge pull request #2366 from wing328/git_push_sh
Add git_push.sh and .gitignore to client generators
2016-03-12 21:24:16 +08:00
wing328
b09d34e37c fix scala test cases 2016-03-12 18:44:03 +08:00
wing328
a529d9dfe0 push new git_push and .gitinore file 2016-03-12 18:01:53 +08:00
wing328
637bdd2f50 add git_push and gitignore to most client generators 2016-03-12 17:35:25 +08:00
wing328
9368fccecc Merge pull request #2344 from xhh/ruby-doc
[Ruby] Add auto-generated documentation in Markdown to Ruby client
2016-03-12 16:08:07 +08:00
wing328
08b62687c8 Merge pull request #2365 from cbdelavenne/patch-1
Add LANDR Audio to the list of companies
2016-03-12 10:37:58 +08:00
Cyrille B. Delavenne
042e331f8d Add LANDR Audio to the list of companies
Add LANDR Audio to the list of companies using Swagger Codegen
2016-03-11 16:46:45 -05:00
Yuriy Ankudinov
2b33a248e0 Update JMustache dependency to support whitespace trimming 2016-03-11 14:10:35 +01:00
xhh
d274af4d4a Ruby docs: add sample code of configuring auths 2016-03-11 19:05:27 +08:00
wing328
62fbcb9e8b Merge pull request #2323 from xhh/js-model-export
[JavaScript] Remove "undefined" from model dependency arguments
2016-03-11 18:08:06 +08:00
wing328
e530016e2d Merge pull request #2357 from wing328/perl_add_git_init
[Perl] add git push script and git setting CLI option
2016-03-11 17:40:55 +08:00
wing328
f619ed3527 fix java docstring 2016-03-11 17:13:19 +08:00
wing328
2c5be10589 add git push script to perl 2016-03-11 16:25:45 +08:00
xhh
1df0923525 Ruby: improve handling of default values and examples for parameters in docs 2016-03-11 15:23:55 +08:00
wing328
3bebbada98 fix command line, update git_push.sh 2016-03-11 14:50:03 +08:00
wing328
51dba5462a Merge pull request #2354 from delenius/java-pom-warnings
Fix warnings in generated pom.xml file
2016-03-11 11:28:11 +08:00
delenius
a1052a0534 Fix warnings in generated pom.xml file
This also updates the generated petstore, due to previous
changes (not mine).
2016-03-10 11:51:05 -08:00
Ian Boston
f097859ce3 Fixed broken builds when definition contains no description 2016-03-10 15:45:20 +00:00
wing328
4d023e9b92 add release support 2016-03-10 23:11:08 +08:00
xhh
eafcc2427d Some improvements on Ruby docs 2016-03-10 17:19:18 +08:00
wing328
deea3f5c72 Merge pull request #2350 from wing328/csharp_comment
[C#] escape HTML special character in Model's summary and value
2016-03-10 14:49:50 +08:00
wing328
ac15938080 escape html spec char in model summary and value, add model to test
model and property name
2016-03-10 14:35:16 +08:00
wing328
e45679a585 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-03-10 14:21:10 +08:00
wing328
53ef4cfebf Merge pull request #2348 from nrekretep/master
CSharpClientCodegen: Members with same name as the class will not be renamed.
2016-03-10 14:16:21 +08:00
wing328
5bb9e108c3 add new models 2016-03-10 10:57:39 +08:00
wing328
4649579bac Merge pull request #2346 from krisztiankocsis/optimaster-fixes
Fix invalid variable type in RESTEasy's LocalDateTimeProvider template.
2016-03-10 09:31:32 +08:00
Peter Kern
cf75f823c4 Default values for enums were not generated correctly. 2016-03-09 22:52:36 +01:00
Peter Kern
a3d0fd61f8 compile.bat needs to use backslash to work inside a normal windows cmd. bin directory should be created if it does not exists. 2016-03-09 21:47:20 +01:00
Peter Kern
17a6f5cefb super.postProcessModels needs to be called. Otherwise renaming of members with same name as the class does not take place. 2016-03-09 21:34:33 +01:00
Tony Tam
bd83cfa670 Merge pull request #2342 from swagger-api/issue-2341
added import when description is present
2016-03-09 10:08:21 -08:00
Krisztian Kocsis
792365abcb Fix invalid variable type in RESTEasy's LocalDateTimeProvider template. 2016-03-09 14:38:19 +01:00
xhh
96707e1fea Remove obsolete test files 2016-03-09 19:53:19 +08:00
xhh
91bae765ef Some fixes to Ruby docs on links and File parameter 2016-03-09 19:36:28 +08:00
xhh
43d2df9753 Delete docs files of Ruby Petstore for regenerating
with same file names but in different case
2016-03-09 19:34:59 +08:00
xhh
a9042e2410 Ruby: add gitignore 2016-03-09 17:40:27 +08:00
wing328
b3c4d6be37 Merge pull request #2343 from wing328/perl_doc_improve1
[Perl] fix link to File type in documentation, add .gitignore
2016-03-09 17:30:30 +08:00
xhh
2c64b885bb Ruby: add auto-generated documentation in Markdown 2016-03-09 17:18:15 +08:00
Tony Tam
bcd3c2cb32 test fix 2016-03-09 00:33:05 -08:00
wing328
7dff26912a fix link to file, add .gitignore 2016-03-09 16:21:51 +08:00
Tony Tam
8da197ced7 added import when description is present 2016-03-09 00:03:06 -08:00
wing328
998087d662 Merge pull request #2333 from wing328/perl_doc_authoriziation
[Perl add auth setting to Perl documentation (markdown)
2016-03-08 21:29:20 +08:00
wing328
df61aa1a14 add auth setting to perl doc 2016-03-08 20:07:46 +08:00
wing328
d198983cdf Merge pull request #2327 from xhh/sort-api-model
Sort APIs and models by name
2016-03-08 17:49:06 +08:00
wing328
7d6ef74663 Merge pull request #2332 from wing328/perl_new_template
[Perl] add new files for Perl generator
2016-03-08 17:09:18 +08:00
wing328
24c47c7434 add new files for perl generator 2016-03-08 17:07:53 +08:00
wing328
70cd71fd35 Merge pull request #2320 from wing328/perl_doc
[Perl] Add auto-generated Perl documentation in Markdown
2016-03-08 17:03:16 +08:00
wing328
9c7316d77a fix return type in perl doc 2016-03-08 16:55:17 +08:00
wing328
9eecccb418 fix java docstring 2016-03-08 16:24:17 +08:00
wing328
4ec8003ab5 add isPrimitiveType,baseType to parameter 2016-03-08 16:24:16 +08:00
wing328
1b652dab5e fix MD in perl doc 2016-03-08 16:24:16 +08:00
wing328
855f46fed0 add api and model documentation 2016-03-08 16:24:16 +08:00
wing328
e5ed295a78 add example to codegen parameter 2016-03-08 16:24:16 +08:00
wing328
7d642b28b9 add doc for api method 2016-03-08 16:24:16 +08:00
wing328
c9434347c2 Merge pull request #2325 from cbornet/scalar_converter
Add scalar converter to retrofit2
2016-03-08 15:50:45 +08:00
Yonas Kolb
f83c200073 Merge pull request #1 from swagger-api/master
Merge from swagger-api
2016-03-08 11:00:03 +11:00
wing328
bc559b3b69 Merge pull request #2328 from wing328/model_reserved_word
Use "Model" to handle model name with reserved keywords
2016-03-07 23:04:42 +08:00
wing328
97b00864ff add StringUtils to JavascriptClosureAngularClientCodegen.java 2016-03-07 21:18:19 +08:00
wing328
e7725a9f45 use model instead of object for reserved keyword model name 2016-03-07 21:08:52 +08:00
wing328
bf32820223 Merge pull request #2324 from wing328/object_name_reserved_model
[C#] Better naming for reserved word (model name), fixed compile.bat
2016-03-07 20:39:31 +08:00
xhh
f79886910f Sort API and models by name 2016-03-07 20:28:19 +08:00
cbornet
ba3d548712 remove okhttp and gson dependencies 2016-03-07 10:38:27 +00:00
cbornet
6f114a1556 add scalar converter to retrofit2
Fix #2177
2016-03-07 09:19:55 +00:00
wing328
964a44a4c5 update sample for C# 2016-03-07 17:02:36 +08:00
wing328
485d269830 use model instead of object, replace cp with copy (for winxp) 2016-03-07 16:49:29 +08:00
xhh
dfe57bfd6b JS client: remove "undefined" from model dependency arguments
Closes #2279
2016-03-07 15:57:13 +08:00
wing328
b84694380b Merge pull request #2234 from mkhludnev/master
issue #1875 fixing -Dapis= work for -l html, provding test.
2016-03-07 12:07:29 +08:00
wing328
945048ecb2 Merge pull request #2312 from xhh/js-object
[JavaScript] Handle arbitrary object in JavaScript client
2016-03-06 22:43:14 +08:00
wing328
a4ec9b9e84 Merge pull request #2317 from wing328/csharp_object_type
[C#] add type object support to C# API client
2016-03-05 18:46:34 +08:00
wing328
d2baf9cbd7 add type object support to C# 2016-03-05 16:29:25 +08:00
wing328
123bf19b97 Merge pull request #2316 from wing328/php_add_test_for_object
[PHP] update deserializer to handle object type and add more test cases
2016-03-05 15:01:07 +08:00
wing328
b5c0f17a02 update php to handle object type and add more test case 2016-03-05 14:25:01 +08:00
wing328
fd8ec21a63 add cloudboost 2016-03-04 21:53:16 +08:00
wing328
b73c368ba4 Merge pull request #2310 from wing328/better_model_name2
[C#][Perl][PHP] Better model name
2016-03-04 20:38:49 +08:00
xhh
8d964cff52 Handle arbitrary object in JS client
Closes #2165

Other changes:

* Update JS client of the Petstore sample
* Add test cases for getPetByIdInObject and getInventoryInObject
2016-03-04 18:40:03 +08:00
wing328
ecef1c6333 Merge pull request #2311 from ktjn/patch-1
Add svenska spel to companies using swagger
2016-03-04 17:56:11 +08:00
Tommy Alander
a415cd74fb sorted list :-) 2016-03-04 10:09:13 +01:00
wing328
e813205ba7 Merge pull request #2303 from xhh/ruby-object-tests
[Ruby] Add test cases for empty "object" type to Ruby Petstore sample
2016-03-04 16:57:13 +08:00
Tommy Alander
fc654623d9 Add svenska spel to companies using swagger 2016-03-04 09:34:54 +01:00
wing328
8cf0fcf7c4 update objc and swift petstore sample 2016-03-04 15:59:13 +08:00
xhh
53d8a31bd3 Ruby client: update Petstore sample, fix model import 2016-03-04 15:41:27 +08:00
wing328
329530c442 better model name for c# 2016-03-04 14:46:01 +08:00
wing328
e0b16151f4 better model name for perl 2016-03-04 14:39:28 +08:00
wing328
ae54301ed7 better model name for php 2016-03-04 14:26:28 +08:00
wing328
adc4547c8c Merge pull request #2299 from neoasket/issue-2094
issue-2904 mark 'findMethodResponse' method in DefaultCodegen.java as 'protected'
2016-03-04 12:57:01 +08:00
xhh
9b4b0111ad Merge branch 'master' into ruby-object-tests 2016-03-04 12:45:42 +08:00
wing328
f08dfa4cbc Merge pull request #2300 from xhh/js-model-name-prefix-suffix
[JavaScript] Add model name prefix/suffix to JavaScript client
2016-03-04 12:39:51 +08:00
wing328
7cc9d71dab Merge pull request #2309 from wing328/model_name_sanitize
[Python] better handling of model name
2016-03-04 12:24:57 +08:00
wing328
c51f4c629e to fix #2306 2016-03-04 12:08:57 +08:00
wing328
a92a9f2a03 Merge pull request #1990 from expectedbehavior/php-raw-string
[PHP] Use String instead of Byte Array
2016-03-04 10:57:59 +08:00
wing328
1e4fb0ec96 Merge pull request #2301 from wing328/update_test_file
Update wording for test files
2016-03-04 10:23:13 +08:00
wing328
544a69ff30 Merge pull request #2307 from jonocodes/master
Fix wget command in readme
2016-03-04 09:47:31 +08:00
Jono
6a450a3a96 Fix wget command in readme
The parameter being used was outputting a log file instead of changing downloading the file.
2016-03-03 16:15:19 -08:00
Elijah Miller
74536af3b9 Map binary to string in PHP since ByteArray is no longer in use. 2016-03-03 11:01:13 -05:00
Elijah Miller
6698c532e6 Keep PHP binary responses as strings for easier manipulation. 2016-03-03 11:01:13 -05:00
Alex Kalashnikov
0911b373de describing @param and @return for 'findMethodResponse' method 2016-03-03 16:57:40 +04:00
xhh
8e4f9fdc7c Add test cases for empty "object" type to Ruby Petstore
And fix the deserialization of empty "object" property
2016-03-03 20:36:15 +08:00
wing328
7e63226ed4 update wording for test file, minor tweats to petstore test 2016-03-03 20:19:37 +08:00
xhh
e420bfd49e Add model name prefix/suffix to JavaScript client 2016-03-03 18:04:37 +08:00
wing328
d2bb505147 Merge pull request #1752 from justusth/master
Csharp Enums
2016-03-03 18:00:36 +08:00
Tommy Alander
27fc4ba4e8 remove unused line 2016-03-03 10:33:51 +01:00
Tommy Alander
e649ab1101 indent code 2016-03-03 10:33:16 +01:00
Tommy Alander
033b9871b3 fix the useage of the cli option for emitdefaultvalues and verify that it works 2016-03-03 10:27:42 +01:00
wing328
1f2026576f Merge pull request #2297 from xhh/object-without-properties
Do not generate models for "object" type with no properties
2016-03-03 17:10:34 +08:00
Tommy Alander
e23626b05c Merge remote-tracking branch 'main/master' into jmaster 2016-03-03 09:23:50 +01:00
Tommy Alander
2d6dac16b7 add cli option to specify if to emit default values in datamember 2016-03-03 08:32:23 +01:00
wing328
d28f860343 Merge pull request #2202 from traviscollins/master
Added discriminator support to Objective-C
2016-03-03 14:25:07 +08:00
Alex Kalashnikov
20bf205451 adding @javadoc to 'findMethodResponse' method 2016-03-03 10:15:44 +04:00
Justus Thorvaldsson
d89deba96c Merge pull request #2 from ktjn/master
fix testcases
2016-03-03 06:55:23 +01:00
Alex Kalashnikov
7817ff5f3d mark 'findMethodResponse' method in DefaultCodegen.java as 'protected' to make it possible to override for handling custom response codes 2016-03-03 09:23:55 +04:00
xhh
f9cc29fb74 Update petstore to use an inline model for testing
and add test cases to Java clients for "object" type with no properties.
2016-03-03 12:48:44 +08:00
Tommy Alander
cb6a71ae89 Merge remote-tracking branch 'main/master' 2016-03-02 19:48:58 +01:00
Tommy Alander
23a7af4716 regen test code for petstore csharp and fix test errors 2016-03-02 19:47:45 +01:00
xhh
7bea6da587 Do not generate models for "object" type with no properties
Also updated the petstore sample to include operations to cover the case
in model property and response, and updated Java clients to sync with
it.

Closes #2237
2016-03-02 21:12:27 +08:00
wing328
18262c1b61 Merge pull request #2256 from hiveship/fix-cxf-codegen
Fixes for JAXRS-CXF Codegen
2016-03-02 20:49:48 +08:00
wing328
78f1c7a601 Merge pull request #2294 from wing328/swift_reserved_word
[Swift] improvements to model
2016-03-02 18:08:33 +08:00
wing328
a57bc98f59 Merge pull request #2295 from neilotoole/issue-2292
Re #2292 : The generated API should now return an err for non-2xx status codes
2016-03-02 17:48:49 +08:00
Neil O'Toole
a108c6311a Re #2292 : The generated API should now return an err for non-2xx status codes, though the functionality to return an error object per the swagger is not yet implemented. 2016-03-02 01:49:59 -07:00
wing328
cff259f489 add prefix, suffix to swift model 2016-03-02 16:34:27 +08:00
wing328
057e1d4c4b proper indention for swift generator 2016-03-02 15:46:24 +08:00
Justus Thorvaldsson
dd36ef7a5d Merge pull request #1 from ktjn/master
sync with master
2016-03-02 08:42:43 +01:00
Tommy Alander
cd0c99655c Merge remote-tracking branch 'main/master' 2016-03-02 08:41:01 +01:00
wing328
7a7265b0d7 Merge pull request #2293 from Glagnar/issue-2181
Issue 2181
2016-03-02 15:34:39 +08:00
Thomas Gilbert
dea699f1ef Update petstore swift client 2016-03-02 08:14:37 +01:00
Thomas Gilbert
785136e991 Use baseName instead of paramName when generating APIs 2016-03-02 08:14:11 +01:00
wing328
336d80cbf3 Merge pull request #2289 from neilotoole/issue-2285
Several minor fixes in the Go client code generator for Camelization of elements
2016-03-02 13:58:17 +08:00
wing328
4bcd81a329 Merge pull request #2286 from xhh/clj-api-name
[Clojure] Improve api name for the Clojure client
2016-03-02 11:16:56 +08:00
wing328
c6367009f4 Merge pull request #2290 from vzeman/patch-1
updated section Companies
2016-03-02 10:48:38 +08:00
Viktor Zeman
b6d2e5b2b7 updated section Companies
based on communication with @wing328 updated section "Companies/Projects using Swagger Codegen"
- added LiveAgent project
- added PostAffiliatePro project
2016-03-01 21:00:36 +01:00
Neil O'Toole
54b4da2872 Several minor fixes in the Go client code generator for Camelization of elements per #2285 2016-03-01 09:52:44 -07:00
wing328
ca756c2f24 Merge pull request #2288 from delenius/tojson
Remove toJson method from JS client
2016-03-02 00:22:18 +08:00
delenius
067d0a9318 Remove toJson method from JS client
Also regenerates the petstore samples.
2016-03-01 07:41:31 -08:00
wing328
ab98f1a39d Merge pull request #2287 from vzeman/issue-2275
Add option to set request timeout for Javascript request
2016-03-01 22:13:05 +08:00
Rastislav Kostrab
734681ad59 Javascript samples updated 2016-03-01 14:39:16 +01:00
Viktor Zeman
42a3f184ff Add option to set request timeout for Javascript request 2016-03-01 13:33:13 +01:00
xhh
09a2bb8b0f Improve api name for the Clojure client
For example, when an operation's tag is "users-api", "users_api" or
"UsersApi", generate the api file named users_api.clj and "users-api"
as the namespace (it was "usersapi.clj" and "usersapi" before).

To implement this, I have to move the "sanitizeTag" method from
DefaultGenerator.java to DefaultCodegen.java so that its behaviour can
be overridden in ClojureClientCodegen.java, which is needed as the
default implementation would sanitize "users-api" to "usersapi" before
the tag is passed to "toApiName" and "toApiFilename".
2016-03-01 18:50:56 +08:00
Maelig Nantel
081c29c984 fix sample generation 2016-03-01 11:25:29 +01:00
wing328
6ca6606c8b add pixoneye 2016-03-01 18:11:52 +08:00
wing328
ea3232cb08 Merge pull request #2284 from xhh/java-file-date-model-name-fix
[Java] Fix invalid imports when model name prefix/suffix is present
2016-03-01 18:09:32 +08:00
wing328
9aa59b92bc Merge pull request #2271 from timbogit/fixes/clojure_generator_api_filename
Fix for clojure API filenames
2016-03-01 17:24:36 +08:00
Tommy Alander
cbbc2cf5ae Merge remote-tracking branch 'main/master' 2016-03-01 09:05:13 +01:00
wing328
f8fed56863 Merge pull request #2277 from xhh/java-local-var
[Android] better local variable naming for Android client
2016-03-01 15:45:53 +08:00
xhh
74fedfcf20 Java: fix invalid imports when model name prefix/suffix is present
When generating Java clients with mode name prefix/suffix given, there
are invalid imports on Date and File, e.g. for the Petstore sample
(with model name prefix set to "My" and suffix set to "Model"):

    import io.swagger.client.model.MyfileModel;
    import io.swagger.client.model.MyDateModel;

This commit fixes it to:

    import java.io.File;
    import java.util.Date;
2016-03-01 15:01:10 +08:00
xhh
b7280d0af8 Support model prefix/suffix in Android client 2016-03-01 12:30:24 +08:00
xhh
8e937bd0a8 Merge branch 'master' into java-local-var 2016-03-01 12:06:44 +08:00
xhh
665ffa355b Android: add localVar prefix for "response" and "builder" 2016-03-01 12:04:46 +08:00
wing328
6657434b08 Merge pull request #2168 from jimschubert/maven_plugin_configurator
[maven plugin] Use configurator for maven plugin
2016-03-01 11:31:01 +08:00
xhh
cc08be6eda Fix concurrent_unit_version in android-volley build.gradle
Closes #2228
2016-03-01 10:50:41 +08:00
Tommy Alander
e5f55da74e add hack to make enums nullable 2016-02-29 18:42:35 +01:00
wing328
2171ca524f add zalando 2016-02-29 23:41:34 +08:00
Tommy Alander
8492802328 use nullable types for enums 2016-02-29 15:28:09 +01:00
wing328
6b1cd3915f Merge pull request #2278 from xhh/clj-update
[Clojure] update Petstore sample and fix tests for the Clojure client
2016-02-29 19:59:21 +08:00
Tommy Alander
61c1f72b0e use correct datatype with enums 2016-02-29 12:37:26 +01:00
xhh
a42f972dfe Clojure client: update Petstore sample, fix tests 2016-02-29 19:06:12 +08:00
xhh
75c2cc9029 Android client: better local variable naming
and fix the importing of Long and Byte
2016-02-29 18:27:23 +08:00
wing328
3106cadaf7 Merge pull request #2273 from xhh/java-local-var
[Java] better local variable naming for Java clients
2016-02-29 18:20:52 +08:00
wing328
d665903b3f Merge pull request #2149 from dhontecillas/master
support latest Retrofit 2 v2.0.0-beta4
2016-02-29 18:05:14 +08:00
wing328
9cdd5323ea Merge pull request #2270 from wing328/ruby_prefix_suffic
[Ruby] add prefix, suffix support to Ruby's model
2016-02-29 17:03:35 +08:00
Maelig Nantel
fff4b315df Update README.md 2016-02-29 09:49:51 +01:00
wing328
b5b8b4de20 fix file mapping in ruby 2016-02-29 16:44:04 +08:00
Tommy Alander
84fb351c7c fixes after merge 2016-02-29 08:46:07 +01:00
Tommy Alander
a2be66d492 Merge remote-tracking branch 'main/master' 2016-02-29 08:24:31 +01:00
xhh
9b229de79f Java clients: better local variable naming 2016-02-29 13:23:56 +08:00
wing328
724753f890 Merge pull request #2272 from wing328/typescript_prefix_suffic
[TypeScript] add prefix, suffix to TS model
2016-02-29 13:09:29 +08:00
wing328
74d91f4ea1 add prefix, suffix to ts model 2016-02-29 12:11:54 +08:00
Tim Schmelmer
14ed683f9a Fix for clojure API filenames whenthe API is more than one word (as clojure filenames have to replace dashes with underscores) 2016-02-28 21:07:55 -07:00
wing328
6c16c10166 add prefix, suffix support to ruby 2016-02-29 11:14:32 +08:00
wing328
9f3c34dbfa Merge pull request #2267 from wing328/objc_model_prefix
[ObjC] add prefix and suffix support to ObjC models
2016-02-28 18:49:50 +08:00
wing328
f3a1f829d0 Merge pull request #2266 from wing328/php_better_local_var
[Ruby][Python][PHP] better local variable naming for ruby, python and php
2016-02-28 18:23:11 +08:00
wing328
742e3f5070 remove 'method' from python api 2016-02-28 16:51:50 +08:00
wing328
17a93dd5ce add prefix and suffix to objc model 2016-02-28 16:15:44 +08:00
wing328
dfa977627a better reserved word for objc 2016-02-28 15:52:51 +08:00
wing328
f68e93c662 better local variable naming for ruby, python and php 2016-02-28 11:48:14 +08:00
wing328
335a881091 Merge pull request #2264 from wing328/csharp_enhancement_variable
[C#] better local variable naming for C# API client
2016-02-28 11:44:40 +08:00
wing328
8a68a64609 Merge pull request #2261 from wing328/php_model_name_improve
[PHP][Python][Perl] add prefix/suffix support to model name
2016-02-28 11:28:26 +08:00
wing328
7adc7516cf Merge pull request #2262 from Glagnar/issue-2084
Issue 2084
2016-02-28 10:55:49 +08:00
wing328
b077ff18a2 better local variable naming for C# 2016-02-28 02:15:29 +08:00
wing328
72843adae2 Merge pull request #2244 from hideya/feature/2120
Fix #2120, #2157 - Update Swift API method generation for ease of use
2016-02-28 01:09:28 +08:00
wing328
d619b5e02e Merge pull request #2163 from vivin/enum-support-in-query-params
Support for enums in query parameters (issue #1347)
2016-02-27 22:57:30 +08:00
Thomas Gilbert
a817772e25 Fix comment typo 2016-02-27 15:46:38 +01:00
Thomas Gilbert
805433a22e Better handling of variable and parameter names 2016-02-27 15:31:40 +01:00
wing328
5db16325d4 update perl model to support prefix and suffix 2016-02-27 21:47:07 +08:00
hideya kawahara
9ee154c13a Make {{projectName}}API namespace for API classes optional 2016-02-27 19:38:12 +09:00
wing328
28769ac671 add prefix and suffic support to php and python models 2016-02-27 18:30:56 +08:00
Vivin Paliath
c3c73b8dae issue #1347
This is a fix to support enums in query parameters. Enum-related information was not being stored on `CodegenParameter` previously; it is now. Test cases have been added to make sure that the enum information is being properly processed from the model.
2016-02-26 08:37:09 -07:00
wing328
029912b25d Merge pull request #2249 from Mindera/master
Fix for #2100 - List<String> being generated as List<Enum>
2016-02-26 22:34:29 +08:00
Bruno Lopes
051ba88745 Fix for #2100 - List<String> being generated as List<Enum> (update samples) 2016-02-26 14:00:58 +00:00
wing328
c74ea674e0 Merge pull request #2257 from xhh/js-reserved
[JavaScript] Handle reserved operationId/model name in JS client
2016-02-26 21:27:56 +08:00
wing328
ce83a90331 Merge pull request #2211 from ePaul/feature/1255-suffix+prefix-for-model-name
Feature/1255 suffix+prefix for model name
2016-02-26 21:16:42 +08:00
David Hontecillas
0fe8f7e375 fix build.gradle template for retrofit2 2016-02-26 13:34:57 +01:00
xhh
432fb84a06 Handle reserved operationId/model name in JS client 2016-02-26 19:56:52 +08:00
Maelig Nantel
fb954a9ecd Update README.md 2016-02-26 11:45:21 +01:00
Paul Ebermann
36f7ffd6eb [feature #1255] make JavaClientCodegen.toModelName independent from super implementation.
As pointed out in the review, using a super.toModelName call makes future changes harder
to review, therefore we are implementing the addition of suffix and prefix here again.

In addition, I fixed the FIXME about assigning the parameter.
2016-02-26 11:31:37 +01:00
Paul Ebermann
70bcf22c82 [feature #1255] fix import problem pointed out during review.
Instead of declaring `Map` and `List` as primitive (which caused them
to be not imported anymore), now we exclude them from the model name
transformation in `JavaClientCodegen.getSwaggerType`.
2016-02-26 11:20:20 +01:00
Paul Ebermann
0ee77636a3 [feature #1255] Java: Use super.toModelName to allow prefix/Suffix addition.
This allows using the model name prefix and suffix parameters also in Java generators.
We add List and Map to the "language specific primitives" so they don't get mangled
by the suffixes/prefixes in `getSwaggerType`
2016-02-26 11:20:20 +01:00
Jim Schubert
087b9118c1 [feature #1255] support model name prefix + suffix also for C#.
AbstractCSharpCodegen does override toModelName, which made the change
to DefaultCodegen have no effect.
2016-02-26 11:20:19 +01:00
Jim Schubert
a6f3914a92 [feature #1255] prefix and suffix for model names.
This implements the command line arguments `--model-name-prefix` and `--model-name-suffix`
for all languages which do not override `DefaultCodegen.toModelName()`.
This fixes most of swagger-api/swagger-codegen#1255.

Connection to the maven plugin works with additional-properties, a more explicit
parameter waits for swagger-api/swagger-codegen#2168.
2016-02-26 11:20:19 +01:00
Paul Ebermann
98c5e70f7c [feature #1255] Start of an implementation of model name prefix + suffix.
This is just the implementation in DefaultCodegen and some configurator stuff,
the connection to command line arguments is still missing.
2016-02-26 11:20:19 +01:00
Maelig Nantel
37e62b89bc Fixes for JAXRS-CXF Codegen 2016-02-26 10:56:26 +01:00
wing328
04ede6dff5 Merge pull request #2242 from xhh/java-reserved-operation-id
Handle reserved operationId/modelName in Java/Android clients
2016-02-26 17:03:10 +08:00
Mkhail Khlundev
f3a3a0211b clearing -Dapis correctly. Travis, it's the last time, I sweargit add src/test/java/io/swagger/codegen/statichtml/StaticHtmlTagsTest.java 2016-02-26 11:31:38 +03:00
Mkhail Khlundev
d84b565069 kicking ci 2016-02-26 10:36:46 +03:00
xhh
35079fedef Merge branch 'master' into java-reserved-operation-id
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PythonClientCodegen.java
2016-02-26 11:34:47 +08:00
xhh
dd3a06560d Case-insensitive checking on reserved words 2016-02-26 11:21:54 +08:00
wing328
2573146eca Merge pull request #2247 from wing328/csharp_add_more_test
[C#] add more test cases for csharp model
2016-02-26 10:08:02 +08:00
hideya kawahara
ac3ab477d3 Update Swift API method generation for ease of use 2016-02-26 09:21:30 +09:00
Mkhail Khlundev
cd0c0276dc kicking ci 2016-02-25 23:54:00 +03:00
Mkhail Khlundev
d2a0a7b59b kicking ci 2016-02-25 23:16:43 +03:00
Bruno Lopes
4e411a0e64 Fix for #2100 - List<String> being generated as List<Enum> 2016-02-25 19:43:10 +00:00
Mkhail Khlundev
49f56c9e23 issue #1875 fixing -Dapis= work for -l html, provding test. 2016-02-25 22:42:40 +03:00
David Hontecillas
6788c89816 fix templates for retrofit2rx and build.gradle 2016-02-25 17:00:56 +01:00
wing328
da0dc0f80a add test cases for csharp model 2016-02-25 23:37:13 +08:00
wing328
41c0034794 Merge pull request #2243 from wing328/python_better_reserved_word
[Pytthon] better reserved word handling for objc
2016-02-25 22:46:08 +08:00
wing328
2d4ccbfd79 add test case to python, better resered word handling for objc 2016-02-25 20:09:58 +08:00
David Hontecillas
006092f453 removed end of line spaces 2016-02-25 12:23:27 +01:00
David Hontecillas
4ba806f656 update tests for retrofit beta4 2016-02-25 11:34:48 +01:00
wing328
005584cf2a Merge pull request #2240 from wing328/csharp_better_reserved_word
[C#] add better reserved keyword handling for c#
2016-02-25 17:04:44 +08:00
xhh
6b6f0df985 Handle reserved operationId/modelName in Java/Android clients 2016-02-25 16:28:11 +08:00
wing328
700a157b40 Merge pull request #2236 from hideya/fix/2156
Fix 2156 - Use fixed date/time in operation.examples to avoid unnecessary diffs
2016-02-25 16:02:14 +08:00
wing328
329223f364 add better reserved keyword handling for c# 2016-02-25 15:35:05 +08:00
wing328
a351724365 Merge pull request #2239 from wing328/php_reserved_words
[PHP] better reserved words handling for method and model names
2016-02-25 15:06:14 +08:00
wing328
b20c90a346 Merge pull request #2238 from xhh/ruby-empty-reserved-operation-id
[Ruby] Handle empty/reserved operation id
2016-02-25 14:51:58 +08:00
wing328
7b42624a86 log message for writeOptional, better handling of model name for php 2016-02-25 14:37:21 +08:00
xhh
748c032d41 Ruby client: handle reserved words for model names 2016-02-25 14:36:47 +08:00
wing328
6962947611 better handling of model (reserved keyword) 2016-02-25 14:16:40 +08:00
wing328
4e034d3dc5 better reserved word handling for php 2016-02-25 13:16:54 +08:00
xhh
52c9d67025 Update petstore spec and fix tests 2016-02-25 12:20:17 +08:00
wing328
b5ba52111d Merge pull request #2229 from xhh/js-optional-params
[JavaScript] Support optional parameters with object syntax
2016-02-25 11:53:56 +08:00
xhh
84c6b869f8 Ruby client: handle empty/reserved operation id
by using a normalized one instead of throwing errors
2016-02-25 11:48:30 +08:00
wing328
6bbd691913 add https://www.atlassian.com/ 2016-02-25 11:20:31 +08:00
xhh
72b9e2dd81 Update petstore javascript-promise sample and tests 2016-02-25 10:43:45 +08:00
wing328
484ed848ac Merge pull request #2230 from wing328/perl_reserved_word
[Perl] better handling of reserved keyword in Perl
2016-02-25 10:26:53 +08:00
hideya kawahara
a13bba5dc5 Use fixed date/time in operation.examples to avoid unnecessary diffs 2016-02-25 11:20:30 +09:00
wing328
b561acb966 Merge pull request #2220 from xhh/java-exception-javadoc
[Java] Add ApiException to javadoc
2016-02-24 22:40:35 +08:00
wing328
a65e6dbd0a Merge pull request #2226 from wing328/model_more_boolean_flag
Add more boolean flags to CodegenProperty
2016-02-24 22:06:19 +08:00
wing328
2ed02ee187 better handling of reserved keyword in perl 2016-02-24 21:57:29 +08:00
xhh
baf5d2895e JS client: support optional parameters with object syntax
Closes #2027
2016-02-24 20:55:46 +08:00
wing328
3cfb110f6d fix javadoc erorr in CI 2016-02-24 17:44:19 +08:00
wing328
7fb41048dd add boolean flag to codegen parameter 2016-02-24 17:00:33 +08:00
wing328
bd32a6a410 Merge pull request #2227 from xhh/js-reserved-property
[JavaScript] Fix handling of reserved words for property name
2016-02-24 14:44:16 +08:00
xhh
c2fbe349ab JS client: handle reserved words for property name
Closes #2040
2016-02-24 13:12:49 +08:00
wing328
961ee39760 rename to bytearray, add check for boolean, bytearray and binary 2016-02-24 10:39:18 +08:00
wing328
6ae6fe10ec Merge pull request #2218 from wing328/csharp_test_readonly
[C#] add test case, update c# model constructor
2016-02-24 10:27:33 +08:00
wing328
d6df62daaa Merge pull request #2223 from jaz-ah/patch-1
Update README.md
2016-02-24 10:07:34 +08:00
jaz-ah
205348e11c Update README.md
added Activehours to list of company names
2016-02-23 11:48:49 -08:00
wing328
23696c5eb3 Merge pull request #2210 from svenluzar/master
ApiClient Bugfix: containsString removed to support iOS 7
2016-02-24 00:31:55 +08:00
wing328
67d0916c50 add more boolean flag 2016-02-23 23:17:53 +08:00
wing328
a1e15adb8f add required property check to aspnet5 model constructor 2016-02-23 20:39:32 +08:00
xhh
37c77d63c2 Java client: add ApiException to javadoc
and some indentation fixes
2016-02-23 20:09:46 +08:00
wing328
eed91d335d remove exception comment on model constructor to avoid compile warning 2016-02-23 19:32:49 +08:00
wing328
82d7c2d780 add test case, update c# model constructor to remove readonly property 2016-02-23 19:16:26 +08:00
wing328
0520e68e29 Merge pull request #2206 from xhh/java-readonly
[Java] Do not generate setter method for readonly properties
2016-02-23 16:20:32 +08:00
wing328
394b0d066e Merge pull request #2215 from swagger-api/issue-2214
fixes #2214
2016-02-23 11:30:47 +08:00
Jim Schubert
6f32600e9e [maven plugin] Fix typo in comment on CodegenConfiguratorUtils 2016-02-22 22:00:33 -05:00
Tony Tam
d99de3199c fixes #2214 2016-02-22 16:35:02 -08:00
wing328
9ad139c554 add docusign 2016-02-22 22:43:03 +08:00
wing328
e770ba12aa add https://osdn.jp 2016-02-22 21:18:25 +08:00
Sven Luzar
4baa7c01b0 ApiClient Bugfix: containsString removed to support iOS 7 2016-02-22 13:39:21 +01:00
xhh
909d1b537b Support readonly properties for Java retrofit clients 2016-02-22 19:00:57 +08:00
xhh
b8beca7f24 Java: do not generate setter for readonly properties 2016-02-22 15:50:43 +08:00
wing328
d05256d249 Merge pull request #2204 from wing328/case_insensitive_sort
Use case insensitive sort for list returned by the generator
2016-02-22 14:57:43 +08:00
wing328
5160ce9ac1 use case insensitive sort 2016-02-22 14:39:09 +08:00
wing328
0ba123d60f Merge pull request #2196 from swagger-api/issue-2190
added sort
2016-02-22 14:28:15 +08:00
wing328
7307210092 better instruction to update the company list 2016-02-22 14:00:59 +08:00
wing328
f55d1a80be added "in production", add link to submit a PR 2016-02-22 13:57:24 +08:00
Travis Collins
6a1f3f45b1 Added discriminator implementation by overriding NSDictionary initWithDictionary and returning the appropriate class. 2016-02-21 22:08:49 -05:00
wing328
508ae51f84 Merge pull request #1927 from xhh/java-imports
[Java] Improve imports in api/models of Java clients
2016-02-22 11:02:05 +08:00
xhh
8c36ed8409 Merge branch 'master' into java-imports
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-02-22 09:24:58 +08:00
wing328
dd37db14ed fix link to www.expectedbehavior.com 2016-02-22 01:05:44 +08:00
wing328
1090aa2d01 fix anchor 2016-02-22 01:03:06 +08:00
wing328
60424397c1 add company list 2016-02-22 01:02:26 +08:00
wing328
ad6380cb88 Merge pull request #2199 from wing328/readonly_property
[C#] Add support for Readonly property
2016-02-21 23:54:52 +08:00
wing328
91da8fef52 fix typo 2016-02-21 23:33:53 +08:00
wing328
b3b4670055 add exception comment, minor enhancement to param description 2016-02-21 23:31:19 +08:00
wing328
d42f23f829 update test case, minor fix to required property in c# 2016-02-21 23:09:56 +08:00
wing328
890b7d17e3 add readonly property support to C# 2016-02-21 22:36:04 +08:00
wing328
e9bb912fca Merge pull request #2198 from wing328/csharp_doc_exception
[C#] add "exception" documentation to methods
2016-02-21 21:36:29 +08:00
wing328
95ec991c52 add exception comment 2016-02-21 18:54:13 +08:00
wing328
10caf449fb Merge pull request #2195 from swagger-api/issue-2193
added folder to writeOptional
2016-02-21 18:13:29 +08:00
wing328
093448f724 Merge pull request #2192 from tonicospinelli/php-client
avoid inner class
2016-02-21 17:50:21 +08:00
Tony Tam
671c5880b9 added sort 2016-02-20 21:09:27 -08:00
Tony Tam
fc56546d34 added folder to writeOptional 2016-02-20 20:55:20 -08:00
Antonio Spinelli
43f917493d add new tests for naming model class
fix #2191
PR #2192
2016-02-21 01:47:04 -03:00
Antonio Spinelli
1446f4a13e remove support to inner class
fix #2191
PR #2192
2016-02-21 01:33:01 -03:00
wing328
7c2d09d0e4 Merge pull request #2188 from wing328/php_upgrade
[PHP] auto generate README.md and .travis.yml (for CI)
2016-02-20 22:35:35 +08:00
wing328
014e802d3c add a link to aspnet5 2016-02-20 22:09:49 +08:00
wing328
74c512453e add .travis.yml 2016-02-20 21:54:00 +08:00
Antonio Spinelli
bab40566bc remove $ from class name
it is cased because the property start with underscore and
object is created on th fly

fix #2191
2016-02-19 22:56:19 -02:00
wing328
f27d2534a6 update php readme 2016-02-19 23:37:35 +08:00
wing328
bb59ad95cf add readme and travis 2016-02-19 22:08:58 +08:00
wing328
9ecea4b1f8 Merge pull request #2184 from wing328/fix_dollar_sign
Map $ to value for parameter/property name
2016-02-19 20:04:04 +08:00
wing328
56c4de2180 map $ to value for parameter/property name 2016-02-19 19:39:53 +08:00
wing328
a14015c1c7 Merge pull request #2174 from xhh/java-object-mapper-getter
[Java] Add getter/setter methods for objectMapper and httpClient in ApiClient
2016-02-19 18:31:01 +08:00
wing328
cf03cee58f update help generate 2016-02-19 18:19:58 +08:00
xhh
7296da7bc3 Fix tests by upgrading libraries 2016-02-19 17:48:59 +08:00
xhh
a892511b1f Add missing libs to Java jersey2 client 2016-02-19 13:24:16 +08:00
wing328
faef424026 Merge pull request #2180 from solarkennedy/update-readme-wget
Fixed syntax in wget installation
2016-02-19 12:28:25 +08:00
Kyle Anderson
57788614ca Fixed syntax in wget installation 2016-02-18 20:18:27 -08:00
wing328
8c5ee308eb Merge pull request #2179 from delenius/default-string-quotes
Add single quotes around default string values
2016-02-19 11:55:49 +08:00
delenius
5e7dc29b1a Add single quotes around default string values 2016-02-18 19:42:40 -08:00
wing328
84b4af7bfb Merge pull request #2169 from xhh/ruby-nested-model-ref
[Ruby] Fix class name reference of nested model
2016-02-19 11:29:58 +08:00
wing328
13324f3ee7 Merge pull request #2178 from delenius/promise-tests
Update tests for javascript-promise-petstore
2016-02-19 11:25:32 +08:00
xhh
d810434d17 Merge branch 'master' into java-object-mapper-getter 2016-02-19 11:06:36 +08:00
wing328
531d6e5249 Merge pull request #2143 from delenius/empty-objects
Do not create empty objects in model constructors
2016-02-19 11:06:33 +08:00
wing328
5b8d75b8f6 Merge pull request #2119 from vorburger/patch-1
build.gradle missing 2 libs (pom.xml has)
2016-02-19 10:14:35 +08:00
delenius
079addb6db More fine-grained fix
Instead of just ignoring default values in the generated
model constructors, we modify the generator code in Java.
The template checks for null before outputting a default value.
2016-02-18 11:12:01 -08:00
delenius
98fcaa2f15 Update tests for javascript-promise-petstore
This simply copies the new tests from javascript-petstore
into javascript-promise-petstore.
2016-02-18 08:35:07 -08:00
xhh
71a133dafe Merge remote-tracking branch 'origin/master' into ruby-nested-model-ref
Conflicts:
	samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
	samples/client/petstore/ruby/lib/petstore/api/store_api.rb
	samples/client/petstore/ruby/lib/petstore/configuration.rb
2016-02-18 21:13:37 +08:00
xhh
de463cf170 Merge branch 'master' into java-object-mapper-getter
Conflicts:
	samples/client/petstore/java/default/src/main/java/io/swagger/client/ApiClient.java
2016-02-18 20:57:22 +08:00
wing328
eec806b54e Merge pull request #2158 from xhh/java-improvements
[Java] Remove unused jackson imports from Java models
2016-02-18 20:49:21 +08:00
xhh
b9a6a9b6ce Java: add getter/setter for ApiClient#objectMapper
and ApiClient#httpClient as well.

Closes #2134
2016-02-18 20:17:42 +08:00
wing328
615b2727ec Merge pull request #2171 from wing328/php_test_memory_limit
[PHP] update php test case with higher memory limit
2016-02-18 20:03:50 +08:00
wing328
eecce8d2d0 Merge pull request #2170 from wing328/feature_all_models_postprocess
Add postProcessAllModels to default generator
2016-02-18 16:53:43 +08:00
wing328
844078a385 restore README 2016-02-18 16:42:27 +08:00
wing328
fd9a62adbe update php test case with higher memory limit 2016-02-18 16:40:13 +08:00
wing328
1cc8de1860 Merge pull request #2162 from delenius/response-body-null
Handle empty response.body from superagent
2016-02-18 16:28:25 +08:00
wing328
0b125984da add postProcessAllModels 2016-02-18 16:15:15 +08:00
xhh
a21493f2db Ruby: fix class name reference of nested model
and model name in underscore format, e.g. "my_response".

Closes #2140
2016-02-18 15:29:31 +08:00
delenius
692c865c76 Handle empty response.body from superagent
Superagent does not always produce a `body`. See
http://visionmedia.github.io/superagent/ for details. When it
doesn't, we should deserialize the raw `response.text` rather
than returning `null`. Currently, the JS client always returns
`null` when the return type is String! This commit fixes
that.
2016-02-17 22:39:53 -08:00
wing328
61215f31fb Merge pull request #2167 from xhh/javascript-fixes
[JavaScript] Some bug fixes
2016-02-18 13:17:04 +08:00
wing328
c1b4f8df06 Merge pull request #2132 from jimschubert/csharp_35_client
[csharp] Initial settings for v3.5 client compatibility
2016-02-18 12:02:00 +08:00
Jim Schubert
702d019bf8 [maven plugin] Use configurator for maven plugin
see swagger-api/swagger-codegen#2104
2016-02-17 22:33:39 -05:00
xhh
bb70073ca3 JavaScript: fix call to buildCollectisnParam
Closes #2166
2016-02-18 10:31:21 +08:00
xhh
33d7d7b4b1 JavaScript: update Petstore sample and fix tests 2016-02-18 10:20:01 +08:00
Jim Schubert
1d57e70e76 [csharp] Set RestSharp to 105.1.0 due to bug in newer versions 2016-02-17 13:31:50 -05:00
xhh
cac8df949d Fix tests 2016-02-17 19:46:40 +08:00
xhh
b2ed17e63e Remove unused jackson imports from Java models
by fixing the logic of enum Boolean checking.

Other changes:

* Remove the `true &&` prefix from the `equals` method in models.
* Apply some changes of Java-default to Java-okhttp-gson, i.e. adding
  `this` and parent model handling.
* Some improvements on spaces and blank lines.
2016-02-17 18:03:27 +08:00
wing328
c4d799a4a7 Merge pull request #2155 from wing328/multi_auth_setting
Add support for multi-authentication setting
2016-02-17 15:24:05 +08:00
wing328
56789393fa Merge pull request #2154 from wing328/csharp_dollar_sign
[C#] fix dollar sign in parameter name
2016-02-17 11:09:41 +08:00
wing328
97640e622a fix dollar sign in parameter name (C#) 2016-02-17 10:44:23 +08:00
wing328
67bf17c692 Merge pull request #2150 from vivin/master
Fix for issue #2117
2016-02-17 10:28:51 +08:00
Vivin Paliath
04c1940343 Fix for issue #2117
This change adds `this` to field names in `equals` within `pojo.mustache` so that an incorrect `equals` method is not generated in cases where a class has an internal field that is the same as the `classVarName` of the class.
2016-02-16 09:07:47 -07:00
wing328
a47cdddbeb Merge pull request #2056 from xhh/javascript-auth
[JavaScript] Add authentications support to JavaScript client
2016-02-16 22:08:50 +08:00
David Hontecillas
81ca40f661 Merge branch 'master' of https://github.com/dhontecillas/swagger-codegen 2016-02-16 14:06:30 +01:00
dhontecillas
71af74adf3 support changes in retrofit v2.0.0-beta4 2016-02-16 14:04:42 +01:00
wing328
4aa0dc5999 remove comment related to security warning (only 1st is used) 2016-02-16 20:58:18 +08:00
wing328
a87ce3181b Merge pull request #2125 from hideya/fix/objc-method-naming
[ObjC] Fix #2121, generated method names don't follow coding convention
2016-02-16 17:55:50 +08:00
wing328
a4825d8142 add multi auth setting (based on #1961) 2016-02-16 17:17:42 +08:00
xhh
7beb7373c2 Merge branch 'master' into javascript-auth
Conflicts:
	modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-02-16 17:08:58 +08:00
Ron
812ff2f2c5 Merge pull request #2144 from foragerr/fix-typos
Fixed typo
2016-02-15 20:51:45 -08:00
Tony Tam
e5c5dced6c Merge pull request #1970 from evigeant/master
Allow maven-codegen-plugin to set additionalProperties even if cliOptions does not define them
2016-02-15 20:47:04 -08:00
RaGe
8d9b08bee1 fixed typo 2016-02-15 22:52:11 -05:00
wing328
6ecf018f69 Merge pull request #2126 from delenius/enum-exports
Correct exporting of enum classes
2016-02-16 10:24:41 +08:00
hideya kawahara
753499e204 generated ObjC method names to follow Apple's coding convention 2016-02-16 10:55:36 +09:00
delenius
59931ef0f7 Correct exporting of enum classes
Fixes #2102.
2016-02-15 07:46:14 -08:00
wing328
97dfa745cb Merge pull request #2137 from wing328/master
[Java] update pom.xml (okhttp-gson) to catch issue with build.gradle
2016-02-15 18:43:59 +08:00
wing328
516a9413a2 update pom.mustache and sample 2016-02-15 18:24:57 +08:00
wing328
816ae0bb3f update pom for okhttp-gson java to test gradle 2016-02-15 18:17:35 +08:00
Wolfgang Berger
0c7bb8b2ca updates templates according to https://github.com/NYTimes/objective-c-style-guide 2016-02-15 10:43:16 +01:00
wing328
f3582c3841 Merge pull request #2136 from xhh/logging-libs-fix
Java okhttp-gson: fix dependencies
2016-02-15 17:23:59 +08:00
xhh
908ab83d9b Java okhttp-gson: fix dependencies 2016-02-15 16:48:58 +08:00
wing328
af594ea652 Merge pull request #2076 from daveholladay/issue-1487
Fix #1487, TypeScript-Angular output path wrong if apiPackage not the…
2016-02-15 10:43:29 +08:00
wing328
f79ec39d8d Merge pull request #2082 from jhitchcock/feature/vendorExtensionsRoot
Add VendorExtensions to root swagger
2016-02-15 10:41:17 +08:00
wing328
a159998293 Merge pull request #2115 from delenius/enums
Use objects for enums, not constructor functions
2016-02-15 10:29:34 +08:00
wing328
5b0d8b1f13 Merge pull request #2114 from delenius/static-factories
Use static model factory methods
2016-02-15 10:13:09 +08:00
wing328
326ff340dc Merge pull request #2128 from who/master
Adding PATCH header override the default Java client
2016-02-15 10:03:57 +08:00
evigeant
bff0e2ad19 Fixed indentation to use spaces instead of tabs 2016-02-13 11:15:04 -05:00
Jim Schubert
0f6038f3b1 [csharp] Initial settings for v3.5 client compatibility
Pass -DtargetFramework=v3.5 to generate .NET 3.5 client
2016-02-13 10:55:54 -05:00
wing328
e72abc01e9 Merge pull request #2129 from wing328/objc_binary_fix
[ObjC][Swift] fix objc `binary` mapping, add objc,swift to CI tests
2016-02-13 17:59:18 +08:00
wing328
23a90b7dcc remove objc, add pom.xml to test C# petstore client 2016-02-13 17:43:38 +08:00
wing328
57d16dee7b remove swift CI test 2016-02-13 16:46:01 +08:00
wing328
2fcbc38b67 fix objc binary mapping, add objc,swift to CI tests 2016-02-13 16:29:35 +08:00
Andrew B
a303a09749 Adding PATCH header override the default Java client 2016-02-12 18:52:49 -08:00
Ron
9bea6943a2 Update README.md 2016-02-12 12:23:27 -08:00
delenius
fa2333717a Use static model factory methods
The `constructFromObject` factory methods should be class methods
(or "static" methods), not instance methods.

With this commit, ApiClient no longer calls the model constructors
directly. Instead, it calls the new static factory method to get the
new instance. If there is no data on the top level, null is returned.

It is still possible for users to call the model constructors
directly, of course.
2016-02-12 07:54:04 -08:00
delenius
86154f87c3 Use objects for enums, not constructor functions
Fixes #2101.
2016-02-12 07:53:51 -08:00
wing328
847a8e1f3d Merge pull request #2123 from wing328/csharp_add_uuid
[C#] map `uuid` to 'Guid`in C# abstract base class
2016-02-12 23:05:30 +08:00
Wolfgang Berger
6002a983c3 first version of session manager 2016-02-12 16:01:39 +01:00
wing328
81593bc4f6 add delay script, update CI test to run ruby test first 2016-02-12 18:46:19 +08:00
wing328
874d9dc54a add uuid mapping to c# abstract base class 2016-02-12 17:15:53 +08:00
wing328
67865bf46c Merge pull request #2122 from foragerr/master
Closes #2118
2016-02-12 14:03:17 +08:00
RaGe
21b1d19589 Closes #2118
Add basePath without url to jmeter sampler path
2016-02-12 00:07:58 -05:00
Michael Vorburger
698649f6fd build.gradle missing 2 libs (pom.xml has)
jackson-jaxrs-json-provider & com.brsanthu:migbase64 are missing from the build.gradle mustache template (but the pom.xml one has them)

PS: Why are there no automated tests that detect this?
2016-02-12 02:06:22 +01:00
wing328
b54947db86 Merge pull request #2112 from hideya/fix/swift-sanitize
[Swift] Fix #2095, missing sanitization for operationId
2016-02-11 21:17:01 +08:00
wing328
6dfc86f1d2 Merge pull request #2087 from delenius/optional-params
Fix handling of missing optional params
2016-02-11 19:16:39 +08:00
hideya kawahara
aa09678b51 add missing sanitization for operationId 2016-02-11 19:50:14 +09:00
wing328
d05596dad4 Merge pull request #2109 from wing328/perl_test_cases
[Perl] generate files for unit testing models and API files
2016-02-11 09:41:51 +08:00
wing328
7cb2898f47 update perl pom with new test folder 2016-02-11 09:30:41 +08:00
delenius
c7766457bd Don't set missing optional params in models
Fixes #2103.

In the constructFromObject methods, we were always setting all the
parameters, including optional ones that were missing in the `data`
object. Because of the `convertToType` calls, this had the effect
of producing the *strings* `"undefined"` or `"null"` as property
values on the constructed object! This obviously leads to difficult
bugs.

This commit makes sure that we first check that the data field
exists in the data object. Note that both `null` and `undefined`
values will be skipped.
2016-02-10 17:18:31 -08:00
wing328
fdaf1e6236 Merge pull request #2078 from delenius/omit-model-methods
Add option to omit getters/setters on models
2016-02-11 09:10:40 +08:00
wing328
f50174e950 Merge pull request #2077 from spotby/swift-java-date
adding support for java dates
2016-02-11 09:03:19 +08:00
wing328
3d9a331666 automaticallay generate test cases for Perl 2016-02-11 08:24:51 +08:00
Tony Tam
fe2715c1e6 Merge pull request #2108 from swagger-api/issue-2107
added example value
2016-02-10 15:43:22 -08:00
Tony Tam
54e78bd533 added builders 2016-02-10 15:40:47 -08:00
Tony Tam
ab5ca625c1 added example property 2016-02-10 15:28:00 -08:00
Tony Tam
cb196eb351 set example when defined 2016-02-10 15:25:51 -08:00
Tony Tam
3282c1f325 formatting 2016-02-10 14:42:28 -08:00
Tony Tam
06fcb95f64 removed println 2016-02-10 13:17:33 -08:00
Tony Tam
42e626580f Merge pull request #2106 from swagger-api/issue-1956
added `writeOptional` method to avoid clobbering files
2016-02-10 13:14:35 -08:00
Tony Tam
1a9cb4488a added writeOptional method to avoid clobbering files 2016-02-10 12:10:02 -08:00
delenius
722fbe606c Add option to omit getters/setters on models 2016-02-10 08:35:51 -08:00
wing328
7b83664dd1 Merge pull request #2097 from pamuche/patch-2
Fixes typo template folder for javascript in bin-promise-script
2016-02-11 00:13:49 +08:00
wing328
262ee89a0e Merge pull request #2098 from pamuche/patch-3
Fixes typo in template folder for javascript in bin-script
2016-02-11 00:13:15 +08:00
wing328
f53abf7d8e Merge pull request #2083 from wing328/csharp_minor_fix
[C#] minor fix to documentation comment in Configuration class
2016-02-10 22:33:43 +08:00
Robert Clochard
785509a10f Fixes typo in template folder for javascript in bin-script
The template folder for javascript starts wit a capital letter. Shell script will fail on linux because of java.io.FileNotFoundException for the module.mustache
2016-02-10 14:34:40 +01:00
wing328
e7b18a04d9 Merge pull request #2062 from jimschubert/csharp_common
[csharp][aspnet5] AbstractCSharpCodegen base
2016-02-10 21:33:30 +08:00
Robert Clochard
863c77ae6e Fixes typo template folder for javascript in bin-promise-script
the folder name for the template starts with a capital letter.
2016-02-10 14:29:55 +01:00
wing328
b576bc3893 Merge pull request #2092 from sugi/fix-ruby-boolean-handling
ruby: Fix boolean convertion on json to model attribute.
2016-02-10 18:37:18 +08:00
Tatsuki Sugiura
0ea7ae1c16 ruby: Add test for boolean convertion. 2016-02-10 19:18:03 +09:00
Tatsuki Sugiura
a442e1a60d ruby: Fix boolean convertion on json to model attribute.
Current code will converts boolean true of json to false
because ruby's boolean is not matched with any regex.
2016-02-10 15:06:31 +09:00
wing328
3ba4cd1409 Merge pull request #2090 from jaz-ah/issue-1994
[Swift] fix issue 1994: make sure we don't crash if rawValue returns …
2016-02-10 13:54:57 +08:00
wing328
62e3bf2543 Merge pull request #1993 from jaz-ah/issue-1992
[Swift] fix issue 1992 - ensure that our variable names don't match the names…
2016-02-10 13:45:53 +08:00
Joseph Zuromski
694d735edc [Swift] fix issue 1994: make sure we don't crash if rawValue returns nil when trying to create an enumeration - instead return nil which allows the instance variable to be nil in this case (it will still try to unwrap the optional though if you declare the enumeration as a required property)
note: there aren't really any tests I can add to validate this since the service is always returning valid enumerations. but I did update the sample code.
2016-02-09 12:59:14 -08:00
Jim Schubert
37d07e1012 [csharp][aspnet5] AbstractCSharpCodegen base
This moves a bit of logic into a base type to prevent lots of
duplicates.

I've only converted csharp and aspnet5 generators, not csharp 2.0.

This base class should provide enough flexibility to support other C#
based client and server generators.
2016-02-09 12:37:59 -05:00
David Keene
cdc9fb5f5e fixing var name 2016-02-09 09:33:10 -08:00
wing328
a36966d961 Merge pull request #1991 from jaz-ah/issue-1989
[Swift] fix issue 1989: generate AnyObject type from json object type instead…
2016-02-10 00:42:39 +08:00
wing328
95c033c4dd Merge pull request #2072 from delenius/promises
Add usePromise parameter to JS client
2016-02-10 00:34:34 +08:00
Joseph Zuromski
cf7fc1a61b make SwaggerClient a shared scheme 2016-02-09 08:30:27 -08:00
delenius
d56d626450 Remove wildcards from imports 2016-02-09 07:50:12 -08:00
delenius
dd29cf9d53 Use defaultValue for the usePromise CliOption 2016-02-09 07:35:45 -08:00
wing328
fed231c46d fix documentation comment in Configuration class (C#), make
compile-mono permission executable
2016-02-09 22:13:47 +08:00
unknown
2e1e0be2d5 Add VendorExtensions to root swagger 2016-02-09 13:45:12 +01:00
delenius
aab96ec772 Remove unused callback param when using promises 2016-02-08 23:39:05 -08:00
delenius
7301618671 Add petstore tests for usePromises version 2016-02-08 20:02:38 -08:00
delenius
bf71e6b145 Merge branch 'promises' of https://github.com/delenius/swagger-codegen into promises 2016-02-08 19:15:47 -08:00
delenius
e825b953f7 Add usePromise parameter to JS client 2016-02-08 19:15:00 -08:00
wing328
cabe003e02 Merge pull request #2071 from delenius/prototype-tests
Modify JS PetStore tests for prototypes change
2016-02-09 10:41:30 +08:00
David Keene
16f1f74019 adding support for java dates 2016-02-08 16:47:58 -08:00
Joseph Zuromski
d84953d504 add in more tests 2016-02-08 15:22:32 -08:00
Dave Holladay
9673b878a8 Fix #1487, TypeScript-Angular output path wrong if apiPackage not the default 2016-02-08 22:54:45 +00:00
Joseph Zuromski
2465f398da add a couple more user tests 2016-02-08 14:43:08 -08:00
Tony Tam
f539fdcfea Merge pull request #2074 from swagger-api/issue-2073
Update parser, inline resolver
2016-02-08 14:37:34 -08:00
Joseph Zuromski
fff0951771 add in some real tests 2016-02-08 14:23:22 -08:00
Tony Tam
e99e322198 adde Date mapping, escape operationId 2016-02-08 13:48:46 -08:00
Tony Tam
e2d61abc10 update parser version 2016-02-08 13:48:31 -08:00
Tony Tam
802f9e4424 revert to Object when model missing 2016-02-08 13:48:20 -08:00
Joseph Zuromski
288acdb2d4 one more gitignore to keep git clean after build 2016-02-08 13:04:18 -08:00
Joseph Zuromski
7c4983df16 fixup gitignore/schemes 2016-02-08 12:59:35 -08:00
Joseph Zuromski
4a0c7966a1 add in pods 2016-02-08 12:56:49 -08:00
Joseph Zuromski
bc0658e81c add in initial swift client tests 2016-02-08 12:51:14 -08:00
delenius
153faebc6d Modify JS PetStore tests for prototypes change
This is just the result of running ./bin/javascript-petstore.sh
after the fix for #2044.
2016-02-08 12:39:30 -08:00
delenius
7e9a5f00b1 Add usePromise parameter to JS client 2016-02-08 12:31:00 -08:00
Tony Tam
12ff5cc8cd updated to 1.0.18-SNAPSHOT for https://github.com/swagger-api/swagger-parser/issues/182 2016-02-08 10:13:23 -08:00
wing328
2a73c1152c Merge pull request #2063 from mtngld/issue_2037
Conitnue fixing of #2037
2016-02-08 23:09:34 +08:00
Matan Goldman
341f862569 change the order of the elif inside to_dict for better performance (dictionary/additionalProperties is less probable) 2016-02-07 21:46:33 +02:00
Matan Goldman
2ddbfa8218 Now it should be fully compatible with python 2.7 and 3.4 2016-02-07 21:46:33 +02:00
wing328
59fde5f072 Merge pull request #2060 from wing328/scottrw93_fix_2036
[Python] Fix for Python client upload list of files Issue #2036
2016-02-07 23:47:36 +08:00
Scott Williams
a6fe87a52a Use more appropriate variable name 2016-02-07 23:34:04 +08:00
Scott Williams
57f38e4433 Update pet-store python client files 2016-02-07 23:33:49 +08:00
Scott Williams
b43e1e2c8f Change form_param to list of tuples from dict 2016-02-07 23:33:37 +08:00
Scott Williams
2407c494e7 Change post_param from dict to list of tuples to allow list of files 2016-02-07 23:33:27 +08:00
Scott Williams
833ce25cab Change post_param from dict to list of tuples to allow list of files 2016-02-07 23:33:15 +08:00
Scott Williams
5ac630f7ff Fix for issue #2036, python client wont upload list of files 2016-02-07 23:32:52 +08:00
wing328
a968d9000e Merge pull request #2058 from mtngld/master
Add model's "additionalProperties" handling in python client
2016-02-07 22:56:11 +08:00
Matan Goldman
32d2a4d4cb fix python 3.4 compatabilty 2016-02-07 16:23:12 +02:00
Joseph Zuromski
a4a1372fc1 update swift samples 2016-02-07 05:59:23 -08:00
Matan Goldman
ec4c5502f1 fix identation 2016-02-07 14:21:31 +02:00
Matan Goldman
ab39eff8a1 Add additionalProperties handling in python code genrator by adding dictionary handling in model's to_dict() method 2016-02-07 13:11:28 +02:00
wing328
a9ab8a6e98 Merge pull request #2057 from wing328/fix_local_java_test
[Java] fix local Java test issue using fully qualified name
2016-02-07 16:54:20 +08:00
wing328
9f78b3cf9c fix local java test using fully qualified name 2016-02-07 16:16:06 +08:00
wing328
510a5bdb74 Merge pull request #2055 from delenius/prototype-fixed
Use prototypes for model methods
2016-02-07 15:33:23 +08:00
wing328
3174ab0033 Merge pull request #1997 from achew22/javascript_closure
Add Closure annotated Javascript Angular generator
2016-02-07 14:53:25 +08:00
Tony Tam
eafd79e8ea updated index file 2016-02-06 07:07:53 -08:00
Tony Tam
a4d7a97504 added json provider for https://github.com/swagger-api/swagger-core/releases 2016-02-06 06:41:43 -08:00
xhh
d52ebdf684 JavaScript client: Add authentications support
Closes #1952
2016-02-06 16:26:15 +08:00
delenius
897c854728 Use prototypes for model methods
Fixes #2044.
2016-02-05 21:27:11 -08:00
Tony Tam
c80df9ee4d Merge pull request #2052 from swagger-api/issue-2001
added x-swagger-router-controller, operationId for node.js versions
2016-02-05 17:24:00 -08:00
Tony Tam
eb9cff7c48 added x-swagger-router-controller, operationId for node.js versions 2016-02-05 17:12:40 -08:00
wing328
161301fda7 Merge pull request #2049 from glederrey/fix-flash-client-library
Fix Flash client Library
2016-02-05 19:32:52 +08:00
glederrey
41c735b22c ADD: Add the flash client library sample 2016-02-05 12:16:46 +01:00
glederrey
00349406f8 FIX: Fix the flash client library. 2016-02-05 12:16:27 +01:00
wing328
192f2367b3 Merge pull request #2048 from swagger-api/revert-2039-master
Revert "FIX: Fixed FLash Client library"
2016-02-05 19:09:11 +08:00
wing328
81db72b62f Revert "FIX: Fixed FLash Client library" 2016-02-05 19:08:57 +08:00
wing328
2f3c093858 Merge pull request #2045 from jimschubert/patch-1
[aspnet] Updated -l aspnet5 in example command
2016-02-05 12:10:56 +08:00
Jim Schubert
34c7250ce9 [aspnet] Updated -l aspnet5 in example command
Apparently, I missed this in the readme even after the comment in the original pull request
2016-02-04 21:53:24 -05:00
Tony Tam
9eb6993ccc fixed build error 2016-02-04 18:06:59 -08:00
Tony Tam
5e80b61e3e updated swagger-core versions 2016-02-04 18:02:19 -08:00
Tony Tam
190f0a6a08 updated swagger-core to 1.5.7 2016-02-04 17:58:57 -08:00
wing328
148de83a48 Merge pull request #2039 from glederrey/master
FIX: Fixed FLash Client library
2016-02-04 22:06:48 +08:00
Gael Lederrey
5dc67c15e5 ADD: Add Petstore sample for flash 2016-02-04 14:33:46 +01:00
Gael Lederrey
77f9bc3642 FIX: Fixed FLash Client library 2016-02-04 14:03:13 +01:00
wing328
e926c86141 Merge pull request #2035 from wing328/csharp_fix_default_header
[C#] fix default header in async method and sanitize model name
2016-02-04 20:33:46 +08:00
wing328
7b678454f1 fix aspnet5 batch file 2016-02-04 19:30:30 +08:00
wing328
96f9e93cff Merge pull request #2034 from xhh/javascript-collection-format
[JavaScript] Support collectionFormat for parameters in JavaScript client
2016-02-04 19:02:38 +08:00
wing328
8d40b7a890 sanitize model name (C#) 2016-02-04 18:52:16 +08:00
wing328
87253d8533 update sh permission, add aspnet5 bat 2016-02-04 18:18:45 +08:00
wing328
5e1cb9349a update exmaple, add toExampleValue 2016-02-04 18:18:45 +08:00
wing328
246369ccdd update csharp help, fix default header 2016-02-04 18:18:44 +08:00
wing328
aac1b259a7 Merge pull request #2021 from chameleon82/feature/jaxrs-resteasy
Feature/jaxrs resteasy
2016-02-04 17:56:06 +08:00
xhh
47f25efb25 JavaScript client: support collectionFormat for parameters
Closes #1953
2016-02-04 16:30:41 +08:00
wing328
35039bf122 Merge pull request #2030 from xhh/javascript-improvements
[JavaScript]  some improvements and enhancements to JavaScript client
2016-02-04 15:03:50 +08:00
wing328
8285dea113 Merge pull request #2008 from wing328/license_template
[Ruby] add API info as file header to ruby templates
2016-02-04 14:49:57 +08:00
wing328
c33df17590 Merge pull request #2031 from wing328/master
Update pom to use swagger parser 1.0.17
2016-02-04 14:27:42 +08:00
wing328
4a8927f0e3 update pom to use swagger parser 1.0.17 2016-02-04 14:14:25 +08:00
xhh
2eb125681e JavaScript client: handle response deserialization
to support array of models and Date property in model

Closes #1951
2016-02-04 12:36:44 +08:00
wing328
2de3e2e88c Merge pull request #2024 from jimschubert/csharp_webapi_aspnet5_server
[aspnet] Initial implementation of ASP.NET 5 server
2016-02-04 12:08:43 +08:00
xhh
c7fa44cd0c Fix ApiClient.isFileParam in browserify runtime
Closes #2028
2016-02-04 08:43:13 +08:00
Alex
d2a3492dd1 Add bin/jaxrs-resteasy-petstore-server.sh
Add sample into samples/petstore/jaxrs-resteasy
Update multipart/form-data ability
2016-02-04 01:01:28 +06:00
Jim Schubert
0da1057416 [aspnet] Regenerated models to reflect partial class change 2016-02-03 13:14:26 -05:00
Jim Schubert
328dd93aef [aspnet] Update readme to aspnet5, add partial class support and windows batch file 2016-02-03 13:10:52 -05:00
Alex
d98063083b Rename folder resteasy3_0_11 to resteasy 2016-02-03 20:56:18 +06:00
wing328
cd0c8728b7 Merge pull request #2019 from ergon/feature/use-retrofit-beta3
Use retrofit2-beta3 and it's dendencies in retrofit2 clients
2016-02-03 17:49:12 +08:00
xhh
fa052ffa19 JavaScript client: ensure a default project/module name
when it is an empty string (same for "projectVersion")

Closes #2022
2016-02-03 16:01:52 +08:00
xhh
5463015725 JavaScript client: use brackets to access mobel properties
to support nonstandard characters in property names, e.g. "user-status".
2016-02-03 16:01:33 +08:00
wing328
76c3d26c65 Merge pull request #2025 from wizardbyron/master
Run docker in vagrant without sudo and won't check locale settings
2016-02-03 15:52:58 +08:00
GU Yu (Byron)
0a3f0166b0 Run docker without sudo and won't check locale settings 2016-02-03 13:14:04 +08:00
Jim Schubert
c785ffea90 Fix documentation merge and incorrect codegen filename 2016-02-02 22:48:38 -05:00
Jim Schubert
455ba9d839 [aspnet] Initial implementation of ASP.NET 5 server
Things to work on:

Gaps:

* Missing swagger definition functionality:
  - defaultResponse
  - examples
  - auth
  - consumes
  - produces
  - nickname
  - externalDocs
  - imports
  - security
  - schema
* Resolve allParams/hasMore issue with headerParams
* Create functional test project stub
* Resolve all issues with value type return values

In this commit:

* Initial cross-platform ASP.NET 5 API server
* Hook up swagger gen via Swashbuckle and xml comment
* Build script (*nix) in project root
* Dockerfile for container deployment
2016-02-02 22:28:27 -05:00
wing328
cd1e9b0504 add php slim 2016-02-03 10:46:28 +08:00
wing328
17e30f1e3a fix jaxrs links 2016-02-03 10:42:38 +08:00
Alex
af2c66cb97 Update maven and gradle project definition 2016-02-02 21:56:42 +06:00
wing328
974b8a6ee8 Merge pull request #2020 from wing328/csharp_partial_model
[C#] add partial to C# model
2016-02-02 23:32:11 +08:00
wing328
4819f37ed4 Merge pull request #2018 from wing328/haskell_model_notfound
[Haskell] minor fix to template location for haskell-servant
2016-02-02 23:00:45 +08:00
wing328
295cf0b2a1 add partial class to C# model 2016-02-02 22:45:57 +08:00
Silvio Heuberger
671dba4284 Use retrofit2-beta3 and it's dendencies in retrofit2 clients
Requires some changes to the generated client code
as some package renaming and api changes have occurred.
2016-02-02 15:43:08 +01:00
wing328
743a533c65 minor fix to template location for haskell 2016-02-02 22:37:01 +08:00
wing328
3322b0efd8 update list of generators 2016-02-02 22:28:09 +08:00
wing328
f77a8672fc Merge pull request #2011 from nickcmaynard/defaultvalue
Only define @DefaultValue if it's specified in the swagger spec
2016-02-02 22:21:48 +08:00
Andrew Z Allen
42f669031d Add tests for API 2016-02-02 00:45:40 -07:00
wing328
b2d98acb21 Merge pull request #2007 from wing328/csharp_readme
[C#] Add unit tests for C# APIs and models
2016-02-02 12:43:44 +08:00
Alex
40400e3657 update supporting JodaTime and Java8 DateTime 2016-02-02 00:27:08 +06:00
wing328
b275eefbbf remove testFolder (not used) 2016-02-02 00:57:57 +08:00
Alex
62b692da1d fix jboss context-root 2016-02-01 20:30:49 +06:00
wing328
53e74a0bd3 Merge pull request #2006 from wing328/qt5_file_support
[Qt5 C++] Fix file support in form parameter
2016-02-01 15:29:49 +08:00
wing328
70cce7411b Merge pull request #2009 from algas/support-haskell
Code generator for haskell-servant framework
2016-02-01 13:41:51 +08:00
Masahiro Yamauchi
30e8154055 Update dependencies and repository info 2016-02-01 08:59:50 +09:00
Masahiro Yamauchi
2ad3171674 Rename 2016-02-01 08:56:15 +09:00
Nick Maynard
943c66a975 Update samples for DefaultValue 2016-01-31 21:12:16 +00:00
Nick Maynard
e29cf209c8 Only define @DefaultValue if it's specified in the swagger spec 2016-01-31 21:02:11 +00:00
Masahiro Yamauchi
cfcd6cbe48 Rename haskell to haskell-servant 2016-01-31 22:33:51 +09:00
wing328
0e0508cf5a Merge pull request #1998 from WoodWing/master
Support file downloading in Java jersey2 client
2016-01-31 19:57:55 +08:00
Masahiro Yamauchi
4e3d94c005 Code generator for haskell-servant framework 2016-01-31 20:20:19 +09:00
wing328
5a53814346 add api info as file header to ruby templates 2016-01-31 17:08:47 +08:00
wing328
2471163d04 Merge pull request #1999 from wizardbyron/gradle_ide_plugins
[Java Client] Add Eclipse and IntelliJ IDEA support in build.gradle.mustache
2016-01-31 16:02:30 +08:00
wing328
047abc63a4 add test case for c# method 2016-01-31 12:49:32 +08:00
wing328
4ce255dc38 add unit test files for C# 2016-01-31 01:52:41 +08:00
wing328
587615b656 update c# readme with command to generate DLL 2016-01-30 23:06:45 +08:00
wing328
d5aa285926 fix file support in form parameter (qt5cpp) 2016-01-30 15:31:08 +08:00
wing328
f42f9acf35 Merge pull request #2003 from ad2games/non-explicit-ca-info-config
Don't force explicit configuration of CA cert location
2016-01-29 20:00:22 +08:00
chameleon82
46441433e8 initialize commit JaxRS-Resteasy module 2016-01-29 17:48:22 +06:00
Helge Rausch
f85f885191 Don't force explicit configuration of CA cert location
In order to allow openssl to figure out the location of CA certificates
on its own, don't apply the `ssl_ca_cert` configuration parameter if it
is not explicitly set.
2016-01-29 12:18:27 +01:00
wing328
59a75072fd Merge pull request #1934 from xhh/ruby-binary
[Ruby] Support "binary" format for body parameter and response
2016-01-29 13:15:05 +08:00
wing328
7aaf97d3ce Merge pull request #1975 from evigeant/fix-cli-options
Added missing cliOptions in some languages
2016-01-29 13:02:12 +08:00
Andrew Z Allen
b9eb26baff Change indentation to +4 and map binary to string 2016-01-28 21:38:45 -07:00
xhh
172da5b2d8 Merge branch 'master' into ruby-binary
Conflicts:
	samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
2016-01-29 12:02:30 +08:00
xhh
ee1f401145 Merge branch 'master' into java-imports
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-01-29 11:16:14 +08:00
GU Yu (Byron)
06ef76631c Add .gradle into .gitignore. 2016-01-29 01:23:45 +08:00
evigeant
4335dc5d16 Merge remote-tracking branch 'upstream/master' into fix-cli-options
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
	modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java
2016-01-28 12:11:14 -05:00
GU Yu (Byron)
c7c983b733 Add gradle IDE support plugins 2016-01-29 00:41:46 +08:00
Maarten Groot
eee441b72a Update Petstore Java jersey2 sample 2016-01-28 16:35:11 +01:00
Maarten Groot
77d39b9614 Fix indention 2016-01-28 16:09:16 +01:00
Maarten Groot
2efa50cb7f Support file downloading in Java jersey2 client 2016-01-28 15:59:32 +01:00
evigeant
6db358dd39 Merge remote-tracking branch 'upstream/master'
Conflicts:
	modules/swagger-codegen-maven-plugin/src/main/java/io/swagger/codegen/plugin/CodeGenMojo.java
2016-01-28 09:18:24 -05:00
Andrew Z Allen
b1a5080121 Add default includes for Array and Object. 2016-01-27 23:51:25 -07:00
Andrew Z Allen
af6926bd6f Add sample output from Javascript Closure Angular 2016-01-27 23:29:51 -07:00
Andrew Z Allen
8ea7cbc79d Add bash script to run 2016-01-27 23:29:17 -07:00
Andrew Z Allen
b950271940 Add a Javascript (Closure) Angular generator. 2016-01-27 23:02:25 -07:00
wing328
564fa04f7c Merge pull request #1988 from wing328/maven_build_quiet3
Rebase on latest master for "Using logger instead of System.out #1871"
2016-01-28 11:52:35 +08:00
wing328
f8b82e14fe use logger.info to display command line result 2016-01-28 11:25:11 +08:00
Joseph Zuromski
33b5286ba3 fix issue 1992 - ensure that our variable names don't match the names of the generated enums or we will get a compiler error. Also fix the escaping of reserved words to use an underscore as the comment implies instead of the word Swagger. 2016-01-27 10:14:21 -08:00
Joseph Zuromski
f435cb65ce fix issue 1989: generate AnyObject type from json object type instead of generating strings 2016-01-27 09:39:42 -08:00
N090536
16f9c8f7dd Changing to INFO level in order for the following switches to work as
expected:
-DdebugModels
-DdebugOperations
-DdebugSupportingFiles
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
8c3bd60a53 Some more... 2016-01-28 00:13:00 +08:00
JULIEN MASNADA
10a9316d75 Fixed some more indentations problems 2016-01-28 00:13:00 +08:00
JULIEN MASNADA
68dc407f1d Fiexd some indentation problem 2016-01-28 00:12:24 +08:00
JULIEN MASNADA
2a9ead870c Use LOGGER instead of LOG
Use spaces instead of tabs
2016-01-28 00:12:24 +08:00
JULIEN MASNADA
2161907a8f Using logger instead of System.out 2016-01-28 00:11:54 +08:00
wing328
daec1a7783 update clone URL 2016-01-27 16:43:18 +08:00
wing328
841d7dd6af update instruction for running docker in vagrant 2016-01-27 16:41:55 +08:00
wing328
a856e6576d Merge pull request #1943 from wizardbyron/vagrant_new
Run docker in vagrant
2016-01-27 16:34:47 +08:00
wing328
bfd17e45fe Merge pull request #1980 from wing328/ruby_add_test
[Ruby] add auto-generated test cases (rspec)
2016-01-27 15:28:56 +08:00
wing328
d779174977 Merge pull request #1986 from xhh/javascript-superagent-version
[JavaScript] Lock version of superagent to fix testing issues
2016-01-27 14:37:30 +08:00
xhh
29885ab2ae Lock version for superagent to 1.7.1
to avoid an unexpected behavior on request.header in 1.7.2:
Node version's request.header uses lower-case keys while browser
version's request.header keeps current case.

See also visionmedia/superagent#873
2016-01-27 12:06:22 +08:00
wing328
72d7acc06f Merge pull request #1979 from wing328/ts_property_double_quote
[TypeScript] double quote model property name
2016-01-27 10:37:20 +08:00
Tony Tam
dfe1889436 Merge pull request #1983 from tambykojak/patch-1
Typo in README
2016-01-26 10:28:37 -08:00
Tamby Kojak
f12311307e Typo in README
Clent -> Client
2016-01-26 13:18:55 -05:00
wing328
e4a991da0c add auto-generated test case for ruby 2016-01-26 23:15:02 +08:00
wing328
535cc1dfa7 double quote model property in ts 2016-01-26 18:08:50 +08:00
wing328
f2ab4db419 Merge pull request #1965 from wing328/ts_option_property_naming
[TypeScript] add an option to determine property naming convention
2016-01-26 16:54:20 +08:00
wing328
afd451ec04 Merge pull request #1928 from ergon/feature/retrofit2-rx
Feature/retrofit2 rx
2016-01-26 15:58:08 +08:00
wing328
fc88cb9801 Merge pull request #1967 from wing328/support-jaxrs-cxf-2
[Java][JAX-RS] Support JAX-RS CXF
2016-01-26 15:46:54 +08:00
wing328
2e0047cf86 rename jarxs generator 2016-01-26 15:34:43 +08:00
wing328
2046580d41 update based on discussion on
https://github.com/swagger-api/swagger-codegen/pull/1967/files#r50697083
2016-01-26 15:23:50 +08:00
wing328
17f8931887 add default help text for new ts option 2016-01-26 15:02:26 +08:00
wing328
d5d1c7b98f remove unused default value 2016-01-26 15:00:41 +08:00
wing328
abe039a05f fix test case 2016-01-26 15:00:41 +08:00
wing328
218ea50d61 update ts samples 2016-01-26 15:00:41 +08:00
wing328
4971461a23 ts add option for model property naming 2016-01-26 15:00:41 +08:00
wing328
6c531142a9 Merge pull request #1969 from jimschubert/csharp_List_to_ICollection_Tests
[csharp] Model tests for List/Collection options
2016-01-26 14:45:47 +08:00
Tony Tam
decedb6c91 Merge pull request #1977 from swagger-api/issue-1976
added args for maven plugin
2016-01-25 22:08:22 -08:00
Tony Tam
3ddccb5e5c fix for #1976, added missing types 2016-01-25 21:34:28 -08:00
Tony Tam
b641d4a17a refactored for access in maven plugin 2016-01-25 21:33:58 -08:00
wing328
ca941b1e3c Merge pull request #1947 from xhh/javascript-default-headers
[JavaScript] Add default headers and some tests
2016-01-26 12:40:29 +08:00
evigeant
b61d76f291 Removed a duplicate cliOptions (it is already added by the base class) 2016-01-25 22:36:24 -05:00
evigeant
d0b99a0f83 Fixed options provider for all classes where cliOptions were added 2016-01-25 22:17:09 -05:00
evigeant
43807adf4f Added missing cliOptions for JaxRSServerCodegen 2016-01-25 21:48:54 -05:00
evigeant
faadccf371 Added missing cliOptions for the StaticHtmlGenerator and
StaticDocGenerator
2016-01-25 21:39:58 -05:00
evigeant
f13b4deb2e Added warnings when the additionalProperties are not defined in the
cliOptions of a language.
2016-01-25 21:22:18 -05:00
evigeant
68c6954615 Fixed indentation 2016-01-25 13:53:31 -05:00
evigeant
6b59dd0899 Allow mave-codegen-plugin to set additionalProperties even if they are
not declared in the cliOptions.
2016-01-25 13:51:42 -05:00
Jim Schubert
c9a0ff7482 [csharp] Model tests for List/Collection options 2016-01-25 12:45:44 -05:00
wing328
741974c1a9 add shell script for jaxrs-cxf 2016-01-25 22:23:25 +08:00
Silvio Heuberger
e34706386f Change the artifact identifier for the retrofit2-rx sample 2016-01-25 10:29:13 +01:00
Silvio Heuberger
d60f7d1186 Change templates and test code so that the sample is 1.7 compatible
Alas.
2016-01-25 10:29:13 +01:00
Silvio Heuberger
8bb774f821 Add retrofit2rx sample to samples profile
This is so that the sample gets compiled
and executed on mvn verify.
2016-01-25 10:29:13 +01:00
Silvio Heuberger
042dd59a38 Add sample client usage for retrofit2 with rx adapter and java 8 2016-01-25 10:29:13 +01:00
Silvio Heuberger
7dcc1c839e Add script for sample generation and adapt gradle and pom templates 2016-01-25 10:29:13 +01:00
Silvio Heuberger
886abda926 Add 'useRxJava' option to retrofit2 java client generator
This still uses retrofit 2.0.0-beta2 because the api
in beta3 has changed and the package
has been renamed to retrofit2.*

Change retrofit-rx to be a library option
2016-01-25 10:29:13 +01:00
Silvio Heuberger
06827da943 Remove retrofit remnant from javascript client code generator
I highly doubt this code is ever executed.
2016-01-25 10:28:08 +01:00
wing328
9e5e9cba8a Merge pull request #1964 from jimschubert/csharp_List_to_ICollection
[csharp] Return ICollection<T> instead of List<T>
2016-01-25 14:28:20 +08:00
xhh
297597a86c Merge branch 'master' into ruby-binary 2016-01-25 12:48:25 +08:00
xhh
8c19626095 Handle "binary" as String in Ruby client
as it seems weird to handle byte array (array of integer) in Ruby
2016-01-25 12:47:59 +08:00
Jim Schubert
b4eed0d147 Merge branch 'master' into csharp_List_to_ICollection 2016-01-24 23:00:56 -05:00
Jim Schubert
2e958f9223 [csharp] Collections options tests, fix model using directive 2016-01-24 22:55:37 -05:00
wing328
a0b4a07d08 Merge pull request #1960 from dilipkrish/master
Updated the code generation for spring mvc
2016-01-25 10:19:12 +08:00
wing328
fc83139483 resolve minor issue after rebase 2016-01-25 01:11:20 +08:00
Maelig Nantel
668610f7fc Include JAX-RS CXF in the readme 2016-01-25 00:49:41 +08:00
Maelig Nantel
491f97f7ef rename codegen names 2016-01-25 00:49:41 +08:00
Maelig Nantel
6d6f366db4 Finish
Tests ok. Some modifications may be done later, maybe...
2016-01-25 00:49:41 +08:00
Maelig Nantel
f3659f88a8 Work almost finish
Aask @wing328 if the modificatgion in the DefaultGenerator class is a
problem. If needed, find a way to do it only for the CXF Codegen.
TODO: Maybe create an abstract JAX-RS Codegen and make Jersey & CXF
extends it ? CXF should not extends Jersey since there at two different
frameworks implementing the JAX-RS specification.
Important: nothing is tested yet, only visual checks during Maven build.
2016-01-25 00:49:07 +08:00
Maelig Nantel
1dbc8a8552 Unit test correction
A unit test was in error due to a duplicate key in a map. Joda library
is now used by default for JAX-RS code generation.
2016-01-25 00:48:30 +08:00
Maelig Nantel
63b7e24c22 merge resolution 2016-01-25 00:48:30 +08:00
Maelig Nantel
3648a79965 Add CXF codegen
Also rename the existing JAX-RS codegen to JAX-RS-Jersey1 codegen, since
JAX-RS is only a specification. Jersey and CXF are both an
implementation of the JAX-RS specification.
2016-01-25 00:47:29 +08:00
Maelig Nantel
44c1e27680 Add mustache template files for Apache CXF support
probably not the final version of the templates
2016-01-25 00:46:02 +08:00
Jim Schubert
0bb30ddccd Merge branch 'master' of github.com:swagger-api/swagger-codegen into csharp_List_to_ICollection 2016-01-24 09:35:46 -05:00
Jim Schubert
9dc40128ac [csharp] Options: useCollection, returnICollection
This change is inline with Microsoft's recommended guidelines for
collects
(https://msdn.microsoft.com/en-us/library/dn169389(v=vs.110).aspx).

Added generator options for csharp to:

* useCollection: Deserialize responses into and return Collection<T>
* returnICollection: For List<T> or Collection<T>, return ICollection<T>
  instead of the concrete type

As a consequence of useCollection, method imputs will also change to
Collection<T>.
2016-01-24 09:13:39 -05:00
wing328
27d1e380b8 rename nodejs to nodejs-server 2016-01-24 22:08:05 +08:00
wing328
3086bb624f Merge pull request #1941 from jhancock93/projectfile2
CSharp client: optionally build .csproj file
2016-01-24 12:50:40 +08:00
John Hancock
9edbfd6918 Fix csproj to use framework 4.5 instead of 4.5.2 and fix project file option description 2016-01-23 22:59:48 -05:00
wing328
421b70c259 Update CONTRIBUTING.md 2016-01-23 23:20:26 +08:00
wing328
530726911b build status badge updated to svg 2016-01-23 23:06:10 +08:00
wing328
f0eb227fc7 add badges for PR and issue stats 2016-01-23 22:22:50 +08:00
Tony Tam
407c9121bf switched from paramName to baseName to avoid changing format 2016-01-22 20:54:15 -08:00
Tony Tam
ee8547f3b4 Merge pull request #1900 from hiveship/fix-java-warnings
fix java warnings
2016-01-22 20:36:11 -08:00
Ron
ced433f912 Merge pull request #1962 from vanillajonathan/patch-1
Syntax highlighting
2016-01-22 16:25:31 -08:00
Jonathan
acb62810a9 Syntax highlighting
Syntax highlighting
2016-01-23 01:22:16 +01:00
Tony Tam
51c66a270e Merge pull request #1958 from hjacobs/minor-python-flask-clean-up
Python Flask (Connexion) clean up
2016-01-22 14:05:45 -08:00
Tony Tam
e89bac3421 partial fix for #1956 2016-01-22 13:59:07 -08:00
hjacobs
4e9d1e8c79 re-generate flaskConnexion sample server with latest changes 2016-01-22 22:35:37 +01:00
hjacobs
103321d872 fix code formatting of flaskConnexion app.py and use more intuitive run(port=..) 2016-01-22 22:34:49 +01:00
hjacobs
aecc367e35 fix flaskConnexion README template to use correct URLs (contextPath is "/v2" for pet store) 2016-01-22 22:33:32 +01:00
Dilip Krishnan
dd6204019a Updated the generated sample server 2016-01-22 15:32:41 -06:00
hjacobs
9ca83c0174 tweak FlaskConnexionCodegen help string 2016-01-22 22:32:37 +01:00
Dilip Krishnan
a33bff012c Updated the spring mvc server template to springfox 2.3.1 2016-01-22 15:31:27 -06:00
Tony Tam
4b9aa25d63 Merge pull request #1957 from hjacobs/bugfix/issue-1955-readme-fix-python-flask
#1955 fix command in README: flaskConnexion -> python-flask
2016-01-22 13:07:11 -08:00
hjacobs
3cd124603c #1955 fix command in README: flaskConnexion -> python-flask 2016-01-22 22:05:09 +01:00
wing328
d44aa82cc4 Merge pull request #1950 from akkie/master
Namespace is missing for SplFileObject reference
2016-01-22 21:43:09 +08:00
Christian Kaps
618351c11c Namespace is missing for SplFileObject reference 2016-01-22 12:17:58 +01:00
xhh
794589d6b8 JavaScript: add default headers and some tests 2016-01-22 18:46:29 +08:00
Maelig Nantel
4c7d471203 Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
# Conflicts:

#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java
2016-01-22 11:32:08 +01:00
wing328
a550eec389 Merge pull request #1942 from xhh/javascript-fixes
[JavaScript] Fix initialization issues on array and nested model fields
2016-01-22 18:15:20 +08:00
wing328
5d3c8fb811 Merge pull request #1945 from wizardbyron/remove_wrong_tests
Remove useless tests
2016-01-22 18:00:02 +08:00
wing328
5b6d224612 Merge pull request #1747 from wing328/add_golang
[Go] Add Go API client generator
2016-01-22 17:42:30 +08:00
GU Yu (Byron)
cad64724a5 Remove useless tests 2016-01-22 17:39:25 +08:00
wing328
20e531d6dd update test case, add beta to go help 2016-01-22 17:27:30 +08:00
wing328
25b60a194b add sh script for go, add binary mapping for go, fix format 2016-01-22 17:21:51 +08:00
GU Yu (Byron)
66799bc695 Merge branch 'master' into vagrant_new 2016-01-22 16:12:06 +08:00
GU Yu (Byron)
f15341efae Run docker in vagrant 2016-01-22 14:34:13 +08:00
xhh
f1aeb36e6c Update JavaScript style guide's link to ES5 2016-01-22 12:02:01 +08:00
xhh
a607856406 JavaScript: fix model name in initialization and import
Closes #1935
2016-01-22 11:48:59 +08:00
John Hancock
277e7cfa8d Remove defaultValue from project guid cliOption because the guid is a random value 2016-01-21 22:47:53 -05:00
xhh
16e367bdc8 JavaScript: fix constructFromObject for Array fields
Closes #1721
2016-01-22 11:23:45 +08:00
wing328
03b463bc43 Merge pull request #1920 from Shyri/android-volley-library
Android volley library enhancement and tests
2016-01-22 10:52:26 +08:00
John Hancock
60c79d1cae Fix assembly references in project file generation 2016-01-21 21:16:09 -05:00
wing328
53abd8a8fb Merge pull request #1898 from xhh/java-binary-support
[Java okhttp-gson] Support "binary" (byte array) for body parameter and response
2016-01-22 00:03:14 +08:00
Maelig Nantel
87182124a9 Merge branch 'master' into fix-java-warnings 2016-01-21 11:23:11 +01:00
Maelig Nantel
94315a249d Merge branch 'java-support-uuid-generation' into fix-java-warnings 2016-01-21 11:21:22 +01:00
Maelig Nantel
687c2b1431 Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
# Conflicts:

#	modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
2016-01-21 11:17:32 +01:00
wing328
ae342a07cf remove var_dump 2016-01-21 11:13:16 +01:00
wing328
43731403a8 add test cases for findPetsByTags 2016-01-21 11:13:16 +01:00
xhh
1f072a697b Fix Ruby tests of the Petstore sample 2016-01-21 11:13:15 +01:00
xhh
dc32ac18b7 Fix tests of UserAPI 2016-01-21 11:13:14 +01:00
wing328
7f2b3a5587 update csharp readme 2016-01-21 11:13:14 +01:00
xhh
08a2d0d941 Try fixing occasional testing failuers in Java client
by using random and atomically increasing IDs
2016-01-21 11:13:13 +01:00
wing328
ec2655165f Add style guide for JS 2016-01-21 11:13:13 +01:00
xhh
81ed441dfa Use String for "binary" as a workaronud 2016-01-21 11:13:12 +01:00
xhh
ecbc4a147c Set accept header for JavaScript client 2016-01-21 11:13:12 +01:00
wing328
93cadcd755 make slim sh executable 2016-01-21 11:13:11 +01:00
wing328
83a4556803 fix silex shell script 2016-01-21 11:13:11 +01:00
wing328
7c619b244f fix byte[] in spring mvc and java inflector 2016-01-21 11:13:10 +01:00
xhh
c1d5179d72 Some cleanup 2016-01-21 11:13:09 +01:00
xhh
6efbde5691 Make JavaScript client work in both Node.js and browser
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
  with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
  in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
2016-01-21 11:13:09 +01:00
wing328
a2cb3f7c3c add comments 2016-01-21 11:13:08 +01:00
wing328
51f2f8c6ad add test template for php 2016-01-21 11:13:07 +01:00
wing328
f90bd85a4f fix typo Configuraiton 2016-01-21 11:13:07 +01:00
wing328
6d010f9af7 fix typo 2016-01-21 11:13:06 +01:00
wing328
fb1cc254e4 add api test and model test files 2016-01-21 11:13:05 +01:00
wing328
ccd0db4434 fix empty object serialization issue 2016-01-21 11:13:05 +01:00
wing328
58d920eaf0 update tostring to use sanitizeforserialization 2016-01-21 11:13:04 +01:00
wing328
40796b3f4c update comment in csharp test 2016-01-21 11:13:03 +01:00
wing328
7a5d9412c5 update csharp configuration to avoid circular dependency, deprecate
ApiClient.Default
2016-01-21 11:13:03 +01:00
xhh
aad0547b40 Ruby: support binary (byte array) for body parameter and response 2016-01-21 18:01:03 +08:00
xhh
253a955cff Merge branch 'master' into java-binary-support
Conflicts:
	samples/client/petstore/java/default/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/jersey2/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/okhttp-gson/src/test/java/io/swagger/petstore/test/PetApiTest.java
2016-01-21 17:28:14 +08:00
Shyri Villar
877661a1f4 Add OAuth stub [androiod-volley] 2016-01-20 20:59:55 +01:00
Shyri Villar
7f03d5c69e Added PetApiTest [android-volley] 2016-01-20 20:49:37 +01:00
Shyri Villar
407837ebe2 Added configurable timeout 2016-01-20 20:11:36 +01:00
Shyri Villar
92e7d0e69c fix ApiKeyAuth applyToHeader when no api-key is provided 2016-01-20 19:59:28 +01:00
wing328
5d156916d7 Merge pull request #1930 from wing328/php_fix_deserialization
[PHP] add test cases for findPetsByTags
2016-01-21 00:23:54 +08:00
wing328
751b4cd832 remove var_dump 2016-01-20 21:46:10 +08:00
wing328
9b8b1fbb7f Merge pull request #1922 from xhh/javascript-nodejs
[JavaScript] Make JavaScript client work in both Node.js and browser
2016-01-20 21:44:44 +08:00
wing328
058b408dfb add test cases for findPetsByTags 2016-01-20 21:42:51 +08:00
xhh
34a941f352 Improve imports in api/models of Java clients
Closes #1810
2016-01-20 16:49:25 +08:00
wing328
7772c702ce Merge pull request #1925 from wing328/csharp_update_readme
[C#] update README based on developer's feedback
2016-01-20 14:57:56 +08:00
xhh
8ff488cc01 Fix Ruby tests of the Petstore sample 2016-01-20 14:47:03 +08:00
xhh
5eb1cc04b9 Fix tests of UserAPI 2016-01-20 12:16:38 +08:00
wing328
cb8c3dfc2e update csharp readme 2016-01-20 12:00:57 +08:00
xhh
1ddc91b8a9 Try fixing occasional testing failuers in Java client
by using random and atomically increasing IDs
2016-01-20 11:55:04 +08:00
wing328
75a932bf45 Merge pull request #1912 from wing328/csharp_update_test2
[C#] store ApiClient default in Configuration.Default
2016-01-20 11:26:05 +08:00
wing328
e72f8b17f3 Add style guide for JS 2016-01-20 10:58:49 +08:00
xhh
3b5462c1e9 Use String for "binary" as a workaronud 2016-01-20 10:34:36 +08:00
xhh
9c580a2447 Set accept header for JavaScript client 2016-01-20 10:29:09 +08:00
wing328
b21c5f08a7 Merge pull request #1921 from wing328/php_generate_test
[PHP] generate files for unit testing models and API files
2016-01-20 10:05:20 +08:00
John Hancock
629567c5ac Fix project file option handling 2016-01-19 21:00:55 -05:00
John Hancock
b4bce238c2 CSharp: Optionally build csproj file 2016-01-19 21:00:54 -05:00
wing328
719056cf11 Merge pull request #1923 from wing328/java_server_fix_binary
[Java] fix binary in Java spring and inflector generator
2016-01-20 09:15:06 +08:00
wing328
2b09e8f3e5 make slim sh executable 2016-01-19 23:39:07 +08:00
wing328
a4eb5a8fa0 fix silex shell script 2016-01-19 23:35:59 +08:00
wing328
38bac9dfb4 fix byte[] in spring mvc and java inflector 2016-01-19 23:35:23 +08:00
xhh
40d83e7f52 Some cleanup 2016-01-19 22:52:05 +08:00
xhh
14630c7632 Make JavaScript client work in both Node.js and browser
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
  with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
  in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
2016-01-19 22:21:36 +08:00
wing328
61c717b6de add comments 2016-01-19 19:50:27 +08:00
wing328
8927c1dc0f add test template for php 2016-01-19 14:49:32 +08:00
wing328
3269a84632 fix typo Configuraiton 2016-01-19 10:42:17 +08:00
wing328
731fd4be33 fix typo 2016-01-19 10:40:43 +08:00
Shyri Villar
060f0f33c2 add test dependencies [android-volley-library] 2016-01-18 22:11:11 +01:00
Shyri Villar
97e1d1e273 fix networ error excetption for synchronous requests [android-volley-library] 2016-01-18 22:06:02 +01:00
Shyri Villar
51468503b2 fix post, put, delete and patch when body is null [android-volley-library] 2016-01-18 22:05:36 +01:00
wing328
86587607e1 add api test and model test files 2016-01-19 00:51:21 +08:00
wing328
0fa1b1a9f9 Merge pull request #1916 from wing328/php_model_str_to_json
[PHP] fix __toString for nested models
2016-01-18 22:57:38 +08:00
wing328
dcd2c00fe6 fix empty object serialization issue 2016-01-18 21:42:24 +08:00
wing328
9fd4f39c8c update tostring to use sanitizeforserialization 2016-01-18 21:27:29 +08:00
Maelig Nantel
a0424433d0 Merge remote-tracking branch 'refs/remotes/swagger-api/master' 2016-01-18 11:53:30 +01:00
wing328
275269e72a fix indent, update perl & python sample 2016-01-18 11:53:18 +01:00
wing328
f4639f4b7b add binary mapping for code generator 2016-01-18 11:53:18 +01:00
wing328
f4120893b3 fix null apiclient in .net (windows) 2016-01-18 11:53:17 +01:00
Tony Tam
835da98582 fixed templates 2016-01-18 11:53:16 +01:00
Tony Tam
09e32bb959 added date library option 2016-01-18 11:53:16 +01:00
Ole Lensmar
a39a89521f fixed cmdline class in custom template examples 2016-01-18 11:53:15 +01:00
Tony Tam
06ac073740 Update README.md 2016-01-18 11:53:14 +01:00
Maelig Nantel
6e69d4e007 Corrent issue 1885
Handle the Swagger "default" value for a parameter with the JAX-RS
@DefaultValue annotation. This correction will also be reported in the
new JAX-RS CXF Codegen.
2016-01-18 11:53:13 +01:00
Maelig Nantel
370a8d136f fixes 2016-01-18 11:35:57 +01:00
Maelig Nantel
89ed3bdb75 New fix 2016-01-18 11:16:04 +01:00
Maelig Nantel
b292ce54ce Update after merging 2016-01-18 10:10:55 +01:00
Maelig Nantel
a39942f43f Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
# Conflicts:

#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
2016-01-18 10:10:27 +01:00
wing328
7b1dde3d85 Merge pull request #1911 from wing328/mapping_update_binary
Add "binary" mapping in code generators
2016-01-18 12:29:18 +08:00
wing328
d04d554e0a update comment in csharp test 2016-01-18 11:45:13 +08:00
wing328
417dcc8a86 update csharp configuration to avoid circular dependency, deprecate
ApiClient.Default
2016-01-18 11:39:32 +08:00
wing328
e2f646039c Merge pull request #1904 from swagger-api/olensmar-patch-1
fixed cmdline class in custom template examples
2016-01-18 10:08:59 +08:00
wing328
7e6f1f8bf3 Merge pull request #1909 from wing328/csharp_fix_null_apiclient
[C#] fix null ApiClient issue in .net (windows)
2016-01-17 23:45:18 +08:00
wing328
bfc83b330f fix indent, update perl & python sample 2016-01-17 19:32:50 +08:00
wing328
906bd2c7bf add binary mapping for code generator 2016-01-17 19:14:11 +08:00
wing328
1bae5c44b2 fix null apiclient in .net (windows) 2016-01-17 16:04:13 +08:00
Tony Tam
bde2bbab56 Merge pull request #1906 from swagger-api/issue-1905
added date library option
2016-01-15 16:15:41 -08:00
Tony Tam
70784a3d98 fixed templates 2016-01-15 14:28:55 -08:00
Tony Tam
04e0df3b4a added date library option 2016-01-15 14:20:20 -08:00
Ole Lensmar
e3d8eb0e0a fixed cmdline class in custom template examples 2016-01-15 14:02:35 -05:00
Tony Tam
0c2376b429 Update README.md 2016-01-15 09:35:41 -08:00
Tony Tam
e50dc04418 Merge pull request #1902 from hiveship/issue-1885
Correct issue 1885
2016-01-15 08:33:33 -08:00
Maelig Nantel
8005931e5a Corrent issue 1885
Handle the Swagger "default" value for a parameter with the JAX-RS
@DefaultValue annotation. This correction will also be reported in the
new JAX-RS CXF Codegen.
2016-01-15 16:49:36 +01:00
Maelig Nantel
467939216c fix java warnings
Do not impact any feature. Juste correct some Java warnings (static
methods, unused imports or parameters...).
2016-01-15 14:02:55 +01:00
Maelig Nantel
faa4ecd0cd Support java code generation for UUIDProperty
A property defined as "type: string & format: uuid" is now generated in
Java using "java.util.UUID" class instead of a classical String. In the
Java, the UUID class do not provide a constructor. You may use the
method UUID.fromString(<uuid_string>) to construct your UUID object.
2016-01-15 12:39:25 +01:00
xhh
319c260678 Java okhttp-gson: support binary (byte array)
for body parameter and response.
Also Update Java default, jersey2 and okhttp-gson clients to support
(constant) query string in the `path` (to work with the 2 "fake"
petstore endpoints on binary).
2016-01-15 19:33:33 +08:00
wing328
2a5bd0a80e Merge pull request #1897 from wing328/perl_fix_replaceall
[Perl] fix replaceAll to avoid index out of bound exception in Windows
2016-01-15 16:54:22 +08:00
wing328
bfb8cdce2e fix another replaceall in perl codegen 2016-01-15 16:03:35 +08:00
wing328
cbbb48a4e4 fix file.separator in replaceall (perl) 2016-01-15 15:47:40 +08:00
wing328
e0738d2bc6 Merge pull request #1891 from wing328/php_binary_support
[PHP] addd binary support to response and body parameter
2016-01-15 13:52:30 +08:00
wing328
fee8acef97 fix isBinary, CodegenParameter copy, add isBinary to php api client 2016-01-15 11:43:02 +08:00
wing328
c7b9635e98 add test cases for byte array (body) 2016-01-15 11:43:02 +08:00
wing328
f54185c66d add binary support for php response 2016-01-15 11:43:02 +08:00
wing328
078f68a211 Merge pull request #1876 from xhh/file-downloading-fixes
File downloading improvements for Ruby and Java
2016-01-15 11:25:25 +08:00
wing328
0c4cc10095 Merge pull request #1882 from scottrw93/master
Fix for Jaxrs file upload missing param in service class
2016-01-15 11:22:37 +08:00
wing328
56f8d5f9e2 Merge pull request #1886 from bakito/master
skip trailing comma for enums in TypeScript angular
2016-01-15 11:02:58 +08:00
wing328
e1f18527f3 Merge pull request #1884 from wing328/csharp_filename_security
[C#] sanitize filename for C# API client
2016-01-15 10:37:50 +08:00
11356176
52df082b13 Update pet store for jaxrs 2016-01-14 21:39:08 +00:00
11356176
b439bf020e Update pet store for Jaxrs 2016-01-14 20:54:47 +00:00
xhh
521ba9924b Add a method to sanitize filename, add test cases 2016-01-14 23:06:30 +08:00
bakito
341c840bf9 regenerate petshop code 2016-01-14 14:51:06 +01:00
Marc Brugger
198310d5f2 skip trailing comma for enums 2016-01-14 14:06:00 +01:00
tkb16
f1710a1840 skip trailing comma for enums 2016-01-14 12:51:02 +01:00
wing328
f50463da02 fix security issue with filename for c# api client 2016-01-14 10:43:56 +08:00
11356176
c2a001847f Merge remote-tracking branch 'upstream/master' 2016-01-13 18:14:06 +00:00
Scott Williams
e01cde8010 Fix for Jaxrs file upload service class missing param 2016-01-13 15:18:33 +00:00
wing328
13d5bcfa4d Merge pull request #1881 from mkrufky/patch-1
README.md: Validating your OpenAPI Spec should point to #validating-your-openapi-spec
2016-01-13 21:41:46 +08:00
Michael Ira Krufky
62e19c20e2 README.md: Validating your OpenAPI Spec should point to #validating-your-openapi-spec 2016-01-13 08:15:20 -05:00
John Hancock
584ea2862c CSharp: Optionally build csproj file 2016-01-12 21:55:17 -05:00
wing328
ece56af43c Merge pull request #1874 from cbornet/fix_param
[Feign]Fix wrong query param key name in feign client
2016-01-12 20:06:29 +08:00
wing328
c110270cf4 Merge pull request #1878 from xhh/ruby-test-fix
Ruby: fix testing issue of deleting nonexistent pet
2016-01-12 19:47:46 +08:00
xhh
637cae153c Ruby: fix testing issue of deleting nonexistent pet 2016-01-12 18:12:54 +08:00
wing328
24980ea1c6 Merge pull request #1866 from xhh/java-okhttp-gson-debugging
[Java okhttp-gson] Implement the "debugging" option of ApiClient
2016-01-12 16:53:39 +08:00
xhh
ef8d2fd766 Ruby: IO improvements on file downloading
- Use `File.basename` to sanitize the filename got from response header
- Write to the `Tempfile` directly and return it
- Set file encoding according to the response body's encoding

See #1848
2016-01-12 11:59:41 +08:00
wing328
8b430cdeb0 Merge pull request #1864 from wing328/csharp_binary_response
[C#] add binary support
2016-01-12 11:58:28 +08:00
wing328
d35d97d145 Merge pull request #1865 from wing328/php_fix_file_security
[PHP] better filename handling in ObjectSerializer
2016-01-12 11:28:59 +08:00
wing328
be49dc58bd Merge pull request #1857 from erikvanzijst/erik/java_object_naming_clash
Java Class Name Clashes with java.lang.*
2016-01-12 10:57:53 +08:00
wing328
ef8e5dbcf5 Merge pull request #1862 from cbornet/feign_auth
Add auth support to feign library
2016-01-12 09:27:51 +08:00
cbornet
07947d8cad fix wrong query param key name 2016-01-11 22:25:56 +00:00
Shyri Villar
d40bb8ad32 [android-volley] Added synchronous request support 2016-01-11 23:18:18 +01:00
cbornet
5e4db995c9 add oauth support to feign client 2016-01-11 22:16:01 +00:00
cbornet
58c0e63012 add auth support to feign library
Fix #1840
2016-01-11 22:16:01 +00:00
Shyri Villar
59b91c2120 [android-volley] improved RequestQueue configuration and decoupled ApiInvoker from Android Context 2016-01-11 21:18:28 +01:00
xhh
3c6639b4f6 Remove path delimiters from downloading filename 2016-01-11 22:13:07 +08:00
wing328
81436e8ae3 Merge pull request #1839 from Shyri/android-volley-library
Android volley fix responses with additionalProperties and update sdk version
2016-01-11 22:11:44 +08:00
wing328
cba7e063e1 add test case for objectserializer 2016-01-11 21:01:02 +08:00
xhh
b87d6a0f36 Java okhttp-gson: implement the "debugging" option
for ApiClient and upgrade OkHttp
2016-01-11 18:10:02 +08:00
wing328
3099aa2d85 Merge pull request #1853 from xhh/java-timeout
[Java] Support setting connect timeout for the default and jersey2 clients
2016-01-11 17:10:22 +08:00
wing328
eebf743fad better filename handling in objectseralizer (php) 2016-01-11 16:16:49 +08:00
wing328
3c48202bee Merge pull request #1833 from frinux/patch-1
projectName support to fill package.json template
2016-01-11 12:08:31 +08:00
wing328
391eb1bcb0 Merge pull request #1834 from frinux/patch-2
Fixed bug: basePath should not be empty
2016-01-11 11:57:26 +08:00
wing328
e0f43c1c58 add binary support to C# client 2016-01-11 00:45:57 +08:00
wing328
ce82aa41fc Merge pull request #1863 from wing328/csharp_package_config
[C#] Fix comments and add compile-mono.sh
2016-01-10 15:03:59 +08:00
wing328
e1348e7871 add new files for c# 2016-01-10 02:29:58 +08:00
wing328
08756413dc fix comment in csharpdonet2.0 2016-01-10 00:31:37 +08:00
wing328
6b7439b9d9 add compile-mono, fix csharp comment 2016-01-10 00:17:55 +08:00
wing328
ed2cb1d2e4 Merge pull request #1859 from jhancock93/datetimeoffset2
CSharp client: Add support for DateTimeOffset and sourceFolder configuration.
2016-01-09 21:13:01 +08:00
Tony Tam
67e91cdb07 Merge pull request #1861 from erikvanzijst/erik/recursive_equals
#1858: The Java equals/hashcode methods ignores state from superclasses
2016-01-08 15:36:06 -08:00
Erik van Zijst
dbe62bee37 #1858: The Java equals/hashcode methods ignores state from superclasses
This fixes equals/hashCode for derived classes.
2016-01-08 15:11:59 -08:00
Erik van Zijst
995869f4d5 Java Class Name Clashes with java.lang.*
A swagger file that contains a definition named "object" compiles into a
class named Object. This is technically not a problem as it lives in a
different package than java.lang.Object, but this requires the templates to
refer to Java's Object using its fully qualified name.
2016-01-08 11:07:18 -08:00
John Hancock
2a7fc2d00e Fixed whitespace/tab issues 2016-01-08 13:06:25 -05:00
John Hancock
ebe090572f CSharp: add support for DateTimeOffset and sourceFolder configuration options
Adds option to use DateTimeOffset to model datetime fields instead of
DateTime to allow preservation of timezone information. Modifies
ApiClient.ParameterToString to support DateTimeOffset. Also adds
sourceFolder option.
2016-01-08 13:03:33 -05:00
John Hancock
5f9164049c CSharp: add support for DateTimeOffset and sourceFolder configuration 2016-01-08 13:03:24 -05:00
frinux
15676ff72e Update NodeJSServerCodegen.java
projectName was already defined so never overriden.
2016-01-08 16:19:46 +01:00
frinux
6064f32ba5 Compilation error fixed
io.swagger.models.Info dependency added
2016-01-08 16:19:46 +01:00
frinux
4f715342a1 projectName support to fill package.json template
Inspired by ClojureClientCodegen.java, it is interesting to use projectName from info.title swagger spec to fill up package.json name attribute
2016-01-08 16:19:46 +01:00
frinux
b6e8ad56b5 Fixed bug: basePath should not be empty
This last change was producing a wrong swagger spec

@see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
"The value MUST start with a leading slash (/)"
2016-01-08 16:14:50 +01:00
wing328
170bde65e5 Fix link to 2.1.5 2016-01-08 19:55:31 +08:00
wing328
e3b5176792 Merge pull request #1831 from xhh/ruby-deserialize-test
Add test cases of nested array/map deserialization to Ruby petstore sample
2016-01-08 19:07:00 +08:00
xhh
3d65218619 Java jersey2 client: get/set connect timeout 2016-01-08 19:05:43 +08:00
wing328
3639cb5bca Merge pull request #1851 from wing328/csharp_assembly_optional
[C#] add cli option to optionally generate Assemblyinfo.cs
2016-01-08 18:33:15 +08:00
xhh
9657d4437e Java client: get/set connect timeout, fix "debugging" 2016-01-08 17:45:29 +08:00
wing328
468a13dc96 add cli option to optionally generate assemblyinfo.cs (default: true) 2016-01-08 17:03:57 +08:00
Shyri Villar
4261fe402c android-volley-library updated android sdk, buildtools and target versions 2016-01-08 09:28:00 +01:00
Shyri Villar
9fefd1e7e5 Fixed android-volley-library responses when additionalProperties is present. Clean responses mechanism using volley default's 2016-01-08 09:27:59 +01:00
wing328
8bd7640512 Merge pull request #1838 from expectedbehavior/ruby-el-capitan
Minimal update for Ruby testing on El Capitan
2016-01-08 14:55:14 +08:00
wing328
c993b2bd70 Merge pull request #1832 from wing328/php_array_test
[PHP] add more test case for php (array of array, map of map)
2016-01-08 14:39:23 +08:00
wing328
a7ff6e22ab update php sample before runnning CI tests 2016-01-08 14:07:05 +08:00
wing328
a8f5809370 replace httpHeader with httpHeaders in php object serializer 2016-01-08 14:04:10 +08:00
Tony Tam
94abbbdca7 fixed variable 2016-01-07 21:26:19 -08:00
Tony Tam
1b5a7be56d updated .travis 2016-01-07 21:11:00 -08:00
Tony Tam
7c3406804d updated versions 2016-01-07 20:43:49 -08:00
xhh
0a3b72cdf9 Add test cases of nested array/map deserialization to Ruby
petstore sample
2016-01-08 10:47:08 +08:00
wing328
61e6cbef66 fix httpHeader (remove s) 2016-01-08 10:37:48 +08:00
wing328
64427a16d1 add more test case for php (array of array, map of map) 2016-01-08 10:34:19 +08:00
Tony Tam
60bb355ec2 Merge pull request #1846 from swagger-api/KevinGlinski-master-travis
Kevin glinski master travis
2016-01-07 16:18:02 -08:00
Tony Tam
f60c46df4b Merge branch 'KevinGlinski-master' 2016-01-07 15:40:23 -08:00
Tony Tam
66e3cac8db Merge branch 'master' of https://github.com/KevinGlinski/swagger-codegen into KevinGlinski-master 2016-01-07 15:40:01 -08:00
Elijah Miller
c0da950fce Minimal update for Ruby testing on El Capitan. 2016-01-07 18:17:07 -05:00
Tony Tam
30cdb791c3 Merge pull request #1845 from swagger-api/wing328-android_reserved_word-travis
Wing328 android reserved word travis
2016-01-07 15:16:16 -08:00
Tony Tam
bf012f973b Merge branch 'wing328-android_reserved_word' 2016-01-07 14:53:02 -08:00
Tony Tam
e63a4c6651 Merge branch 'android_reserved_word' of https://github.com/wing328/swagger-codegen into wing328-android_reserved_word 2016-01-07 14:52:40 -08:00
Tony Tam
2cf122add6 Merge pull request #1844 from swagger-api/arnested-java-8-doc-travis
Arnested java 8 doc travis
2016-01-07 14:51:33 -08:00
Tony Tam
309906ce3a updated travis file 2016-01-07 14:35:47 -08:00
Tony Tam
939f0a45ca Merge branch 'arnested-java-8-doc' 2016-01-07 14:35:17 -08:00
Kevin Glinski
06717fb307 Merge remote-tracking branch 'upstream/master' 2016-01-07 16:35:08 -05:00
Arne Jørgensen
b256ccb045 Document Java 8 as requirement. 2016-01-07 22:01:22 +01:00
Tony Tam
503fb83e25 Merge pull request #1841 from swagger-api/travis-fix
Travis fix
2016-01-07 12:13:31 -08:00
Tony Tam
352b4ea923 travis 2016-01-07 11:19:29 -08:00
Tony Tam
4fe6381fcf updated travis 2016-01-07 11:03:24 -08:00
Tony Tam
771ddccbe9 updated jersey version 2016-01-07 08:42:21 -08:00
wing328
f7ceace086 Added URL to public docker image
URL added: https://hub.docker.com/r/swaggerapi/swagger-generator/
2016-01-07 21:21:06 +08:00
wing328
0bdff1c50b update reserved word to include local variable names for android, scala 2016-01-07 11:33:16 +08:00
wing328
fc218d0b4f Merge pull request #1812 from captin411/perl-flexible-module-name
[Perl] more flexible perl module naming (Allow::This even without WWW::)
2016-01-07 10:37:45 +08:00
Kevin Glinski
3465a746d3 adding configurable options to the gemspec file 2016-01-06 21:02:29 -05:00
Ron
3a2ad9e2e4 Happy new year! 2016-01-06 16:04:16 -08:00
Tony Tam
cc0d29f3ec fixed javadoc plugin 2016-01-06 12:30:24 -08:00
Tony Tam
ccea106148 Merge pull request #1827 from swagger-api/release-prepare
updated versions
2016-01-06 10:16:30 -08:00
Tony Tam
d4d4c43032 updated versions 2016-01-06 09:47:32 -08:00
Tony Tam
8c8e3227d9 Merge pull request #1826 from swagger-api/issue-1825
added serverPort detection from the spec
2016-01-06 09:41:06 -08:00
Tony Tam
ab91fc8c78 Merge pull request #1824 from wing328/php_update_reserved_wrod
Update reserved word list to include local variable names in API methods
2016-01-06 09:36:00 -08:00
Tony Tam
1110bd7a08 added to templates 2016-01-06 09:31:14 -08:00
Tony Tam
151de79a98 formatting 2016-01-06 09:31:06 -08:00
wing328
61bf45bda4 update typescript reserved word list to include local variable names
used in api methods
2016-01-06 23:58:58 +08:00
wing328
30445633d6 update objc reserved word list to include local variable name in api
methods
2016-01-06 23:58:58 +08:00
wing328
f033f59867 update reserved word list for C# .net 2.0 with local variable name in
api method
2016-01-06 23:58:58 +08:00
wing328
eeaf832cae update csharp reserved words with local variable names in api methods 2016-01-06 23:58:58 +08:00
wing328
22b5f02ec3 update python reserved words to include local variable names in api
methods
2016-01-06 23:58:58 +08:00
wing328
9ab27cd848 update reserved words for php and ruby to include local variable names
in api methods
2016-01-06 23:58:58 +08:00
Tony Tam
19ff7dc19c pom updates 2016-01-06 06:30:25 -08:00
Tony Tam
55cdf68192 Merge pull request #1823 from swagger-api/issue-1822
Added duplicate operation ID generation
2016-01-06 06:25:44 -08:00
Tony Tam
19c81bf7bd fix, tests for #1822 2016-01-06 05:29:44 -08:00
Tony Tam
8923a541c0 Merge pull request #1821 from swagger-api/issue-1819
adds a parentSchema name, escapes reserved words in java client
2016-01-05 16:53:07 -08:00
Tony Tam
ed4a729cd2 added internal names to reserved words list 2016-01-05 16:40:17 -08:00
Tony Tam
b074bfb852 updted to jdk 2016-01-05 16:12:40 -08:00
Tony Tam
e82c12ccf8 updated tests, added parentSchema 2016-01-05 16:12:03 -08:00
Tony Tam
5a956df108 updated jdk version 2016-01-05 16:11:17 -08:00
Tony Tam
d5f17a1c3b Merge pull request #1818 from swagger-api/issue-1817
updated parentModel names in inheritence situations
2016-01-05 15:22:22 -08:00
Tony Tam
ba9bd11a8d updated parentModel names in inheritence situations 2016-01-05 14:58:36 -08:00
Tony Tam
e83cea0a48 Update Dockerfile 2016-01-05 12:30:02 -08:00
Tony Tam
3d6a3e28c2 Update .travis.yml 2016-01-05 12:29:48 -08:00
Tony Tam
4a56369662 Update README.md 2016-01-05 12:25:22 -08:00
Tony Tam
19beb90c27 Update .travis.yml 2016-01-05 12:23:38 -08:00
Tony Tam
8d120a0330 updated scripts 2016-01-05 06:08:22 -08:00
Tony Tam
e1afe7da65 remove println 2016-01-05 05:02:45 -08:00
Tony Tam
380d8c1d15 added config help, example for https://github.com/swagger-api/swagger-codegen/pull/1784#issuecomment-168599569 2016-01-05 05:02:05 -08:00
Tony Tam
ceadea10aa Merge pull request #1813 from swagger-api/issue-1811
added Docker support
2016-01-05 04:31:49 -08:00
Tony Tam
69e7990fe1 updated to enable docker 2016-01-05 04:08:52 -08:00
Tony Tam
a57be19870 updated to install bundler 2016-01-05 03:59:55 -08:00
wing328
1acf5d2ff4 Merge pull request #1816 from xhh/android-volley-library
[Android] Change the android-volley client codegen to an Android library (sub template)
2016-01-05 17:19:05 +08:00
wing328
0635c60cf1 Merge pull request #1815 from wing328/java_server_fix_import
[Java] To fix missing imports in inline models in server templates
2016-01-05 17:06:36 +08:00
xhh
beabe8cda2 Merge branch 'master' into android-volley-library
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AndroidClientCodegen.java
2016-01-05 16:39:15 +08:00
wing328
e21edea98c add sh to generate all java petstore client 2016-01-05 15:07:48 +08:00
wing328
3eb78b12ef Merge pull request #1814 from wing328/master
[Java] To fix missing imports in inline models for java (retrofit, okhttp)
2016-01-05 15:05:40 +08:00
wing328
5a74370180 fix import for java server templates 2016-01-05 15:02:18 +08:00
wing328
99d19575f0 fix missing object import in java (retrofit, okhttp) 2016-01-05 14:44:26 +08:00
Tony Tam
fe151bcb67 . 2016-01-04 21:12:43 -08:00
David Bartle
99842f646f more flexible perl module naming
- No more presuming 'WWW::' is at the beginning
  (default is now "WWW::SwaggerClient" vs "SwaggerClient" in order
   to accomodate)
- Test that module names Like::This write to the filesystem and in
  the mustache templates properly
2016-01-04 20:38:07 -08:00
Tony Tam
43928a7726 enabled docker 2016-01-04 20:25:45 -08:00
Tony Tam
881d1407dc exclusions 2016-01-04 20:24:15 -08:00
Tony Tam
4a5dd60182 added Dockerfile 2016-01-04 20:21:15 -08:00
Tony Tam
a45b72e4da updated to include swagger-ui in war file 2016-01-04 20:21:09 -08:00
Tony Tam
608f045bd0 removed debug level 2016-01-04 20:20:51 -08:00
Tony Tam
40a11004b3 removed logic to make default location 2016-01-04 20:20:37 -08:00
Tony Tam
37a370e662 updated default port 2016-01-04 20:19:16 -08:00
Tony Tam
d18d848729 added relative file logic 2016-01-04 20:19:00 -08:00
wing328
ba8e992806 Merge pull request #1807 from wing328/java_fix_import
[Java] To fix missing imports in inline models
2016-01-05 11:45:50 +08:00
wing328
54a8ebd7d8 Merge pull request #1808 from wing328/python_add_reserved_word
[Python] add 'self' as a reserved keyword to python
2016-01-05 10:30:06 +08:00
wing328
4597d27fe9 add self as a reserved keyword to python 2016-01-05 10:17:07 +08:00
wing328
6967c0c2c7 add comment about java.utils.Objects 2016-01-05 09:59:27 +08:00
wing328
ff9e04e4dd fix #1804 2016-01-05 09:52:33 +08:00
Tony Tam
90d1e280ed Merge pull request #1805 from lugaru1234/options-default-value
Default values have been added to the boolean options
2016-01-04 08:31:22 -08:00
lugaru1234
b88e96ae10 Default values have been added to the boolean options 2016-01-04 16:33:34 +03:00
xhh
bed94ac3d0 Add the missing "volley" dependency 2016-01-04 20:22:33 +08:00
xhh
0103c2f906 Change the android-volley client codegen to an Android library 2016-01-04 19:09:07 +08:00
wing328
563cabe931 Merge pull request #1499 from arnested/collectionFormat
Accept arrays as arguments to collection parameters in PHP client.
2016-01-04 15:41:25 +08:00
wing328
d741ce0d91 Merge pull request #1729 from benmccann/rm-bin
Remove bin directory
2016-01-04 15:31:09 +08:00
wing328
dee885e9f5 Merge pull request #1803 from Tengah/issue-1802
Fixed configuration of host in api_client so that it gets done at run-time not load-time
2016-01-04 15:19:07 +08:00
wing328
c56252e4a0 Merge pull request #1801 from MyPureCloud/issue-1799
Issue 1799 - Inherited classes must come before implemented interface…
2016-01-04 14:52:45 +08:00
wing328
106f20fe51 Merge pull request #1800 from MyPureCloud/issue-1797
Issue 1797 - Adding assembly info
2016-01-04 14:51:40 +08:00
wing328
c315d7f3df Merge pull request #1775 from Shyri/android-volley
Android volley client generator
2016-01-04 14:30:55 +08:00
wing328
ef24b66c6c Merge pull request #1731 from evigeant/feature/jaxrs-no-sys-property
[jaxrs] Updated generator to use additional properties instead of system properties
2016-01-04 11:48:00 +08:00
wing328
3072247ca9 Merge pull request #1792 from xhh/java-model-indented
[Java] Update imports in models of Java clients
2016-01-04 11:04:25 +08:00
Tony Tam
3b8fe6a3cd Merge pull request #1794 from DevFactory/staging/Local-Variables-should-not-be-declared-and-then-immediately-returned-or-thrown-fix-4
Local Variables should not be declared and then immediately returned or thrown
2016-01-03 17:06:49 -08:00
Arne Jørgensen
1292fe4dfd Regenerated PHP petstore sample. 2016-01-03 22:59:15 +01:00
Arne Jørgensen
d71d164843 Accept arrays as arguments to collection parameters. 2016-01-03 22:45:07 +01:00
evigeant
ca67e3506b Fixed idententation to use spaces instead of tab 2016-01-03 15:07:27 -05:00
evigeant
5867608ee1 Merge branch 'master' into feature/jaxrs-no-sys-property
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
	modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java
2016-01-03 08:18:31 -05:00
Bob Pasker
dfae08adc8 in Python, a method as the default value of a formal parameter defines the value when the module is loaded (normally at import time), not when the method is invoked 2015-12-31 18:10:19 -05:00
unknown
58694d0623 Issue 1799 - Inherited classes must come before implemented interfaces in the class definition
* Switched the order of parent class and the interface
2015-12-31 15:34:25 -07:00
unknown
6b39fde35a Issue 1797 - Adding assembly info
* New mustache template created for AssemblyInfo.cs
* Properties added to the C# codegen file to specify the assembly property values and adding AssemblyInfo.mustache to list of supporting files
2015-12-31 14:58:26 -07:00
Kirill Vlasov
6fc871db38 Fixing squid:S1488 - Local Variables should not be declared and then immediately returned or thrown 2015-12-31 17:08:59 +05:00
xhh
f4581d3008 Update imports in models of Java clients
- Remove the StringUtil import which is no longer needed
- Remove duplicated imports of Objects and io.swagger.annotations.*
- Only include jackson related imports in the Java clients needing it
  (i.e. the default, jersey2 and feign Java clients)
2015-12-31 12:44:34 +08:00
Tony Tam
cafea6f726 Merge branch 'DevFactory-staging/serializable-classes-should-have-a-version-id-fix-3' 2015-12-30 19:58:43 -08:00
Tony Tam
b98085eaa5 merged 2015-12-30 19:58:28 -08:00
Tony Tam
1e2abbe422 Merge pull request #1774 from DevFactory/staging/redundant-field-initializer-fix-2
Redundant Field Initializer
2015-12-30 19:54:23 -08:00
Tony Tam
f73acc7c18 Merge pull request #1791 from scottrw93/master
Issue 1631 Valid yml definition generates API error in node js server
2015-12-30 19:51:44 -08:00
Tony Tam
470c17db36 removed printout 2015-12-30 19:48:06 -08:00
11356176
eb2c7708cb Issue 1631 Valid yml definition generates API error in node js server 2015-12-31 01:07:10 +00:00
Tony Tam
0c12971bbb Merge pull request #1790 from swagger-api/issue-1789
updated templates for pojos, enums
2015-12-30 16:21:09 -08:00
Tony Tam
4bd17323d5 pom cleanup 2015-12-30 15:18:00 -08:00
Tony Tam
88fab0b85f Merge branch 'master' into issue-1789 2015-12-30 15:06:54 -08:00
Tony Tam
bf93d48ef2 merged 2015-12-30 15:06:32 -08:00
Tony Tam
2081d9d154 added import-mappings documentation 2015-12-30 15:05:23 -08:00
Ron
9a54371ca9 Swagger Spec -> OpenAPI Spec 2015-12-30 14:52:15 -08:00
Tony Tam
adb3795a44 formatting 2015-12-30 14:51:43 -08:00
Tony Tam
e08e578c58 updated templates per #1789 2015-12-30 14:51:37 -08:00
Tony Tam
9ca914f769 updated jaxrs generator pojos 2015-12-30 14:20:52 -08:00
Tony Tam
83460ba81a improved install instructions 2015-12-30 13:40:58 -08:00
Tony Tam
788c70922d updated cli name 2015-12-30 13:40:51 -08:00
Tony Tam
f0dc103736 Merge pull request #1788 from swagger-api/issue-1764
made imports more intelligent
2015-12-30 13:25:44 -08:00
Tony Tam
ff6a9fc244 Merge pull request #1787 from swagger-api/issue-1454
added BigDecimal java serialization options
2015-12-30 13:16:25 -08:00
Tony Tam
d75e602168 made imports more intelligent 2015-12-30 13:16:08 -08:00
Tony Tam
1cd54ee685 added bigDecimalAsString option to allow serializing with strings 2015-12-30 12:32:37 -08:00
Tony Tam
ac7856d009 formatting 2015-12-30 12:27:31 -08:00
Tony Tam
6f324e069e Merge pull request #1786 from lugaru1234/options-type-fix
CliOption.type has been set to "boolean" for boolean options
2015-12-30 11:01:07 -08:00
Tony Tam
26c50ce0a3 Merge pull request #1785 from swagger-api/issue-1748
added `serverPort`
2015-12-30 11:00:58 -08:00
Tony Tam
460e5befec fixed index issue 2015-12-30 10:42:20 -08:00
lugaru1234
67bea9ec27 CliOption.type has ben set to boolean for boolean options 2015-12-30 18:17:45 +03:00
wing328
96889d47ba Merge pull request #1742 from icha024/master6
Spring-MVC config "j8-async": Uses async servlet & Java 8 interface
2015-12-30 17:00:35 +08:00
Tony Tam
05b0d8f1bf added serverPort 2015-12-30 00:06:24 -08:00
Tony Tam
8146f1dce6 Merge pull request #1750 from swagger-api/issue-1749
added library param
2015-12-30 00:05:05 -08:00
Tony Tam
b5e9ca0295 Merge pull request #1784 from swagger-api/issue-1035
adds configurable date library, prepares for multiple jaxrs versions
2015-12-29 23:57:08 -08:00
Tony Tam
405e09a057 added tests 2015-12-29 23:44:15 -08:00
Tony Tam
29f928d644 prepare for multiple jaxrs libraries 2015-12-29 23:28:31 -08:00
Tony Tam
ffe12b0620 added library, date library 2015-12-29 23:28:09 -08:00
wing328
0b841cb17a Merge pull request #1778 from bradmsmith/master
Update README.mustache
2015-12-30 15:06:27 +08:00
wing328
751051f0e9 Merge pull request #1776 from wing328/update_pom_commonio
Update Apache Common IO to the latest version (2.4)
2015-12-30 14:59:10 +08:00
wing328
dcad165871 Merge pull request #1783 from ModelSolv/Issue-1781
[Akka-Scala] Fix #1781 re specs w/o security defs
2015-12-30 14:49:44 +08:00
wing328
9782bf8981 Merge pull request #1780 from wing328/perl_fix_datetime
[Perl] fix DateTime mapping
2015-12-30 14:36:45 +08:00
wing328
974e0125ce Merge pull request #1768 from pculligan/master
Outstanding fix for #1173: Added support for vendor extensions on model and property
2015-12-30 14:20:24 +08:00
wing328
43b047c720 Merge pull request #1779 from wing328/php_remove_duplicated_mapping
[PHP] remove duplicated type mapping
2015-12-30 14:12:21 +08:00
wing328
0c4214b93c Merge pull request #1777 from xhh/java-model-indented
[Java] Move method StringUtil.toIndentedString to model
2015-12-30 13:54:36 +08:00
Shyri Villar
b41efdab5f updated android-volley build.gradle 2015-12-29 18:12:11 +01:00
Andy Lowry
e864994b62 [Akka-Scala] Fix #1781 re specs w/o security defs
Per issue recommendation, fix is to DefaultCodegen#fromSecurity, which
now returns an empty list rather than null if no securityDefinitions
property is present in the swagger spec
2015-12-29 11:58:28 -05:00
wing328
6180b7b059 Merge pull request #1720 from artem-dudarev/patch-2
[C#] Escape \r in XML comments
2015-12-30 00:40:30 +08:00
Shyri Villar
29c05b5d65 Added string responses [android-volley] 2015-12-29 15:47:38 +01:00
Shyri Villar
58cb5716cb move android-volley generated sample 2015-12-29 15:47:37 +01:00
Shyri Villar
69e1eecee0 Added petstore sample [android-volley] 2015-12-29 15:47:36 +01:00
Shyri Villar
2613e597dd Added petstore sample [android-volley] 2015-12-29 15:47:35 +01:00
Shyri Villar
8260c661b3 Fix AndroidManifest xml schema [android-volley] 2015-12-29 15:47:33 +01:00
Shyri Villar
d162fc5362 Add permissions to manifest [android-volley] 2015-12-29 15:47:32 +01:00
Shyri Villar
602abdd242 Added http basic authentication method [android-volley] 2015-12-29 15:47:31 +01:00
Shyri Villar
ea1cbdaf8f Fix API template [android-volley] 2015-12-29 15:47:30 +01:00
Shyri Villar
e9990d610f Fix API template [android-volley] 2015-12-29 15:47:29 +01:00
Shyri Villar
b91e5c95d5 Rename request templates and fixed patch request [android-volley] 2015-12-29 15:47:28 +01:00
Shyri Villar
a897a2f28b Added PATCH request [android-volley] 2015-12-29 15:47:26 +01:00
Shyri Villar
cb9e4bf961 Added DELETE request [android-volley] 2015-12-29 15:47:25 +01:00
Shyri Villar
a68ecf7809 Added [android-volley] petstore.sh 2015-12-29 15:47:24 +01:00
Shyri Villar
b28e0893f1 Added PUT request [android-volley] 2015-12-29 15:47:23 +01:00
Shyri Villar
9b2a04c787 Added Android-Volley to readme and pom 2015-12-29 15:47:22 +01:00
Shyri Villar
c30720289b Import corrections [android-volley] 2015-12-29 15:45:10 +01:00
Shyri Villar
3c275f1831 try catch when string response removed 2015-12-29 15:45:09 +01:00
Shyri Villar
2af665a8e3 Added ApiKeyAuth implementation [android-volley] 2015-12-29 15:45:08 +01:00
Shyri Villar
e054c3cfc0 Moved request templates [android-volley] 2015-12-29 15:45:06 +01:00
Shyri Villar
89b4d9b4e9 fixed requests packages and imports [android-volley] 2015-12-29 15:45:05 +01:00
Shyri Villar
5cfcb0b60b fixed response parsing in post request template [android-volley] 2015-12-29 15:45:04 +01:00
Shyri Villar
2e4f6dc0a1 Added error listeners in api template [android-volley] 2015-12-29 15:45:03 +01:00
Shyri Villar
cfdf2bc3b8 fix returnContainer [android-volley] 2015-12-29 15:45:02 +01:00
Shyri Villar
b55f8802ac throw volley error on body post null [android-volley] 2015-12-29 15:45:01 +01:00
Shyri Villar
f5aba6d0a5 removed faulty setuseragent [android-volley] 2015-12-29 15:45:00 +01:00
Shyri Villar
93ed2e639d added android-volley to CodegenConfig 2015-12-29 15:44:59 +01:00
Shyri Villar
b290d2d919 fix responses template [android-volley] 2015-12-29 15:44:57 +01:00
Shyri Villar
5c9606bc66 fix apiInvoker template imports [android-volley] 2015-12-29 15:44:56 +01:00
Shyri Villar
7b811ad44b various api template fixes [android-volley] 2015-12-29 15:44:55 +01:00
Shyri Villar
b9abe2b51d Added apiException template [android-volley] 2015-12-29 15:44:54 +01:00
Shyri Villar
84a22c8344 Added build.gradle and AndroidManifest [android-volley] 2015-12-29 15:44:53 +01:00
Shyri Villar
f5e757e6b9 Added build.gradle and AndroidManifest [android-volley] 2015-12-29 15:44:52 +01:00
Shyri Villar
52ebd25732 Added responses class [android-volley] 2015-12-29 15:44:51 +01:00
Shyri Villar
c80ff7ed0d Added responses class 2015-12-29 15:44:49 +01:00
Shyri Villar
980957b9a9 fix getrequest import [android-volley] 2015-12-29 15:44:48 +01:00
Shyri Villar
f3ff567d3f added default string response to api template [android-volley] 2015-12-29 15:44:47 +01:00
Shyri Villar
e098e8f372 Added PostRequest [android-volley] 2015-12-29 15:44:46 +01:00
Shyri Villar
5c79c21f3c fixed Api returnType [android-volley] 2015-12-29 15:44:45 +01:00
Shyri Villar
c3679893df Added jsonUtil and Pair android-volley 2015-12-29 15:44:43 +01:00
Shyri Villar
090839fe06 Added AndroidVolley ClientCodegen 2015-12-29 15:44:42 +01:00
Shyri Villar
acac1bb83b Added GetRequest template android-volley 2015-12-29 15:44:41 +01:00
Shyri Villar
efac324b73 Added api template android-volley 2015-12-29 15:44:40 +01:00
Shyri Villar
16bf228a41 Added model template android-volley 2015-12-29 15:44:38 +01:00
Shyri Villar
a2aeb5a129 Added ClientOptions android-volley 2015-12-29 15:44:37 +01:00
Shyri Villar
795b324fe5 Added imports to Android Volley apiInvoker 2015-12-29 15:44:36 +01:00
Shyri Villar
78352dd454 First steps on Android Volley ApiInvoker 2015-12-29 15:44:35 +01:00
wing328
564f6e2bb5 Merge pull request #1767 from xhh/java-simple-profiling
[Java] Add simple profiling for Java Petstore sample
2015-12-29 16:34:55 +08:00
wing328
e4078855f5 fix date mapping for perl 2015-12-29 16:29:20 +08:00
wing328
8882c36c91 fix perl datetime mapping 2015-12-29 15:21:38 +08:00
wing328
fed4ba3cf8 use DateTime for php date 2015-12-29 15:04:27 +08:00
wing328
11d6bb9a95 php remove duplicated type mapping 2015-12-29 15:00:56 +08:00
wing328
6e4d097710 Merge pull request #1769 from arnested/php-wildcard-response-code
Handle wildcard response codes correct in PHP
2015-12-29 14:49:01 +08:00
wing328
c5ccb3f8eb Merge pull request #1772 from xhh/ruby-inline-base-object
[Ruby] Remove base_object from Ruby model
2015-12-29 13:27:23 +08:00
Brad Smith
acc43e7f71 Update README.mustache
Fix broken link
2015-12-28 21:14:08 -08:00
wing328
745e4f7dc2 Merge pull request #1771 from wing328/perl_simple_model
[Perl] remove base_object from Perl model
2015-12-29 12:54:55 +08:00
xhh
3d4b5ff1c7 Java: Move method StringUtil.toIndentedString to model
Closes #1701
2015-12-29 12:30:54 +08:00
Ian Chan
3103846f45 Enforce Java 1.8 when generating spring-mvc with j8-async option
The spring-mvc j8-async code is now located in it's own sample directory
with Java 8 enforced via Maven plug-in.
2015-12-29 13:40:46 +13:00
wing328
861ea27db7 update pom commonio to latest version 2015-12-29 00:01:18 +08:00
Kirill Vlasov
7a63dd1416 Fixing pmd:RedundantFieldInitializer - Redundant Field Initializer 2015-12-28 17:38:54 +05:00
xhh
670e56f692 Remove base_object from Ruby model
and move methods from base_object to each model so that model files will
have no dependency when generating "models only"
2015-12-28 17:42:33 +08:00
wing328
d6125483cf remove commented code in perl 2015-12-28 16:32:41 +08:00
wing328
7b10023784 update perl sample 2015-12-28 16:12:18 +08:00
wing328
fa9844af7e remove baseobject from perl, add README.mustache 2015-12-28 16:08:43 +08:00
wing328
3a2447634c Merge pull request #1766 from wing328/swift_promisekit_3
[Swift] update promisekit and alamofire to the latest version
2015-12-28 16:01:52 +08:00
wing328
858d44a27f Merge pull request #1761 from xhh/ruby-timeout
Ruby client: add "timeout" to configuration
2015-12-27 23:42:53 +08:00
Arne Jørgensen
84c35bd0cb Regenerated PHP petstore sample. 2015-12-27 15:29:08 +01:00
Tony Tam
cbfdffb09a Merge pull request #1734 from wing328/fix_array_inline_response
Fix array/map inline response/model
2015-12-27 06:18:01 -08:00
Arne Jørgensen
6a45111e10 Handle wildcard response codes correct in PHP
Wildcard response codes was handled like all other response codes
resulting in a misleading construction like this:

```
            switch ($e->getCode()) {
            case 0:
                $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\Error', $e->getResponseHeaders());
                $e->setResponseObject($data);
                break;
            }
```

This commit fixes it to use the default fallback of the PHP switch
statement:

```
            switch ($e->getCode()) {
            default:
                $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\Error', $e->getResponseHeaders());
                $e->setResponseObject($data);
                break;
            }
```
2015-12-27 15:17:18 +01:00
Patrick Culligan
3266fbbf81 corrected JavaDos issues that were UNRELATED to this PR to get the CI server moving. 2015-12-26 18:18:14 -06:00
Patrick Culligan
ef1222f2bf Added support for vendor extensions on model and property 2015-12-26 17:29:56 -06:00
xhh
a2c020f9e8 Add simple profiling for Java Petstore sample 2015-12-26 16:48:49 +08:00
wing328
5638027179 remove downloadImage from petstore.json 2015-12-26 16:15:58 +08:00
wing328
6124062a70 update promisekit and alamofire to the latest version 2015-12-26 16:12:56 +08:00
wing328
89daeb3bf8 Merge pull request #1755 from xhh/java-timeout
Java okhttp-gson client: get/set connect timeout
2015-12-25 14:50:10 +08:00
Ian Chan
916793b820 Added spring-mvc-petstore-j8-aysnc-server.sh executable.
Added the executable and config file for spring-mvc's j8-async target.
2015-12-25 16:34:35 +13:00
xhh
8fa14446e3 Add milliseconds hint to comment of getConnectTimeout 2015-12-24 17:56:19 +08:00
xhh
43c0d20743 Ruby client: add "timeout" to configuration 2015-12-24 14:54:39 +08:00
wing328
732212cdb2 Merge pull request #1763 from wing328/update_pom
Update pom to use latest core and parser
2015-12-24 14:31:40 +08:00
wing328
9181b6b0a7 update pom to use latest core and parser 2015-12-24 14:13:18 +08:00
Tony Tam
3e5f23dc7a Merge pull request #1759 from ePaul/feature/1743-fix-gitignore-for-eclipse-settings
Fix #1743 by removing `*/` from the .settings ignore line.
2015-12-23 10:15:34 -08:00
Paŭlo Ebermann
f2a510912b Fix #1743 by removing */ from the .settings ignore line.
`*/.settings` applies to just the directory below the current one, where there is no such file.
`.settings` applies to all files/directories named such in the whole project.
2015-12-23 19:12:03 +01:00
Tony Tam
609240c389 Merge pull request #1757 from swagger-api/issue-1756
Add binary, byte array properties
2015-12-23 05:59:33 -08:00
Tony Tam
7381b816ff fixes #1756 2015-12-23 05:50:46 -08:00
xhh
a58901f375 Java okhttp-gson client: get/set connect timeout 2015-12-23 18:58:16 +08:00
Ian Chan
638ee88830 Removed Jersey2 test from spring-mvc codegen
The previous patch to allow sub options to spring-mvc had removed the
invalid Jersey2 option from spring-mvc codegen, this patch also fixes
the associated test.
2015-12-23 10:29:47 +13:00
wing328
55fece195d Merge pull request #1733 from DevFactory/staging/override-annotation-should-be-used-where-necessary-fix-1
Fixing squid:S1161 - @Override annotation should be used where necessary
2015-12-22 22:22:46 +08:00
Justus Thorvaldsson
2c1b71429a Fixed space between inline enumclasses and removed extra tostring 2015-12-22 13:49:04 +01:00
Justus Thorvaldsson
3b95df3ca7 Added construct that was removed when merge wrongly 2015-12-22 12:24:08 +01:00
Justus Thorvaldsson
ea55c9c901 Some generated dates was merged incorrectly 2015-12-22 11:00:20 +01:00
Justus Thorvaldsson
7c9832c741 Merge remote-tracking branch 'upstream/master' https://github.com/swagger-api/swagger-codegen.git 2015-12-22 10:43:42 +01:00
Justus Thorvaldsson
7d9bddbe23 Added sample files generated 2015-12-22 08:19:44 +01:00
Tony Tam
b46e3ad400 updated for #1749 2015-12-21 22:16:11 -08:00
wing328
7305b9b4e1 Merge pull request #1745 from wing328/fix_need_to_import
Fix default needToImport
2015-12-22 14:00:01 +08:00
wing328
6b2f15b2cf add packageName support to golang 2015-12-22 00:12:18 +08:00
wing328
0d377507b4 fix post model and update test 2015-12-21 22:34:56 +08:00
wing328
4062deed92 remove logger, fix deserialization of json response 2015-12-21 22:34:56 +08:00
wing328
3ebefba678 better return for golang method 2015-12-21 22:34:56 +08:00
wing328
a05076ed09 first commit of golang generator before fixing return 2015-12-21 22:34:56 +08:00
wing328
33b8e8aa5b add golang 2015-12-21 22:34:56 +08:00
Justus Thorvaldsson
dd568afc0a add all default values 2015-12-21 10:41:58 +01:00
Justus Thorvaldsson
d59dde9fb3 send enum always, default is used 2015-12-21 10:38:33 +01:00
wing328
aa55c95d1b fix default needToImport 2015-12-21 14:12:19 +08:00
wing328
391d0b9f9d Merge pull request #1741 from wing328/csharp_set_timeout
[C#] add timeout and update default constructor with optional value
2015-12-20 23:35:20 +08:00
Ian Chan
29b4098a8d Spring-MVC config "j8-async": Uses async servlet & Java 8 interface
default

This template is mainly for Maven code-gen plugin use-case - when
Swagger spec on existing project changes there is no need to manually
copy/paste the new functions from the generated client. This will
provide a default (empty) implementation to existing impl and user just
need to override the stub implementation.

Because it generates an interface instead of a concrete stub, an
implementation will be needed to actuate a service end-point. And don't
forget to put @Controller on the implementation!
2015-12-20 09:53:41 +13:00
wing328
2cc5924498 update test case, docstring for timeout 2015-12-19 23:15:54 +08:00
wing328
0aa4d2fb8e csharp add timeout, fix default constructor 2015-12-19 22:55:52 +08:00
Tony Tam
968c943c44 more enum support 2015-12-18 10:58:30 -08:00
Tony Tam
24ed12f448 Merge pull request #1740 from swagger-api/issue-1357
Add generation of enum models
2015-12-18 09:34:31 -05:00
wing328
7e3ad18faf Merge pull request #1725 from hacki11/patch-1
[C#] fix filename and Content-Disposition parsing on FileStream
2015-12-18 21:23:25 +08:00
Tony Tam
a3a269c801 Merge branch 'master' into issue-1357 2015-12-18 08:13:20 -05:00
Tony Tam
5814cd47bc updated parser for #1357 2015-12-18 08:12:31 -05:00
Tony Tam
5b0b759e4e added enum class support 2015-12-18 08:12:15 -05:00
wing328
c1dda0ca17 update test case for inline model 2015-12-18 16:50:55 +08:00
wing328
20755bde2b Merge pull request #1735 from xhh/javascript-testing
[Javascript] NPM module, bug fixes, clean-ups, unit tests
2015-12-18 11:44:34 +08:00
xhh
1777124e62 Javascript: remove call to apiClietn.parameterToString 2015-12-17 21:37:04 +08:00
xhh
1b0294dac0 Javascript: fix the constructFromObject issue
Closes #1721
Also fixed indentations in models
2015-12-17 21:29:58 +08:00
xhh
a58f755a6a Escape path parameters with encodeURIComponent
and tweak the test command
2015-12-17 21:19:28 +08:00
xhh
180d2ae908 Merge branch 'master' into javascript-testing 2015-12-17 20:42:37 +08:00
xhh
f07b75f419 Include Javascript client into integration test
and return the promise-like result of $.ajax for API
2015-12-17 20:41:09 +08:00
xhh
794783a4bb Javascript: bug fixes, clean-ups, tests
- Fix the "apiClient.escapeString" issue
- Remove unused code in api.mustache
- Add test case for creating and getting Pet
2015-12-17 20:05:00 +08:00
xhh
dcfe40fc44 Configure Javascript tests to allow running in browser 2015-12-17 18:51:12 +08:00
wing328
03e3a2d0dd remove logger, replace tab with space 2015-12-17 18:05:39 +08:00
xhh
146b4a4813 Use a more real jquery mocking in test 2015-12-17 18:00:09 +08:00
wing328
c8c047a2bc fix map in inline model 2015-12-17 17:55:47 +08:00
wing328
2e143ec054 fix map of inline response 2015-12-17 17:39:55 +08:00
wing328
13b03d92d4 update response to support array of inline model 2015-12-17 17:01:14 +08:00
wing328
c8a10aee33 add support for inline array model defined in inline model 2015-12-17 16:44:35 +08:00
wing328
c5c1712374 fix array of inline model body parameter 2015-12-17 15:44:22 +08:00
evigeant
e19d4228e9 Fixed CodeGen tests following addition of implFolder additional property
in jaxrs
2015-12-16 22:22:01 -05:00
wing328
b073dce1e7 Merge pull request #1726 from tomekc/alamofire-bump-31
Bumped Alamofire library (dependency for Swift client). Alamofire 3.1.x is compatible with previous version and resolves a few annoying bugs, like proper handling of empty HTTP responses.
2015-12-17 10:46:44 +08:00
evigeant
6f4f293943 Updated jaxrs generator to use additional properties instead of java
properties which are very difficult to set from maven
2015-12-16 21:41:43 -05:00
Ben McCann
89be4231db Remove bin directory 2015-12-16 16:09:25 -08:00
hacki11
5f13484157 - add downloadImage to Petstore
- fixed equal instead of ':' after Content-Disposition
- added definition of file (swagger-maven-plugin generates them)
2015-12-17 00:14:21 +01:00
Tomek Cejner
5a1c6e6c17 Updated samples, and cartfile 2015-12-16 21:55:31 +01:00
xhh
cc408a0dd7 Add unit tests to Javascript Petstore sample 2015-12-17 00:32:50 +08:00
xhh
2c1d8b19d2 Make Javascript client a Node.js (NPM) module 2015-12-16 23:51:48 +08:00
Tomek Cejner
10885790f8 Bumped alamofire to 3.1.x 2015-12-16 14:56:37 +01:00
xhh
625e712d7b Javascript: add package.json 2015-12-16 19:57:44 +08:00
xhh
199c4f70ad Add some config options to Javascript client codegen 2015-12-16 19:57:44 +08:00
wing328
0078dc11d1 Merge pull request #1703 from evigeant/feature/simple-jaxrs-serialization
Simplify Jersey and Jersey2 client serialization
2015-12-16 11:32:11 +08:00
hacki11
322e7a4b4b [C#] fix filename and Content-Disposition parsing on FileStream 2015-12-15 23:33:48 +01:00
xhh
3f3e444ab1 Some clean-ups for the Javascript client codegen 2015-12-15 23:00:09 +08:00
wing328
89f269969d Merge pull request #1716 from wing328/csharp_config_remove_static
[C#] remove some static methods in configuration
2015-12-15 19:51:29 +08:00
wing328
adf7ffb3a8 Merge pull request #1718 from artem-dudarev/patch-1
[C#] Fixed ArgumentOutOfRangeException. Optimized string concatenation.
2015-12-15 18:31:53 +08:00
Kirill Vlasov
4ed0173a21 Fixing squid:S2057 - Serializable classes should have a version id 2015-12-15 15:03:33 +05:00
Artyom
b1869c1cae Escape \r in XML comments
Workaround for #1336
2015-12-15 11:21:20 +02:00
Kirill Vlasov
49a6d0e6c1 Fixing squid:S1161 - @Override annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one 2015-12-15 14:09:31 +05:00
Artyom
fbf4d0e419 Fixed ArgumentOutOfRangeException
If the list is empty you get the ArgumentOutOfRangeException when calling flattenString.Remove(flattenString.Length - 1).
Also using a StringBuilder is the prefered way to concatenate strings in a loop.
2015-12-15 10:51:04 +02:00
wing328
b01b414aae add constructor to configuration 2015-12-14 22:26:32 +08:00
wing328
f03bc1f3bc remove some static methods in configuration 2015-12-14 16:07:41 +08:00
wing328
2a5b96dbcf Merge pull request #1698 from xhh/ruby-config
Ruby client: allow setting Configuration in ApiClient
2015-12-14 15:14:08 +08:00
wing328
99c40ae8a0 Merge pull request #1706 from mirthy/issue-1705
[C#] Fix date-time serialization to be ISO 8601
2015-12-14 15:05:07 +08:00
wing328
0d3fdba764 Merge pull request #1714 from wing328/ruby_sinatra_fix
[Ruby][Sinatra] fix bug with adding routes and add swagger.yaml
2015-12-14 11:32:28 +08:00
wing328
1596944ef5 Merge pull request #1712 from xhh/ruby-property-doc
[Ruby] Place properties on separate lines with description
2015-12-14 10:41:21 +08:00
wing328
909ec298af update regex to non-greedy match 2015-12-13 18:18:49 +08:00
wing328
1dd05bb90f add swagger.yaml to ruby sinatra 2015-12-13 17:39:52 +08:00
wing328
bef2dac022 fix add route in sinatra 2015-12-13 17:22:30 +08:00
xhh
ddc4b0a548 Ruby: place properties on separate lines with description 2015-12-12 21:33:32 +08:00
wing328
79033e57fe Merge pull request #1709 from xhh/ruby-profiling
[Ruby] Add simple profiling script and results for Ruby Petstore sample
2015-12-12 16:27:53 +08:00
Jeff Kwan
e0582ae912 Added the ability to customize the DateTimeFormat
Updated Configuration to have a DateTimeFormat
Added Unit Tests for Configuration.DateTimeFormat
Cleaned up namespaces in SwaggerClientTest
Added an embedded resource for testing uploads
2015-12-11 18:28:37 -05:00
evigeant
8fc27b5f0c Fixed a bug where the JSON.mustache file was removed from the jersey2
code generation
2015-12-11 12:57:05 -05:00
xhh
4272e9c027 Add profiling script and results for Ruby Petstore sample 2015-12-11 23:24:19 +08:00
wing328
ca3f0cc4df Merge pull request #1708 from wing328/php_profile
[PHP] add profiling script and result for php
2015-12-11 15:57:34 +08:00
wing328
2a8afbec8d Merge pull request #1697 from wing328/objc_minor_style
[ObjC] minor style change for objc client
2015-12-11 14:43:38 +08:00
wing328
3acb5d60a0 add swgger client profiling for php 2015-12-11 14:36:28 +08:00
wing328
207b14283c Merge pull request #1702 from wing328/php_profile
[PHP] add Php profiler for petstore sample
2015-12-11 12:29:17 +08:00
wing328
5ea073816d Merge pull request #1693 from xhh/clojure-json-mime
[Clojure] Use case-insensitive checking on JSON MIME in Clojure client
2015-12-11 11:52:11 +08:00
Jeff Kwan
ca26608b28 Add some tests for time zones 2015-12-10 20:42:30 -05:00
Jeff Kwan
74d80289dd Add a unit test for the datetime serialization 2015-12-10 20:28:44 -05:00
Jeff Kwan
23fa84bff8 Add some reasonable comments to this 2015-12-10 20:03:29 -05:00
Jeff Kwan
cf3144d31f [C#] Fix date-time serialization to be ISO 8601
Fix the date-time serialization so that it's actually ISO 8601
compliant, currently it generates a date-time string
Issue #1705
2015-12-10 19:56:10 -05:00
wing328
2bb2ab6cad Merge pull request #1700 from wing328/java_feign_update_test
[Java] Update Feign client sample and test cases
2015-12-11 00:41:22 +08:00
evigeant
a3024a3553 Updated PetStore sample for java client jersey2 2015-12-10 10:45:47 -05:00
evigeant
0f67be5590 Simplified Jersey2 java client by letting Jersey do most serialization
and deserialization
2015-12-10 10:45:46 -05:00
evigeant
d51746d7fa Updated PetStore sample for Java client (default) 2015-12-10 10:43:30 -05:00
evigeant
ee39977726 Let Jersey do the serialization and deserialization (including JSON) 2015-12-10 10:43:28 -05:00
evigeant
84ee958117 Simplified Jersey ApiClient by delegating much serialization to Jersey 2015-12-10 09:21:53 -05:00
wing328
9faf6f4068 add php profiler for petstore, fix empty/null string check 2015-12-10 18:55:28 +08:00
wing328
1bab13ab27 Merge pull request #1689 from xhh/java-json-mime
[Java] Improve the checking of JSON MIME
2015-12-10 17:22:40 +08:00
wing328
5ef169de15 update sample and test case for java feign 2015-12-10 16:37:56 +08:00
wing328
f5693b6c73 update sample and test case for java feign 2015-12-10 16:35:38 +08:00
wing328
83dc5393cb Merge pull request #1625 from davidkiss/master
adding support for both Java client using Netflix Feign and JMeter tests
2015-12-10 16:07:48 +08:00
xhh
e9ef143d8f Ruby client: allow setting Configuration in ApiClient
Removed the singleton design from the Configuration class.
Added a `config` field to ApiClient to hold the settings the ApiClient
uses.
2015-12-10 15:25:07 +08:00
wing328
75a1f97a1e minor style change for objc client 2015-12-10 15:21:52 +08:00
wing328
b2b06d72d5 Merge pull request #1685 from mateuszmackowiak/master
Support for extended 'application/json' HeaderAccept types
2015-12-10 14:52:05 +08:00
wing328
2b6b500c35 Merge pull request #1688 from wing328/objc_model_default_value
[ObjC] add default value to ObjC model properties
2015-12-10 14:17:16 +08:00
wing328
1241cdc8aa Merge pull request #1687 from wing328/python_default_value
[Python] add default value to python model's properties
2015-12-10 14:09:29 +08:00
David Kiss
0d19b30c99 using isBodyParam instead of vendorExtention.x-isBody 2015-12-09 23:12:42 -05:00
wing328
ae17f97c99 Merge pull request #1537 from lugaru1234/ensureUniqueParamsRefactor
Code refactoring: ensureUniqueParams default value has been moved from description to the defaultValue field
2015-12-09 23:02:20 +08:00
xhh
63092b8923 Clojure client: use case-insensitive checking on JSON MIME 2015-12-09 22:55:49 +08:00
wing328
7642314b20 Merge pull request #1690 from thibaultclem/master
[Javascript] Fix syntax issue when generating Javascript client operation without parameters
2015-12-09 18:01:54 +08:00
thibaultclem
7c72552780 Update JS Client Petstore samples after fixing issue on the JS api.mustache 2015-12-09 16:32:18 +07:00
wing328
fcd3d3dce1 Merge pull request #1683 from xhh/ruby-default-value
[Ruby] Add default value to Ruby model
2015-12-09 17:15:00 +08:00
thibaultclem
8e0816b5dd Fix syntax issue when generating Javascript client operation without parameters 2015-12-09 16:11:08 +07:00
xhh
ba48f8712d Add test case for the "json_mime?" method 2015-12-09 16:34:53 +08:00
xhh
be0bc71c86 Improve checking of JSON MIME in Java default and jersey2
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:30:55 +08:00
wing328
e767a7d6d8 add default value to objc model properties 2015-12-09 16:21:00 +08:00
xhh
921659be5c Improve checking of JSON MIME in Java okhttp-gson client
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:09:15 +08:00
wing328
36dfa15f93 Merge pull request #1680 from wing328/php_default_value
[PHP] add default value to PHP model
2015-12-09 15:39:34 +08:00
wing328
bf3c1d36d5 add default value to python model 2015-12-09 15:34:39 +08:00
Tony Tam
2e81bf34ce Merge branch 'master' of github.com:swagger-api/swagger-codegen 2015-12-08 20:40:42 -08:00
Tony Tam
78158d79ca updated instructions 2015-12-08 20:40:34 -08:00
xhh
4fdaeb7371 Improve checking of JSON MIME 2015-12-09 12:38:38 +08:00
xhh
b896c9169a Add comments to model classes in Ruby client 2015-12-09 11:30:48 +08:00
xhh
21bd4fbbc1 Add default value to Ruby model 2015-12-09 11:30:09 +08:00
wing328
a866c7fef4 Merge pull request #1682 from wing328/cpp_improve_test
[Qt5] improve Qt5 test cases
2015-12-09 11:19:34 +08:00
wing328
0dd2ebc78e Merge pull request #1679 from wing328/csharp_default_value
[C#] add default member's value for C# models
2015-12-09 10:43:26 +08:00
wing328
f2af05737a Merge pull request #1677 from xhh/ruby-api-with-http-info
Added with-http-info API methods to Ruby client
2015-12-09 10:34:03 +08:00
Mateusz Mackowiak
a01dfb693b Support for extended 'application/json' HeaderAccept types 2015-12-08 18:52:59 +01:00
wing328
258bb27f30 Merge pull request #1672 from wing328/php_add_http_info
[PHP] add `WithHttpInfo` method to return HTTP status code and response headers
2015-12-08 18:31:43 +08:00
wing328
bf63be3a63 improve cpp test case 2015-12-08 17:23:54 +08:00
wing328
2e6da5c0d2 Merge pull request #1678 from lmikkelsen/qt5-include
Replace #import with #include in the Qt5 generator
2015-12-08 17:00:52 +08:00
Justus Thorvaldsson
b434fb517f Fixes enums c# 2015-12-08 09:43:28 +01:00
wing328
4b656c516f add default value to php model 2015-12-08 15:59:46 +08:00
wing328
b122107a80 Merge pull request #1653 from ianmcorvidae/clojure-tweaks
Clojure client: docstrings tweaks
2015-12-08 15:21:45 +08:00
wing328
d7fe8e5505 Merge pull request #1670 from xhh/java-api-with-http-info
Add WithHttpInfo API methods to Java okhttp-gson client
2015-12-08 15:17:03 +08:00
wing328
f9f0992cc8 add default member's value for C# models 2015-12-08 15:09:30 +08:00
Lars Mikkelsen
0cef7116e8 Replace #import with #include in the Qt5 generator
The SWGHelpers.cpp file uses non-standard #import statements. This
causes the following error when built using Visual Studio 2013:

SWGHelpers.cpp(4): fatal error C1083: Cannot open type library file:
'c:\qt\qt5.5.1\5.5\msvc2013_64\include\qtcore\qdebug': Error loading
type library/DLL.
2015-12-07 23:30:37 -05:00
David Kiss
1723078508 added support in feign for binary uploads 2015-12-07 22:34:38 -05:00
David Kiss
538ccb3f12 Merge remote-tracking branch 'xhh2/davidkiss-master'
Conflicts:
	samples/client/petstore/java/feign/README.md
	samples/client/petstore/java/feign/build.gradle
	samples/client/petstore/java/feign/pom.xml
	samples/client/petstore/java/feign/settings.gradle
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java
	samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java
2015-12-07 21:29:14 -05:00
wing328
9ed5b863c4 Update README.md 2015-12-07 16:58:51 +08:00
wing328
b4c6fc20cb Update CONTRIBUTING.md 2015-12-07 16:38:07 +08:00
wing328
105e3e3327 Create CONTRIBUTING.md 2015-12-07 16:36:32 +08:00
xhh
07de03c09b Return data before response status code and headers 2015-12-07 16:10:24 +08:00
xhh
66112d9eb5 Added with-http-info API methods to Ruby client
to allow accessing response status code and headers, and removed the methods of
recording last response info from ApiClient.
2015-12-07 15:48:59 +08:00
David Kiss
eb4acd0971 added unit tests to feign client 2015-12-07 01:13:20 -05:00
xhh
80ed75eef0 Add more javadoc to Java okhttp-gson client 2015-12-07 12:23:50 +08:00
wing328
d1361ab529 Merge pull request #1673 from wing328/js_add_bin
[Javascript] add bin and petstore samples
2015-12-07 12:04:51 +08:00
wing328
b40ee50167 Add batch file for running on Windows, update JS client 2015-12-07 11:53:38 +08:00
xhh
b1bc75189a Add WithHttpInfo API methods to Java okhttp-gson client
to allow accessing response status code and headers
and removed the methods of recording last response info from
ApiClient.
2015-12-07 11:17:32 +08:00
wing328
c5a48d9891 Merge pull request #1664 from xhh/clojure-resp-info
Support accessing response status code and headers in Clojure client
2015-12-07 10:55:14 +08:00
wing328
7aab20485a add bin and petstore samples for JS 2015-12-07 10:53:40 +08:00
wing328
e2679b2aa7 Merge pull request #1671 from jfiala/master
Add basic Javascript SDK support
2015-12-07 10:35:02 +08:00
wing328
340e60002e more style change for php client 2015-12-07 00:52:30 +08:00
wing328
442f87c19a minor style change for php functions 2015-12-07 00:42:25 +08:00
wing328
17b14fa281 update php sample 2015-12-07 00:37:22 +08:00
wing328
11466570f7 php add test case for withinfo method returnig void 2015-12-07 00:30:17 +08:00
wing328
b282d4fbea add http_parse_headers, update test case 2015-12-06 23:58:25 +08:00
wing328
19b409eeaf Merge pull request #1571 from wing328/ts_node_fix_url
[TypeScript][Node] remove url API, fix test case
2015-12-06 23:14:32 +08:00
Johannes Fiala
b0e3be8fb3 add AMD support #1294 2015-12-06 13:45:08 +01:00
Johannes Fiala
a7f754faad Cleanup unused code from Java template in Javascript 2015-12-06 12:08:17 +01:00
Johannes Fiala
d9e024a7bf Cleanup mandatoryParam variable in mustache and Codegen, replaced using
-last
2015-12-06 12:06:23 +01:00
wing328
bb341832a5 add http info to php api methods 2015-12-06 19:00:52 +08:00
Johannes Fiala
b3588da6b7 add @const to enumeration values #1294 2015-12-06 11:02:05 +01:00
Johannes Fiala
529a7abfce Add missing template files #1294 2015-12-06 10:40:30 +01:00
Johannes Fiala
da15cf7867 Ignore settings #1294 2015-12-06 10:38:50 +01:00
Johannes Fiala
8fd6b604d3 Add all required parameters as default constructor parameters #1294 2015-12-06 10:37:06 +01:00
Johannes Fiala
1a8a03ee52 cleanup unused templates #1294 2015-12-06 10:36:12 +01:00
Johannes Fiala
7b64816107 Merge branch 'master' of https://github.com/jfiala/swagger-codegen 2015-12-06 10:34:03 +01:00
Johannes Fiala
34fb2c561f cleanup build error due to missing CodegenConfig configuration entry
#1294
2015-12-06 10:33:52 +01:00
Johannes Fiala
3c3c93a53d refine handling of nested properties #1294 2015-12-05 21:11:55 +01:00
Johannes Fiala
637b9937a8 Merge branch 'master' of https://github.com/jfiala/swagger-codegen 2015-12-05 20:34:55 +01:00
Johannes Fiala
e95e0c88cb add support for clean response object creation in the API class #1294 2015-12-05 20:32:19 +01:00
Johannes Fiala
2b4c6d926e Merge branch 'master' of https://github.com/jfiala/swagger-codegen
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java
2015-12-05 17:44:45 +01:00
Johannes Fiala
7c4471a4d6 Adapt output path for api/model 2015-12-05 17:43:35 +01:00
Johannes Fiala
adb26d83f7 Add basic JS SDK support, see Document client SDK #1294 2015-12-05 17:35:18 +01:00
wing328
9367b7f6a6 Merge pull request #1643 from wing328/csharp_refactor
[C#] refactor code to support multiple API keys in multi-threading environment
2015-12-05 11:16:34 +08:00
Ian McEwen
4edeed6053 Clojure client: put docstrings in the right place in core.clj. 2015-12-04 10:01:07 -07:00
wing328
a2025c286e Merge pull request #1652 from wing328/issue1623
[PHP] fix issue with PHP codegen in Windows
2015-12-04 22:50:53 +08:00
wing328
ddd52f613f remove logging from php generator 2015-12-04 22:37:16 +08:00
wing328
e182ad7897 add log to php code gen 2015-12-04 22:29:29 +08:00
wing328
1f68d0f7b0 fix issue with petstore in windows 2015-12-04 18:54:12 +08:00
wing328
7fd281a98e Merge pull request #1665 from wing328/windows_batch
Add Windows batch files to generate Petstore API client samples
2015-12-04 18:28:00 +08:00
wing328
fe96d8769f minor fix to csharp and objc batch file 2015-12-04 18:16:46 +08:00
wing328
3f328a4994 add batch files for other languages 2015-12-04 18:08:59 +08:00
wing328
14ec9c42cb add ruby windows patch, fix php batch file 2015-12-04 17:48:48 +08:00
wing328
0818f0c8ad add batch script for php 2015-12-04 17:38:29 +08:00
xhh
4dde0a793d Accessing response status code and headers in Clojure client
Closes #1656
2015-12-04 17:23:57 +08:00
wing328
ab520e41be update return tag in documentation (C#) 2015-12-04 17:07:20 +08:00
wing328
e5cd37ee9b Merge pull request #1659 from xhh/clojure-auth
Improvements on Clojure client: authentications, collectionFormat
2015-12-04 12:37:37 +08:00
wing328
0cd801b952 add async with http info method to C# client 2015-12-03 22:09:40 +08:00
wing328
dd28075a0e add back deprecated method 2015-12-03 17:33:25 +08:00
xhh
9d6b1bb224 Support collectionFormat for array parameters in Clojure client
Closes #1655
2015-12-03 17:25:27 +08:00
wing328
4482f71e05 add apiresponse.mustache 2015-12-03 16:47:14 +08:00
wing328
506b8d2b77 add WithHttpInfo method 2015-12-03 16:34:51 +08:00
xhh
afb7e31e21 Add authentications support to Clojure client
Closes #1654
2015-12-03 13:25:59 +08:00
wing328
a5a4f8c7e0 add api response to C# 2015-12-03 11:10:34 +08:00
wing328
409d66bdd2 Merge pull request #1651 from xhh/jersey2-upload
Fix file uploading issue with Java jersey2 client codegen
2015-12-03 10:10:42 +08:00
wing328
d1c31a53f1 Merge pull request #1647 from evigeant/master
Fixed xml validation in web.xml
2015-12-03 10:00:05 +08:00
wing328
330053902e Merge pull request #1649 from xhh/clojure-escape-char
[Clojure] Escape characters for text in Clojure client
2015-12-03 00:07:53 +08:00
xhh
d11a19d171 Fix file uploading issue with Java jersey2 client codegen
Closes #1650
2015-12-02 18:31:02 +08:00
wing328
cea8ad40cd make apiclient less mutable 2015-12-02 16:01:29 +08:00
wing328
5bb444ba6d Merge pull request #1644 from wing328/objc_special_word
[ObjC] escape objc special words with "var"
2015-12-02 10:50:34 +08:00
wing328
032faf7c89 Merge pull request #1646 from wing328/jaxrs_security2
[JAX-RS] Inject JAX-RS SecurityContext information into JAX-RS server implementation
2015-12-02 10:43:15 +08:00
xhh
2b9fe5c9bf Escape characters for text in Clojure client
Closes #1648
2015-12-02 10:25:30 +08:00
evigeant
d49b0e3afd Fixed xml validation in web.xml 2015-12-01 12:05:26 -05:00
wing328
b2bfe8de51 update sample 2015-12-01 23:36:43 +08:00
Nick Maynard
acda5d0bc5 Update samples for JAXRS server SecurityContext
Conflicts:
	samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Category.java
	samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Order.java
	samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Pet.java
	samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Tag.java
	samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/User.java
2015-12-01 23:36:43 +08:00
Nick Maynard
f9185c3f6f JAXRS server :: Inject SecurityContext into every operation 2015-12-01 23:36:43 +08:00
wing328
76de987cd2 Merge pull request #1614 from xhh/auto-generate-operation-id
Auto generate operationId for python-flask server codegen
2015-12-01 17:58:08 +08:00
wing328
d5e394bfcc restore petstore sample 2015-12-01 17:47:37 +08:00
wing328
c64f352ba6 escape objc special word with var 2015-12-01 17:44:07 +08:00
wing328
70dd3a6e4b update to handle model without any properties 2015-12-01 16:28:23 +08:00
wing328
0abe787b58 add default api client 2015-12-01 16:17:22 +08:00
xhh
eb0e47461c Add petstore client sample for Java-feign 2015-12-01 16:13:31 +08:00
wing328
c9f2380f0f add test case for status code and response header 2015-12-01 14:08:20 +08:00
wing328
a78f33581a Merge pull request #1622 from xhh/not-escape-enum-value
[Java] Fix issue of escaping HTML elements in enum values
2015-12-01 11:51:23 +08:00
Tony Tam
ce9f8baefc Merge pull request #1642 from swagger-api/inflector-update
updated templates, files
2015-11-30 10:43:01 -08:00
Tony Tam
88d8ea23e3 updated templates, files 2015-11-30 10:24:15 -08:00
David
21e8822343 cleaned up output folder from repo 2015-11-30 10:44:32 -05:00
davidkiss
340e8b3671 reverting changes to swagger-codegen pom.xml 2015-11-30 10:41:44 -05:00
davidkiss
bb4589dca1 cleaned up README.md 2015-11-30 10:40:12 -05:00
317959997
9cfb1c91db removing references to fork in te main README.md file 2015-11-30 10:31:01 -05:00
317959997
44c2751d80 added missing files to support JMeter 2015-11-30 10:27:16 -05:00
317959997
62c9a3d96f Merge remote-tracking branch 'origin/master' 2015-11-30 10:26:14 -05:00
317959997
83223ae6d0 rolling back previous accidental push on changes to pom.xml files 2015-11-30 10:25:12 -05:00
David Kiss
ff7d177de3 Delete gen-config.json 2015-11-30 10:21:00 -05:00
317959997
845dd22942 added missing JMeter files 2015-11-30 10:18:29 -05:00
wing328
5494b694b7 Merge pull request #1458 from gaalandr/params_support_2.0_spec
fix: codegen does not support spec 2.0 properties for parameters:
2015-11-30 22:02:12 +08:00
xhh
2c6c902878 Merge branch 'master' into auto-generate-operation-id
Conflicts:
	modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/api.mustache
2015-11-30 21:05:47 +08:00
xhh
ba549a966e Merge branch 'master' into not-escape-enum-value
Conflicts:
	modules/swagger-codegen/src/main/resources/Java/enumClass.mustache
2015-11-30 21:00:05 +08:00
wing328
6405fba663 add test cases for configuration 2015-11-30 20:12:58 +08:00
wing328
bb086a7f91 refactor apiclient, configuration, authentication for c# client 2015-11-30 19:45:08 +08:00
wing328
f2aac7a858 Merge pull request #1634 from wing328/objc_update_test_case
[ObjC] skip findPetByStatus test case for objc due to invalid data
2015-11-30 16:14:04 +08:00
wing328
d7460dac32 Merge pull request #1633 from wing328/fix_window_test_case
Add exception handling in the test case (for Windows)
2015-11-30 13:24:13 +08:00
wing328
2bb129b094 skip findPetByStatus test case for objc due to invalid data 2015-11-30 11:45:27 +08:00
wing328
90c93522b3 undo ios sample change 2015-11-30 10:59:51 +08:00
wing328
96003a1e90 fix typo 2015-11-30 10:57:22 +08:00
wing328
1913b0594f Merge pull request #1628 from wing328/csharp_optional_parameter
[C#] add optional parameter to c# API client
2015-11-30 00:09:25 +08:00
wing328
6685bad8de Merge pull request #1629 from wing328/fix_gradle_var
[Java][Retrofit2] update retrofit2 gradle to use double quote
2015-11-29 23:32:37 +08:00
wing328
a41ca7278a update retrofit2 gradle to use double quote 2015-11-29 23:21:44 +08:00
wing328
aadc07396d add better exception handling in test case 2015-11-29 18:31:14 +08:00
wing328
2d34f567ff Merge pull request #1619 from EduGraph/issue-1075
[PHP] Slim Framework v3 - Server Generator #1075
2015-11-29 00:54:03 +08:00
wing328
a9fdb8f424 Merge pull request #1630 from wing328/java_update_sample1
[Java] update java petstore sample
2015-11-29 00:39:07 +08:00
wing328
3e213267aa update java petstore sample 2015-11-29 00:18:34 +08:00
wing328
e1eac1ed5d Merge pull request #1621 from dantran/master
Honor Enum's value
2015-11-29 00:08:21 +08:00
wing328
dfc0813a18 add optional parameter to c# api client (enabled by default) 2015-11-28 15:40:44 +08:00
317959997
a7f225b6ac added support for generating JMeter project from swagger 2015-11-27 12:25:00 -05:00
317959997
7272cb0feb fixed feign api template 2015-11-27 12:21:59 -05:00
jfastnacht
41936ab5c9 Adjusted index.mustache to fit camelCase variable naming.
Updated index.php sample.
2015-11-27 15:37:25 +01:00
jfastnacht
aebfacaa22 Adjusted codegen to fit pull request comments in https://github.com/swagger-api/swagger-codegen/pull/1619 2015-11-27 15:25:40 +01:00
xhh
7731bc9d37 Fix issue of escaping HTML elements in enum values
See swagger-api/swagger-editor#727
2015-11-27 17:32:31 +08:00
dantran
dfda666806 Honor Enum's value 2015-11-26 21:57:37 -08:00
317959997
4b9b7a6a01 updated README.md on the new Netflix Feign library 2015-11-26 13:37:58 -05:00
317959997
3cf8f24a07 updated README.md on the new Netflix Feign library 2015-11-26 13:37:19 -05:00
317959997
077a24f694 updated README.md on the new Netflix Feign library 2015-11-26 13:34:33 -05:00
317959997
be944650df added initial Netflix Feign support 2015-11-26 13:30:04 -05:00
wing328
bf19d99e5e Merge pull request #1618 from xhh/non-model-body-param
Do not resolve non-model body parameter as inline model
2015-11-26 22:32:55 +08:00
xhh
4531bc41eb Update CodegenTest to apply InlineModelResolver to swagger 2015-11-26 17:44:56 +08:00
xhh
d250ce3bec Do not resolve non-model body parameter as inline model 2015-11-26 17:16:28 +08:00
wing328
1fbdb92625 Merge pull request #1613 from xhh/ruby-eql-hash
[Ruby] Add "==", "eql?" and "hash" methods to Ruby client
2015-11-26 10:29:59 +08:00
wing328
cc6cb176f8 Merge pull request #1600 from zxy198717/master
add upload & downlod progress for Java okhttp
2015-11-26 09:59:34 +08:00
wing328
037616e2d9 Merge pull request #1609 from xhh/java-equals-hash-code
[Java] Add "equals" and "hashCode" methods to Java servers: "jaxrs" and "spring-mvc"
2015-11-25 22:07:34 +08:00
xhh
27e43d3fbb Implement toOperationId for python-flask server codegen
and use "operationId" in the template to replace
vendorExtensions.x-operationId
2015-11-25 19:43:31 +08:00
xhh
801efaa3d4 Replace "nickname" with "operationId" in some API templates 2015-11-25 18:13:39 +08:00
Alvin Zeng
c69f396928 merge 2015-11-25 18:04:16 +08:00
xhh
6675cbc20e Auto generate operationId for python-flask server codegen 2015-11-25 17:55:04 +08:00
Alvin
cc58711490 update okhttp-gson samples 2015-11-25 15:17:43 +08:00
wing328
a55088c3cd fix php access token setter 2015-11-25 15:14:04 +08:00
wing328
0bc0d1808e add eq for python, update test case 2015-11-25 15:14:03 +08:00
Tony Tam
0cb8e4ca69 updated readme, base path 2015-11-25 15:14:03 +08:00
xhh
630def9d19 Add "equals" and "hashCode" methods to Java clients
for the "retrofit" and "retrofit2" libraries
2015-11-25 15:14:03 +08:00
xhh
5ae96c61a9 Add "equals" and "hashCode" methods to Java clients
Added for the default, "jersey2" and "okhttp-gson" clients
2015-11-25 15:14:03 +08:00
wing328
3b308bd36f update auth for php to skip empty apikey/username,password 2015-11-25 15:14:03 +08:00
xhh
11d7e44756 Use separate library to do base64 encoding in Java
default and jersey2 clients to make it work in both JVM and Android
2015-11-25 15:14:03 +08:00
wing328
ff3ba73d18 add documentation to test cases in C# 2015-11-25 15:14:03 +08:00
wing328
0ed70dcb4d update basic auth to allow only username/password 2015-11-25 15:14:02 +08:00
wing328
d5b80ac8cd better auth for C#, format change 2015-11-25 15:14:02 +08:00
wing328
6712754f6a Add python flask 2015-11-25 15:14:02 +08:00
wing328
a2982c248a add test case for pet equal 2015-11-25 15:14:02 +08:00
wing328
1496bf89b9 add equal and gethashcode to C# model 2015-11-25 15:14:02 +08:00
xhh
136d0aaa87 Use okhttp's Credentials class to build basic auth string 2015-11-25 15:14:02 +08:00
wing328
1d47ca69fe update perl auth to skip null apikey/username&password 2015-11-25 15:14:02 +08:00
xhh
e4ac6ef033 Ignore auths when value not specified in Java clients 2015-11-25 15:14:01 +08:00
wing328
7c0fd4b85f update python auth to skip empty token/username,password 2015-11-25 15:12:04 +08:00
Testo Nakada
5a5a716bfd - make Meta generator take the swagger code gen version
- generate the class name correctly if the name contains hyphen
2015-11-25 15:12:04 +08:00
xhh
0dac326230 Add "==", "eql?" and "hash" methods to Ruby client 2015-11-25 11:46:43 +08:00
wing328
d589facb21 Merge pull request #1610 from wing328/python_add_equal
[Python] add eq for python, update test case
2015-11-25 10:59:35 +08:00
wing328
cf947811df Merge pull request #1611 from wing328/php_fix_accesstoken
[PHP] fix access token setter
2015-11-25 10:58:21 +08:00
wing328
ddc4d8460d fix php access token setter 2015-11-25 00:00:26 +08:00
wing328
b592819e3b add eq for python, update test case 2015-11-24 17:36:38 +08:00
wing328
34a021cdb5 Merge pull request #1596 from wing328/csharp_auth_update
[C#] better authentication, minor format change
2015-11-24 16:27:21 +08:00
xhh
76fe8357ce Add "equals" and "hashCode" methods to Java servers
for "jaxrs" and "spring-mvc"
2015-11-24 15:46:42 +08:00
wing328
a7e1e128f6 Merge pull request #1605 from xhh/java-equals-hash-code
[Java] Add "equals" and "hashCode" methods to Java clients
2015-11-24 15:38:20 +08:00
Tony Tam
bbb7fb5abc updated readme, base path 2015-11-23 14:27:22 -10:00
jfastnacht
d38933f927 Added model.mustache for basic class definitions. Added sample class files. 2015-11-23 17:49:19 +01:00
jfastnacht
70efc066b5 Added notes, output formats, header params and body params 2015-11-23 16:43:13 +01:00
jfastnacht
a81d8c56e3 Adjusted index.mustache to fit Slim Framework v3
Added composer support for Slim Framework v3 RC
Updated samples
2015-11-23 15:34:36 +01:00
xhh
f2a8955926 Add "equals" and "hashCode" methods to Java clients
for the "retrofit" and "retrofit2" libraries
2015-11-23 19:59:44 +08:00
wing328
3872599be2 Merge pull request #1406 from testn/fix-meta
Use the version from the codegen for meta generator
2015-11-23 17:20:46 +08:00
Justus Thorvaldsson
3aff6e8328 removed one extra string enummember 2015-11-23 09:50:43 +01:00
xhh
2e51aa5076 Add "equals" and "hashCode" methods to Java clients
Added for the default, "jersey2" and "okhttp-gson" clients
2015-11-23 15:57:14 +08:00
wing328
5183683692 Merge pull request #1603 from xhh/java-ignore-empty-auth-values
[Java] Improvements on authentications
2015-11-23 15:08:46 +08:00
wing328
09082ab2cb Merge pull request #1604 from wing328/php_update_auth
[PHP] update auth for PHP API client to skip empty API key/username,password
2015-11-23 11:29:36 +08:00
wing328
df6acdd3cf Merge pull request #1602 from wing328/python_auth_update
[Python] update python authentication to skip empty token/username, password
2015-11-23 01:41:02 +08:00
wing328
e11a3d468e update auth for php to skip empty apikey/username,password 2015-11-22 18:35:45 +08:00
xhh
fc3925a1cd Merge branch 'master' into java-ignore-empty-auth-values 2015-11-22 16:35:34 +08:00
xhh
4f831e032c Use separate library to do base64 encoding in Java
default and jersey2 clients to make it work in both JVM and Android
2015-11-22 16:27:14 +08:00
wing328
11daa87e44 add documentation to test cases in C# 2015-11-22 16:14:16 +08:00
wing328
9d76d39c00 update basic auth to allow only username/password 2015-11-22 16:09:15 +08:00
wing328
a9da01a451 better auth for C#, format change 2015-11-22 16:08:35 +08:00
wing328
c6021da8a1 Merge pull request #1601 from wing328/csharp_obj_compare
[C#] Add Equal and GetHashCode to models
2015-11-22 15:41:40 +08:00
wing328
6f27a8512d Add python flask 2015-11-22 00:06:12 +08:00
Alvin
98396d04a7 update sample & test 2015-11-21 20:12:11 +08:00
Alvin
dc65b5647f update okhttp-gson samples 2015-11-21 19:42:01 +08:00
wing328
3988c28c4b Merge pull request #1597 from wing328/perl_auth_update
[Perl] better authentication, minor format change
2015-11-21 18:55:16 +08:00
wing328
a8119049ad add test case for pet equal 2015-11-21 15:16:38 +08:00
Alvin
b9cf790d1c add upload & downlod progress for Java okhttp 2015-11-21 15:06:00 +08:00
wing328
1ce3b67aa4 add equal and gethashcode to C# model 2015-11-21 13:22:00 +08:00
Justus Thorvaldsson
f4773d3333 Added json enum to csharp with decoration
using newtonsoft decoration
2015-11-20 14:33:22 +01:00
xhh
81cf57a00b Use okhttp's Credentials class to build basic auth string 2015-11-20 20:10:05 +08:00
wing328
8303374aa5 update perl auth to skip null apikey/username&password 2015-11-20 17:36:17 +08:00
xhh
b823e8bd35 Ignore auths when value not specified in Java clients 2015-11-20 17:34:46 +08:00
wing328
271661aec7 update python auth to skip empty token/username,password 2015-11-20 17:01:21 +08:00
wing328
c150247dca Merge pull request #1579 from xhh/fix-java-date-format
[Java okhttp-gson] Fix datetime format for Android
2015-11-20 15:59:07 +08:00
wing328
5c50e08965 Merge pull request #1591 from xhh/clojure-client
[Clojure] Integration tests and config options
2015-11-20 08:54:03 +08:00
Andras Gaal
ab062b1386 fix boolean getter errors 2015-11-19 15:15:48 +01:00
Andras Gaal
2c52cc1d86 Merge branch 'masterswaggerio' into params_support_2.0_spec
Conflicts:
	.gitignore
2015-11-19 15:09:08 +01:00
xhh
d198a5a419 Add support config options to Clojure client 2015-11-19 17:38:08 +08:00
xhh
1358a39d0d Include the petstore clojure client into integration tests 2015-11-19 16:04:27 +08:00
wing328
ff1dd034a8 Merge pull request #1585 from xhh/clojure-client
Add a Clojure client codegen
2015-11-19 10:58:40 +08:00
gaalandr
b9c1158bfe Update CodegenParameter.java 2015-11-18 17:52:32 +01:00
Tony Tam
7727d740f0 Merge pull request #1584 from swagger-api/issue-1582
added connexion python server generator
2015-11-18 08:45:22 -06:00
Tony Tam
041eb94a27 renamed 2015-11-18 08:44:45 -06:00
jfastnacht
65b9f9dcce Added basic Slim Framework support based on silex-PHP 2015-11-18 15:05:05 +01:00
wing328
46d675225f Merge pull request #1580 from CrossfireCurt/master
[Java jersey2] Update Jersey to 2.12 for generated clients
2015-11-18 21:56:41 +08:00
xhh
50c27d258c Merge branch 'master' into clojure-client 2015-11-18 17:27:29 +08:00
xhh
473aab2d8e Support file uploading in Clojure client 2015-11-18 17:21:32 +08:00
Tony Tam
f95409210b fixed cp bug 2015-11-18 00:43:52 -06:00
Tony Tam
5e68bd58fc fixed swagger listing 2015-11-18 00:33:49 -06:00
Tony Tam
7f62576d88 added connexion 2015-11-18 00:17:33 -06:00
Tony Tam
5db7f6ebb9 updated configuration for system properties 2015-11-18 00:17:21 -06:00
Tony Tam
d71d5ac119 added files 2015-11-17 20:14:53 -08:00
Tony Tam
1e2449c568 Merge pull request #1583 from swagger-api/issue-1581
fixes #1581, rebuilt server
2015-11-17 19:53:25 -08:00
Tony Tam
28c4946945 added initial files 2015-11-17 19:51:48 -08:00
Tony Tam
c7e5c305a9 fixes #1581, rebuilt server 2015-11-17 18:46:33 -08:00
Curt Hostetter
951e56071f Ran ./bin/java-petstore-jersey2.sh to update the Petstore sample 2015-11-17 11:18:55 -05:00
Curt Hostetter
5eacb4d12c Update Jersey to 2.12
to help MIMEXXX.tmp cleanup https://github.com/swagger-api/swagger-codegen/issues/1576
2015-11-17 09:38:34 -05:00
xhh
431cdc9c37 Java okhttp-gson: fix datetime format for Android
by detecting the current environment (Android SDK version and Java
version) and determine a default datetime format accordingly

Closes #1573
2015-11-17 17:54:13 +08:00
wing328
f1e86f861e Merge pull request #1574 from wing328/csharp_fix_class_name
[C#] add logic to handle model and its property having the same name
2015-11-17 10:17:01 +08:00
wing328
ce7a707ec1 reapply the fix after rebase 2015-11-17 10:06:38 +08:00
wing328
a4e5b5334f Merge pull request #1572 from wing328/csharp_remove_restsharp_extension
[C#] remove dependency on RestSharp extension
2015-11-17 09:53:48 +08:00
xhh
473d34ef76 Merge branch 'master' into clojure-client 2015-11-17 00:47:49 +08:00
xhh
9cf7cd9ef6 And bin/clojure-petstore.sh and build the petstore clojure client sample 2015-11-17 00:47:12 +08:00
xhh
31cb5b1167 Add serialize method to handle JSON serialization 2015-11-17 00:36:52 +08:00
xhh
ff5b1c86ba Set project URL and license from spec 2015-11-16 23:04:17 +08:00
xhh
cd8cfc50ed Add Clojure client codegen 2015-11-16 18:00:43 +08:00
wing328
b815163ceb replace restsharp extension functions with functions in apiclient 2015-11-16 11:30:34 +08:00
wing328
95d8585dce Merge pull request #1534 from xhh/java-datetime-format
[Java] Improvement date-time format in Java clients
2015-11-16 09:57:52 +08:00
wing328
9789eb4ee8 remove url form ts-node, fix test case 2015-11-15 18:26:36 +08:00
wing328
96f71e420a Merge pull request #1543 from dvz5/master
Moose role, docs, and automatic docs
2015-11-14 18:26:49 +08:00
Dave Baird
40f8012cbc Minor cleanup 2015-11-13 21:52:44 +01:00
Dave Baird
5f61d5465e Merge remote-tracking branch 'upstream/master' 2015-11-13 18:32:31 +00:00
Dave Baird
995a1f547f Removed endpoint API class documentation code
- there is no standard way for a swagger spec to define descriptive
information for an endpoint API
- added markdown as a format to the autodoc script
- added some version information to autogenerated docs
2015-11-13 19:30:47 +01:00
wing328
302272ba9c Merge pull request #1563 from conet/master
Fix typo in swift error variable name.
2015-11-13 09:59:26 +08:00
Dave Baird
970c94a4d9 autodoc retrieves descriptions for delegated methods 2015-11-12 16:55:20 +01:00
Cristian Oneț
f8db16c5cd Fix typo in swift error variable name. 2015-11-12 17:10:10 +02:00
wing328
30c361edd7 Merge pull request #1548 from conet/master
The swift code generator can't handle endpoints that return an array of objects
2015-11-12 23:04:58 +08:00
Dave Baird
25c19135ff autodoc can analyse arbitrary classes
- added -c option to load and analyse any class
2015-11-12 14:55:48 +01:00
Dave Baird
c097696276 Added more formats to autodoc output
- narrow
- wide
- POD
- HTML
2015-11-12 13:03:04 +01:00
wing328
08bb339398 Merge pull request #1559 from wing328/remove_setting_files
Remove eclipse file
2015-11-12 19:52:18 +08:00
xhh
93c6966501 Fix code of customizing date-time format in test 2015-11-12 17:34:12 +08:00
wing328
ee60b5f4f1 Merge pull request #1494 from cbornet/android_manifest
Add android manifest to java codegen
2015-11-12 17:17:01 +08:00
wing328
6d470d1896 remove eclipse files 2015-11-12 17:14:20 +08:00
xhh
6b3fc79dec Merge branch 'master' into java-datetime-format 2015-11-12 17:10:08 +08:00
xhh
55bcceac07 Fix tests on date format by using custom date format 2015-11-12 17:10:03 +08:00
wing328
7603bd7b7c Merge pull request #1558 from wing328/ts_remove_linebreak
[TypeScript] remove extra line break in documentation
2015-11-12 16:41:37 +08:00
wing328
cbc63d3285 remove line break in TS methods' comment 2015-11-12 16:13:10 +08:00
Dave Baird
389ce144ef Improved documentation methods
- API classes have rudimentary class doc info and useful method doc info
- object classes have more detailed method and class info
- added more tests for doc methods
2015-11-12 00:36:30 +01:00
Dave Baird
3ca7ce6ce6 Merge remote-tracking branch 'upstream/master' 2015-11-11 23:24:39 +00:00
wing328
52320e5f71 Merge pull request #1541 from cbornet/retrofit_oauth_loop
[Retrofit] Don't retry if the access token doesn't change
2015-11-11 21:32:41 +08:00
wing328
edfeb48c12 Merge pull request #1550 from wing328/scala_better_test
[Scala] better scala test (UserApi)
2015-11-11 21:21:49 +08:00
wing328
d5f5d43c36 Merge pull request #1553 from aersamkull/master
Adds comments to TypeScript Generator & updates samples
2015-11-11 21:00:30 +08:00
aersamkull
684062ccbf Updates samples 2015-11-11 13:47:09 +01:00
Dave Baird
2144cf5d31 Handle missing security spec more elegantly
- remove the optional auth_setup_handler() callback mechanism
- add _global_auth_setup() method on ApiClient to analyse config when
security spec not provided
- add methods on the Configuration class to abstract getting and setting
tokens
2015-11-11 13:43:40 +01:00
Cristian Oneț
d125b9c490 Update swift petstore client. 2015-11-11 14:21:52 +02:00
aersamkull
2886ca0312 Adds comments to TypeScript Generator 2015-11-11 11:54:42 +01:00
wing328
05efd193c0 update test username for scala 2015-11-11 16:42:00 +08:00
wing328
cbd1b98bf5 better scala test (UserApi) 2015-11-11 16:35:17 +08:00
Cristian Oneț
cf8d8deacd For each object and a decoder that can handle an array of objects.
Otherwise REST endpoints that return a list of resources can't be used.
2015-11-10 21:19:32 +02:00
wing328
8836644d37 Merge pull request #1546 from xhh/java-enum-array
Fix error with array of enum in Java client
2015-11-10 23:39:21 +08:00
Dave Baird
06db67210c Tiny doc tweak 2015-11-10 14:50:22 +01:00
Dave Baird
92a758e1b3 Merge remote-tracking branch 'upstream/master' 2015-11-10 13:23:40 +00:00
Dave Baird
77b9f51927 More documentation, and clean up a couple of ragged edges
- added documentation for configuring authentication
- made auth_setup_handler() optional
- get_api_key_with_prefix() is more self-documenting
2015-11-10 14:22:32 +01:00
wing328
e00d102c47 Merge pull request #1545 from emilianobonassi/support_retrofit2
Add support to Retrofit2
2015-11-10 20:43:19 +08:00
Emiliano Bonassi
e104803781 fix pom.xml added retrofit2 as a module 2015-11-10 12:39:30 +01:00
Emiliano Bonassi
47f4396fb7 - fix source/target java version to 1.6
- add test profile for CI
2015-11-10 12:30:13 +01:00
Dave Baird
521b73b3ef Apply the singleton pattern to ApiClient
- make the api_client a singleton
- remove it from the configuration namespace
2015-11-10 09:47:58 +01:00
xhh
c07e30b8cf Update testCreateUser to avoid occasional failures 2015-11-10 13:22:06 +08:00
xhh
aaafd0632c Fix error with array of enum in Java client
ref: https://github.com/swagger-api/swagger-codegen/pull/1457#issuecomment-155185530
2015-11-10 12:04:29 +08:00
wing328
8408b97771 Merge pull request #1529 from crissdev/patch-1
[TypeScript] mark optional model properties
2015-11-10 10:35:39 +08:00
Emiliano Bonassi
3a7204d66c Add support to Retrofit2 2015-11-10 03:20:49 +01:00
Dave Baird
c6cd88b281 Merge remote-tracking branch 'upstream/master' 2015-11-09 22:05:38 +00:00
Dave Baird
c06af6d141 Documentation and automatic documentation
- added POD to Role.pm
- added README.md files translated from Role.pm POD
- added an autodoc script (based on AutoDoc.pm role). The script prints
a listing of the methods built in Role.pm
- added class_documentation() and method_documentation() accessors on
all object and API classes which return the documentation supplied in
the Swagger spec for the API
2015-11-09 23:04:59 +01:00
crissdev
d9f7944102 typescript: mark optional model properties 2015-11-09 23:20:02 +02:00
Dave Baird
49034946a0 Make class and method documentation available
Documentation from the swagger spec is available via methods
class_documentation() and method_documentation() on object and API
classes.
2015-11-09 17:04:19 +01:00
cbornet
dad28dcba0 don't retry if the access token doesn't change
This is to avoid an infinite loop if the server always gives an invalid token
2015-11-09 16:10:55 +01:00
Nadezhda Makarkina
87786f0145 ensureUniqueParams default value has been mooved from description to the defaaultValue field 2015-11-09 14:01:50 +03:00
cbornet
99c503319b use platform independant file separator 2015-11-09 11:38:26 +01:00
wing328
47a4cf4709 Merge pull request #1533 from rostskadat/springmvc_request_body_1532
Added @RequestBody annotation in order for the generated code to
2015-11-09 17:48:34 +08:00
xhh
e3c44b5af3 Improvement on comment 2015-11-09 16:47:33 +08:00
xhh
c48b93384b Merge branch 'master' into java-datetime-format 2015-11-09 15:59:32 +08:00
xhh
8cab7e785d Customizing date format in Java okhttp-gson client 2015-11-09 13:49:50 +08:00
xhh
cbc18c97ba Customizing date format in Java jersey2 client 2015-11-09 11:58:41 +08:00
xhh
a45af48e35 Fix test 2015-11-09 10:23:46 +08:00
Dave Baird
f0f43f5fdf Fix method names clash in Moose Role
When flattening all endpoint API methods into a single class, some
method names may clash, e.g. every API has a new() method. So we skip
them, they must be accessed via the API method. Warnings are emitted to
document skipped methods.
2015-11-08 21:51:26 +01:00
rostskadat
730202deb2 Added @RequestBody annotation in order for the generated code to
properly create API Model object.

@RequestBody Annotation Ref:
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-requestbody
2015-11-08 17:24:22 +01:00
Dave Baird
6a5f583ab0 Merge remote-tracking branch 'upstream/master' 2015-11-08 10:13:34 +00:00
wing328
4feca0d680 Merge pull request #1491 from cbornet/javax_android
Provide dependency to javax.annotation.Generated for android templates
2015-11-08 11:12:57 +08:00
Dave Baird
6c19f0c26c Flatten entire API into a single class
Added a Moose role which flattens all the individual endpoint APIs into
a single class.
2015-11-07 20:37:13 +01:00
xhh
c59be88a3e Support customizing date format in model (de)serialization in Java client
and update the default date format to conform to RFC3339
2015-11-07 15:16:13 +08:00
wing328
a5878130c4 Merge pull request #1523 from wing328/perl_update_cli
[Perl] update CLI option for perl
2015-11-07 10:51:42 +08:00
wing328
f19a8d41e4 Merge pull request #1525 from wing328/ts-reserved-word
[TypeScript] add reserved word handling for OperationId (method name)
2015-11-07 10:42:24 +08:00
Tony Tam
195359008a improved definitions, messages, fixed init params 2015-11-06 10:11:23 -08:00
Tony Tam
33df72ff5b made host+scheme configurable 2015-11-06 09:13:15 -08:00
Tony Tam
2bcb5f8fc2 Merge pull request #1524 from lugaru1234/optionsCleanup
Fixes #1516: apiPackage and modelPackage options haave been moved from DefaultCodegen
2015-11-06 08:42:42 -08:00
Tony Tam
5b80e95b96 Merge pull request #1519 from swagger-api/issue-1518
remove duplicate tags, replace with extensions in templates
2015-11-06 06:22:08 -08:00
wing328
147d8047fe update typescript sample 2015-11-06 21:49:03 +08:00
wing328
3ff060fa90 add reserved word handling for typescript 2015-11-06 21:46:47 +08:00
wing328
f7ffc7f118 update test case for perl 2015-11-06 21:24:04 +08:00
wing328
0d12f32b05 update cli option for perl 2015-11-06 21:00:04 +08:00
Nadezhda Makarkina
2f76f28dd4 apiPackage and modelPackage options haave been moved from DefaultCodegen to classes, that uses it 2015-11-06 15:44:32 +03:00
wing328
eaf985069b Merge pull request #1521 from xhh/java-readme
[Java] Add README.md to Java clients
2015-11-06 20:31:15 +08:00
xhh
8d3e555f8a Add README.md to Java clients
containing documentation like how to build and use the client
2015-11-06 17:15:32 +08:00
wing328
bd8f7a7aeb Merge pull request #1509 from xhh/ruby-collection-format
[Ruby] Support collectionFormat for header, query and form parameters
2015-11-06 17:07:48 +08:00
Tony Tam
40992c0a9b rebuilt 2015-11-05 22:31:56 -08:00
Tony Tam
be0232fa35 moved tags to extension to avoid path collisions #1518 2015-11-05 22:26:49 -08:00
wing328
471fc75381 Merge pull request #1508 from wing328/csharp_support_oauth
[C#] add oauth2 support to csharp
2015-11-06 14:06:37 +08:00
wing328
5a8d2c834f add oauth support to csharp 2015-11-06 13:56:40 +08:00
wing328
a3b90c516d Merge pull request #1507 from wing328/perl_support_ouath
[Perl] add oauth2 support for Perl
2015-11-06 11:39:15 +08:00
Tony Tam
c8ea36e188 rebuilt 2015-11-05 18:52:47 -08:00
Tony Tam
b30cbd9261 correctly set host 2015-11-05 18:52:23 -08:00
Tony Tam
c4b2f210be fixed context path 2015-11-05 18:49:11 -08:00
Tony Tam
4f2eee771d Merge branch 'master' of github.com:swagger-api/swagger-codegen 2015-11-05 18:19:29 -08:00
Tony Tam
cdd20ac408 updated swagger definitions for opts 2015-11-05 18:19:21 -08:00
wing328
f5153e6550 Merge pull request #1512 from wing328/csharp_fix_file_import
[C#] fix import for file type in model files
2015-11-06 09:34:40 +08:00
Tony Tam
b3d29bfb56 Merge pull request #1501 from lugaru1234/optionsResource
changed resource, method stub for generator options
2015-11-05 16:25:38 -08:00
wing328
44df21240f Merge pull request #1511 from boxed/master
Some spelling and grammar fixes
2015-11-05 23:06:50 +08:00
wing328
080e302c63 fix csharp import for file in model files 2015-11-05 22:47:53 +08:00
Anders Hovmöller
4a5a8b7363 Some spelling and grammar fixes 2015-11-05 15:40:05 +01:00
Nadezhda Makarkina
dcd8302f42 added @ApiModelProperty and @JsonIgnore annotations, set defailtValue to java library option 2015-11-05 17:07:40 +03:00
Nadezhda Makarkina
4eeee3b24d changed resource, method stub for generator options 2015-11-05 16:54:06 +03:00
Nadezhda Makarkina
5d8c23dd09 CliOption hah been change to allow enum values 2015-11-05 16:54:06 +03:00
Tony Tam
dadc85b6fd added resource, method stub for generator options 2015-11-05 16:54:06 +03:00
xhh
76eeb51af6 Support collectionFormat in Ruby client
for header, query and form parameters
2015-11-05 20:02:09 +08:00
wing328
b4146d3f9c Merge pull request #1479 from sfurholm/feature/add-support-for-sortParamsByRequiredFlag-config-option-to-csharp-and-python
Added support for sortParamsByRequiredFlag config option to C# and Python
2015-11-05 18:55:55 +08:00
wing328
51d9e92a00 add homebrew 2015-11-05 17:12:51 +08:00
wing328
4bfc032a64 add oauth2 support for Perl 2015-11-05 16:32:46 +08:00
wing328
30a4be833b Merge pull request #1502 from dvz5/master
Rebuild perl petstore client after previous updates
2015-11-05 11:59:11 +08:00
wing328
cd733e562e Merge pull request #1506 from xhh/unique-param-name
Make parameters unique in generated code
2015-11-05 11:40:38 +08:00
xhh
9863b631f7 Fix comment to conform to javadoc guideline 2015-11-05 11:23:15 +08:00
Dave Baird
107452d406 Merge remote-tracking branch 'upstream/master' 2015-11-04 22:00:13 +00:00
Dave Baird
baf20ca226 Fix errors from using wrong JSON spec
I've been using http://petstore.swagger.io/v2/swagger.json instead of
modules/swagger-codegen/src/test/resources/2_0/petstore.json as the
input spec for building the petstore. This commit reverts the changes
introduced from that.
2015-11-04 22:24:49 +01:00
Dave Baird
f521680c0f Moved object classes' constructor into base class 2015-11-04 21:42:27 +01:00
Dave Baird
4264b74e40 Minor tidying up
Some documentation, fix a warning, added a couple of logger calls.
2015-11-04 20:27:23 +01:00
wing328
3b77b6ab39 fix link in toc
fix link in toc (Generating a client from local files)
2015-11-04 22:35:29 +08:00
wing328
449fa3a0f5 add guidelines for contriubtion 2015-11-04 22:32:06 +08:00
xhh
5a7bb600d6 Set the ensureUniqueParams option to true by default 2015-11-04 21:28:52 +08:00
xhh
e9ba5ed57c Fix tests 2015-11-04 21:20:16 +08:00
xhh
1a67f452e2 Make parameters unique in generated code
through a config option "ensureUniqueParams" which is false by default

Closes #1422
2015-11-04 20:51:56 +08:00
wing328
76cee8bc6b Merge pull request #1423 from rbhunt/issue-1391
Fix for #1391
2015-11-04 16:12:54 +08:00
wing328
40bd4415f9 Merge pull request #1497 from aersamkull/master
Aligns the two typescript generators
2015-11-04 15:54:13 +08:00
wing328
12b872cd14 Merge pull request #1498 from xhh/ruby-deserialize-additional-properties
Ruby: support map/hash in model deserialization with additionalProperties
2015-11-04 15:13:12 +08:00
wing328
8fa06a1878 Merge pull request #1496 from wing328/python_improvement1
[Python] Add OAuth support
2015-11-04 14:33:47 +08:00
xhh
7813976d9b Minor changes 2015-11-04 10:26:14 +08:00
xhh
18abc56688 Add tests for array and map property deserialization 2015-11-04 10:23:21 +08:00
Dave Baird
a93eb8aeaa Merge remote-tracking branch 'upstream/master' 2015-11-03 20:39:09 +00:00
Tony Tam
7ac91ced2e updated parser version 2015-11-03 09:13:29 -08:00
Dave Baird
37b123530f Add ApiFactory class and proper accessors on object classes
ApiFactory provides a get_api() method to generate API objects without
having to hard-code class names. All API and object classes are loaded
automatically.

Also, added proper accessors for attributes of object classes.
2015-11-03 17:58:53 +01:00
Dave Baird
8428e7963b Rebuild perl petstore client after previous updates
At least 2 previous updates were committed without rebuilding the perl
petstore client. One was my fault (BaseObject.pm changes), the other
changes come from an upstream update or updates  I can't identify.
2015-11-03 16:46:47 +01:00
wing328
1b538f6eaf Merge pull request #1471 from wing328/invalid_array_type
Better error handling for invalid array/map type
2015-11-03 21:46:24 +08:00
wing328
c8ce84f650 replace tab with space, update samples 2015-11-03 21:34:44 +08:00
wing328
42e10fbb14 better error handling for invalid array/map type 2015-11-03 21:33:06 +08:00
wing328
5bf4d022cf Merge pull request #1490 from xhh/java-oauth
Add oauth support for Java client
2015-11-03 20:34:12 +08:00
xhh
abe44df1ec Ruby: support map/hash in model deserialization with additionalProperties
For example, the "scoreMap" and "cateMap" properties below:

  "definitions": {
    "User": {
      "properties": {
        "scoreMap": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int32",
          }
        },
        "cateMap": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/Category"
          }
        }
      }
    }
  }
2015-11-03 16:39:54 +08:00
aersamkull
5580eb7ac3 Aligns the two typescript generators 2015-11-03 09:03:52 +01:00
wing328
792726ddc5 update sample, better handle of $ in naming 2015-11-03 10:29:28 +08:00
wing328
eebb6c4dd0 rename auth token to access token 2015-11-03 10:17:47 +08:00
wing328
89ec500744 add oauth support in python 2015-11-03 10:14:20 +08:00
wing328
2778857714 Merge pull request #1409 from sfurholm/feature/allow-overriding-of-only-some-templates-v2
Allow overriding of only some templates when using --template-dir option
2015-11-03 09:33:16 +08:00
wing328
86efdc5b54 Merge pull request #1485 from xhh/ruby-oauth
Add oauth support for Ruby client
2015-11-03 09:13:53 +08:00
wing328
cb429149bc Merge pull request #1492 from tomekc/swift_custom_headers
Custom headers in Swift; base URL is now modifyable
2015-11-03 09:05:30 +08:00
wing328
6b857d7acc Merge pull request #1395 from cbornet/retrofit_improvements
[Retrofit]Add a listener on new token reception
2015-11-03 09:03:58 +08:00
cbornet
8b0bf8ff72 add a listener on new token reception
Add a listener on new token reception that can then be stored or logged for debug
Add an helper method to add authorizations (otherwise if the swagger def is not complete or correct, it is hard to configure from the main app)
2015-11-02 19:20:24 +01:00
cbornet
5b1f287176 add android manifest to java codegen 2015-11-02 18:32:52 +01:00
cbornet
645b8a01e1 provide dependency to javax.annotation.Generated for android 2015-11-02 16:16:14 +01:00
xhh
a94f9b69af Add oauth support to other Java clients
with libraries jersey2 and okhttp-gson
2015-11-02 22:52:51 +08:00
wing328
1f38ce724f Merge pull request #1486 from aersamkull/master
Addes default headers for TypeScript Angular
2015-11-02 21:36:46 +08:00
wing328
9f7427b1cf Merge pull request #1489 from dvz5/master
Fix array query param processing
2015-11-02 21:36:25 +08:00
xhh
b27931cd8c Add oauth support for Java client 2015-11-02 21:27:53 +08:00
Tomek Cejner
884b853e1f Custom headers in Swift; base URL is nor modifyable 2015-11-02 14:20:15 +01:00
Dave Baird
3559a8bd09 Fix array query param processing
A couple of PHP functions that don't exist in Perl were being called to
process array query parameters.
2015-11-02 10:47:46 +01:00
aersamkull
3762ea472d Adds default headers 2015-11-02 08:28:46 +01:00
Dave Baird
d28737ffd2 Fix misleading comment 2015-11-02 08:24:06 +01:00
aersamkull
a4538e989c Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2015-11-02 07:45:01 +01:00
xhh
1c3dc28c67 Add oauth support for Ruby client 2015-11-02 12:50:23 +08:00
wing328
742508281a Merge pull request #1484 from dvz5/patch-1
Tests for deserialization
2015-11-02 10:03:11 +08:00
dvz5
08f424824c Update 02_store_api.t 2015-11-01 23:14:22 +01:00
dvz5
2e03ecc4b8 Update 01_pet_api.t
Add tests for photoUrls, to check correct mapping from object attribute name to JSON attribute name.
2015-11-01 23:10:20 +01:00
wing328
15c5fff3d8 Merge pull request #1481 from dvz5/patch-1
Update BaseObject.mustache
2015-11-01 22:40:15 +08:00
wing328
c3a98c2fb1 add online generators 2015-11-01 00:02:08 +08:00
Tony Tam
d64ed9088a Merge pull request #1483 from jacobrask/patch-1
Fix path typo in readme
2015-10-31 08:49:10 -07:00
Jacob Rask
48bf89cb1d Fix path typo in readme 2015-10-31 16:35:14 +01:00
wing328
ad590793e7 Update server generator 2015-10-31 23:17:58 +08:00
wing328
47b4f9fa2c Merge pull request #1477 from baverbud/issue-1476
Issue 1476
2015-10-31 23:04:56 +08:00
wing328
7bc523324d Merge pull request #1446 from wing328/php_improvement1
[PHP] add OAuth support
2015-10-31 22:46:52 +08:00
dvz5
a4426cf2de Update BaseObject.mustache
Fix deserialization.
2015-10-31 09:01:40 +01:00
Steffen Furholm
dcaa2dcb22 Merge branch 'master' of github.com:swagger-api/swagger-codegen into feature/add-support-for-sortParamsByRequiredFlag-config-option-to-csharp-and-python 2015-10-31 02:20:36 +01:00
Tony Tam
9fc5fdbc8d Merge pull request #1474 from lugaru1234/genratorOptionsPart2
Test data were moved to the separete classes and OnlineGeneratorOptionsTest has been refactored
2015-10-30 18:10:17 -07:00
Steffen Furholm
5da0b96f17 Added support for sortParamsByRequiredFlag config option to C# and Python 2015-10-31 01:14:17 +01:00
Richard Baverstock
97a28165c7 Additional locations where float/double handling is needed 2015-10-30 11:48:48 -07:00
Richard Baverstock
8565975b99 Issue 1461
Add float and double handling to functions in SWGHelpers.cpp
2015-10-30 11:44:55 -07:00
wing328
28069fa1b4 Merge pull request #1472 from thorsten/master
Added missing visibility for constructor
2015-10-30 23:14:55 +08:00
wing328
eb598b641c Merge pull request #1473 from dvz5/patch-1
Update BaseObject.mustache
2015-10-30 23:07:38 +08:00
Nadezhda Makarkina
81090bb4e2 Test data were moved to the separete classes and OnlineGeneratorOptionsTest has been refactored 2015-10-30 16:32:33 +03:00
dvz5
afcf90798a Update BaseObject.mustache
Fix deserialization
2015-10-30 14:32:10 +01:00
Thorsten Rinne
f23370774b Added missing visibility for constructor 2015-10-30 11:10:38 +01:00
wing328
b7481586c3 Merge pull request #1405 from lugaru1234/returnTypeFix
ReturnType processing has been fixed
2015-10-30 12:21:05 +08:00
wing328
df72beada6 Merge pull request #1463 from xhh/jersey2-client
Java jersey2: reuse a shared Client instance
2015-10-30 09:56:15 +08:00
Tony Tam
3d3fda9c79 Merge pull request #1468 from baverbud/issue-1461
Issue #1461
2015-10-29 14:39:41 -07:00
Richard Baverstock
4438c63f6b Issue #1461
Add float and double to languageSpecificPrimitives
2015-10-29 10:50:07 -07:00
Tony Tam
837ffc8947 Merge pull request #1466 from lugaru1234/optionsTestPart3
processOptions tests have been added for the rest of languages
2015-10-29 06:34:40 -07:00
Nadezhda Makarkina
faf79be477 processOptions tests have been added for Objc, perl, spring-mvc, swift, scala, async-scala, qt5cpp, html, dynamic-html, swagger, swagger-yaml, tizen, typescript-angular, typescript-node, akka-scala, inflector, scalatra, silex and sinatra 2015-10-29 15:46:01 +03:00
aersamkull
2b24aa8f91 adds default headers 2015-10-29 09:15:18 +01:00
wing328
4ed819c4a0 Merge pull request #1457 from xhh/java-default-value
[Java] Assign default value for primitive properties
2015-10-29 10:11:05 +08:00
xhh
953edc940f Java jersey2: use a shared Client instance 2015-10-29 09:40:07 +08:00
Steffen Furholm
c0dc273e7a Merge remote-tracking branch 'origin/master' into feature/allow-overriding-of-only-some-templates-v2 2015-10-28 23:30:19 +01:00
Tony Tam
29ea8d5501 Merge pull request #1459 from lugaru1234/optionsTestPart2
processOptions tests have been added for Android, Ruby, nodeJS, php, python, csharp, CsharpDotNet2, dart, flash
2015-10-28 07:22:38 -07:00
wing328
6c12e5ac8b update php sample 2015-10-28 21:45:22 +08:00
wing328
964850a8de rename authToken to accessToken 2015-10-28 21:44:12 +08:00
wing328
67815ed5f2 add oauth support for php 2015-10-28 21:44:12 +08:00
Nadezhda Makarkina
6008664ff8 processOptions tests have been added for Android, Ruby, nodeJS, php, python, csharp, CsharpDotNet2, dart, flash 2015-10-28 14:55:42 +03:00
Andras Gaal
a5fcda9926 fix: codegen does not support spec 2.0 properties for parameters:
maximum
,exclusiveMaximum
,minimum
,exclusiveMinimum
,maxLength
,minLength
,pattern
,maxItems
,minItems
,uniqueItems
,multipleOf
2015-10-28 10:52:29 +01:00
xhh
ef29f70508 Handle default value for Integer, Double and Float properties 2015-10-28 16:37:31 +08:00
wing328
2e6199ac3b Merge pull request #1456 from wing328/master
[C#] update C# petstore sample code
2015-10-28 16:08:49 +08:00
wing328
55d69d80bc update c# sample code 2015-10-28 15:33:56 +08:00
xhh
2595992df7 Assign default value for model properties
in Java-related client and server codegen.

Closes #1448
2015-10-28 15:26:16 +08:00
wing328
55f1b0f642 Merge pull request #1450 from paralin/fix-path-var
Change usage of "path" in C# code generation
2015-10-28 15:21:01 +08:00
wing328
bd67cda1a7 Merge pull request #1451 from arnested/CURLFile-object
Use CURLFile object on PHP5.5+
2015-10-28 14:33:49 +08:00
Arne Jørgensen
47b2ae934b Regenerated PHP petstore sample. 2015-10-27 22:58:25 +01:00
Arne Jørgensen
d907822fa9 Use CURLFile object on PHP5.5+. 2015-10-27 22:56:19 +01:00
Christian Stewart
5cdee3f424 Path is a commonly used variable name 2015-10-27 17:35:21 -04:00
Tony Tam
09c5aa3827 Merge pull request #1447 from lugaru1234/optionsTest
Options tests have been added for Java and JaxRS
2015-10-27 10:32:25 -07:00
Nadezhda Makarkina
9e791c229b processOptions tests have been added for Java and JaxRS 2015-10-27 15:51:39 +03:00
wing328
4551076b22 Merge pull request #1438 from wing328/better_doc
Better documentation for DefaultCodegen.java
2015-10-27 15:53:17 +08:00
wing328
cf59b5dc7e Merge pull request #1444 from xhh/retrofit-syntex-error
Fix syntax error on authMethods in java retrofit client
2015-10-27 13:56:53 +08:00
wing328
28521b34f2 Merge pull request #1439 from wing328/fix_jaxrs_path
[JAXRS] fix Jax-RS path with basePath
2015-10-27 11:57:55 +08:00
xhh
fa3661ff5d Merge branch 'master' into retrofit-syntex-error 2015-10-27 11:32:29 +08:00
xhh
33358d44a9 Simplify tags in mustache 2015-10-27 11:08:37 +08:00
wing328
dd8ae250b2 Merge pull request #1433 from iushankin/allowableValues-fix
Fix for allowable values in the Mustache template
2015-10-27 11:04:42 +08:00
xhh
95113dbe22 Fix syntax error on authMethods in java retrofit client 2015-10-27 10:45:23 +08:00
xhh
f1e3809279 Fix partial template reading 2015-10-27 01:12:57 +01:00
Tony Tam
8914a30935 Merge pull request #1434 from lugaru1234/generatorOptions
Options processing has been fixed
2015-10-26 08:46:21 -07:00
wing328
5964f7b841 Merge pull request #1414 from dgreenbean/feature/csharp_binary_files
Raw Binary for File Output
2015-10-26 23:35:52 +08:00
wing328
cc7105b5d8 fix jarxs path with basepath 2015-10-26 18:00:15 +08:00
wing328
6792aea7f8 better comment for default codegen 2015-10-26 16:12:05 +08:00
Nadezhda Makarkina
c298b7d152 ReturnType processing has been fixed 2015-10-26 10:37:36 +03:00
Tony Tam
6b7ceab081 updated to dev version 2015-10-25 20:59:52 -07:00
Tony Tam
c00f4ba805 Merge pull request #1437 from swagger-api/release-prepare
updated versions for release
2015-10-25 19:41:11 -07:00
Tony Tam
dd3b253e15 updated versions 2015-10-25 19:31:36 -07:00
Tony Tam
3969a9f294 fix for #925 2015-10-25 17:02:08 -07:00
Tony Tam
78f8eaa687 set to release version 2015-10-25 16:31:40 -07:00
wing328
fe676c83c0 Merge pull request #1412 from Edubits/swift-alamofire-3.0
Swift Alamofire 3.0
2015-10-25 18:28:39 +08:00
wing328
18370b9076 Merge pull request #1402 from lugaru1234/issue960
Fixes #960: Enums have been added to result file
2015-10-25 17:52:37 +08:00
wing328
70d987666e Merge pull request #1436 from tomekc/swift_enum_naming
Swift enum names capitalization follows Swift convention.
2015-10-25 17:46:14 +08:00
Tomek Cejner
6247dd0cde Swift enum names capitalization follows Swift convention. 2015-10-25 00:06:00 +02:00
Testo Nakada
f76a789a49 - make Meta generator take the swagger code gen version
- generate the class name correctly if the name contains hyphen
2015-10-24 11:36:00 -07:00
wing328
ea7ef990b9 Merge pull request #1432 from xhh/ruby-empty-array
Ruby client: include empty arrays in model serialization
2015-10-24 11:45:27 +08:00
Tony Tam
83afaffd92 Merge pull request #1430 from nbruno/java-child-enum-bug
Ensure hasMore is updated when reconciling enum properties from parent
2015-10-23 08:08:30 -07:00
Nadezhda Makarkina
c957641079 Options processing has been fixed 2015-10-23 17:59:40 +03:00
Ivan Ushankin
c6946a36c4 Fix for allowable values in the Mustache template 2015-10-23 15:49:51 +03:00
wing328
d2faa63ebc Merge pull request #1431 from wing328/fix_empty_operation_id
Better error message for empty operationId
2015-10-23 18:47:04 +08:00
xhh
dcec2e7b5d Forgot to use _to_hash for non-array value 2015-10-23 18:03:38 +08:00
xhh
940e76f45f Ruby client: include empty arrays in model serialization 2015-10-23 17:08:12 +08:00
wing328
fecbc3c45d Merge pull request #1306 from fdorothy/master
Specifying configuration files from Codegen class
2015-10-23 15:41:00 +08:00
Tony Tam
a6e4203cd5 added property check 2015-10-22 22:39:09 -07:00
wing328
dd34d75f00 better error message for empty operationId 2015-10-23 12:46:44 +08:00
Nick Bruno
1eed1917b9 Ensure hasMore is updated when reconciling enum properties from parent 2015-10-22 22:33:20 -04:00
Tony Tam
91afec43a6 fixed NPE on empty props 2015-10-22 15:43:02 -07:00
Tony Tam
adeff7855c instructions for selective generation 2015-10-22 15:34:20 -07:00
Tony Tam
e289b858a9 Merge pull request #1428 from swagger-api/feature/selective-generation
made selective generation of models
2015-10-22 15:28:58 -07:00
Tony Tam
7170f7fa01 updated supporitng file support 2015-10-22 15:28:49 -07:00
Tony Tam
6253a592d9 added optional support for apis, supoprtingFiles 2015-10-22 14:54:29 -07:00
Tony Tam
9f842a1295 added environment variable support 2015-10-22 14:34:52 -07:00
Tony Tam
723cf9b823 made selective generation of models 2015-10-22 14:03:44 -07:00
Tony Tam
bbb59f93db Merge pull request #1427 from crissdev/patch-1
Update TypeScriptAngularClientCodegen.java
2015-10-22 14:00:27 -07:00
Cristian Trifan
2fcb705826 Update TypeScriptAngularClientCodegen.java
Fix minor typo
2015-10-22 23:19:46 +03:00
David Greenberg
390ddc9ef3 Changing Stream deserialization to use raw bytes from response, rather than UTF-8 decoded text. 2015-10-22 09:04:54 -04:00
wing328
4723f51c63 Merge pull request #1397 from lugaru1234/issue1251
Fixes #1251, #1212: Form parameters has been added to the html template
2015-10-22 16:48:13 +08:00
wing328
485186e6b6 Merge pull request #1418 from ampem/master
[Perl] Ensure parameters to "each" is a hash in TO_JSON and from_hash
2015-10-22 15:14:27 +08:00
Richard Hunt
f44eb766b4 Replace File.separator with '/' to fix Windows path generation and avoid regular expression issues 2015-10-22 15:54:28 +13:00
Ampem Darko
1ac6842b5a Update mustache template to pass hashes in TO_JSON and from_hash 2015-10-21 16:15:42 +00:00
Ampem Darko
57e3ea3e9c Ensure parameters to "each" is a hash in TO_JSON and from_hash 2015-10-21 13:35:48 +00:00
wing328
0f75b053c8 Merge pull request #1417 from akkie/master
ApiException doesn't use deserialized data
2015-10-21 19:13:18 +08:00
wing328
eee69f1e05 Merge pull request #1416 from xhh/java-do-not-serialize-nulls
[Java] Ignore null fields in model serialization in Java clients
2015-10-21 19:00:09 +08:00
akkie
9b8a633435 ApiException doesn't use deserialized data
This is a fix for #1394. I had not merged the data correctly after the rebase
2015-10-21 12:56:15 +02:00
Tony Tam
dcc47a92b5 added https support 2015-10-20 21:25:51 -07:00
Tony Tam
e9aaa6da36 enabled https 2015-10-20 21:25:35 -07:00
Tony Tam
568a7be994 enabled https 2015-10-20 21:25:21 -07:00
xhh
214e0186e8 Ignore null fields in model serialization
in Java clients.

Closes #1413
2015-10-21 12:05:27 +08:00
Tony Tam
7f5cdba606 rebuilt 2015-10-20 11:42:40 -07:00
Tony Tam
295af57c9a fixed build error 2015-10-20 11:31:21 -07:00
Tony Tam
bade71c6ba merged 2015-10-20 10:59:20 -07:00
Tony Tam
9adb077a7b Merge branch 'feature/inline-models' 2015-10-20 10:57:50 -07:00
Tony Tam
10a9c62e2b merged 2015-10-20 10:57:36 -07:00
Tony Tam
a6bd0773f7 added files 2015-10-20 10:56:18 -07:00
Tony Tam
b2506ab598 rebuilt 2015-10-20 10:32:19 -07:00
Tony Tam
a21f08118e rebuilt 2015-10-20 10:31:42 -07:00
Tony Tam
96380bbc83 rebuilt 2015-10-20 10:31:17 -07:00
Tony Tam
abe4980449 rebuilt 2015-10-20 10:30:19 -07:00
Tony Tam
e3151c57a0 rebuilt 2015-10-20 10:29:48 -07:00
Tony Tam
d2dc333699 rebuilt 2015-10-20 10:29:25 -07:00
Tony Tam
b41a40f9be rebuilt 2015-10-20 10:28:49 -07:00
Tony Tam
2f3a2413c7 rebuilt 2015-10-20 08:49:26 -07:00
Tony Tam
19ea3ecf66 update test for inline body param flattening 2015-10-20 08:48:44 -07:00
Tony Tam
5c29562926 ensure body params are flattened when type ModelImpl 2015-10-20 08:48:26 -07:00
Tony Tam
b827d06077 fix for npe on map models 2015-10-20 08:48:04 -07:00
Tony Tam
539496d735 rebuilt 2015-10-20 07:10:05 -07:00
wing328
6b7059d23f Merge pull request #1394 from akkie/api-exception-json
Deserialize the response body in case of an ApiException
2015-10-20 18:01:09 +08:00
wing328
bff8f96b99 Merge pull request #1404 from tomekc/swift-enhanced
Add default initializer to Swift model classes.
2015-10-20 17:54:41 +08:00
Tony Tam
5e69d929a0 rebuilt 2015-10-19 23:13:27 -07:00
Tony Tam
e1ee7065d5 rebuilt client 2015-10-19 23:12:02 -07:00
Tony Tam
aaf1df1971 more flattening fixes 2015-10-19 23:10:48 -07:00
Tony Tam
555fd54fbb updated swagger-core versions 2015-10-19 22:09:33 -07:00
Tony Tam
905a7746e7 updated test 2015-10-19 21:45:47 -07:00
Tony Tam
eeaf4071f9 updated to not flatten array, map properties in responses unless necessary 2015-10-19 21:35:45 -07:00
Tony Tam
84b7302f12 updated swagger-core version 2015-10-19 21:34:42 -07:00
Robin Eggenkamp
1b0963ebe0 Minimal changes to upgrade to Alamofire 3.0.0 2015-10-19 17:06:41 +02:00
akkie
b054cd3cc6 Deserialize the response body in case of an ApiException
Currently it's not possible to use custom models in the ApiException because the body gets not deserialized to Json and therefore the object deserializer cannot deserialize it to a custom model. This pull request uses the same mechanism as used to deserialize the response body in case of a 2xx status code.
2015-10-19 15:17:29 +02:00
wing328
4ea797d0e8 Merge pull request #1392 from nbruno/add-auth-annotations-jaxrs
Add authorization scope data to CodegenSecurity
2015-10-19 14:15:05 +08:00
Tony Tam
002feb3e7c build error 2015-10-18 21:10:13 -07:00
Tony Tam
89dc4d29ab added map support 2015-10-18 21:05:57 -07:00
Tony Tam
3cf1f1a56a added support for array and model inline types 2015-10-18 20:51:55 -07:00
Nick Bruno
b83db8e535 Merge remote-tracking branch 'upstream/master' into add-auth-annotations-jaxrs 2015-10-18 17:19:44 -04:00
wing328
eb1e0b5034 Merge pull request #1408 from kkrauth/patch-1
Fix syntax issue when no auth methods defined
2015-10-18 16:34:11 +08:00
wing328
d7b4f58994 Merge pull request #1411 from wing328/master
Add support for top-level consumes and produces
2015-10-17 17:41:19 +08:00
wing328
e8fbdaabe3 replace tabs with spaces 2015-10-17 16:44:55 +08:00
wing328
b82333aea4 Add support for top-level consumes and produces
This reverts commit 0b4b5e8839.
2015-10-17 16:30:19 +08:00
Nick Bruno
7bbb883a00 Generate JAXRS and SpringMVC samples to demo Authorization annotations 2015-10-16 21:25:54 -04:00
Nick Bruno
6477a27579 Update SpringMVC template to include Authorization annotations 2015-10-16 21:24:17 -04:00
Tony Tam
ad1626ad2d added yaml sample 2015-10-16 18:22:13 -07:00
Tony Tam
bfa4303e6e added inline model resolver 2015-10-16 18:21:34 -07:00
Tony Tam
9508579eed added inline resolver 2015-10-16 18:21:06 -07:00
Steffen Furholm
8bc4c1f05e Allow overriding of only some templates when using --template-dir option. Templates which aren't found in the template directory will fall back to the ones packaged/distributed with Swagger 2015-10-16 23:29:08 +02:00
Kosta Krauth
9ac980298f Fix syntax issue when no auth methods defined
When no authentication methods are defined, the generated code does not compile due to where the authMethods closing tag is located. Moved the closing tag further down and opening tag further up so that the generated code is correct both when authentication are and aren't present.
2015-10-16 16:45:34 -04:00
wing328
a2fda604f8 Merge pull request #1396 from akkie/disable-ssl-verification
Allow to disable SSL verification
2015-10-16 21:08:31 +08:00
Tomek Cejner
8339e4b092 Add default initializer to Swift model classes. 2015-10-16 14:09:55 +02:00
wing328
90eab19305 Merge pull request #1401 from xhh/ruby-base-url-slashes
Ruby client: remove trailing slashes from base_url
2015-10-16 19:32:13 +08:00
wing328
8a2c34ba7a Merge pull request #1403 from cbornet/retrofit_useless_import
Remove useless import
2015-10-16 19:12:35 +08:00
wing328
8c5991b793 Merge pull request #1372 from cbornet/retrofit_collectionformat
Add colllectionFormat support to retrofit
2015-10-16 18:50:59 +08:00
cbornet
3debd08a32 remove useless import 2015-10-16 12:47:25 +02:00
cbornet
92d1e8a1d9 use StringUtil to format csv 2015-10-16 12:21:45 +02:00
cbornet
71c5160739 add colllectionFormat support to retrofit
Fix #1364
2015-10-16 12:21:45 +02:00
Nadezhda Makarkina
3dd0b04fb9 Enums have been added to result file 2015-10-16 11:53:05 +03:00
Nadezhda Makarkina
04369ddfce Form parameters has been added to the html template 2015-10-16 10:33:56 +03:00
wing328
084e7f7199 Merge pull request #1380 from xhh/java-global-security
Apply global security to operations when necessary
2015-10-16 12:50:41 +08:00
wing328
ab026fdde3 Merge pull request #1393 from gwen15/genfix
REST client code generation bug fix proposal
2015-10-16 12:42:32 +08:00
xhh
e0dfc1b43d Ruby client: remove trailing slashes from base_url
Closes #1399
2015-10-16 12:02:30 +08:00
wing328
d5e2aea723 Merge pull request #1375 from xhh/issue-1308
Remove duplicate fields from sub-classes of the Java codegen
2015-10-16 12:02:25 +08:00
wing328
d2df310290 Merge pull request #1400 from testn/add-library
add library in the additional option
2015-10-16 12:00:28 +08:00
Nat Luengnaruemitchai
7db67aa192 add library in the additional option 2015-10-15 20:44:27 -07:00
xhh
a1fa0b0834 Rebuild Petstore samples 2015-10-16 10:47:00 +08:00
xhh
02a9fe2618 Add more test cases for global security 2015-10-16 10:30:26 +08:00
akkie
97a5a8922f Allow to disable SSL verification
This pull request adds the possibility to disable SSL verification for hosts using a self-signed SSL certificate
2015-10-15 16:07:35 +02:00
gwen15
0802f94d94 Bug fix: some character replacement where done on the local directories
names.

The dot character was replaced by the file separator on the whole paths,
not only on the package name based part.
2015-10-15 12:35:23 +02:00
gwen15
21eb406140 Fix default long value in java client code generation
The generated java code for a Long was "Long id=1;" which is not
compilable by javac because "1" is a primitive integer that cannot be
cast to a Long object. This fix generates now "Long id=1l;".
2015-10-15 12:35:16 +02:00
xhh
84928abd8d Merge branch 'master' into java-global-security 2015-10-15 17:57:27 +08:00
xhh
1c21730607 Log a warning on more than 1 security requirements 2015-10-15 17:56:38 +08:00
xhh
5a76a1b155 Fix tests regarding security 2015-10-15 16:51:43 +08:00
xhh
bc5a610567 Use the first security requirement from the array
According to swagger spec, "there is a logical OR between the security
requirements". The original behavior was to apply the security
requirements as the logic AND and skip security requirements that
include more that 1 security.
2015-10-15 15:17:30 +08:00
wing328
860b551e9b Merge pull request #1376 from xhh/java-util-model-package
[Java] Add a config option to use fully qualified name for java.util classes
2015-10-15 12:12:37 +08:00
wing328
22218cb132 Merge pull request #1378 from xhh/java-invalid-enum-name
[Java] Handle enum names starting with number in Java client
2015-10-15 10:51:03 +08:00
Nick Bruno
300a0dc82c Update retrofit library for changes to OAuth scope handling 2015-10-14 22:50:58 -04:00
wing328
3a66c0c710 Merge pull request #1384 from cbornet/retrofit_test_sample
Add retrofit to CI verified samples
2015-10-15 10:42:40 +08:00
xhh
a94384ca7f Merge branch 'master' into java-util-model-package 2015-10-15 10:38:19 +08:00
xhh
6d50ce6a77 Fix a typo 2015-10-15 10:34:45 +08:00
wing328
583493f5ca Merge pull request #1377 from cbornet/java_gradle_android
Add gradle files with android support to java templates
2015-10-15 10:28:28 +08:00
Nick Bruno
6cc17d8508 Add authorization scope data to CodegenSecurity, demo use in JAXRS 2015-10-14 22:07:43 -04:00
wing328
265b4b5945 Merge pull request #1385 from aersamkull/master
Updates to TypeScript Templates 2
2015-10-15 09:46:46 +08:00
xhh
65e63a8c52 Merge remote-tracking branch 'origin/master' into java-global-security 2015-10-14 20:42:20 +08:00
xhh
e4e77d03f5 Add test cases for global security 2015-10-14 20:40:10 +08:00
wing328
638bbfaf43 Merge pull request #1386 from swagger-api/revert-1370-global_consume
Revert "Add support for top-level consumes and produces"
2015-10-13 23:56:57 +08:00
wing328
0b4b5e8839 Revert "Add support for top-level consumes and produces" 2015-10-13 23:47:42 +08:00
wing328
c7b08bc112 Merge pull request #1373 from estiller/master
Fix bug in handling 204 "No Content" responses from the server in Android & Java generated clients
2015-10-13 22:47:47 +08:00
wing328
f1b0cf839a Merge pull request #1370 from wing328/global_consume
Add support for top-level consumes and produces
2015-10-13 22:35:33 +08:00
aersamkull
988de07c17 Fixes noImplicitAny Error 2015-10-13 13:32:01 +02:00
cbornet
f603efc419 add retrofit to CI verified samples 2015-10-13 12:18:32 +02:00
aersamkull
4e7d893a8e Updates to TypeScript Templates 2015-10-13 12:01:34 +02:00
xhh
1ef51e5ad7 Apply global security to operations when necessary
Closes #1365
2015-10-13 16:22:02 +08:00
xhh
17545e959a Handle enum names starting with number in Java client 2015-10-13 10:32:07 +08:00
cbornet
5ed52b3e1d add gradle files with android support 2015-10-12 16:16:38 +02:00
wing328
6ce09ee779 Update config option 2015-10-12 17:34:07 +08:00
xhh
7b1799f874 Merge branch 'master' into java-util-model-package
Conflicts:
	samples/client/petstore/java/default/src/main/java/io/swagger/client/api/PetApi.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/api/StoreApi.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/api/UserApi.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java
2015-10-12 17:11:43 +08:00
xhh
43b3acf550 Remove duplicate fields from sub-classes of the Java codegen
Closes #1308
2015-10-12 17:07:17 +08:00
wing328
d162d48fa3 Merge pull request #1359 from wing328/better_exception_handling2
Better exception handling
2015-10-12 16:58:01 +08:00
Eran Stiller
e562b0ae34 Fix indentation 2015-10-12 09:52:20 +03:00
Eran Stiller
748460488a Regenerate only the ApiInvoker.java file in the sample 2015-10-12 09:25:24 +03:00
Eran Stiller
1fb2a97497 Revert "Regenerate Android-Java sample"
This reverts commit 15f5eae2a8.
2015-10-12 09:22:36 +03:00
Eran Stiller
15f5eae2a8 Regenerate Android-Java sample 2015-10-12 08:52:52 +03:00
Eran Stiller
6fd54d5285 Fix bug in handling 204 responses 2015-10-12 08:51:00 +03:00
wing328
00517a1ad3 remove unused operation in test json file 2015-10-10 23:27:21 +08:00
wing328
5cd01af350 fix typo in test cases 2015-10-10 23:22:42 +08:00
wing328
9ecb2e92ae restore sample files for objc, php and ruby 2015-10-10 23:13:26 +08:00
wing328
6cc5a32d40 update objc sample 2015-10-10 23:09:41 +08:00
wing328
64fd94262f add globalConsumesAndProduces.json 2015-10-10 22:54:13 +08:00
wing328
5144c54895 add test case for global consumes and produces 2015-10-10 22:47:24 +08:00
wing328
9311dcaccb update codegen to support global consumes and produces 2015-10-10 18:39:54 +08:00
Tony Tam
a5a6ae72c3 Merge pull request #1368 from ducin/badge-maven-central
maven central badge added
2015-10-09 09:38:50 -07:00
Tomasz Ducin
c31ed5a30d maven central badge added 2015-10-09 18:14:27 +02:00
xhh
aa0fbada07 Add a "fullJavaUtil" option to Java clients
to toggle whether to use full qualified name (with full package prefix)
for classes under java.util
2015-10-09 22:10:22 +08:00
xhh
ab34dc5697 Rebuild Java cilents of the Petstore sample 2015-10-09 22:10:21 +08:00
xhh
edf2642e73 Support model name like "List" in Java clients
Support generating model files with name like "List", "Map" and "Date"
by using full qualified names when using them from the java.util
package.
2015-10-09 22:10:21 +08:00
wing328
d95660aca1 Merge pull request #1340 from onnertech/ios-tweaks
[objc] Add casts that avoid method resolution errors for `count`
2015-10-09 16:44:54 +08:00
wing328
297f9e961c Merge pull request #1362 from cristiangarciascmspain/fix-OSX-Pom-TestNG
Add StartAttachListener that fixes #1330
2015-10-09 15:34:15 +08:00
wing328
42b716207f Merge pull request #1360 from wing328/nodejs_server_port
[NodeJS] update index.js to use the var serverPort
2015-10-09 11:32:01 +08:00
wing328
7d69107696 Merge pull request #1356 from arnested/deserialize-httpHeader
Deserialize httpHeader.
2015-10-09 11:31:24 +08:00
wing328
4d2fb1cc9a Merge pull request #1355 from arnested/usage-of-httpHeader-in-exceptions
Use HTTP headers from ApiException in PHP client.
2015-10-09 11:31:15 +08:00
cristiangarciascmspain
503ffd06d0 Add StartAttachListener that fixes #1330 2015-10-08 18:30:13 +02:00
wing328
725df15dd5 update sample for nodejs 2015-10-08 23:57:14 +08:00
wing328
8e9e3a6171 update nodejs to use the var serverport 2015-10-08 23:52:41 +08:00
wing328
6ee42bebe6 add exception handling for #1267 2015-10-08 23:38:09 +08:00
wing328
69a346cb57 remove python3 frmo all-petstore.sh 2015-10-08 23:38:09 +08:00
wing328
d451d4efb8 fix NPE when model's allof with no property 2015-10-08 23:38:09 +08:00
Arne Jørgensen
b7b8b527db Use HTTP headers from ApiException in PHP client.
The `$httpHeader` variable was not set when catching exceptions.

See also #1354.

Regenerated php-petstore sample.
2015-10-08 11:46:36 +02:00
Arne Jørgensen
3bd4502bbf Deserialize httpHeader.
See #1354.

Regenerated php-petstore sample.
2015-10-08 11:25:43 +02:00
Tony Tam
733e19c113 fixed NPE for objc client 2015-10-07 17:11:52 -07:00
wing328
735cae7b49 Merge pull request #1335 from wing328/html_remove_site_css
[HTML] remove site.css from html docs
2015-10-07 16:26:53 +08:00
wing328
3b36bbe97d Update README.mustache 2015-10-06 18:39:44 +08:00
wing328
228e039046 Merge pull request #1333 from wing328/csharp_fix_accept
[C#] better Accept header selection for C# API client
2015-10-06 18:26:02 +08:00
wing328
b27663e1ad Update README.md 2015-10-06 16:14:13 +08:00
wing328
eaddebe220 Update list of generator 2015-10-06 16:13:06 +08:00
wing328
f8485f26d3 Merge pull request #1317 from cbornet/online_options
Add options to online generator
2015-10-06 12:00:51 +08:00
Ches Martin
d9117480f8 [objc] Add casts that avoid method resolution errors
Because the `data` that we're deserializing is of type `id` (essentially
untyped), it's possible to have method resolution clashes without
explicitly casting here once we've parsed a type. I had this issue with
a pagination container model, for instance, which has a field named
`count` that conflicts with the property of the same name on `NSArray`
or `NSDictionary`.
2015-10-06 10:58:48 +07:00
wing328
7b79abef63 update c# sample 2015-10-06 11:33:00 +08:00
wing328
dbd89092f0 add accept header select to async method 2015-10-06 11:30:17 +08:00
wing328
6ed7663466 add remarks to csharp method 2015-10-06 11:28:18 +08:00
wing328
d882e9fe0a remove site.css from html docs 2015-10-05 22:33:25 +08:00
wing328
ea1c2809f7 Merge pull request #1329 from iushankin/issue-1304-part3
Fixed #1304: Migrate tests from the Scala to the plain Java. Part 3
2015-10-05 18:29:36 +08:00
wing328
3c78e29a12 better Accept header for C# 2015-10-05 13:19:58 +08:00
wing328
6cb4473526 Merge pull request #1328 from ducin/docs-toc
readme: Table of Contents
2015-10-05 00:05:32 +08:00
wing328
65a9c78544 Merge pull request #1319 from cbornet/online_version
Add version to swagger.json from pom's version
2015-10-04 23:57:16 +08:00
wing328
69911a1974 Merge pull request #1311 from xhh/java-okhttp-gson-ssl
Add some SSL options to Java okhttp-gson client
2015-10-04 23:02:25 +08:00
wing328
761029241e Merge pull request #1331 from qswinson/csharp_comments
Csharp comments
2015-10-03 10:31:44 +08:00
Quenby Mitchell
1018ca634d generic types need to be escaped for the xmldoc to work for return documentation. List<Foo> should be List{Foo} for the c# compiler to generate the documentation for the generic type. since there is not a spare parameter on the CodegenOperation model to put this correctly formatted documentation, for right now, don't include the return type in the documentation. 2015-10-02 13:11:54 -05:00
Quenby Mitchell
ff0b0c15a8 fix build warnings on CSharp xml comments 2015-10-02 12:14:41 -05:00
wing328
727c32f2a2 Merge pull request #1312 from iushankin/issue-1304
Issue #1304: Migrate tests from the Scala to the plain Java. Part 2
2015-10-02 23:50:37 +08:00
wing328
3c0eab65f3 Merge pull request #1323 from cbornet/fix_scopes_npe
Fix NPE in empty operation oauth scopes
2015-10-02 23:39:25 +08:00
wing328
a72ac99c91 Merge pull request #1316 from cbornet/dynamic_enum
Dynamically fill swagger enum from codegen client names
2015-10-02 23:37:15 +08:00
Ivan Ushankin
4b62a94350 Fixed #1304: Migrate tests from the Scala to the plain Java. Part 3 2015-10-02 16:20:16 +03:00
Tomasz Ducin
12d8f97aee improving ToC 2015-10-01 23:26:24 +02:00
Tomasz Ducin
acaf1b1cd0 added Table of Contents
Initial version of table of contents - showing all headers in the current shape.
2015-10-01 23:14:34 +02:00
cbornet
c1c3439b86 fix some wrong indentations 2015-10-01 17:42:33 +02:00
cbornet
5744bb4053 fix npe in empty operation scopes
Fix #1322
2015-10-01 17:35:07 +02:00
wing328
2711e375cc Merge pull request #1310 from wing328/fix_dynamic_html_parameter_name
[HTML] Fix parameter name in dynamic-html
2015-10-01 20:07:29 +08:00
cbornet
25abc15233 add version to swagger.json from pom's version
Fix #1314
2015-10-01 14:00:19 +02:00
cbornet
984b645ea1 add options to online generator
Fix #1313
2015-10-01 11:09:25 +02:00
wing328
253c46a0d5 Merge pull request #1309 from wing328/fix_springmvc_object
[SpringMVC] fix compilation error by removing import of Object
2015-10-01 10:02:20 +08:00
cbornet
7c431a8e11 dynamically fill swagger enum from codegen client names 2015-10-01 01:12:09 +02:00
Ivan Ushankin
3c98e32765 Issue #1304: Migrate tests from the Scala to the plain Java. Part 2 2015-09-30 17:38:01 +03:00
xhh
f483f934d8 Add some SSL options Java okhttp-gson client
* Add the `verifyingSsl` option to allow skipping verifying SSL
  certificate and host name (default to verify)
* Add `sslCaCert` to allow customizing the CA certificates
2015-09-30 19:48:18 +08:00
wing328
053af7a749 Merge pull request #1305 from iushankin/issue-1304
Fixed #1304: Migrate tests from the Scala to the plain Java. Part 1
2015-09-30 17:57:05 +08:00
wing328
d2d6ff661a fix parameter name in dynamic html 2015-09-30 17:24:11 +08:00
wing328
17bdd73891 fix springmvc by removing import of Object 2015-09-30 16:28:17 +08:00
Tony Tam
d9bfb884da Merge pull request #1307 from warnyul/master
Fix objc model inheritance.
2015-09-29 22:58:43 -07:00
Balázs Varga
19d8766363 Fix model inheritance. 2015-09-29 10:07:51 +02:00
wing328
e270fdcfd9 Merge pull request #1300 from geekerzp/python_client_cert
[Python] Support client certificate file and client key file in TLS/SSL
2015-09-29 14:50:11 +08:00
wing328
a2f47672e7 Merge pull request #1297 from geekerzp/objc_upload_file
[Objc] Add test case in objc client
2015-09-29 14:49:37 +08:00
wing328
90dc0a7bd8 Merge pull request #1302 from geekerzp/ruby_client_cert
[Ruby] Support client ceritficate in ruby client
2015-09-29 14:44:17 +08:00
Fredric Dorothy
2a679f798a Merge https://github.com/fdorothy/swagger-codegen 2015-09-28 11:52:30 -05:00
Fredric Dorothy
dbecb9e562 Added ability to set a configuration file for custom code generators. This should work the same as when you're using one of the built-in generators. 2015-09-28 11:50:08 -05:00
Ivan Ushankin
4db86003f5 Fixed #1304: Migrate tests from the Scala to the plain Java. Part 1 2015-09-28 19:03:02 +03:00
Tony Tam
d5cf2b6cfe made host dynamic for link generation 2015-09-28 08:51:39 -07:00
geekerzp
6a3108a6bf Support client ceritficate in ruby client 2015-09-28 16:31:47 +08:00
wing328
2ea3816e65 Merge pull request #1290 from geekerzp/model_name
[Python, Ruby] Fix issues in python and ruby clients
2015-09-28 08:35:28 +08:00
wing328
baca3027f4 Merge pull request #1298 from geekerzp/ruby_upload_file
[Ruby] Add test case in ruby client
2015-09-27 22:20:20 +08:00
wing328
0e9e2046e7 Merge pull request #1293 from xhh/fix-set-date-format
[Java jersey2]: Fix ApiClient.setDateFormat in Java jersey2 client
2015-09-27 21:48:53 +08:00
wing328
e301020acc Merge pull request #1295 from geekerzp/python_upload_file
[Python] Fix issue in python client
2015-09-27 21:48:29 +08:00
geekerzp
cf1f113852 Support client certificate file and client key file in TLS/SSL in python client 2015-09-26 16:16:59 +08:00
wing328
c26a387d9a Merge pull request #1271 from laurentvdl/master
implement form parameter support using Angular $httpParamSerializer
2015-09-26 09:37:40 +08:00
geekerzp
c70ca9d572 Add test case in ruby client 2015-09-25 17:33:39 +08:00
geekerzp
6bdfb8810c Add test case in objc client 2015-09-25 16:48:19 +08:00
wing328
2a5ab78056 Merge pull request #1296 from xhh/fix-enum-constructor
Fix hard-coded constructor name of enum class in Java okhttp-gson client
2015-09-25 16:34:13 +08:00
xhh
e5a4ef3ba0 Fix hard-coded constructor name of enum class
in Java okhttp-gson client
2015-09-25 15:52:52 +08:00
geekerzp
9b148be57e Fix issue in python client.
If upload only file it will not send file content.
2015-09-25 15:10:32 +08:00
wing328
0380fc5a35 Merge pull request #1274 from geekerzp/objc_log
[Objc] Update objc debug logging
2015-09-25 11:57:28 +08:00
xhh
597282742b Fix ApiClient.setDateFormat in Java jersey2 client 2015-09-24 21:56:50 +08:00
wing328
5e805c2be6 Merge pull request #1284 from acourtneybrown/master
Fixed method name in Java ApiClient mustache template
2015-09-24 16:39:46 +08:00
wing328
b080abeb01 Merge pull request #1280 from xhh/primitive-string-response
[Java] Support primitive string response in Java clients
2015-09-24 16:37:17 +08:00
geekerzp
2943f41cdd Update python and ruby clients.
Use `sanitizeName` to sanitize model name.
2015-09-24 16:29:20 +08:00
geekerzp
84e0df6115 Fixed issue that model name not camelized in python client and ruby client 2015-09-24 16:23:44 +08:00
wing328
a49826e4d7 Merge pull request #1289 from geekerzp/python_log
[Python] Update python log
2015-09-24 16:09:06 +08:00
wing328
b8792b6a71 Merge pull request #1276 from bedag/master
Better diagnostics when something goes wrong
2015-09-24 11:42:48 +08:00
wing328
5ee86b9816 Merge pull request #1264 from xhh/java-enum-improvements
[Java] Improvements on enum var name in Java client
2015-09-24 11:42:11 +08:00
geekerzp
e32272aedb Update log in python client 2015-09-24 10:54:24 +08:00
wing328
ee7f447f77 Merge pull request #1187 from Edubits/swift-2.0
[Swift] Update generated code to Swift 2.0
2015-09-24 10:51:05 +08:00
wing328
a5fb689615 Merge pull request #1260 from wing328/remove_python3_generator
[Python] remove python3 generator
2015-09-24 10:50:47 +08:00
geekerzp
a26cf60a22 Revert "Revert "[Python] Fix issue in python client""
This reverts commit c59e2b88b1.
2015-09-24 10:08:16 +08:00
wing328
ed13d7b1b8 Merge pull request #1288 from swagger-api/revert-1281-python_log
Revert "[Python] Fix issue in python client"
2015-09-24 09:41:18 +08:00
wing328
c59e2b88b1 Revert "[Python] Fix issue in python client" 2015-09-24 09:30:49 +08:00
wing328
e8d40a146c Merge pull request #1281 from geekerzp/python_log
[Python] Fix issue in python client
2015-09-24 09:27:00 +08:00
Adam Brown
4ef69794a3 Fixed method name in Java ApiClient mustache template 2015-09-23 14:16:26 -07:00
geekerzp
30fbdd4d05 Add class prefix to macro DebugLog in objc client 2015-09-23 17:18:07 +08:00
geekerzp
13c079342e Fixed issue #1262 2015-09-23 14:55:46 +08:00
xhh
a284bb7a51 Rebuild Java clients of the Petstore sample 2015-09-23 13:31:28 +08:00
xhh
44bbe301cb Support primitive string response in Java clients 2015-09-23 12:50:38 +08:00
wing328
69f8274287 Merge pull request #1272 from wing328/add_cli_parameter_order
Add CLI option to sort method arguments
2015-09-23 09:47:00 +08:00
wing328
770ea9d12e Merge pull request #1270 from xhh/php-sanitize-model-name
Fix #1145: sanitize model name in PHP client
2015-09-23 09:44:38 +08:00
wing328
d09d8bb495 Merge pull request #1269 from efossier/expose-readonly-to-template
Expose readOnly attribute on model properties to templates
2015-09-23 09:29:49 +08:00
wing328
85f99934c8 Merge pull request #1256 from cbornet/java_retrofit_lib
Set retrofit as a java library
2015-09-23 09:12:07 +08:00
Adrian Moos
66dee928d2 consistent indentation (spaces, not tabs) 2015-09-22 18:08:47 +02:00
Adrian Moos
d4a94fbf52 - DefaultGenerator now communicates failures by throwing exceptions
rather than setting a status flag in a public field
- DefaultGenerator now decorates exceptions to record where a failure
occured (which api, model or operation?)
- CodeGenMojo now propagates this exception to maven to abort the build
2015-09-22 18:01:29 +02:00
geekerzp
844cae75b7 Update debug logging in objc client 2015-09-22 16:32:15 +08:00
wing328
4e4e9e7893 add a CLI option to sort method argument 2015-09-22 15:57:22 +08:00
Laurent Van der Linden
61690d625f change the constructor signature to be backwards compatible
update petstore samples for angular and node
2015-09-22 09:20:52 +02:00
Laurent Van der Linden
1cd8141645 implement form parameter support using Angular $httpParamSerializer 2015-09-22 08:37:49 +02:00
wing328
98ff2d231f Merge pull request #1261 from wing328/typescript-node-fix-param-name
[TypeScript] fix parameter name for typescript-node using baseName
2015-09-22 14:22:07 +08:00
xhh
09add2d871 Fix test failure by allowing backslash in model name 2015-09-22 14:03:27 +08:00
xhh
9cbf2d3707 Fix #1145: sanitize model name in PHP client 2015-09-22 11:33:11 +08:00
geekerzp
0622838947 Fixed issues about logging in objc client 2015-09-22 09:29:48 +08:00
Evan Fossier
a6df340cdc Expose readOnly attribute on model properties to templates, can now use isReadOnly property in model templates 2015-09-21 17:34:23 -07:00
xhh
bcbf9c54c7 Remove unnecessary checking of empty string 2015-09-21 18:14:57 +08:00
xhh
6dcaa890cf Improvements on enum var name in Java client
* Place each enum var in a separate line
* Truncate common prefix when present
2015-09-21 17:29:26 +08:00
wing328
2b06a81a52 remove extra line break in typescript-node sample code 2015-09-20 23:17:04 +08:00
wing328
956624f1a4 remove extra line break for typescript-node 2015-09-20 23:15:02 +08:00
wing328
b1728aed7c update sample for typescript-node 2015-09-20 23:11:46 +08:00
wing328
8733be9ac9 update sample, fix formData basename 2015-09-20 23:06:29 +08:00
wing328
c203854254 fix parameter name for typescript-node using baseName 2015-09-20 22:59:56 +08:00
wing328
3dc3af8d18 remove python3 generator 2015-09-20 22:43:43 +08:00
wing328
cbc2fb237d Merge pull request #1252 from seanbright/model-with-no-props
Fix NPE in JavaClientCodegen when model has no properties of its own
2015-09-20 21:57:05 +08:00
wing328
b7d64d1352 Merge pull request #1254 from GoodTRKR/master
[Obj-C] removed extraneous logs unless logging is specifically enabled in the [SWGConfiguration sharedConfig] instance
2015-09-19 01:04:10 +08:00
cbornet
047b06ac84 remove retrofit codegen from config 2015-09-18 15:03:55 +02:00
cbornet
f29f5d6f13 fix error with formParams in async ops 2015-09-18 14:45:37 +02:00
cbornet
1863aca0fa set retrofit as a java library
Fix #1247
Fix #1248
2015-09-18 14:21:48 +02:00
wing328
cf300c09da Merge pull request #1246 from laurentvdl/patch
Use the baseName when referring to path and query parameters.
2015-09-18 16:46:46 +08:00
wing328
27ab9c2e57 Merge pull request #1238 from DariusMR/master
unicode type forgotten in api_client.mustache for python
2015-09-18 16:44:35 +08:00
Laurent Van der Linden
c83c564a19 Use the baseName when referring to header parameters. 2015-09-18 08:05:13 +02:00
wing328
8978a0a906 Merge pull request #1242 from xhh/options-http-method
[Java okhttp-gson] Support the "OPTIONS"  HTTP method
2015-09-18 10:47:27 +08:00
wing328
6d21422bad Merge pull request #1245 from geekerzp/objc_ssl
[Objc] Enhancements of objc client
2015-09-18 10:45:43 +08:00
Matthew Davis
65cfa735d5 [Obj-C] removed extraneous logs unless logging is specifically enabled in the [SWGConfiguration sharedConfig] instance 2015-09-17 17:39:26 -07:00
Sean Bright
e2ce427fb1 Fix NPE in JavaClientCodegen when model has no properties of its own
A model that inherits from another model and does not add its own properties
causes JavaClientCodegen to crash silently with an NPE.

Fixes #1141
2015-09-17 14:35:07 -04:00
Laurent Van der Linden
781458b0d1 Use the baseName when referring to path and query parameters. 2015-09-17 12:46:20 +02:00
DariusM
65f86dbb0f unicode type forgotten in api_client.mustache for python2, works also with python3 2015-09-17 10:31:40 +02:00
DariusM
cc1c495ea5 unicode type forgotten in api_client.mustache 2015-09-17 10:26:08 +02:00
geekerzp
261ae79528 Remove space from parameterToString in objc client 2015-09-17 15:59:03 +08:00
geekerzp
fb14585adf Add parameterToString method 2015-09-17 15:20:11 +08:00
wing328
27e434d786 Merge pull request #1239 from ePaul/feature/use-baseName-for-jsonproperty
Use the swagger property names in all Java models.
2015-09-17 14:43:21 +08:00
wing328
2a37c48e12 Merge pull request #1243 from process/patch-1
[DOC] fix typo in Python api_client template
2015-09-17 14:42:45 +08:00
Justin Chines
85df7c8ed7 [DOC] fix typo in Python api_client template 2015-09-16 22:09:01 -07:00
wing328
b3ca9cdbe0 Merge pull request #1154 from cbornet/retrofit_oauth
[Retrofit] add authorizations to retrofit client
2015-09-17 11:47:06 +08:00
xhh
477d5c40d9 Rebuild Java okhttp-gson client of Petstore sample 2015-09-17 10:22:53 +08:00
xhh
460c8caa8a Support OPTIONS in Java okhttp-gson client 2015-09-17 10:22:53 +08:00
wing328
53e13aee19 Merge pull request #1234 from geekerzp/python_http_verb
[Python] Enhancements http verbs of python client
2015-09-16 22:32:58 +08:00
wing328
ec05dc4414 Merge pull request #1236 from wing328/springmvc_file_upload
[SpringMVC] Replaced hard-coded fileDetail with {{baseName}}
2015-09-16 18:17:12 +08:00
Paul Ebermann
7eec769654 Use the swagger property names in all Java models.
This changes `@JsonProperty({{name}})` to `@JsonProperty({{baseName}})` in model.mustache for JavaInflector, JavaJaxRS and JavaSpringMVC.
In pull request #535 this was already done for the plain Java files (which get used on client side).

This replaces the sanitized names in the generated code by the original property names from the swagger document.
2015-09-16 11:36:51 +02:00
wing328
f483b8dfa8 Merge pull request #1233 from geekerzp/ruby-apiclient
Fix issue that using temp_folder_path from ApiClient in ruby client
2015-09-15 22:28:54 +08:00
wing328
2ac41ff080 repalced hard-coded fileDetail with {{baseName}} 2015-09-15 22:14:13 +08:00
geekerzp
ade61c0701 Support http body in OPTIONS request in python client 2015-09-15 17:48:59 +08:00
geekerzp
bd63c1d9d9 Support OPTIONS http verb in python client. 2015-09-15 16:40:23 +08:00
geekerzp
5d1e70544c Fix issue that using temp_folder_path from ApiClient
It should use the one from the Configuration object
2015-09-15 15:04:39 +08:00
wing328
349702adf9 Merge pull request #1232 from geekerzp/python_issue
Fix issue in python client
2015-09-15 12:14:49 +08:00
wing328
88410635b3 Merge pull request #1228 from geekerzp/objc_ssl
Objc client ssl verification
2015-09-15 10:14:20 +08:00
geekerzp
0262d3c8d2 Fix issue #1230 2015-09-15 09:57:55 +08:00
wing328
96f4a3ab71 Merge pull request #1226 from xhh/java-okhttp-gson-file-downloading
[Java okhttp-gson] Add support of file downloading
2015-09-14 22:09:48 +08:00
geekerzp
b0063d9e9f Objc client ssl verification 2015-09-14 18:29:49 +08:00
wing328
48bd888483 Merge pull request #1222 from madhukard/master
Java: Support List of Enums in postProcessModels
2015-09-14 01:21:34 +08:00
wing328
1358e33bf6 Merge pull request #1223 from GoodTRKR/master
[Obj-C] Fixed an issue where NSNumber parameters would cause a crash in multipart/form-data upload endpoints
2015-09-14 00:28:43 +08:00
wing328
c8edacb25c Merge pull request #1225 from wing328/fix_getHasXXXParam
Fix getHasXxxParam in CodegenOperation
2015-09-13 22:15:50 +08:00
wing328
47dc4d7642 Merge pull request #1218 from wing328/csharp_fix_map_string
[C#] update map to use String instead of string
2015-09-13 22:15:22 +08:00
xhh
1ecb8a74c1 Allow customizing temp folder for file downloading 2015-09-13 21:02:22 +08:00
xhh
967c574f5b Support file downloading in Java okhttp-gson client 2015-09-13 18:41:53 +08:00
wing328
8bb8a7a79a fix getHasXxxParam 2015-09-12 16:00:10 +08:00
Matthew Davis
1268b0627f added NSNumber catch to pathParams as well 2015-09-11 17:33:36 -07:00
Matthew Davis
761f172c2f forgot an 'else' statement 2015-09-11 17:27:25 -07:00
Matthew Davis
1321d5f9a5 [Obj-C] Fixed an issue where NSNumber parameters would cause a crash in multipart/form-data upload endpoints 2015-09-11 17:23:48 -07:00
Madhukar Devaraju
35f462f571 Java: Support List of Enums in postProcessModels 2015-09-11 14:56:37 -07:00
wing328
f21fa08cd6 update C# ParamterToString to support array of object, add test case 2015-09-11 22:48:38 +08:00
wing328
16afd4ee9b update map to use String instead of string 2015-09-11 18:02:51 +08:00
wing328
46f78f2180 Merge pull request #1215 from xhh/java-last-resp-info
[Java jersey2 okhttp-gson] Fix compilation error, record status code and response headers of last request
2015-09-11 16:05:09 +08:00
xhh
2e402bba97 Rebuild Java clients for the petstore sample 2015-09-11 13:22:37 +08:00
xhh
34f196a144 Java-okhttp-gson: allow access to status code and response headers of last (async) request 2015-09-11 13:22:37 +08:00
xhh
def3f5b3fb Java-jersey2: record status code and response headers of last request 2015-09-11 13:22:37 +08:00
xhh
60e5a34534 Update Java-jersey2 client to skip binary support
Binary parameter/response support was added to the default Java client
codegen which changed the signature of the `invokeAPI` method in
"api.mustache", causing the "jersey2" client fail to compile.
Here an separate version of `api.mustache` is added for "jersey2" client
which does not handle binary support (for now).
2015-09-11 13:22:37 +08:00
wing328
1eed90f34e Merge pull request #1214 from GoodTRKR/master
[Obj-C] Fixed an issue with incorrect references in the ApiClient when using a custom prefix.
2015-09-11 09:30:58 +08:00
wing328
e34063f0f2 Merge pull request #1213 from LeoYReyes/patch-1
[C#] Api.mustache - Remove the parameter in the BasePath getter
2015-09-11 08:41:08 +08:00
Matthew Davis
dbdcf34044 [Obj-C] Fixed an issue with incorrect references in the ApiClient when using a custom prefix. 2015-09-10 15:14:53 -07:00
Leo
43d71ed10c Remove the parameter in the BasePath getter
The parameter in the BasePath getter is not needed.
2015-09-10 12:17:23 -05:00
wing328
b3db24ead6 Merge pull request #1210 from arnested/missing-head-and-options-in-php-client
Add HEAD and OPTIONS support in PHP client.
2015-09-10 22:07:31 +08:00
wing328
d21c6f2b45 Merge pull request #1205 from wing328/SLF4J_warning
update pom.xml to remove warning
2015-09-10 21:52:45 +08:00
Arne Jørgensen
3c3762fd92 Add HEAD and OPTIONS support in PHP client.
The generated PHP client didn't support the HEAD and OPTIONS methods.

Followup on #1156 and #1201.
2015-09-10 14:55:49 +02:00
Robin Eggenkamp
0edbfeff15 Bump Alamofire version to final 2.0.0 2015-09-10 14:24:55 +02:00
Ron
4b539a9d6e Merge pull request #1206 from wing328/fix_sinatra_type
[Sinatra] fix sinatra type (tag)
2015-09-09 15:59:22 +03:00
wing328
71a3218bb3 fix sinatra type (tag) 2015-09-09 20:27:59 +08:00
wing328
d37cf6595a update pom.xml to get rid of the warning 2015-09-09 16:20:17 +08:00
wing328
1bac705876 Merge pull request #1200 from wing328/dart_permission
[Dart] update dart-petstore.sh permission
2015-09-08 22:28:12 +08:00
wing328
3385082e2c Merge pull request #1201 from arnested/missing-head
Fix HEAD path item is missing.
2015-09-08 22:28:03 +08:00
wing328
2b1a63a7de Merge pull request #1150 from ePaul/bugfix/1146-escape-line-breaks-in-response-description
jaxrs: escape line breaks in response description
2015-09-08 21:38:50 +08:00
wing328
93847d8dc7 Merge pull request #1149 from ePaul/feature/1146-do-not-escape-javadocs
jaxrs (and other Java generators): do not escape newlines in generated javadocs.
2015-09-08 21:17:14 +08:00
Arne Jørgensen
3514bf14b3 Fix HEAD path item is missing.
Fixes #1156.
2015-09-08 10:00:17 +02:00
wing328
e215a1c87f update dart permission 2015-09-08 11:38:01 +08:00
wing328
5bcd8fb207 Merge pull request #1199 from xhh/java-okhttp-gson
[Java okhttp-gson, Android] Set source and target compatibility to 1.7 in build.gradle
2015-09-08 11:31:38 +08:00
wing328
a8f7708789 Merge pull request #1198 from yissachar/dart
Add Dart support
2015-09-08 09:18:51 +08:00
wing328
26c0bfef7d Merge pull request #1196 from wing328/typescript_basepath
[TypeScript] Fix base path
2015-09-07 21:57:23 +08:00
wing328
12190e0900 Merge pull request #1172 from xhh/ruby-apiclient
[Ruby] Implement API client structure for Ruby client
2015-09-07 21:56:59 +08:00
wing328
f340a389e9 Merge pull request #1182 from Helmsdown/cli-enhancements-2
Refactor codegen to support an "uber" meta model for user defined values
2015-09-07 21:55:50 +08:00
xhh
8b96cdb7d7 Set source/target compatibility in Android client 2015-09-07 16:35:34 +08:00
xhh
90307cafc6 Merge branch 'master' into java-okhttp-gson 2015-09-07 15:33:18 +08:00
Yissachar Radcliffe
58c5ecf13c Generate auth files to correct location 2015-09-06 19:58:28 -04:00
Yissachar Radcliffe
e72a53448e Add Dart support 2015-09-06 18:35:29 -04:00
wing328
90b89c6189 fix typescript basepath 2015-09-05 16:48:00 +08:00
wing328
ee1febcd95 Merge pull request #1188 from wing328/master
[NodeJS] fixed HTML-escaped description on nodejs json files
2015-09-05 15:44:16 +08:00
russellb337
6c079e95d9 Merge remote-tracking branch 'upstream/master' into cli-enhancements-2 2015-09-04 15:25:10 -07:00
russellb337
d22398eb73 put all values into dynamic properties map 2015-09-04 15:24:36 -07:00
wing328
30228dcca5 Merge pull request #1192 from SparrowJang/master
Python - response is empty object
2015-09-04 22:42:39 +08:00
wing328
2e30a3af27 Merge pull request #1189 from mad102190/feature/objc-response-headers
[Obj-C] Added ability to access HTTP Response headers
2015-09-04 16:42:25 +08:00
wing328
212d240316 Merge pull request #1190 from mad102190/fixes/objc-podspec-generation
[Obj-C][Cocoapods] Added extra CLI options to generate a valid podspec file.
2015-09-04 16:36:17 +08:00
sparrow.jang
ba701be2f2 fixed a empty object for response 2015-09-04 15:20:34 +08:00
SparrowJang
f6d624be2a Merge pull request #2 from swagger-api/master
merge
2015-09-04 14:25:34 +08:00
Matthew Davis
f705e03fc4 changes to podspec.mustache to accept new params 2015-09-03 13:02:24 -07:00
Matthew Davis
75bb59572a added extra CLI options required to generate a valid (lint-able) podspec file. 2015-09-03 12:54:25 -07:00
Matthew Davis
f067b86fa0 re-built sample objc-petstore 2015-09-03 12:31:30 -07:00
Matthew Davis
2822e9ea38 added support for retrieving HTTP response headers in obj-c. Also added a +sharedAPI class method for easy initialization of an API class without passing headers 2015-09-03 12:18:00 -07:00
russellb337
435ce7b9d5 make JsonAnySetter for dynamic properties "builder" style 2015-09-03 10:16:44 -07:00
russellb337
ab6118afe4 update default generator to skip generation of models that have import mappings defined 2015-09-03 08:24:33 -07:00
wing328
8ce06fc898 fix HTML-escaped description on nodejs json files 2015-09-03 22:38:19 +08:00
wing328
9e8e5db7b3 Merge pull request #1180 from ist-ltd/master
Support dots in output folder for C# generator
2015-09-03 22:26:38 +08:00
russellb337
44b5c22cd4 Merge remote-tracking branch 'upstream/master' into cli-enhancements-2 2015-09-02 09:28:58 -07:00
russellb337
6d7557971b switch Generate to use CodegenConfigurator 2015-09-02 09:28:40 -07:00
Cameron
9af16c0d79 Support dots in output folder for C# generator 2015-09-02 13:36:35 +01:00
xhh
027e4c5a20 Set source and target compatibility to 1.7
in build.gradle to make it work with Android
2015-09-02 18:35:58 +08:00
wing328
c56d807a15 Merge pull request #1169 from boazsapir/master
Handle correctly the case of no default response (see comment in #1124)
2015-09-02 18:03:02 +08:00
wing328
7d4ba27e01 Merge pull request #1162 from xhh/java-okhttp-gson
[Java] Add a new library template: okhttp-gson
2015-09-02 16:21:39 +08:00
Tony Tam
c8ed2b0d50 Merge pull request #1175 from swagger-api/feature/issue-1173
formatting, vendor extensions on operations
2015-09-02 00:02:20 -07:00
Tony Tam
1520ec536e formatting, vendor extensions on operations 2015-09-01 23:34:29 -07:00
Tony Tam
e434380eae Merge pull request #1174 from swagger-api/feature/issue-1173
Feature/issue 1173
2015-09-01 23:16:13 -07:00
Tony Tam
5940f46f56 added vendor extensions on parameters per #1173 2015-09-01 23:04:33 -07:00
xhh
7c60e2097f Update API client initialization in Ruby test 2015-09-02 12:00:27 +08:00
xhh
fc7cffbab7 Merge branch 'master' into ruby-apiclient
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/RubyClientCodegen.java
2015-09-02 11:46:53 +08:00
Tony Tam
b099d1e7a2 added configuration to superclass for overriding param reordering for #1171 2015-09-01 15:53:58 -07:00
b_sapir
31e8aca357 Handle correctly the case of no default response (see comment in #1124) 2015-09-01 18:26:15 +03:00
wing328
d746894ecb Merge pull request #1168 from xhh/bug-enum-constructor
Fix bug of hard-coded enum name in Java client
2015-09-01 22:56:04 +08:00
xhh
2c64e0893b Fix bug of hard-coded enum name in Java client 2015-09-01 20:06:44 +08:00
xhh
3c79a692aa Use a separate library for base64-encoding in the okhttp-gson template 2015-09-01 19:56:06 +08:00
wing328
72255286b3 Merge pull request #1144 from ePaul/bugfix/1143-add-nullcheck-for-allowedvalues
Add null check to fix issue #1143
2015-09-01 11:54:22 +08:00
xhh
3112e4ad06 Add build files for Gradle and SBT 2015-09-01 11:20:44 +08:00
russellb337
38b1e1aad7 Merge branch 'master' into cli-enhancements-2 2015-08-31 15:20:17 -07:00
wing328
dfb87abe3a Merge pull request #1151 from ePaul/feature/1146-trim-whitespaces-before-escaping
trim strings before escaping
2015-08-31 22:21:38 +08:00
wing328
b96fdb6766 Merge pull request #1164 from ePaul/bugfix/1142-sanitize-api-name-for-spring-mvc
Issue #1142: sanitize api name before camelizing.
2015-08-31 21:46:25 +08:00
wing328
369ceb634d Merge pull request #1163 from ePaul/bugfix/1142-sanitize-file-name-for-models
Issue #1142: sanitize the class name for Java model classes.
2015-08-31 21:44:28 +08:00
Paul Ebermann
92f9b33eb6 Issue #1142: sanitize api name before camelizing.
This builds on #1139 in order to solve another part of #1142:
When the first component of a path contained a dash, the generated class name contained this dash too (for the "language" spring-mvc).
2015-08-31 15:14:54 +02:00
Robin Eggenkamp
5b12379a07 Add missing NSDateFormatter 2015-08-31 15:04:37 +02:00
Robin Eggenkamp
39b4034958 Replace NSError by ErrorType 2015-08-31 15:03:56 +02:00
Robin Eggenkamp
28030cba19 Merge branch 'master' into swift-2.0
Conflicts:
	modules/swagger-codegen/src/main/resources/swift/APIs.mustache
	modules/swagger-codegen/src/main/resources/swift/AlamofireImplementations.mustache
	modules/swagger-codegen/src/main/resources/swift/Cartfile.mustache
	modules/swagger-codegen/src/main/resources/swift/Models.mustache
	modules/swagger-codegen/src/main/resources/swift/Podspec.mustache
	modules/swagger-codegen/src/main/resources/swift/api.mustache
2015-08-31 14:41:41 +02:00
Paul Ebermann
e0679c0b14 Issue #1142: sanitize the class name for Java model classes.
This builds on #1139, calling the new sanitizeName() method before camelizing it when generating model names.
2015-08-31 14:13:48 +02:00
xhh
2fd8b8ff16 Update help text of config options in README 2015-08-31 20:10:29 +08:00
xhh
e35be1bd40 Generate Java petstore sample for okhttp-gson 2015-08-31 19:59:17 +08:00
wing328
39ac64d24a Merge pull request #1161 from wing328/upgrade_JMockit
Upgrade JMockit to 1.19
2015-08-31 18:55:38 +08:00
wing328
b846fa5c3e update JMockit to 1.19 2015-08-31 18:44:01 +08:00
xhh
3c84847adb Add a new library template to Java client: okhttp-gson
which uses OkHttp as HTTP library and Gson as JSON processing library
2015-08-31 18:42:09 +08:00
wing328
2b48ec072c Merge pull request #1153 from wing328/csharp_fix_encode
[C#] Fix UrlEncode in API client
2015-08-31 12:42:48 +08:00
wing328
8114c416b9 Merge pull request #1139 from wing328/sanitize_name
Add function to sanitize name (1)
2015-08-30 22:46:58 +08:00
wing328
adee62da7d Merge pull request #1138 from Helmsdown/cli-enhancements
Expose more configuration items in the CLI
2015-08-30 22:46:25 +08:00
cbornet
a207251b29 minor changes
removed gson version in pom and added a space between the parameters
2015-08-29 18:41:16 +02:00
cbornet
265de9654b add authorizations to retrofit client
added basic auth, api key and oauth support to the service generator using okhttp interceptors

Fix #962
2015-08-29 18:14:33 +02:00
wing328
177436e69c fix decode with encode 2015-08-29 22:43:22 +08:00
wing328
1331484a0f fix urlencode in apiclient 2015-08-29 22:39:44 +08:00
geekerzp
4477009ef8 Handle special characters in parameter names in ruby client 2015-08-29 16:19:43 +08:00
Paul Ebermann
930c5191e0 Issue #1146: trim string before escaping
This removes leading and trailing whitespace before escaping strings. This gets rid of annoying `\n` in some string literals (e.g. in annotations).
2015-08-28 19:56:37 +02:00
russellb337
5f811f3ba7 merge from upstream/master 2015-08-28 10:47:08 -07:00
Paul Ebermann
74bffbaadb Issue #1146: fix indentation in the generated API file. 2015-08-28 19:41:32 +02:00
Paul Ebermann
cdd104d3fb Issue #1146: escape the response description.
This prevents line breaks in string literals, which are not allowed in Java.
2015-08-28 19:39:01 +02:00
Paul Ebermann
be84f03d14 Issue #1146: do not escape newlines in generated javadocs.
For this, we add a property `unescapedDescription` to CodegenModel + CodegenProperty, and use them for the Javadoc generation, while the annotation uses the escaped `description`.
2015-08-28 18:40:14 +02:00
wing328
28579cee03 Merge pull request #1135 from restlet/fix/nodejs_server_swagger_invalid_json
[Node.js] fix invalid JSON being generated in swagger.json
2015-08-28 18:31:39 +08:00
Paul Ebermann
32ffab4519 fix issue #1143: add another null check.
The problem was trying to iterate over a null list.
2015-08-28 11:39:45 +02:00
wing328
e3c6cc3220 Merge pull request #1121 from Edubits/prevent-NPE
Fix possible NullPointerException
2015-08-28 16:05:20 +08:00
wing328
84346c0ba6 Merge pull request #1122 from F481/master
added some useful log/output messages and exception handling
2015-08-28 15:53:35 +08:00
russellb337
acbf3d3cc5 comment twak 2015-08-27 15:59:10 -07:00
russellb337
5c74146879 a few tweaks 2015-08-27 15:56:58 -07:00
russellb337
a59c128f90 curse you github desktop client for not refreshing when i want you to 2015-08-27 15:40:56 -07:00
russellb337
810bf58c3a first draft of CodegenConfigurator 2015-08-27 15:40:33 -07:00
russellb337
724683fab0 Merge branch 'master' into cli-enhancements 2015-08-27 10:18:55 -07:00
russellb337
074ba1ea54 undo some of the debugging changes I made 2015-08-27 09:11:49 -07:00
wing328
9e5de7da5e Merge pull request #1132 from geekerzp/python-configuration
[Python] Add option `verify_ssl` to switch SSL/TLS verification
2015-08-27 17:01:29 +08:00
wing328
50f6067831 add a case to handle space in name 2015-08-27 16:47:41 +08:00
wing328
9453967815 add function to sanitize name 2015-08-27 16:14:07 +08:00
F481
fc4fce3731 write processOperation debug output only if the debugOperations property is set 2015-08-27 08:06:24 +02:00
russellb337
d31013d977 remove reflections from parent pom 2015-08-26 18:50:29 -07:00
russellb337
ccf0cc8375 whoops, didn't mean to upgrade the minor version 2015-08-26 18:35:22 -07:00
russellb337
99ed012fc6 trying a new version of jetty 2015-08-26 18:31:29 -07:00
russellb337
8ba4a6d7ad downgrade reflections version
I’m guessing
2015-08-26 18:25:23 -07:00
russellb337
60fddcf378 adding back imports that somewhere got deleted during reformatting 2015-08-26 17:55:02 -07:00
russellb337
cf5982d2c4 remove class comment 2015-08-26 17:51:19 -07:00
russellb337
1378976d37 merging upstream changes 2015-08-26 17:40:49 -07:00
russellb337
e5811ebdc7 expose more generate options in the cli 2015-08-26 17:38:51 -07:00
Hugo Wood
d434b7c440 fix invalid JSON being generated in swagger.json of Node.js server 2015-08-26 17:34:53 +02:00
wing328
8de9e23814 Merge pull request #1131 from wing328/csharp_fix_compilebat
[C#] fix invokerPackage with packageName in compile.mustache
2015-08-26 17:30:07 +08:00
wing328
b35a7b696e Merge pull request #1127 from ivanmartinvalle/master
Add status code and response headers of the last request to java and c#
2015-08-26 17:27:34 +08:00
wing328
587028efd1 Merge pull request #1129 from geekerzp/objc-test
[Objc] Add test cases for sanitizeForSerialization method in objc client
2015-08-26 17:02:55 +08:00
wing328
af8d61cc02 Merge pull request #1130 from geekerzp/python-test
[Python] Add test cases for sanitize_for_serialization method in python client
2015-08-26 16:46:42 +08:00
wing328
1996aa9244 Merge pull request #1126 from xhh/java-enum-refactor
[Java] Support special characters in enum values
2015-08-26 16:41:56 +08:00
wing328
f79f8895c5 Merge pull request #1125 from wing328/php_param_name
[PHP] add camelCase support for variable naming
2015-08-26 09:49:08 +08:00
geekerzp
b3d28f07f1 Add option verify_ssl to switch SSL/TLS verification. 2015-08-25 17:58:14 +08:00
wing328
570a595ffb fix invokerPackage with packageName in compile.mustache 2015-08-25 15:35:22 +08:00
geekerzp
568b7a4fcd Add test cases for sanitize_for_serialization method in python client. 2015-08-25 15:04:46 +08:00
geekerzp
1b2f491b0e Add tese case for sanitizing array of models in objc client. 2015-08-25 11:16:19 +08:00
geekerzp
eb21963fa5 Update test case testSanitizeForSerialization in objc client. 2015-08-25 10:51:03 +08:00
geekerzp
ab5483cd04 Add test cases for sanitizeForSerialization method in objc client. 2015-08-25 09:54:30 +08:00
Tony Tam
392e5172b5 changed default behavior for inflector to have unimplemented handlers 2015-08-24 17:26:26 -07:00
ivanmartinvalle
52dc7e210c Add status code and response headers of the last request to java and csharp templates per #990 2015-08-24 18:35:06 -05:00
Tony Tam
15e336b90a Merge pull request #1123 from wing328/python_typo
[Python] better wording for documentation
2015-08-24 07:18:42 -07:00
Tony Tam
698ed970dc Merge pull request #1124 from boazsapir/binary
support binary input and output
2015-08-24 07:16:29 -07:00
wing328
a43d2163a0 add camelCase support for php variable naming 2015-08-24 21:53:28 +08:00
b_sapir
564dffa7e8 Merge remote-tracking branch 'origin/binary' into binary
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/Java/api.mustache
2015-08-24 16:15:18 +03:00
wing328
68f61d9a37 use snake_case instead of under_score 2015-08-24 21:11:52 +08:00
wing328
a7c08e680c update python samples 2015-08-24 21:08:21 +08:00
wing328
2251a2f892 fix typo, update documentation for python lib 2015-08-24 21:08:21 +08:00
b_sapir
b0c776bbea Support binary input and output - fix some merge problems 2015-08-24 15:59:58 +03:00
F481
3d89399b58 fixed syntax error 2015-08-24 14:28:13 +02:00
F481
0261121d78 added some useful log/output messages and exception handling 2015-08-24 14:04:50 +02:00
b_sapir
c177cf75d2 Support binary input and output (for body parameters or responses with type "string" and format "binary". Implemented for Java. 2015-08-24 15:04:10 +03:00
b_sapir
d4b4fe4b47 Support binary input and output (for body parameters or responses with type "string" and format "binary". Implemented for Java. 2015-08-24 14:33:15 +03:00
Robin Eggenkamp
e956495665 [Swift] Update to new Swift 2.0 syntax and Xcode 7
Note: configs with responseAs: “PromiseKit” won’t work yet
2015-08-24 12:27:33 +02:00
xhh
8408a97aef Java: Support special characters in enum values
and use upper case for enum names

Conflicts:
	samples/client/petstore/java/default/src/main/java/io/swagger/client/JSON.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java
2015-08-24 18:21:16 +08:00
Robin Eggenkamp
b3afbe73b9 [Swift] Add missing checks for usePromiseKit 2015-08-24 12:20:34 +02:00
Robin Eggenkamp
85aabbe810 Fix possible NullPointerException
getWrapped() returns a Boolean which can be null
2015-08-24 12:09:14 +02:00
Ron
3f8dbf416d Update README.md 2015-08-24 11:20:51 +03:00
Ron
0e0bfde3a8 Update README.md 2015-08-24 11:20:30 +03:00
Tony Tam
29a2eedc1e java8 tag fixes 2015-08-24 01:04:33 -07:00
Tony Tam
0d5c066605 fixed scalatest version 2015-08-24 01:04:28 -07:00
Tony Tam
6820179903 fixed scalatest version 2015-08-24 01:04:24 -07:00
Tony Tam
617fa43a89 updated development version 2015-08-24 00:52:35 -07:00
Tony Tam
dd67287d63 updated development version 2015-08-24 00:51:18 -07:00
Tony Tam
6aa66897aa updated readme 2015-08-24 00:44:03 -07:00
Tony Tam
9b0ddd3a7f Merge branch 'develop_2.0' 2015-08-24 00:39:03 -07:00
Tony Tam
ee05366d0b updated README for release 2015-08-24 00:37:23 -07:00
Tony Tam
d048a68438 added sample 2015-08-24 00:33:26 -07:00
Tony Tam
9cc7615b71 rebuilt, updated versions 2015-08-24 00:32:58 -07:00
Tony Tam
dfb9d26c75 Merge branch 'wing328-fix_java_serialize' into develop_2.0 2015-08-24 00:03:31 -07:00
Tony Tam
715c0af41f merged & rebuilt 2015-08-24 00:03:20 -07:00
Tony Tam
65829e5b6e merged & rebuilt 2015-08-24 00:03:08 -07:00
Tony Tam
a3c7e22d55 Merge pull request #1116 from swagger-api/issue-1115
fixes for jaxrs codegen
2015-08-23 23:56:14 -07:00
Tony Tam
d8ceb8c648 enabled samples 2015-08-23 23:47:01 -07:00
Tony Tam
87f1ef4dc2 re-ordered 2015-08-23 23:46:54 -07:00
Tony Tam
7c2310a13f updated to jersey 1.18.1, fixes for #1115 2015-08-23 23:34:35 -07:00
Tony Tam
6dcb8da2d8 altered to return inner type only 2015-08-23 23:33:55 -07:00
Tony Tam
a83f01ad60 made string safe 2015-08-23 23:33:27 -07:00
Tony Tam
6c1f7243bf rebuilt 2015-08-23 23:29:53 -07:00
wing328
164ed99812 fix serializableModel (boolean) 2015-08-24 11:50:21 +08:00
Tony Tam
355cc88e0d Merge pull request #1113 from swagger-api/issue-1112
moved file
2015-08-23 19:04:14 -07:00
Tony Tam
35ed412d1e moved file 2015-08-23 18:58:46 -07:00
Tony Tam
a5190266b6 Merge pull request #1111 from swagger-api/revert-1029-jaxrs-server-codegen-improvements
Revert "fixed generated code to go to target/generated-sources, added…
2015-08-23 18:53:05 -07:00
Tony Tam
d51fe80138 Revert "fixed generated code to go to target/generated-sources, added maven-c…" 2015-08-23 18:28:42 -07:00
Tony Tam
ec9cdca7cb Merge pull request #1109 from swagger-api/rebase-issue-838
update files as rebase from #838
2015-08-23 17:38:34 -07:00
Tony Tam
8a9f43b142 Merge pull request #910 from swagger-api/maven-plugin-configuration-improvements
Maven plugin configuration improvements
2015-08-23 17:33:55 -07:00
Tony Tam
0fc5702e4d Merge pull request #1029 from swagger-api/jaxrs-server-codegen-improvements
fixed generated code to go to target/generated-sources, added maven-c…
2015-08-23 17:32:29 -07:00
Tony Tam
3390fae15b Merge branch 'tiffanyperumpail-develop_2.0' into develop_2.0 2015-08-23 17:25:24 -07:00
Tony Tam
e19b883c89 Merge branch 'develop_2.0' of ssh://github.com/tiffanyperumpail/swagger-codegen into tiffanyperumpail-develop_2.0 2015-08-23 17:24:27 -07:00
Tony Tam
9531e1ae59 Merge branch 'Rogercf-support-to-array-of-enums' into develop_2.0 2015-08-23 17:22:44 -07:00
Tony Tam
3d38c41b0e resolved merge issue 2015-08-23 17:22:34 -07:00
Tony Tam
718e1ff68a Merge branch 'TobiasPfeifer-develop_2.0' into develop_2.0 2015-08-23 14:23:33 -07:00
Tony Tam
a6a9d743be added template 2015-08-23 14:23:20 -07:00
Tony Tam
414de00894 fixed return type, rebuilt 2015-08-23 14:23:00 -07:00
Tony Tam
cc7366787f Merge branch 'develop_2.0' of ssh://github.com/TobiasPfeifer/swagger-codegen into TobiasPfeifer-develop_2.0 2015-08-23 11:20:02 -07:00
Tony Tam
3486eecdfc Merge branch 'xhh-library-template-jersey2' into develop_2.0 2015-08-23 11:10:12 -07:00
Tony Tam
66e6d4fb8a rebuilt client 2015-08-23 11:10:04 -07:00
Tony Tam
f7dc066dec merged 2015-08-23 11:09:47 -07:00
Tony Tam
3160913433 update files as rebase from #838 2015-08-23 11:05:19 -07:00
Ole Lensmar
e253fdea33 Merge branches 'develop_2.0' and 'jaxrs-server-codegen-improvements' of https://github.com/swagger-api/swagger-codegen into jaxrs-server-codegen-improvements
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java
2015-08-23 10:26:07 -04:00
Ole Lensmar
ac49d0dcdc post-merge fixes 2015-08-23 09:37:28 -04:00
Ole Lensmar
b956d47a9d Merge branches 'develop_2.0' and 'maven-plugin-configuration-improvements' of https://github.com/swagger-api/swagger-codegen into maven-plugin-configuration-improvements
Conflicts:
	modules/swagger-codegen-maven-plugin/src/main/java/io/swagger/codegen/plugin/CodeGenMojo.java
2015-08-23 09:37:08 -04:00
wing328
f662699fd0 Merge pull request #1107 from wing328/php_fix_datetime
[PHP] Fixed deserialization for datetime object
2015-08-23 17:11:55 +08:00
wing328
1c1571cc3a Merge pull request #1106 from geekerzp/python-query
[Python] Fix issue that missing query parameters in python client.
2015-08-23 17:11:19 +08:00
wing328
e13374e1df Merge pull request #1105 from who/serializable_java_models
[Java] Adding an option so java models can implement Serializable
2015-08-23 17:10:57 +08:00
wing328
f2df26f6e6 fix deserializing datetime, add test case 2015-08-22 23:09:12 +08:00
xhh
569082743f Remove the unused LibraryHelp command 2015-08-22 22:05:43 +08:00
xhh
595c01c537 Merge branch 'develop_2.0' into library-template-jersey2
Conflicts:
	modules/swagger-codegen/src/main/resources/Java/JsonUtil.mustache
2015-08-22 21:53:04 +08:00
geekerzp
dc423cc11d Fix issue that Mssing query parameters in python client. 2015-08-22 17:46:13 +08:00
Andrew B
4f25a0e6c5 adding an option so java models can implement Serializable 2015-08-21 18:36:03 -07:00
Tony Tam
0af29cc5cf Merge pull request #1104 from swagger-api/issue-1103
added check, fix for #1103
2015-08-21 15:22:22 -07:00
Tony Tam
44b4af0374 added check, fix for #1103 2015-08-21 15:02:56 -07:00
Tony Tam
b68beefa69 Merge pull request #1101 from swagger-api/issue-1099
optional files are never written
2015-08-21 09:35:11 -07:00
Tony Tam
07162811a7 fix for #1099, added file check 2015-08-21 08:56:22 -07:00
wing328
4023460f2e Merge pull request #1096 from geekerzp/objc-param-to-str
[Objc] Sanitize request parameters in objc client
2015-08-21 22:22:17 +08:00
wing328
83bea6a0c5 Merge pull request #1095 from who/fix_issue_1089
[Java] Sanitize configurable package names (fixes #1089)
2015-08-21 22:15:53 +08:00
wing328
d03f680c64 Merge pull request #1090 from geekerzp/python-keyword
[Python] Change reserved word handling in python client.
2015-08-21 21:51:32 +08:00
geekerzp
4189d0765b Update api body template of objc client 2015-08-21 11:40:59 +08:00
geekerzp
6218ad139f Fix issue that it will throw error if not pass optional form param in objc client. 2015-08-21 11:20:29 +08:00
geekerzp
b7cd38d38b Update objc client.
Sanitize request parameters (path, query, header, form, body).
2015-08-21 09:42:31 +08:00
Andrew B
2b61305582 Fixing issue #1089 2015-08-20 14:16:10 -07:00
wing328
2057d0e144 Merge pull request #1068 from Helmsdown/add-generated-annotation
Add @Generated annotation to all generated Java templates
2015-08-20 17:45:17 +08:00
xhh
af2ec4cf85 Merge branch 'develop_2.0' into library-template-jersey2
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/api.mustache
2015-08-20 17:36:42 +08:00
wing328
9a239ad2a4 Merge pull request #1076 from DavidBiesack/static-html
improve static html; add template guards for collections.
2015-08-20 17:31:03 +08:00
wing328
a610fb5ac3 Merge pull request #1051 from who/develop_2.0
[Java] Fixing subClassed types so that they can use enums
2015-08-20 17:14:17 +08:00
Andrew B
fb4c62cc28 Fixing merge conflict in pom.xml 2015-08-19 23:08:49 -07:00
geekerzp
6d58d44542 Merge branch 'ruby-api-client' into ruby-apiclient 2015-08-20 11:34:07 +08:00
xhh
0e2e7838ae Merge branch 'bug-fix-ruby-file-upload' into ruby-api-client
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
	samples/client/petstore/ruby/lib/petstore/swagger/request.rb
2015-08-20 11:24:33 +08:00
xhh
2e3f94c2a5 Add file used in test: hello.txt 2015-08-20 11:18:05 +08:00
xhh
e02a9f1797 Merge branch 'develop_2.0' into ruby-api-client 2015-08-20 11:10:25 +08:00
xhh
0d399d3f6a Add spec for file uploading 2015-08-20 11:07:20 +08:00
xhh
030e45982c Add back support of file uploading to Ruby client 2015-08-20 10:45:40 +08:00
geekerzp
894d571ea5 Change reserved word handling in python client.
* First, remove the beginning underscores.
* Then, append underscore if the var is reserved word or number.
2015-08-19 18:05:47 +08:00
wing328
dc1992ad45 Merge pull request #1081 from wing328/php_var_name_number
[PHP, Perl, Silex] fixed variable names starting with number, made LOGGER protected
2015-08-19 14:56:13 +08:00
geekerzp
7be6e971fa Update api client of ruby client.
Update ApiClient#build_request, change `@verify_ssl`, `@ssl_ca_cert`, `@debugging`
to `Configuration.verify_ssl`, `Configuration.ssl_ca_cert`, `Configuration.debugging`.
2015-08-18 20:21:56 +08:00
wing328
c62fca8c54 Merge pull request #1079 from wing328/add_flash_generator
[Flash] Add back Flash generator
2015-08-18 20:04:53 +08:00
geekerzp
828f8694c8 Fix typo in ruby client 2015-08-18 16:13:32 +08:00
geekerzp
31d948fc16 Update readme of ruby client 2015-08-18 14:35:54 +08:00
geekerzp
a481db7486 Add configuration object in ruby client 2015-08-18 14:27:09 +08:00
wing328
5d52952ebd Merge pull request #1077 from geekerzp/objc-apiclient
[Objc] Change the ApiClient  initialization of objc client
2015-08-18 09:39:48 +08:00
wing328
c1fbf6bb1c Merge branch 'php_var_name_number' of https://github.com/wing328/swagger-codegen into php_var_name_number 2015-08-17 14:40:12 +08:00
wing328
10cd672529 fix variable name starting with number, make LOGGER protected 2015-08-17 14:39:29 +08:00
wing328
52918d325e Merge pull request #1082 from wing328/fix_pom_swagger_parser
update swagger-parser-version to 1.0.10 (removed snapshot)
2015-08-17 14:38:11 +08:00
wing328
8cff8fc55a update swagger-parser-version to 1.0.10 (removed snapshot) 2015-08-17 14:27:33 +08:00
wing328
90d5ce228a Merge pull request #1067 from Helmsdown/path-level-params
Codegen should honor path level parameters
2015-08-17 14:13:22 +08:00
wing328
d4ff25f0b3 fix variable name starting with number, make LOGGER protected 2015-08-17 10:43:03 +08:00
wing328
4163f07911 Merge pull request #1069 from geekerzp/python-httplib
[Python] Fix issues in python client
2015-08-16 15:03:16 +08:00
wing328
560fd5718d Merge pull request #1074 from wing328/php_improve1
[PHP] minor improvements
2015-08-16 14:59:43 +08:00
wing328
97580a8c45 Merge pull request #1070 from wing328/objc_readme_update
[Objc] minor wording change for readme based on feedback from developers
2015-08-16 14:59:27 +08:00
wing328
aee72d97c3 Merge pull request #1080 from wing328/update_pomxml
Update swagger-core-version to 1.5.4-SNAPSHOT
2015-08-16 00:22:54 +08:00
wing328
49ad008d7c update pom.xml 2015-08-16 00:14:24 +08:00
wing328
7a2c0a076a update readme, change default value, update pom 2015-08-16 00:03:19 +08:00
wing328
365f4bc0c0 beta release of flash generator 2015-08-15 23:56:01 +08:00
wing328
3478e053e1 add back flash generator 2015-08-15 18:12:14 +08:00
geekerzp
75536868f2 Add default api client in configuration class in objc client 2015-08-14 17:54:41 +08:00
geekerzp
84e8ef489c Update pom.xml 2015-08-14 11:55:22 +08:00
wing328
cffba0299a update core to 1.5.4 2015-08-14 11:19:04 +08:00
geekerzp
a6c07a8364 Change api client pool pattern to singleton pattern in objc client 2015-08-14 09:47:02 +08:00
David Biesack
b14edffc79 improve static html; add template guards for collections. Update -core dependency 2015-08-13 13:46:32 -04:00
wing328
b971aa7433 add example to config option, replace localhost with basePath 2015-08-13 23:27:59 +08:00
wing328
bb4311b7a2 minor wording change for objc readme based on feedback from developers 2015-08-12 20:53:15 +08:00
geekerzp
1c0eb60c71 Fix issues in python client 2015-08-12 11:19:29 +08:00
russellb337
a0eeb90a97 fixing bug 2015-08-11 12:50:19 -07:00
russellb337
38fccbd73d add @Generated to all Java class templates 2015-08-11 12:42:18 -07:00
russellb337
6fbb8ab1e0 add @Generated annotation to all Java class templates 2015-08-11 12:42:06 -07:00
russellb337
6044f0586e removing unnecessary getTypeDeclaration implementation in JaxRSServerCodegen 2015-08-11 09:19:22 -07:00
wing328
84ff5cfc87 Merge pull request #1064 from RMarinaro/develop_2.0
fix for #1061 java
2015-08-11 21:33:08 +08:00
wing328
96be2b196b Merge pull request #1037 from restlet/fix/nodejs_server_swagger
Fix swagger.json supporting file for the node.js server (fixes #652)
2015-08-11 21:28:06 +08:00
Hugo Wood
d93b404b23 Fix swagger.json supporting file for the node.js server (fixes #652) 2015-08-11 14:37:00 +02:00
wing328
be63776162 Merge pull request #1063 from geekerzp/objc-deserialize-bool
[Objc] Fix deserialize bool value issue
2015-08-11 10:18:52 +08:00
russellb337
ae4b4979a7 add defensive null check 2015-08-10 13:58:02 -07:00
russellb337
0a8fb1e532 codegen should honor path level parameters 2015-08-10 13:50:52 -07:00
wing328
e78844cb54 Merge pull request #1043 from marcospri/develop_2.0
Support for nested lists/maps for the python client
2015-08-10 18:30:02 +08:00
Ryan Marinaro
2eb0c8cea6 added a fix for #1061. The only problematic spot was the api.mustache file, although if more parameterized templates were to evolve in the other mustache files we could definitely add {{localVariablePrefix}} to those. For now I didn't want to add any extra noise to the template files which didn't need the prefixes. 2015-08-08 10:19:31 -04:00
geekerzp
2aaad03ab6 Fix the issue of bool deserialization in objc client 2015-08-08 15:13:13 +08:00
xhh
cb181e3480 Merge branch 'develop_2.0' into library-template-jersey2 2015-08-08 11:18:17 +08:00
xhh
b686b53259 Support overriding API/model templates with library template 2015-08-08 11:14:06 +08:00
wing328
f27eb7e0de Merge pull request #1058 from xhh/str-response-offset
Fix bug with truncated lone string responses for Android/Scala clients
2015-08-08 11:10:02 +08:00
wing328
36b7fb20b2 Merge pull request #1059 from geekerzp/objc-auth
[Objc] Fix issue about authentication
2015-08-08 09:37:47 +08:00
Ron
f2ef21e756 Merge pull request #1062 from swagger-api/dependencies-version-update
Update pom.xml
2015-08-07 17:32:28 -04:00
Ron
e57f1de21f Update pom.xml 2015-08-07 17:10:35 -04:00
xhh
a41361c959 Change the "--library" option into a config option 2015-08-07 22:16:32 +08:00
xhh
167e95bb3a Merge branch 'develop_2.0' into library-template-jersey2
Conflicts:
	modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
2015-08-07 21:18:27 +08:00
geekerzp
732a9eb64d Fix issue in Configuration-body.mustache in objc client 2015-08-07 18:31:07 +08:00
xhh
c7f595fc91 Fix bug with truncated lone string responses for Android/Scala clients 2015-08-07 10:40:42 +08:00
Tony Tam
29e8a8f573 Merge pull request #1057 from who/fix_1056
Fixing a bug with truncated lone string responses
2015-08-06 17:38:54 -07:00
Andrew B
d5b959d8cd Fixing a bug with truncated lone string responses 2015-08-06 16:54:24 -07:00
Andrew B
7a92f53b55 Adding some tests for PR 1051 2015-08-06 15:22:18 -07:00
tiffanyperumpail
4ac8a93022 Change swagger-parser-version to 1.0.9-SNAPSHOT 2015-08-06 11:29:59 -07:00
Marcos Prieto
cad2f961bd Undo unicode on sanitize method. Keep the PR on point 2015-08-06 10:21:56 +02:00
tiffanyperumpail
5328c00e8f Simplified enum by changing CodeGenStatus to an enum instead of a wrapper. Updated version of swagger-parser to 1.0.9. 2015-08-05 16:53:39 -07:00
tiffanyperumpail
1b31a01b76 Added CodeGenStatus class with Status enum 2015-08-05 16:18:24 -07:00
Andrew B
c67a6582fc Bumping the version of swagger-parser to 1.0.9 2015-08-05 15:58:54 -07:00
Andrew B
dc76887820 Fixing subClassed types so that they can use enums 2015-08-05 15:50:34 -07:00
xhh
4321339d4f Java petstore sample: move to "default" sub-folder, add jersey2 2015-08-05 17:28:45 +08:00
xhh
07f10a8abc Add command to display all library templates supported
for a specific language
2015-08-05 16:37:08 +08:00
xhh
4ba521a5c0 Add jersey2 library template for Java client 2015-08-05 15:37:26 +08:00
xhh
d88ec847ae Remave unused imports 2015-08-05 09:43:15 +08:00
xhh
7c16dfcf13 Rebuild Java petstore sample 2015-08-04 18:36:03 +08:00
xhh
aff21e5e6b Add a "library" option to generate with sub-template 2015-08-04 18:32:54 +08:00
Marcos Prieto
befacc41bd Support for nested dict/list
Checking for `startwith` instead of just `in` to correctly categorize
nested structures.
2015-08-04 11:51:38 +02:00
Marcos Prieto
edebbcb802 Support for unicode headers, ie support for urlib3.util.make_headers 2015-08-04 11:51:25 +02:00
xhh
bfb4629ab7 Java client: decouple JSON handling 2015-08-04 15:47:55 +08:00
Tony Tam
1007534575 fix for #1042, removed empty / when basePath is null 2015-08-03 16:47:51 -07:00
Rogercf
97d24a7119 Update DefaultCodegen.java
Fixed indentation
2015-08-03 19:50:29 -03:00
Rogercf
13038d2a12 Update DefaultCodegen.java
Replaced hardcoded "String" with property.items.baseType
2015-08-03 19:46:10 -03:00
Rogercf
c5dc070685 Update model.mustache
Fixed generating array of enums properties in the java template
2015-08-03 19:21:54 -03:00
Rogercf
a30b66beb1 Update DefaultCodegen.java
Setting the "items" field when the type is array and updating some values if the array is an array of enums
2015-08-03 19:20:51 -03:00
Rogercf
aff766b785 Update CodegenProperty.java
Added a "items" field to keep track of the inner type to be accessed in the mustache templates
2015-08-03 19:19:10 -03:00
xhh
112a7ec8c1 Java client: move form params handling to ApiClient 2015-08-03 18:33:42 +08:00
wing328
55be0330e3 Merge pull request #1039 from geekerzp/python-desciption
[Python] Fix issue in python client
2015-08-03 10:48:56 +08:00
wing328
fe83d18a09 Merge pull request #1026 from geekerzp/objc-deserializtion
[Objc] Fix deserialize nested map error
2015-07-31 16:17:11 +08:00
wing328
a6f8f9e4ff Merge pull request #1017 from herveDarritchon/develop_2.0
Defect (Issue #905) : Add code to be able to override the configPackage …
2015-07-31 16:05:17 +08:00
geekerzp
79c988616c Fix issue #1038 2015-07-31 16:01:45 +08:00
wing328
dc62f688d9 Merge pull request #1015 from tandrup/conditional-copy-from-parent
Conditional copy properties from parent
2015-07-31 15:56:48 +08:00
wing328
db10bd764b Merge pull request #1036 from wing328/csharp_add_back_dll
[C#] add back RestSharp and Newtonsoft.Json DLL
2015-07-31 15:56:21 +08:00
wing328
92208b4ec2 Merge pull request #987 from xhh/retrofit-form-field-naming
Retrofit: fix form field naming by using baseName
2015-07-31 09:09:09 +08:00
xhh
0ef4702aa8 Merge branch 'develop_2.0' into retrofit-form-field-naming
Conflicts:
	samples/client/petstore/retrofit/src/main/java/io/swagger/client/api/PetApi.java
2015-07-30 16:40:43 +08:00
wing328
cc358cf9ce Merge pull request #1032 from xhh/retrofit-string-resp
Retrofit template: return body string directly when failed to parse response body as JSON
2015-07-30 15:58:05 +08:00
xhh
a1e6908b65 Merge branch 'develop_2.0' into retrofit-string-resp 2015-07-30 15:02:02 +08:00
xhh
2d4c07a474 Fix typo 2015-07-30 15:01:51 +08:00
wing328
05f00013f1 add back csharp dll, update sample 2015-07-30 10:19:46 +08:00
wing328
bc528ef928 Merge pull request #1027 from adamholdenyall/patch-3
Catch all exceptions on Deserialize
2015-07-30 10:06:32 +08:00
Tony Tam
318a239976 Merge pull request #1031 from Toilal/pom-issues
Fix issues in POM configuration
2015-07-29 07:35:05 -07:00
Toilal
189962208e Update scala maven plugin and fix issues in POM configuration 2015-07-29 15:15:12 +02:00
wing328
bd28271b0b Merge pull request #1019 from geekerzp/python-refactor
[Python] Enhancements of python client
2015-07-29 17:39:58 +08:00
xhh
14b808a910 Retrofit template: return body string directly
when failed to parse response body as JSON, fixing unit test for
UserApi#loginUser
2015-07-29 17:10:49 +08:00
wing328
d345f8fae3 Merge pull request #967 from moander/feature/docker
Docker build script and Dockerfile
2015-07-29 15:36:08 +08:00
Ole Lensmar
26336356cf added generated samples for jaxrs and inflector 2015-07-28 14:56:23 -07:00
Ole Lensmar
9c3fad3040 fixed generated code to go to target/generated-sources, added maven-codegen-plugin to generated jaxrs project together with initial swagger definition, fixed overwrite flag to kick in only if file exists, fixed initial readme 2015-07-28 14:40:43 -07:00
moander
d396a0a0e4 Friendly error message when project is not built 2015-07-28 22:48:18 +02:00
Tony Tam
dc7c2a4bab updated name 2015-07-28 13:35:33 -07:00
Tony Tam
0b85ad464a Merge pull request #1028 from swagger-api/inflector-template
added template for the inflector
2015-07-28 10:31:40 -07:00
Ole Lensmar
c5d02fe98e added template for the inflector 2015-07-28 10:19:36 -07:00
adamholdenyall
a81e5096f5 Catch all exceptions on Deserialize
If you look at the source of NewtonSoft.Json, you'll see that DeserializeObject never throws an IOException. All exceptions should be caught in this method, just like Serialize.
2015-07-28 09:53:10 -05:00
wing328
52971e6aa9 Merge pull request #1018 from wing328/fix_empty_operationid
[All] Better exception handling for empty operationId (method name)
2015-07-28 17:39:19 +08:00
geekerzp
b2e0d83f2e Update objc client.
* Fix issue that list of primitive types deserialization.
* Add test cases for list of primitive types deserialization and nested list deserialization.
2015-07-28 17:21:10 +08:00
geekerzp
2be3414357 Update python client.
Add test case for nested list deserialization.
2015-07-28 15:23:44 +08:00
geekerzp
ea901bf1ce Update python client.
Add test case for nested dict deserialization.
2015-07-28 14:34:50 +08:00
geekerzp
8bd282acd6 Change parameter name key to identifier of
Configuration#get_api_key_with_prefix in python client.
2015-07-28 11:25:19 +08:00
geekerzp
b51ef77401 Remove #!/usr/bin/env python from python client 2015-07-28 11:25:19 +08:00
geekerzp
3265ec0f72 Refactor python client. 2015-07-28 11:25:19 +08:00
wing328
732e645042 Merge pull request #1022 from SparrowJang/develop_2.0
fixed a error rule for parsing `)`
2015-07-28 11:15:28 +08:00
geekerzp
cc45ff17cb Fix deserialize nested map error in objc client 2015-07-28 10:51:20 +08:00
wing328
b843b55339 Merge pull request #1001 from who/csharp_dotnet2_template
C# .Net 2.0 generator and template
2015-07-28 09:32:03 +08:00
Sparrow.jang
75711f954b fixed a bug for parsing ) error 2015-07-27 18:50:32 +08:00
SparrowJang
d0b5af31a5 Merge pull request #1 from swagger-api/develop_2.0
Develop 2.0
2015-07-27 18:47:40 +08:00
wing328
c01c06b198 Merge pull request #1004 from mhardorf/conf-file-maven-plugin
Add support for specifying configuration file in maven plugin
2015-07-27 18:30:09 +08:00
Mads Mætzke Tandrup
586f4c14e1 Merge remote-tracking branch 'upstream/develop_2.0' into conditional-copy-from-parent
# Conflicts:
#	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptNodeClientCodegen.java
2015-07-27 11:30:47 +02:00
wing328
fe0e43f963 Merge pull request #1012 from tandrup/combine-ts-node
Combine TypeScript Node output and beautify Angular output
2015-07-27 17:24:34 +08:00
wing328
47abfe7079 Merge pull request #1014 from 2rs2ts/module-generation-readme-path-fix
Fix path in instructions for making your own codegen modules
2015-07-27 17:12:13 +08:00
Mads Mætzke Tandrup
d0a3def441 Adding npm run clean command to clean the sample dir 2015-07-27 11:02:38 +02:00
xhh
7af5db3565 Rebuild Ruby petstore sample 2015-07-27 16:37:26 +08:00
xhh
47c8597d36 Ruby: move request/response logic to api_client 2015-07-27 16:34:51 +08:00
Mads Mætzke Tandrup
64f2e85608 Update TypeScript angular sample 2015-07-27 10:20:55 +02:00
Mads Mætzke Tandrup
09ccf12a3b Update Typescript node samples 2015-07-27 10:19:12 +02:00
Mads Mætzke Tandrup
fde5c60cb0 Support authentication from swagger in TypeScript Node 2015-07-27 10:18:38 +02:00
Mads Mætzke Tandrup
b18cc5e0de Include header parameters 2015-07-27 10:13:36 +02:00
wing328
6d8dea5dfc better exception handling for empty method name 2015-07-27 12:07:35 +08:00
wing328
a8f580032f fix empty operationId in java codegen 2015-07-27 11:39:37 +08:00
wing328
d0baa48fcd fix empty operationId 2015-07-27 11:21:51 +08:00
wing328
31200acc1a Merge pull request #998 from geekerzp/objc-date
[Objc] Enhancements of objective-c client
2015-07-27 10:41:42 +08:00
xhh
5bfae7b78c Ruby: use a default ApiClient when not provided 2015-07-27 10:32:51 +08:00
geekerzp
3b9b3e82f9 Update comments in objc client 2015-07-27 10:29:27 +08:00
wing328
783a4c0572 Merge pull request #1016 from ngs/swift-podspec-version
[Swift] Add version to Podspec template
2015-07-27 08:33:44 +08:00
wing328
9ce824d720 Merge pull request #1007 from ngs/swift-alamofire-1.3.0
[Swift] Support file upload with Alamofire 1.3.0
2015-07-27 08:29:34 +08:00
Mads Mætzke Tandrup
dee828622a Test file upload in sample client 2015-07-26 14:26:01 +02:00
Hervé Darritchon
5c0ae7babe Defect (PR #905) : Add code to be able to override the configPackage in the spring mvc template. 2015-07-26 12:11:29 +02:00
Mads Mætzke Tandrup
02da80e837 Update sample with small test script 2015-07-26 08:22:32 +02:00
Mads Mætzke Tandrup
e41a475335 Update typescript node sample 2015-07-25 22:05:43 +02:00
Mads Mætzke Tandrup
fea8e680df Fix TypeScript node file upload 2015-07-25 22:05:29 +02:00
Mads Mætzke Tandrup
b0f6b49595 Fix TypeScript Map type 2015-07-25 22:02:06 +02:00
Atsushi Nagase
b56da43953 [Swift] Add version to Podspec template 2015-07-26 03:19:33 +09:00
Atsushi Nagase
979a704310 [Swift] Update Alamofire to 1.3 in Podspec 2015-07-26 03:01:11 +09:00
Atsushi Nagase
5dcdadb751 [Swift] tweak conditions
336bb87b53 (commitcomment-12318006)
2015-07-26 02:59:43 +09:00
Atsushi Nagase
f98974190e [Swift] Support file upload with Alamofire 1.3.0
refs:

- https://github.com/Alamofire/Alamofire/milestones/1.3.0
- https://github.com/Alamofire/Alamofire/pull/539
2015-07-26 02:59:43 +09:00
wing328
6719a6cc74 Merge pull request #1013 from SparrowJang/develop_2.0
added a utf8 declaration to fix #1011 issue
2015-07-25 23:15:04 +08:00
Mads Mætzke Tandrup
3f9b2a9678 Adding build system for typescript AngularJS sample 2015-07-25 14:11:10 +02:00
Mads Mætzke Tandrup
bbf0ce8c80 Adding README for sample 2015-07-25 13:57:45 +02:00
Mads Mætzke Tandrup
9fc8c770d3 Adding build system for poetaster typescript node sample 2015-07-25 13:55:30 +02:00
wing328
8f2c99f0af Merge pull request #1005 from mhardorf/sort-by-inheritance
Sort model objects by inheritance
2015-07-25 18:18:29 +08:00
Mads Mætzke Tandrup
81f5cc47e7 Rename property to be more language specific 2015-07-25 12:03:17 +02:00
wing328
db37c02ebd Merge pull request #1010 from onovy/develop_2.0
[Python] Allow to set cookie in python(3) API constructor.
2015-07-25 17:03:11 +08:00
wing328
fc71b23464 Merge pull request #1006 from ngs/podspec
[Swift] Add podspec template
2015-07-25 16:46:13 +08:00
Mads Mætzke Tandrup
e924cec595 Conditional copy properties from parent.
Pull request #946 broke the TypeScript generation with inheritance where a superclass defined an enum. This makes it up to each language to decide the behavior appropriate for the language.
2015-07-25 07:45:08 +02:00
Andrew Garrett
90f152da75 Fix path in instructions for making your own codegen modules 2015-07-24 11:44:30 -07:00
Sparrow.jang
713ae4a957 added a utf8 declaration to fix #1011 issue 2015-07-24 22:40:24 +08:00
Ondrej Novy
50736458d0 Allow to set cookie in python(3) API constructor. 2015-07-24 11:48:43 +02:00
Mads Mætzke Tandrup
34b341874c Include api and model package in angular 2015-07-24 11:05:36 +02:00
Mads Mætzke Tandrup
7a1f3dbf9e Fix angular output to go to one dir to make it build 2015-07-24 10:23:07 +02:00
Mads Mætzke Tandrup
3723a9ba2d Updating typescript samples 2015-07-24 10:22:41 +02:00
Mads Mætzke Tandrup
bc8eae838c Beautify typescript angular output 2015-07-24 10:14:42 +02:00
Mads Mætzke Tandrup
88ed496b44 Extract abstract class for TypeScript generators 2015-07-24 10:03:02 +02:00
Mads Mætzke Tandrup
646da19c7d Combine TypeScript node output in one file and add missing require statements 2015-07-24 09:48:49 +02:00
Atsushi Nagase
80b5363202 [Swift] add cliOptions for podspec
```
podSource
    Source information used for Podspec

podVersion
    Version used for Podspec

podAuthors
    Authors used for Podspec

podSocialMediaURL
    Social Media URL used for Podspec

podDocsetURL
    Docset URL used for Podspec

podLicense
    License used for Podspec

podHomepage
    Homepage used for Podspec

podSummary
    Summary used for Podspec

podDescription
    Description used for Podspec

podScreenshots
    Screenshots used for Podspec

podDocumentationURL
    Documentation URL used for Podspec
```
2015-07-24 16:27:28 +09:00
Atsushi Nagase
071fc2ded6 [Swift] Add podspec template 2015-07-23 22:22:45 +09:00
Martin Hardorf
992b0c7e5e Sort model objects by inheritance 2015-07-23 13:11:53 +02:00
Martin Hardorf
037f59d0df Add support for specifying configuration file in maven plugin 2015-07-23 13:10:59 +02:00
geekerzp
5a235c642a Update comments of objc client 2015-07-23 18:03:19 +08:00
geekerzp
08ea05f7a1 Update objc client.
* Add comments in SWGConfiguration.h
* Change `Date` to `date` in ObjcClientCodegen.java
* Update comments in model body template
2015-07-23 16:03:38 +08:00
Andrew B
e301d9d00e Adding sample generator and output 2015-07-22 11:31:29 -07:00
Andrew B
8a399ee1cb Renaming the C# .net 2.0 to be more generic 2015-07-22 11:13:13 -07:00
Andrew B
4e5b9e4af3 Renaming the C# .net 2.0 to be more generic 2015-07-22 11:13:08 -07:00
geekerzp
37c79525f7 Update model body template in objc client.
* Add some comments.
2015-07-22 18:31:50 +08:00
geekerzp
f9ad16e7aa Update objc client.
* Add test cases for deserialization.
* Pretty print model infomation.
2015-07-22 17:45:31 +08:00
wing328
cde8d7ba4c Merge pull request #984 from geekerzp/python-enum
[Python] Support enum for model property
2015-07-22 16:48:34 +08:00
xhh
a75b05b952 Update tests with latest code 2015-07-22 16:02:18 +08:00
geekerzp
bd6fa6a2e4 Update PetApiTests#test_find_pet_by_tags test case of python client 2015-07-22 15:50:40 +08:00
xhh
609d915541 Rebuild Ruby petstore sample 2015-07-22 15:39:48 +08:00
xhh
948cdb3a75 Done with API client structure for Ruby client 2015-07-22 15:37:29 +08:00
geekerzp
b9287cf417 Add to_str method in python client and add test cases. 2015-07-22 11:00:51 +08:00
Andrew B
df93ca80f7 Fixing an issue that was causing incorrect JSON key names 2015-07-21 15:49:37 -07:00
Andrew B
0247f0774d Updating the mono compile script to target .net 2 2015-07-21 11:12:17 -07:00
wing328
37dbd6e4cd Merge pull request #992 from who/develop_2.0
[C#] Fixing a mono compilation error
2015-07-21 21:43:06 +08:00
wing328
34db9814d8 Merge pull request #994 from wing328/fix_swagger_parser_version
Fix compilation error with a newer swagger parser
2015-07-21 17:39:24 +08:00
xhh
4ecc757bea More on API client structure for Ruby client 2015-07-21 17:07:41 +08:00
wing328
cf7082c2e6 fix swagger parser version to use 1.0.9-SNAPSHOT 2015-07-21 16:54:14 +08:00
wing328
6b4f810fec Merge pull request #981 from Edubits/develop_2.0
[Swift] Support use in Framework
2015-07-21 16:35:36 +08:00
Tony Tam
f7a07f72b8 added resolve option for #903 2015-07-20 23:31:49 -07:00
Andrew B
a6012ecf41 Initial commit of the Unity3D C# .net 2.0 generator 2015-07-20 23:26:59 -07:00
Andrew B
0b7b57bf4d [C#] Fixing a mono compilation error 2015-07-20 21:22:49 -07:00
wing328
498a400d4e Merge pull request #988 from wing328/csharp_update_unit_test
[C#] Updated unit test and minor change to conform style guide
2015-07-21 12:08:15 +08:00
wing328
405e5a7a35 Merge pull request #946 from xhh/model-all-of
Copy properties from parent models defined with allOf
2015-07-21 11:41:24 +08:00
xhh
3de42afed3 Implement API client structure for Ruby client 2015-07-21 11:37:46 +08:00
wing328
f1304022b0 Merge pull request #852 from tomtit/issue837
Fixed #837: Generation of default values for complex arrays and maps has been improved.
2015-07-21 11:28:43 +08:00
wing328
fc7f2a92d0 Merge pull request #878 from lugaru1234/issue798
Fixed #798: original jar generation has been fixed.
2015-07-20 21:50:51 +08:00
wing328
27113cf326 Merge pull request #859 from lugaru1234/issue831
Fixed #831: skipOverwrite flag has been added
2015-07-20 21:14:33 +08:00
wing328
7179c15158 Merge pull request #966 from wing328/nodejs_fix_summary
[NodeJS] Add back summary and description to the endpoint definition
2015-07-20 11:12:15 +08:00
wing328
ba72e7344a remove nuget pacakges 2015-07-20 10:48:20 +08:00
wing328
596bde2ef6 remove leading space for path variable, update unit test 2015-07-20 10:43:08 +08:00
wing328
a863e538a8 Merge pull request #943 from psmay/develop_2.0-RestSharp-path-params
[C#] Use RestSharp's mechanism for path parameters in URL templates
2015-07-20 10:16:01 +08:00
xhh
a134b5ca76 Retrofit: fix form field naming by using baseName 2015-07-20 10:12:36 +08:00
Peter S. May
1f7664f81e Fixed case typo in previous edit. 2015-07-18 19:38:20 -04:00
geekerzp
68820e5a80 Update comments of api template of python client 2015-07-18 15:54:00 +08:00
geekerzp
195c71da37 Update comments of python client 2015-07-18 15:35:12 +08:00
geekerzp
ddfa713f55 Update wording of comment in api template of python client 2015-07-18 15:22:39 +08:00
geekerzp
c9889c5baf Update api template of python client 2015-07-18 15:03:55 +08:00
geekerzp
60d6cd744a Format python client using pep8 2015-07-18 14:30:19 +08:00
Peter S. May
1072c9d017 Merge remote-tracking branch 'upstream/develop_2.0' into develop_2.0-RestSharp-path-params
Conflicts:
	modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/csharp/api.mustache
2015-07-17 21:45:54 -04:00
Peter S. May
4bc4a8aed1 WIP pre-adding new sources for ApiClient and api 2015-07-17 21:09:05 -04:00
Robin Eggenkamp
0ad7005547 [Swift] Add support for basic form data 2015-07-16 17:56:20 +02:00
geekerzp
3993ef3dc8 Update python codegen.
Remove leading underscore.
2015-07-16 18:58:23 +08:00
geekerzp
8746f1544b Merge branch 'develop_2.0' into python-enum 2015-07-16 17:27:17 +08:00
geekerzp
f0e09ae33a Add enum support for model property of python client 2015-07-16 17:24:42 +08:00
wing328
e879268043 Merge pull request #941 from geekerzp/develop_2.0_python_async
[Python] Support asynchronous request in python client
2015-07-16 10:47:02 +08:00
geekerzp
33561fa159 Support date type in python client 2015-07-16 10:11:27 +08:00
Robin Eggenkamp
78760907a5 [Swift] Support use in a Framework
To support use in a Framework set access level of relevant classes,
methods and members to public
2015-07-15 18:22:36 +02:00
Robin Eggenkamp
30eb1f1075 Fix bug in api name placeholder 2015-07-15 18:20:05 +02:00
wing328
5c9afbafb2 Merge pull request #918 from geekerzp/develop_2.0_objc_issue
[Objc] Enhancements and Issue fix
2015-07-15 18:20:40 +08:00
geekerzp
0092d8a63b Update unit tests of objc client 2015-07-15 18:11:04 +08:00
wing328
3c6f07cbe3 Merge pull request #975 from wing328/sinatra_fix_tag
[Sinatra] Fixed outdated tag in mustache template
2015-07-15 17:50:25 +08:00
geekerzp
95cb5f73a3 Remove SWGFile from objc client 2015-07-15 17:10:24 +08:00
geekerzp
02f6c805af Update integration test of objc client 2015-07-15 17:10:24 +08:00
geekerzp
13d74f01a2 Add logging in objc client 2015-07-15 17:10:24 +08:00
geekerzp
8877be82f0 Update api-body.mustache of objc client 2015-07-15 17:10:24 +08:00
geekerzp
a25d3f2543 Update README file of objc client 2015-07-15 17:10:23 +08:00
geekerzp
3f017af464 Update objc client.
Replace SWGFile with NSURL.
2015-07-15 17:10:23 +08:00
geekerzp
0e56d0d1c6 Support file downloading in Objc codegen. 2015-07-15 17:10:23 +08:00
geekerzp
f48a7f20e6 Update config-help of objc cli 2015-07-15 17:10:23 +08:00
geekerzp
9a15ced211 Supoort customize classPrefix in objc client. 2015-07-15 17:10:23 +08:00
geekerzp
e244d20152 Remove lib files. 2015-07-15 17:10:23 +08:00
geekerzp
412b6b3839 Update objc client.
* Package objc client using cocoapods.
* Support cli options.
2015-07-15 17:08:45 +08:00
geekerzp
0a652a3d13 Fix issue#896 https://github.com/swagger-api/swagger-codegen/issues/896 2015-07-15 17:08:44 +08:00
geekerzp
4d302683f3 Update logging of python client 2015-07-15 15:58:45 +08:00
geekerzp
517717958d Update doc string of RESTClientObject#agent method of python client 2015-07-15 15:27:15 +08:00
geekerzp
b42ead3c0f Replace urllib3.util.url.parse_url with urllib3.util.parse_url 2015-07-15 15:27:14 +08:00
geekerzp
8a3c64aa41 Add logging and debug report for python client. 2015-07-15 15:27:14 +08:00
geekerzp
d97b0984cb Update ApiClient of python client.
Add docstring for method call_api.
2015-07-15 15:25:32 +08:00
geekerzp
0e8cf70dc4 Fix typo 2015-07-15 15:25:32 +08:00
geekerzp
88e5860d9b support asynchronous request in python client 2015-07-15 15:25:31 +08:00
wing328
157b07e552 Merge pull request #912 from gabrielar/develop_2.0-pull-requests/add-pathPrefix-key-to-operations
Add a `pathPrefix` key to the `operations` key
2015-07-15 10:26:13 +08:00
wing328
1f097ee1a1 Merge pull request #977 from who/develop_2.0
[PHP] Support for customizing namespace and Composer fields
2015-07-15 10:06:26 +08:00
wing328
7a5fd24785 Merge pull request #979 from xhh/auth-methods-fix
Fix NullPointerException for authMethods
2015-07-15 09:50:53 +08:00
wing328
59258be3dd Merge pull request #978 from tkQubo/fix/swift_bug
[Swift] Fix a bug
2015-07-15 09:42:39 +08:00
xhh
e5bdb3a0c1 Fix NullPointerException for authMethods 2015-07-15 09:21:09 +08:00
wing328
dd35c672f0 Merge pull request #935 from geekerzp/python-file-response
[Python] Support file downloading for Python API client
2015-07-14 17:45:11 +08:00
geekerzp
18ea21087f Update README file of python client 2015-07-14 17:34:38 +08:00
geekerzp
746a55be73 Update README file of python client 2015-07-14 17:15:24 +08:00
wing328
7242a664e3 Merge pull request #923 from xhh/ruby-debug
[Ruby] Some improvements & cleaning-up on Ruby API client
2015-07-14 16:34:41 +08:00
geekerzp
9f76acbbd7 Update README file of python client 2015-07-14 15:42:01 +08:00
geekerzp
af67353022 Update integration test of python client 2015-07-14 15:38:23 +08:00
kubo_takaichi
ecf4082d68 Fix bug in api name placeholder and api url 2015-07-14 13:41:28 +09:00
wing328
5821e41185 Merge pull request #927 from wing328/csharp_file_response
[C# ] Add file response
2015-07-14 12:34:51 +08:00
xhh
822e640e0a Merge branch 'develop_2.0' into ruby-debug
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/configuration.mustache
	modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
	samples/client/petstore/ruby/lib/petstore/swagger/request.rb
	samples/client/petstore/ruby/lib/swagger_client.rb
	samples/client/petstore/ruby/lib/swagger_client/swagger/configuration.rb
2015-07-14 12:33:17 +08:00
geekerzp
30925b7800 Update pom.xml of python client 2015-07-14 10:28:36 +08:00
geekerzp
bb570d7efa Update integration-test of python client 2015-07-14 09:43:59 +08:00
geekerzp
c88c85a317 Enhancements intergration-test of python client 2015-07-14 09:39:19 +08:00
geekerzp
23dfac0194 Update deserialization of python client.
Return None if deserialize data is None.
2015-07-14 09:39:19 +08:00
geekerzp
b99f006861 Update Python client.
Throw ApiException if fail to parse string to datetime.
2015-07-14 09:39:19 +08:00
geekerzp
80d1deb2dd Update unit tests of Python client.
Add more test cases for deserialization.
2015-07-14 09:39:19 +08:00
geekerzp
2912ee8ae1 Update deserialize response of Python client. 2015-07-14 09:39:18 +08:00
geekerzp
6df6c079ee Support file downloading in Python codegen. 2015-07-14 09:39:18 +08:00
Andrew B
f4226474e2 Updating command-line parameter description for artifactVersion 2015-07-13 15:02:14 -07:00
Andrew B
b70a0bf0c6 Fixing an issue with errant namespace in the sample petstore 2015-07-13 14:56:33 -07:00
Andrew B
7dca394eca Support for customizing Composer package and namespaces 2015-07-13 14:46:56 -07:00
wing328
80303b524d Merge pull request #884 from xhh/params-order
Make sure "required" parameters are placed in front of "optional" parameters
2015-07-13 17:51:22 +08:00
wing328
6e7c70f247 fix sinatra outdated tag, use version tag 2015-07-13 17:43:18 +08:00
xhh
715c56afcc Rebuild petstore PHP sample with updated order on params 2015-07-13 16:51:19 +08:00
xhh
aad05c4dee Merge branch 'develop_2.0' into params-order
Conflicts:
	samples/client/petstore/php/SwaggerClient-php/lib/PetApi.php
	samples/client/petstore/php/SwaggerClient-php/lib/StoreApi.php
	samples/client/petstore/php/SwaggerClient-php/lib/UserApi.php
2015-07-13 16:48:19 +08:00
wing328
3f9d1607b6 Merge pull request #926 from wing328/php_support_file_response
[PHP] support "file" response
2015-07-13 15:51:20 +08:00
wing328
879c1b921c update php petstore sample 2015-07-13 15:31:20 +08:00
xhh
fb0b7d622f Merge branch 'develop_2.0' into params-order
Conflicts:
	modules/swagger-codegen/src/main/resources/php/api.mustache
2015-07-13 15:30:06 +08:00
wing328
f154e407d2 update coding style based on CodeSniffer 2015-07-13 15:26:12 +08:00
wing328
44705b566d add default version for package 2015-07-13 15:24:12 +08:00
wing328
71a22141bf add enum support for model property 2015-07-13 15:24:11 +08:00
wing328
38149173ff revert petstore json, fixed test case 2015-07-13 15:21:39 +08:00
wing328
2258a4632d fix test.php, fix default configuration 2015-07-13 15:21:39 +08:00
wing328
259b31ccd4 temporary folder setting 2015-07-13 15:21:38 +08:00
wing328
7f31da734d add file response for php, update test case 2015-07-13 15:09:09 +08:00
wing328
fcd0b31d7d add file response for php 2015-07-13 15:09:09 +08:00
wing328
4c2df94ec7 Merge pull request #953 from bletail/develop_2.0
Python/Python3 datetime and date type fixed
2015-07-13 15:05:13 +08:00
wing328
38760d2aa1 Merge pull request #915 from xhh/ruby-file-response
[Ruby] Support file downloading for Ruby API client
2015-07-13 14:50:40 +08:00
wing328
f6174051cb Merge pull request #931 from cbornet/oauth_support
generate oauth2 fields in the data for the templates
2015-07-13 14:39:14 +08:00
wing328
68915eeb8f Merge pull request #968 from mhardorf/develop_2.0
Cleaned up TypeScript code generator
2015-07-13 12:16:11 +08:00
wing328
1434691927 Merge pull request #916 from wing328/fix_optional
[Perl, Python AsyncScala] Fix optional tag in the template
2015-07-13 11:53:58 +08:00
wing328
b46efd839d Merge pull request #914 from webjunkie/patch-1
Optional is used in PHP template although not available
2015-07-13 11:52:55 +08:00
wing328
c7f8f0171b Merge pull request #919 from wing328/fix_java_android_path_issue
[Java, Android] Fix path variable name
2015-07-13 11:51:45 +08:00
wing328
045a3b44c1 Merge pull request #901 from tkQubo/feature/swift_develop_2.0
[Swift] Some fixes for SwiftGenerator for develop 2.0
2015-07-13 11:51:07 +08:00
wing328
6c85fc285a Merge pull request #959 from dilipkrish/develop_2.0
Updated the swagger-codegen sample for generating the service side stubs
2015-07-13 10:14:05 +08:00
Dilip Krishnan
7cc9581f04 Updated the mustache template to remove the spurious import
Also regenerated the spring-mvc server sample
2015-07-12 20:56:36 -05:00
Dilip Krishnan
9283249963 Updated the swagger-codegen sample for generating the service side stubs
for spring mvc using springfox implementation
2015-07-12 20:56:31 -05:00
Tony Tam
461f556289 Merge pull request #893 from sudohippie/develop_2.0-fork
Android & Java template modifications to check collectionFormat when creating query parameters
2015-07-09 10:11:54 -07:00
Martin Hardorf
e3d3641b96 Removed unused import 2015-07-09 14:57:40 +02:00
Martin Hardorf
7e8f8e85d7 Changed default name of the modelPackage 2015-07-09 14:55:15 +02:00
Martin Hardorf
abc7100a17 Removed unused code from the api classes 2015-07-09 14:54:36 +02:00
Morten Andersen
661b9d6315 Docker generate example 2015-07-09 12:58:33 +02:00
moander
a21c2be877 Set executable flag 2015-07-09 10:39:35 +00:00
moander
5c29cbf33d Build and run script for docker 2015-07-09 12:33:43 +02:00
Martin Hardorf
d3bc347e31 Changed base path to use contextPath 2015-07-09 10:34:39 +02:00
wing328
1f35f58841 add back summary and description to nodejs swagger.json 2015-07-09 14:05:08 +08:00
xhh
a51d71e728 Fix syntax error when there are no authMethods 2015-07-09 10:48:16 +08:00
wing328
b8c06505f6 use fully qualified name for Task 2015-07-09 10:21:55 +08:00
moander
80731633b4 Created a Dockerfile 2015-07-09 01:22:06 +02:00
Tobias Pfeifer
4c16366f45 fix SpringMVCServerCodegen for maps as in JavaClientCodegen 2015-07-08 15:45:38 +02:00
Martin Hardorf
4133cae2bc Fixed mustache to handle non-required parameters 2015-07-08 11:19:25 +02:00
Martin Hardorf
f6a1af2831 Changed maps to any and DateTime to Date 2015-07-08 11:17:06 +02:00
xhh
a24fee00cb Support primitive response in Ruby client 2015-07-08 16:46:31 +08:00
xhh
f42f329ace Parse "date" as Date in Ruby client 2015-07-08 13:10:28 +08:00
xhh
6fd2ccabee Merge branch 'develop_2.0' into ruby-debug 2015-07-08 12:38:21 +08:00
DariusM
20c7932df4 Python /python3 datetime and date fixed 2015-07-07 13:00:28 +02:00
wing328
e49fe7a12f better style for model, add <value> to all properties 2015-07-07 16:25:33 +08:00
wing328
b1b0e28f59 update c# style 2015-07-06 23:06:28 +08:00
Tony Tam
dfd8d5ef64 updated to latest release version 2015-07-06 04:55:12 -07:00
wing328
94768d44b5 better type comparision 2015-07-06 13:55:33 +08:00
wing328
3b1999af4b update csharp sample 2015-07-06 11:24:59 +08:00
wing328
7e4a82bcfb add readme 2015-07-06 11:18:05 +08:00
wing328
f823c0e26a update newtonsoft json 2015-07-06 11:03:36 +08:00
xhh
bf32777b67 Fix NullPointerException in tests, improve usage to addVars 2015-07-03 18:07:34 +08:00
wing328
987a61640b fix file upload issue. add error handling for status code 0 2015-07-03 17:39:27 +08:00
xhh
66d16cfeaf Validate parameter against allowed values (enum) 2015-07-03 16:46:23 +08:00
xhh
0bf4163389 Copy properties of intermediate (interface) models 2015-07-03 15:08:37 +08:00
xhh
b61a400d91 Copy properties of parent model to model with allOf
Also fix #936
2015-07-03 15:08:37 +08:00
wing328
55827fe516 fix model import for csharp 2015-07-03 14:20:54 +08:00
wing328
5c888ad039 better method comment 2015-07-03 13:55:51 +08:00
wing328
d7d6ba957e fix comment and use 4-space indentation 2015-07-03 11:45:31 +08:00
wing328
57b54d8ad7 update code style for apiclient, configuration and apiexception 2015-07-03 10:36:21 +08:00
Peter S. May
4b896c759c [C#] Use RestSharp's mechanism for path parameters in URL templates
Previously, a simple find-and-replace had been used to substitute path parameters into the path. Among other omissions, this resulted in special characters such as `/` being left unescaped.

The RestSharp request object, as it turns out, expects a path template in the same format as provided by Swagger (with param names in braces), to be filled in using `AddParameter()`. In this edit, the code now uses this mechanism. The form parameter values are now passed to `CallApi*()` as a `Dictionary<String, String>`, where they are added to the request before submission. Since this was already how query and form parameters (etc.) were implemented, the resulting code is more consistent with itself than before.
2015-07-02 15:33:30 -04:00
Ole Lensmar
aba755d3de Merge pull request #940 from xhh/jax-rs-classname
Sanitize API class name in Jax RS server codegen
2015-07-02 11:38:10 +02:00
xhh
fe35675168 Allow numbers for classname
and remove spaces
2015-07-02 17:15:53 +08:00
xhh
d825b96720 Sanitize API class name in Jax RS server codegen 2015-07-02 12:00:18 +08:00
wing328
422da698f6 import model only if it has import for c# 2015-07-02 11:18:41 +08:00
wing328
488e604207 use stream for file 2015-07-01 21:37:48 +08:00
xhh
846d282ba0 Add helper methods for last response 2015-07-01 18:48:31 +08:00
xhh
6f1dd5ce35 Store last response in a thread-safe way 2015-07-01 17:37:16 +08:00
xhh
108b2241c0 Validate model property against allowed values (enum)
when present with attribute setters
2015-07-01 17:18:29 +08:00
wing328
4d6dbf7d92 show return in doc only if it has a return 2015-07-01 15:16:28 +08:00
Nadezhda Makarkina
eca827613d Fixed #831: skipOverwrite flag has been added 2015-06-30 17:58:35 +03:00
wing328
2e76b56f30 revert file to String, add test case for upload file 2015-06-30 17:50:22 +08:00
wing328
f290de95dd update parameter name to camelize lower 2015-06-29 23:14:00 +08:00
wing328
59987a54a9 fix deserialization of string and other primitive 2015-06-29 22:16:38 +08:00
cbornet
2d59c5d190 generate oauth2 fields in the data for the templates
Fixes #347
2015-06-29 13:39:39 +02:00
wing328
9726ada8d1 fix return type and tempfolder 2015-06-29 15:30:34 +08:00
wing328
76ece5a4eb add file response support for c# (passed test cases) 2015-06-29 12:17:49 +08:00
kubo_takaichi
91af76cf41 Use CLI option 2015-06-27 23:24:49 +09:00
kubo_takaichi
65af735d6c Merge commit '4143e286374bdd384c39a68df1f8f3a3eb58e6a4' into feature/swift_develop_2.0 2015-06-27 21:19:32 +09:00
wing328
30bc58f6ff Merge branch 'fix_optional' of https://github.com/wing328/swagger-codegen into fix_optional 2015-06-26 23:57:06 +08:00
wing328
3eca940e7d fix perl and asyncscala optional tab 2015-06-26 23:56:20 +08:00
wing328
38d62d768a fix optional for python, python3 2015-06-26 23:56:20 +08:00
xhh
1de6952279 Support customizing default headers via config option
for example:

    config.default_headers['X-MY-HEADER'] = 'my-header-value'
2015-06-26 19:09:20 +08:00
xhh
54d6a7e19c Merge branch 'develop_2.0' into ruby-file-response 2015-06-26 17:44:37 +08:00
xhh
fafddbf040 Fix naming in specs 2015-06-26 17:16:38 +08:00
xhh
d8b0cb739f Add config file for bin/ruby-petstore.sh
to rename swagger_client to petstore
2015-06-26 17:15:14 +08:00
xhh
2d3d35cfd7 Rebuild Ruby petstore client 2015-06-26 16:37:58 +08:00
xhh
8c10e4f2b0 Remove unused code 2015-06-26 16:06:32 +08:00
xhh
0ac1ef266f Avoid more monkey-patching 2015-06-26 16:04:18 +08:00
xhh
327128dbba Fix "date" type deserialization 2015-06-26 15:57:46 +08:00
xhh
16e80c65d7 Avoiding monkey-patching in Ruby API client 2015-06-26 15:56:59 +08:00
xhh
40c9f05536 Merge branch 'develop_2.0' into ruby-debug 2015-06-26 10:38:58 +08:00
wing328
091e76703c update sample 2015-06-26 10:35:50 +08:00
wing328
6a24b328e3 fix variable name in path 2015-06-26 10:30:12 +08:00
Tony Tam
4143e28637 Merge branch 'wing328-csharp_add_cli_support' into develop_2.0 2015-06-25 11:55:41 -07:00
Tony Tam
31efefe0b9 Merge branch 'csharp_add_cli_support' of ssh://github.com/wing328/swagger-codegen into wing328-csharp_add_cli_support 2015-06-25 11:54:30 -07:00
Tony Tam
e60bd564cb Merge pull request #864 from geekerzp/python-cli-option
[Python] Enabling cli config options for python generator
2015-06-25 11:53:29 -07:00
Tony Tam
69b75bb1af Merge pull request #885 from mhardorf/develop_2.0
Added support for TypeScript generation for AngularJS and Node.js
2015-06-25 11:53:21 -07:00
Tony Tam
1fb796f14d Merge pull request #891 from who/develop_2.0
Replacing getClientResponseStatus() with getStatusInfo()
2015-06-25 11:53:10 -07:00
Tony Tam
e996498a24 Merge pull request #913 from xhh/scala-warnings
[Scala] Fix warnings and upgrade jersey for Scala client
2015-06-25 11:52:57 -07:00
Tony Tam
c3d1367e7c Merge pull request #894 from wing328/csharp_add_nunit
[C#] Add NUnit test
2015-06-25 11:52:19 -07:00
Tony Tam
69eae7d35b merged 2015-06-25 10:23:05 -07:00
Tony Tam
162d1d1f98 merged 2015-06-25 10:21:38 -07:00
Tony Tam
07d5365c5c merged from #902, rebuilt client 2015-06-25 10:17:28 -07:00
Tony Tam
f1239aba6c Merge pull request #908 from wing328/fix_php_file_sep
[PHP] Fix regular expression in toPackagePath
2015-06-25 10:10:30 -07:00
Tony Tam
37620518e7 Merge pull request #892 from wing328/add_sinatra
[Ruby] Add back Sinatra tempates
2015-06-25 10:10:22 -07:00
William Cheng
9d739a44cd update python test case 2015-06-25 21:47:00 +08:00
wing328
18ac6e8aae fix perl and asyncscala optional tab 2015-06-25 23:10:25 +08:00
wing328
8cce7ac053 fix optional for python, python3 2015-06-25 22:40:14 +08:00
xhh
e6e1db2064 Support looser format when detecting filename 2015-06-25 16:26:04 +08:00
xhh
ceafbcc97f Add config option for file downloading folder. Log about file downloading 2015-06-25 16:07:02 +08:00
xhh
f3a0f464f7 Support file downloading in Ruby generator 2015-06-25 15:35:48 +08:00
Raghav Sidhanti
1af23fb751 Unit tests for Android and Java parameterToPairs method 2015-06-24 11:55:03 -07:00
Raghav Sidhanti
ea76f34de5 Merge branch 'develop_2.0' of https://github.com/swagger-api/swagger-codegen into develop_2.0-fork 2015-06-24 11:25:32 -07:00
Julian Bez
8ce3823698 Change to not required 2015-06-24 16:34:32 +02:00
Julian Bez
644231b915 Change optional to required 2015-06-24 16:32:49 +02:00
xhh
621e3e7b1a Add comments for some configuration options 2015-06-24 15:57:01 +08:00
wing328
6aac24398a update model to support inheritance (#879) 2015-06-24 14:34:05 +08:00
xhh
545fb52b7d Merge branch 'develop_2.0' into ruby-debug 2015-06-24 14:10:47 +08:00
Ole Lensmar
8e6c0f96fb updated documentation and removed java-specific parameters from general configuration 2015-06-24 07:31:10 +02:00
Gabriel Radu
1b1f860c82 Add a pathPrefix key to the operations key 2015-06-24 03:28:38 +01:00
Ole Lensmar
50dd196d42 fixed code formatting and imports 2015-06-24 00:12:50 +02:00
Ole Lensmar
ce6ec20fef added config parameters for all default parameters and a configOptions map for language specific parameters 2015-06-24 00:11:13 +02:00
Ole Lensmar
11e56f5c9c Merge pull request #898 from garethjevans/develop_2.0
Contributed maven plugin to the swagger-codegen project
2015-06-23 23:20:49 +02:00
nmonterroso
efd5b806be updating php generated samples and updating tests 2015-06-23 09:27:52 -07:00
nmonterroso
1b4c71c280 re-adding Configuration->deleteDefaultHeader 2015-06-23 09:27:34 -07:00
wing328
d83036ccdf fix regular expression 2015-06-23 22:36:57 +08:00
wing328
d18426c69a fix reg expression 2015-06-23 22:30:43 +08:00
wing328
351833a923 test fix 2015-06-23 21:52:00 +08:00
wing328
2979d93829 use replace instead of replaceAll 2015-06-23 21:47:10 +08:00
Martin Hardorf
2fce2e4109 Removed wrong hasMore from Angular TypeScript mustache 2015-06-23 15:37:07 +02:00
xhh
13d350be2e Fix warnings and upgrade jersey for Scala client
* Upgrade jersey to latest version (from 1.7 to 1.19)
* Replace getClientResponseStatus() with getStatusInfo()
* Fix the following maven warnings and model import warnings

    [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 72, column 15
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

    [WARNING]  Expected all dependencies to require Scala version: 2.10.4
    [WARNING]  com.fasterxml.jackson.module:jackson-module-scala_2.10:2.4.2 requires scala version: 2.10.4
    [WARNING]  org.scala-lang:scala-reflect:2.10.4 requires scala version: 2.10.4
    [WARNING]  io.swagger:swagger-scala-client:1.0.0 requires scala version: 2.10.4
    [WARNING]  org.scalatest:scalatest_2.10:2.1.3 requires scala version: 2.10.3
    [WARNING] Multiple versions of scala libraries detected!

   [WARNING] /Users/xhh/projects/swagger-codegen/samples/client/petstore/scala/src/main/scala/io/swagger/client/model/Pet.scala:3: warning: imported `Category' is permanently hidden by definition of object Category in package model
2015-06-23 21:23:48 +08:00
wing328
550493ba84 fix php separator 2015-06-23 21:20:12 +08:00
Martin Hardorf
c45af23946 Fixed headerParams and paramName 2015-06-23 12:05:43 +02:00
xhh
19ee56592e Allow customizing SSL CA certificate
by adding a `ssl_ca_cert` configuration option
2015-06-23 17:23:22 +08:00
kubo_takaichi
aec4af1b88 Replace slash with File.separator 2015-06-23 16:10:21 +09:00
xhh
46869df631 Make HTTP response accessible by storing the last response
so that users are able to retrieve, for example, rate-limit headers
from the response
2015-06-23 15:02:40 +08:00
nmonterroso
c91a1b963b change serializer to be instanced, rather than static methods 2015-06-22 21:33:44 -07:00
nmonterroso
2fced0f634 Revert "Updates to csharp model template to support inheritance"
This reverts commit 5f1df9e093.
2015-06-22 21:12:13 -07:00
nmonterroso
60b0ffeb0e don't prepend the invokerPackage - an artifact from an earlier implementation 2015-06-22 21:06:22 -07:00
nmonterroso
6623e120cd renaming to Configuration 2015-06-22 20:53:59 -07:00
nmonterroso
46ec934a9c java7 doesn't have replace, but put operates as such, so switch to that 2015-06-22 20:49:12 -07:00
nmonterroso
5a9e9550ca fixing php-doc 2015-06-22 20:43:00 -07:00
nmonterroso
8e0142338e removing unused imports 2015-06-22 20:36:57 -07:00
nmonterroso
61e368ce87 Merge remote-tracking branch 'swagger/develop_2.0' into php-upgrades 2015-06-22 20:29:09 -07:00
nmonterroso
c93b0dd3b8 make srcBasePath configureable 2015-06-22 20:24:19 -07:00
kubo_takaichi
79e31a5761 Add a workaround against void forcibly being converted to string 2015-06-23 12:20:00 +09:00
kubo_takaichi
fa3a9a9d61 Change class package 2015-06-23 12:20:00 +09:00
kubo_takaichi
febaa340e3 Treat object as String (temporary measure) 2015-06-23 12:20:00 +09:00
kubo_takaichi
bcab55e3ef Tighten parameter requirement 2015-06-23 12:20:00 +09:00
kubo_takaichi
24465d2df4 Change model naming 2015-06-23 12:20:00 +09:00
kubo_takaichi
8540ac71c8 Update swift code generation script 2015-06-23 12:20:00 +09:00
kubo_takaichi
9e47042122 Update models 2015-06-23 12:20:00 +09:00
kubo_takaichi
e0109afc60 Fix typo 2015-06-23 12:20:00 +09:00
kubo_takaichi
ff88f7175d Update models 2015-06-23 12:20:00 +09:00
kubo_takaichi
c9a9b0ad2b Refine authMethods description 2015-06-23 12:20:00 +09:00
kubo_takaichi
db01ec801f Add suppressRequired functionality 2015-06-23 12:20:00 +09:00
kubo_takaichi
495e528eec Add generated code 2015-06-23 12:20:00 +09:00
kubo_takaichi
a7c91d610f Add error response body to NSError 2015-06-23 12:20:00 +09:00
kubo_takaichi
d08acf7298 Add a dateTime formatter candidate 2015-06-23 12:20:00 +09:00
kubo_takaichi
7be35bb02e Change method name to avoid name collision 2015-06-23 12:20:00 +09:00
Raghav sidhanti
b4d6fd3ba3 Returning when query param value is null. 2015-06-22 20:16:35 -07:00
nmonterroso
d5d1483656 properly account for custom and non-custom settings for modelPackage and apiPackage 2015-06-22 20:14:54 -07:00
Tony Tam
02c41ac574 fix for #900, invalid param name for java client 2015-06-22 20:00:28 -07:00
nmonterroso
3a6f431f62 make packagePath configureable, and remove unused code 2015-06-22 19:34:03 -07:00
nmonterroso
4fe979a8c0 code compiles and *should* work, but need to re-organize for separate client/api-specific class namespaces 2015-06-22 19:26:26 -07:00
xhh
3b6a3b4a38 Add logging for API call entry and result 2015-06-23 10:12:20 +08:00
nmonterroso
da14c9e692 changing to invokerPackage 2015-06-22 19:09:32 -07:00
nmonterroso
b8b003bc83 Merge remote-tracking branch 'swagger/develop_2.0' into php-upgrades
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PhpClientCodegen.java
	modules/swagger-codegen/src/main/resources/php/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/php/ApiException.mustache
	modules/swagger-codegen/src/main/resources/php/api.mustache
	modules/swagger-codegen/src/main/resources/php/autoload.mustache
	modules/swagger-codegen/src/main/resources/php/configuration.mustache
	modules/swagger-codegen/src/main/resources/php/model.mustache
	modules/swagger-codegen/src/test/scala/php/PhpModelTest.scala
2015-06-22 19:09:13 -07:00
xhh
229ea93627 Add debugging switch to Ruby generator 2015-06-23 10:06:01 +08:00
xhh
24296eacea Merge branch 'develop_2.0' into params-order
Conflicts:
	samples/client/petstore/ruby/lib/swagger_client/api/pet_api.rb
2015-06-23 10:02:18 +08:00
Raghav Sidhanti
6958db3d3d Refactored Pairs to use List instead of Set. 2015-06-22 17:14:18 -07:00
Raghav Sidhanti
32b50e7c8e Refactored parameterToPairs 2015-06-22 17:02:00 -07:00
Tony Tam
b803895750 Merge pull request #865 from ammmze/feature/php-namespace-and-doc
Improve PHP namespace support
2015-06-22 16:53:57 -07:00
Tony Tam
d1153dfeb4 Merge pull request #866 from geekerzp/develop_2.0_objc_deserialize_map
[Objc] bug fix for map response
2015-06-22 16:53:28 -07:00
Tony Tam
385fab225e Merge pull request #871 from xhh/ruby-object-type
[Ruby] Support deserialization of "object" type in Ruby generator
2015-06-22 16:53:21 -07:00
Tony Tam
89a5abb217 Merge pull request #870 from wing328/perl_cli_support
[Perl] Add CLI config options and code enhancement
2015-06-22 16:53:12 -07:00
Raghav Sidhanti
79a5614be9 Invalid strings will be passed as blank query param. 2015-06-22 15:55:29 -07:00
Raghav Sidhanti
a1b56c9b83 Renamed QueryParam to Pair class in Android templates. 2015-06-22 15:28:29 -07:00
Raghav Sidhanti
ecddfb7ccf Renamed QueryParam to Pair class in Java templates. 2015-06-22 15:16:45 -07:00
nmonterroso
bd5eb7ace3 update tests 2015-06-22 12:30:52 -07:00
nmonterroso
8e15bd6a85 call setHost on config 2015-06-22 12:13:39 -07:00
nmonterroso
5ef50f9f4b rename ApiConfiguration to ApiClientConfiguration 2015-06-22 12:07:48 -07:00
nmonterroso
a6331244e1 move all configuration to ApiConfiguration 2015-06-22 12:05:22 -07:00
nmonterroso
01d7776fc1 don't create a new response object, and keep the old string value in the exception and have the object as ApiException->responseObject 2015-06-22 11:47:23 -07:00
nmonterroso
109b7eeaec adding static setters/getters for models since members are no public 2015-06-22 11:19:01 -07:00
nmonterroso
5de99bafa7 fixing package output 2015-06-22 11:18:36 -07:00
Gareth Evans
a664abcf51 Contributed maven plugin to the swagger-codegen project 2015-06-22 19:17:29 +01:00
nmonterroso
6f11092a57 call setHost using API baspath when no apiclient is provided 2015-06-22 10:35:57 -07:00
nmonterroso
e598384d97 move authentication to the API level, so that supporting classes aren't api-specific 2015-06-22 10:31:38 -07:00
nmonterroso
53bddae904 separate serialization responsibility to ObjectSerializer class 2015-06-22 09:47:28 -07:00
nmonterroso
1519912a1a cleaning up some php doc 2015-06-22 09:26:45 -07:00
nmonterroso
b3a3bdd2e0 add fully-qualified class names to deserialize params 2015-06-22 09:18:41 -07:00
nmonterroso
04be474f56 moving $host back to ApiClient and making ApiClient setters fluent 2015-06-22 08:36:49 -07:00
nmonterroso
99e963709b renaming configuration 2015-06-22 08:30:08 -07:00
nmonterroso
b9ca19168a remove static fields in Configuration and make variable case more consistent 2015-06-22 08:28:22 -07:00
geekerzp
acf09da578 Fix typo in python codegen 2015-06-22 16:35:15 +08:00
wing328
1d59937150 add nunit test for csharp 2015-06-22 11:53:44 +08:00
nmonterroso
caa1b7f411 generate model imports for support files, and use them as imports 2015-06-19 15:20:29 -07:00
Raghav Sidhanti
7a9a41fe01 Java and Android template changes to accommodate query params defined by the collection-format. 2015-06-19 14:06:25 -07:00
nmonterroso
acdc5328fe deserialize thrown exceptions 2015-06-19 11:24:56 -07:00
nmonterroso
3252dd0d18 check for null array in constructor 2015-06-19 10:32:38 -07:00
nmonterroso
5c409884b9 make setters fluent 2015-06-19 10:31:05 -07:00
nmonterroso
f9f58596b8 account for return type where the response type is in a list container, and properly import models into operations 2015-06-18 16:51:24 -07:00
nmonterroso
bb11322919 use proper namespaces, getters/setters, and phpdocs 2015-06-18 15:41:12 -07:00
nmonterroso
4495774fd5 proper autoloader and move generated files to PSR-4 compliant locations 2015-06-18 15:08:45 -07:00
Andrew B
1aeb50feef Replacing getClientResponseStatus() with getStatusInfo() 2015-06-18 14:41:17 -07:00
Branden Cash
b74050dd7b Change to use the autoload.php and change the namespacing 2015-06-18 11:45:08 -07:00
Branden Cash
2ac7384abf Fix tests 2015-06-18 11:43:54 -07:00
Branden Cash
eed45a41a3 Fixed the missing closing doc chars and updated sample 2015-06-18 11:43:54 -07:00
Branden Cash
69c2f6f945 Add phpdoc for the api.apiClient 2015-06-18 11:43:54 -07:00
Branden Cash
5119299e8a Remove unused code 2015-06-18 11:43:54 -07:00
Branden Cash
719a0b732e Update sample client 2015-06-18 11:43:48 -07:00
Branden Cash
8ed690cad0 Better namespace support, so that your not limited to only having a single vendor space, you can have \Vendor\Package\Model as a namespace. Also updates with proper phpdoc comments so that IDE code hinting can function properly. 2015-06-18 11:41:14 -07:00
William Cheng
f957471509 update silex sample code location 2015-06-19 02:37:08 +08:00
William Cheng
0b0325b8af update readme, fix swaggering name 2015-06-19 02:32:50 +08:00
William Cheng
d178d5e7d8 add sinatra template 2015-06-19 02:11:08 +08:00
nmonterroso
4ef34680cd renaming to ApiClient.mustache 2015-06-18 10:30:53 -07:00
wing328
6ab7be4058 add package version 2015-06-18 22:20:52 +08:00
wing328
df72188bc0 add cli support to csharp 2015-06-18 22:06:59 +08:00
geekerzp
8d18aee2f2 Update test case test_deserialize_to_dict of python client 2015-06-18 22:02:54 +08:00
Martin Hardorf
449ba4f644 Fixed required parameters for APIs in TypeScript 2015-06-18 12:42:04 +02:00
geekerzp
194c8ff71d Update config-help message of python client 2015-06-18 10:43:25 +08:00
geekerzp
62f4c252f2 Update python codegen.
* Update config-help message.
* Do not sanitize packageName to underscore format.
2015-06-18 10:43:24 +08:00
geekerzp
5d19ef6146 Generate the python into python/ folder directly 2015-06-18 10:43:24 +08:00
geekerzp
a32335dfbc Enable cli config options for python generator 2015-06-18 10:43:24 +08:00
geekerzp
6b6480a026 Updated xcode project of objc client 2015-06-18 10:38:19 +08:00
geekerzp
a4df33d040 Add comments for SWGJSONResponseSerializer#responseObjectForResponse
method of objective-c client.
2015-06-18 10:03:51 +08:00
geekerzp
8b15416be5 Add SWGJSONResponseSerializer for objective-c client.
If the response data is valid json, return the deserialized json.
If the response data is invalid json, return the string of response data.
2015-06-18 10:03:51 +08:00
geekerzp
bc92465bf7 Update Objective-C method description (doc comments) style 2015-06-18 10:03:51 +08:00
geekerzp
a6bdc35d59 Support pure object response for objc client 2015-06-18 10:03:51 +08:00
geekerzp
c50c8b724d Support map response for objc client.
completed.
2015-06-18 10:03:50 +08:00
geekerzp
0da3e58fff Support map response for objc client.
not completed
2015-06-18 10:03:12 +08:00
xhh
edcb71ad22 Merge branch 'develop_2.0' into params-order
Conflicts:
	bin/all-petstore.sh
2015-06-18 09:59:13 +08:00
xhh
d6d707543d Merge branch 'develop_2.0' into ruby-object-type
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/RubyClientCodegen.java
2015-06-18 09:56:58 +08:00
William Cheng
8858e7d7e3 update perl sample 2015-06-18 02:44:40 +08:00
William Cheng
64b46c2e15 update indentation, remove export 2015-06-18 02:40:15 +08:00
wing328
82baa7ce4b update help text 2015-06-18 10:57:10 +08:00
wing328
d7315b56dc removed non-perl update 2015-06-18 10:57:10 +08:00
wing328
10e07eaf74 add support for cli (perl) 2015-06-18 10:57:09 +08:00
Martin Hardorf
e7d4a438dd Added tests for TypeScript Angular and Node.js 2015-06-17 17:58:52 +02:00
Martin Hardorf
9e8631b75f Added shell scripts for sample generation of TypeScript 2015-06-17 17:56:37 +02:00
Tony Tam
e39ec927a2 Merge pull request #879 from shoatman/master
Updates to csharp model template to support inheritance
2015-06-17 08:30:07 -07:00
Tony Tam
6ad3a717fe Merge pull request #882 from wing328/php_add_silex
[PHP] add Silex server-side codegen
2015-06-17 08:29:48 -07:00
Tony Tam
f66b5cf65b Merge pull request #867 from wing328/fix_jar_path
[Bug fix] Fix path inside JAR for non-template files
2015-06-17 08:28:30 -07:00
Tony Tam
d8c337185f Merge pull request #857 from wing328/php_warning
[PHP] Remove PHP5.3 warning
2015-06-17 08:27:47 -07:00
Tony Tam
5ade64b3e1 Merge pull request #856 from wing328/csharp_upgrade_restsharp
[C#] upgrade restsharp to 105.1.0
2015-06-17 08:27:10 -07:00
Tony Tam
e65a079f0e Merge pull request #855 from geekerzp/develop_2.0_python_deserialize_map
[Python] bug fix for map response
2015-06-17 08:26:58 -07:00
Tony Tam
378ffffdc7 Merge pull request #854 from geekerzp/develop_2.0_objc_pro_rename
[Objc] Change xcode project name in objc sample code
2015-06-17 08:26:42 -07:00
Tony Tam
dd356b54c0 Merge pull request #853 from wing328/perl_support_map3
[Perl] update deserialization to support Map and List
2015-06-17 08:25:45 -07:00
Tony Tam
f56388845c Merge pull request #850 from xhh/ruby-cli-option2
[Ruby] Enabling cli config options for ruby generator
2015-06-17 08:25:34 -07:00
William Cheng
436db1f8e7 add __toString and update php sample 2015-06-17 19:00:29 +08:00
Martin Hardorf
ba4b88ef86 Fixed TypeScript mustache 2015-06-17 12:22:15 +02:00
xhh
b39d44db03 Add missing petstore scripts to bin/all-petstore.sh 2015-06-17 16:16:44 +08:00
xhh
9c4e5ed596 Rebuild Petstare sample for Java, Android, PHP, etc. 2015-06-17 16:15:37 +08:00
wing328
ce40da0f71 add php silex server side codegen 2015-06-17 16:01:24 +08:00
xhh
7f4586a47f Fix comment regarding required parameter in PHP generator 2015-06-17 16:00:59 +08:00
xhh
24a2de7389 Sort parameters to move required ones in front of optional ones 2015-06-17 16:00:16 +08:00
Shane Oatman
5f1df9e093 Updates to csharp model template to support inheritance 2015-06-16 12:12:17 -07:00
xhh
5435777c65 Merge remote-tracking branch 'origin/develop_2.0' into ruby-object-type 2015-06-16 18:42:18 +08:00
xhh
7c355030f4 Add to_s method for models 2015-06-16 18:41:51 +08:00
Nadezhda Makarkina
7b5b874fdc Fixed #798: original jar generation has been fixed. 2015-06-16 11:58:22 +03:00
Martin Hardorf
f87bb12ebb Added support for TypeScript generation for AngularJS and Node.js 2015-06-16 10:44:05 +02:00
xhh
d2d5cf0d57 Add convention notes to Ruby CLI options 2015-06-16 12:17:11 +08:00
xhh
6348f67b18 Merge remote-tracking branch 'origin/develop_2.0' into ruby-cli-option2 2015-06-16 12:07:15 +08:00
Ron
eaf5a371ff Merge pull request #863 from wing328/fix_typo
Fixed a minor typo with the command example
2015-06-15 13:20:05 +03:00
Ron
dee0948e3e Update README.md 2015-06-15 13:19:56 +03:00
xhh
a59d4ba346 Add test case for finding nonexistent pet 2015-06-15 16:51:38 +08:00
xhh
ec8e5179cb Remove unused comments 2015-06-15 16:46:30 +08:00
xhh
9d5928551b Unify ClientError and ServerError into ApiError
in Ruby generator
2015-06-15 16:38:08 +08:00
wing328
456e17430b Merge branch 'php_warning' of https://github.com/wing328/swagger-codegen into php_warning 2015-06-15 15:51:12 +08:00
wing328
839f0971f0 rename php ApiClient 2015-06-15 15:50:40 +08:00
xhh
e9c1dd7842 Regard bare "object" type as Object, add comments
The handling of base "object" type (without definions of
"additionalProperties") is similar to Java generator now.
2015-06-15 12:49:17 +08:00
wing328
24b110be9d show writing file for non-template file 2015-06-14 01:27:47 +08:00
wing328
7a560865a0 fix jar path in windows 2015-06-14 00:59:40 +08:00
geekerzp
718a9a79ed Update test case test_deserialize_to_object of python client. 2015-06-13 19:05:15 +08:00
geekerzp
ff9623fb5c Support pure object response for python client. 2015-06-13 18:58:27 +08:00
xhh
80616b4c2b Add test cases for StoreApi#get_inventory 2015-06-12 23:03:17 +08:00
xhh
36f0ed6d0c Add test cases for Response#deserialize 2015-06-12 22:44:52 +08:00
xhh
4c8c6c3880 Rebuild Ruby Petstore sample 2015-06-12 20:18:50 +08:00
xhh
e38fc2c3da Deserialize response for "object" type in Ruby client 2015-06-12 20:15:48 +08:00
wing328
2fdae91cbc fix a typo in readme 2015-06-12 16:12:54 +08:00
William Cheng
7aab1eaffb update test.php to put exception test at last 2015-06-10 23:53:56 +08:00
wing328
a0c55693dc add test case for loginUser, separate test cases into different files 2015-06-10 21:59:48 +08:00
wing328
9aca2868b9 change static method to instance method, update test case to remove php warning 2015-06-10 21:18:48 +08:00
wing328
4982784d7c upgrade restsharp to 105.1.0 2015-06-10 15:57:07 +08:00
geekerzp
e2d441e862 support map type response for python client 2015-06-10 11:55:12 +08:00
wing328
303dbe7730 fix array,map for perl, add test case 2015-06-10 10:53:21 +08:00
geekerzp
d7b10a17c1 Renamed objc client from PetstoreClient to SwaggerClient 2015-06-10 10:53:16 +08:00
Alexey Nechaev
3f194d3288 Fixed #837: Generation of default values for complex arrays and maps has been improved. 2015-06-09 19:34:09 +03:00
fehguy
672fcd5a14 updated dev version 2015-06-09 01:36:52 -07:00
fehguy
3768932ba2 updated dev version 2015-06-09 01:36:48 -07:00
Tony Tam
eafcc43295 Merge pull request #851 from swagger-api/develop_2.0
merge from develop 2.0 for release
2015-06-09 01:13:42 -07:00
xhh
1315e2d72c Add new line to make code more readable 2015-06-09 15:47:37 +08:00
xhh
44780e6e1b Merge branch 'develop_2.0' into ruby-cli-option2
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
2015-06-09 15:44:50 +08:00
fehguy
570383d5d5 updated name, disabled test 2015-06-09 00:41:08 -07:00
fehguy
3d2f09a693 updated versions 2015-06-09 00:25:09 -07:00
Tony Tam
33c2b1b623 Merge pull request #849 from wing328/fix_podfile
Fix objc podfile in sample
2015-06-09 00:18:24 -07:00
wing328
207776cec6 udpate podfile 2015-06-09 15:14:37 +08:00
Tony Tam
3b3738e587 Merge pull request #847 from wing328/fix_indentation
Fix indentation
2015-06-08 23:43:09 -07:00
wing328
680078dc58 fix csharp refer to apiinvoker 2015-06-09 13:52:01 +08:00
wing328
a593271de1 rollback flash apiinvoker based on 8ee8eddcff 2015-06-09 13:33:30 +08:00
wing328
7fd996bc86 update php sample 2015-06-09 13:31:14 +08:00
wing328
d155ddd026 rollback java spring mvc template 2015-06-09 13:15:03 +08:00
wing328
fc38b9bb79 rollback akkascala to another commit (637ee77d66) 2015-06-09 13:13:56 +08:00
wing328
29c41adddf rollback java jxrs template 2015-06-09 13:11:16 +08:00
wing328
180d48e89d rollback java template 2015-06-09 13:08:32 +08:00
wing328
900f39686d rollback grovvy template 2015-06-09 13:07:45 +08:00
wing328
46c5b776ed rollback csharp template 2015-06-09 13:04:34 +08:00
wing328
7b6480f7f8 rollback codegen template 2015-06-09 13:04:03 +08:00
wing328
f610958209 rollback asyncscala template 2015-06-09 13:03:29 +08:00
wing328
ab9daaacd6 rollback android template 2015-06-09 13:02:54 +08:00
wing328
a8f6044c9b rollback akka-scala template 2015-06-09 13:01:50 +08:00
wing328
6efef51036 rollback validator template 2015-06-09 13:01:11 +08:00
wing328
6617af5209 rollback tizen template 2015-06-09 13:00:42 +08:00
wing328
410144ea1c rollback swift template 2015-06-09 13:00:13 +08:00
wing328
d8060f47a8 rollback swagger-static template 2015-06-09 12:58:41 +08:00
wing328
f2ee63da3b rollback scalatra template 2015-06-09 12:57:31 +08:00
wing328
b636d2a2c9 rollback scala template 2015-06-09 12:56:26 +08:00
wing328
7d6fdf96c0 rollback retroit template 2015-06-09 12:54:48 +08:00
wing328
b1f5c0314e rollback objc templates 2015-06-09 12:53:33 +08:00
wing328
eede02a6ab rollback nodejs and htmldocs template 2015-06-09 12:51:52 +08:00
wing328
eee8685847 rollback flash template 2015-06-09 12:47:18 +08:00
wing328
6253bbff3d roll back qt5cpp template 2015-06-09 12:42:07 +08:00
wing328
263b4080ee rollback python3 template 2015-06-09 12:40:45 +08:00
wing328
50ae9659ad rollback php template 2015-06-09 12:37:30 +08:00
wing328
2e12ac5957 rollback perl template 2015-06-09 12:34:38 +08:00
wing328
5f6622c70d rollback ruby template 2015-06-09 12:33:30 +08:00
wing328
d5cbbae182 rollback ruby swagger template 2015-06-09 12:26:02 +08:00
wing328
0dd8670724 rollback python template 2015-06-09 12:22:59 +08:00
xhh
d2a82d56aa Enable CLI options for Ruby generator 2015-06-09 10:16:52 +08:00
Tony Tam
915ad77d03 Merge branch 'develop_2.0' 2015-06-08 16:22:15 -07:00
Tony Tam
f025dda4e2 merged 2015-06-08 16:21:58 -07:00
Ron
1644956a9c Merge pull request #843 from swagger-api/repackage
merge repackage into development
2015-06-08 19:13:10 -04:00
Tony Tam
b1cea25237 updated version 2015-06-08 16:07:31 -07:00
Tony Tam
c1ddb84839 restored imports 2015-06-08 16:04:04 -07:00
Tony Tam
445d0f7928 rebuilt 2015-06-08 15:48:49 -07:00
Tony Tam
637ee77d66 added script, fixed templates 2015-06-08 15:40:05 -07:00
Ron
fb989fcd0e Integrated UI with the generator's packaging process 2015-06-08 16:25:37 -04:00
Tony Tam
64ea3f8177 rebuilt 2015-06-07 20:50:35 -07:00
Tony Tam
aaa0603e29 rebuilt, added back imports 2015-06-07 20:47:22 -07:00
Tony Tam
450edae160 fixed imports 2015-06-07 20:35:56 -07:00
Tony Tam
4f0198dd13 rebuilt, fixed test imports 2015-06-07 20:30:41 -07:00
Ron
56714e6c07 Code fixes after reformatting 2015-06-07 23:20:34 -04:00
Ron
aa0586c666 Dependency update 2015-06-07 11:56:34 -04:00
Ron
8ee8eddcff Code reformatting 2015-06-07 11:56:26 -04:00
Ron
1c2d0656b0 Code reformatting 2015-06-07 11:56:08 -04:00
Ron
22d7db2cb4 url changes 2015-06-07 11:46:11 -04:00
Ron
96107193e9 updated reverb references 2015-06-07 11:18:49 -04:00
Ron
1a39678206 Refactoring 2015-06-07 11:05:00 -04:00
Tony Tam
6c57810128 rebuilt 2015-06-07 00:08:01 -07:00
Tony Tam
8c340d52a4 updated packages 2015-06-06 23:58:36 -07:00
Tony Tam
1df3ed4487 repackaged 2015-06-06 23:44:20 -07:00
Tony Tam
0c1657d744 updated package 2015-06-06 23:43:34 -07:00
Tony Tam
44af46c9b3 updated files 2015-06-06 23:11:28 -07:00
Tony Tam
18eb3cde97 updated files 2015-06-06 23:11:20 -07:00
Ron
776508759d Merge pull request #834 from xhh/fix-package
Fix package name for generator/online/Generator.java
2015-06-05 23:26:43 -04:00
xhh
6a7fa67581 Fix package name in test 2015-06-06 10:43:04 +08:00
xhh
3f97d63886 Fix package name for generator/online/Generator.java 2015-06-06 09:01:08 +08:00
Tony Tam
c3d2a581c9 Merge pull request #790 from xhh/java-accept-contenttype
Minor improvement to Java API client accept and content-type header
2015-06-05 17:51:23 -07:00
xhh
d345283ab5 Merge branch 'develop_2.0' into java-accept-contenttype
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/Java/api.mustache
	samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
	samples/client/petstore/java/src/test/java/io/swagger/client/ApiClientTest.java
2015-06-06 08:46:19 +08:00
Tony Tam
ddbef8b25d implemented processOpts to avoid clobbering by superclass 2015-06-05 11:40:30 -07:00
Tony Tam
d2cb05f14f Merge pull request #797 from geekerzp/develop_2.0_python_auth
[Python] Add authentication support (API key, HTTP basic)
2015-06-05 09:15:54 -07:00
Tony Tam
3fe2169ffa Merge branch 'Hadou1-Generic_API_Exception' into develop_2.0 2015-06-05 08:46:22 -07:00
Tony Tam
ab5b2da21a Merge branch 'Generic_API_Exception' of ssh://github.com/Hadou1/swagger-codegen into Hadou1-Generic_API_Exception 2015-06-05 08:46:02 -07:00
Tony Tam
b4f153c202 Merge pull request #826 from xhh/java-auth
[Java] Add authentication support (API key, HTTP basic)
2015-06-05 08:45:08 -07:00
Tony Tam
0d09d43257 Merge pull request #823 from wing328/fix_file_rename
[C#] Fix ApiException file name
2015-06-05 08:43:08 -07:00
Tony Tam
98c303042e Merge pull request #829 from wing328/php_support_map
[PHP] bug fix for map, added test case
2015-06-05 08:41:58 -07:00
wing328
d0f9345c5a fix php map, add test case for get inventory 2015-06-05 21:57:12 +08:00
xhh
fffc5d7c35 Move authentications into ApiClient 2015-06-05 20:00:32 +08:00
Fredrik Gustafsson
e737964f66 minor refactoring 2015-06-05 13:51:52 +02:00
Fredrik Gustafsson
8f2e84d263 Merge branch 'develop_2.0' into Generic_API_Exception
Conflicts:
	modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
2015-06-05 12:47:48 +02:00
xhh
947935f3d9 Merge remote-tracking branch 'origin/develop_2.0' into java-auth
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/Java/api.mustache
	samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
	samples/client/petstore/java/src/main/java/io/swagger/client/Configuration.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
	samples/client/petstore/java/src/test/java/io/swagger/client/ConfigurationTest.java
	samples/client/petstore/java/src/test/java/io/swagger/petstore/test/PetApiTest.java
2015-06-05 18:43:49 +08:00
Fredrik Gustafsson
277287a341 Merge branch 'develop_2.0' of https://github.com/Hadou1/swagger-codegen into develop_2.0
Conflicts:
	modules/swagger-codegen/src/main/resources/csharp/api.mustache
2015-06-05 12:33:49 +02:00
wing328
5a75eba42b regenerated perl sample 2015-06-05 18:30:58 +08:00
Fredrik Gustafsson
31c6a0a9da Extended the api-class generation by a interface generation 2015-06-05 12:29:25 +02:00
Fredrik Gustafsson
a1f156ca19 Updated 'api.mustache' to generate asynchronous methods aswell 2015-06-05 11:39:15 +02:00
geekerzp
eb90b907e7 rebuild python client 2015-06-05 17:02:38 +08:00
wing328
61a7d848f7 rename files in csharp and perl to fix issue 2015-06-05 17:00:11 +08:00
xhh
d70742119b Update unit tests 2015-06-05 16:45:19 +08:00
xhh
622b5c179a Merge remote-tracking branch 'origin/develop_2.0' into java-accept-contenttype
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
	modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
	modules/swagger-codegen/src/main/resources/Java/api.mustache
	samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
	samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
2015-06-05 16:31:21 +08:00
geekerzp
ddc5293e6a updated api.mustache of python. 2015-06-05 16:19:49 +08:00
geekerzp
a30f537f5f fixed typo 2015-06-05 16:19:49 +08:00
geekerzp
813c0119aa added test case for 500 response of python client 2015-06-05 16:19:49 +08:00
geekerzp
8ef4c4401e updated rest.mustache of python client 2015-06-05 16:19:48 +08:00
geekerzp
5fbda0e206 added test case for 404 response of python client 2015-06-05 16:19:48 +08:00
geekerzp
fbe327ac2f Updated PythonClientCodegen.java
* updated method apiFileFolder.
* udpated method modelFileFolder.
2015-06-05 16:19:48 +08:00
geekerzp
ab6f327f35 Updated python client.
* Rename `ResponseError` exception to `ApiException`
* Use `File.separatorChar` to build file path in
  PythonClientCodegen.java
* Rename `config.py` module to `configuration.py`
* Rename `swagger.py` module to `api_client.py`
2015-06-05 16:19:48 +08:00
geekerzp
51887c64b5 Updated python codegen.
Use File.separatorChar to create invokerPacakge variable instread of '\'
char.
2015-06-05 16:17:29 +08:00
geekerzp
654a73c5a8 rebuild python client 2015-06-05 16:17:29 +08:00
geekerzp
eac884d85b updated ApiClient of python sdk. 2015-06-05 16:16:48 +08:00
geekerzp
d7aaaea0df updated config.py of python client. 2015-06-05 16:15:57 +08:00
geekerzp
b09250ed33 added authentication for python client.
completed.
2015-06-05 16:15:57 +08:00
geekerzp
0ca97e4b68 added authentication for python client.
Not completed
2015-06-05 16:15:14 +08:00
Tony Tam
59ca8bd986 Merge pull request #821 from geekerzp/develop_2.0_objc_test
[Objc] Update test case
2015-06-05 00:55:57 -07:00
Tony Tam
e1393d1912 Merge pull request #817 from who/develop_2.0
[Android] Enabling cli config options for android generator
2015-06-05 00:53:20 -07:00
Tony Tam
ddb3bd5477 Merge pull request #816 from geekerzp/develop_2.0_objc_auth
[Objc] Add authentication support (API key, HTTP basic)
2015-06-05 00:52:35 -07:00
Tony Tam
2ec18a1397 Merge branch 'wing328-php_object_support' into develop_2.0 2015-06-05 00:52:06 -07:00
Tony Tam
34072faccd merged 2015-06-05 00:51:52 -07:00
Tony Tam
26d9215e43 Merge pull request #808 from wing328/csharp_api_instance
[C#] Added ApiClient (Pluggable) and authentication (API key and HTTP basic auth)
2015-06-05 00:42:44 -07:00
Tony Tam
496e06a373 Merge pull request #806 from geekerzp/develop_2.0_python_https
[Python] Verified HTTPS with SSL/TLS cert.
2015-06-05 00:42:13 -07:00
Tony Tam
513bd17610 Merge pull request #803 from wing328/objc_fix_filepath
[ObjC] Minor fix to output path
2015-06-05 00:41:52 -07:00
Tony Tam
d9fcb777c1 Merge pull request #799 from wing328/perl_apiinvoker_instance
[Perl] Make API client more pluggable (ref: #778)
2015-06-05 00:41:26 -07:00
Tony Tam
05700a6799 Merge pull request #794 from wing328/php_debug_switch
[PHP] add debug switch
2015-06-05 00:40:32 -07:00
Tony Tam
29bd743391 Merge pull request #793 from geekerzp/develop_2.0_objc_apiclient
Make objc client more pluggable
2015-06-05 00:40:17 -07:00
Tony Tam
13e14652e3 Merge pull request #787 from geekerzp/develop_2.0_python_apiclient
[Python] Make API client more pluggable
2015-06-05 00:38:11 -07:00
Tony Tam
b41e88e83a Merge pull request #785 from wing328/csharp_add_restsharp_dll
[C#] Added RestSharp.dll and updated compile.bat
2015-06-05 00:38:05 -07:00
Tony Tam
cbc4da58ab Merge pull request #783 from xhh/ruby-auth
[Ruby] Add authentication support (API key, HTTP basic)
2015-06-05 00:36:12 -07:00
Tony Tam
aecb4adf4a Merge pull request #791 from xhh/java-api-client
[Java] Make API client more pluggable
2015-06-05 00:36:05 -07:00
wing328
ba227b7e72 rename api client 2015-06-04 21:19:16 +08:00
wing328
0423e0a2df support object response 2015-06-04 21:12:26 +08:00
wing328
afe816efb6 remove unused file 2015-06-04 20:30:41 +08:00
geekerzp
58feda7c8e Updated test case testCreateAndGetPet of objc client. 2015-06-04 16:44:12 +08:00
Fredrik Gustafsson
217765998d Extended the APIException by ErrorContent from response body 2015-06-03 16:23:45 +02:00
xhh
0ffe53933d Bug fix: "null" was used as post body for empty form parameters
The form parameters could be empty when all of them are optional and no
values are assigned to them.
2015-06-03 21:17:42 +08:00
xhh
cf4b4de970 Skip null header/form parameters
and fix the bug of getting file name for file parameter
2015-06-03 20:26:14 +08:00
xhh
2e285ed562 Support skipping SSL certification verification
in Ruby clients by e.g.:

    SwaggerClient::Swagger.configure do |config|
      config.verify_ssl = false
    end
2015-06-03 12:49:09 +08:00
wing328
9b919c54dd added http basic auth test 2015-06-03 11:21:10 +08:00
xhh
9618960558 Merge branch 'develop_2.0' into ruby-auth 2015-06-03 11:19:40 +08:00
wing328
fceaed34e4 rename apiclient 2015-06-03 10:19:07 +08:00
xhh
eb4973237b Add comments to code 2015-06-03 10:09:36 +08:00
wing328
9c747e3e37 fix query parameters 2015-06-03 09:21:45 +08:00
wing328
3d16d8b2b6 fix header 2015-06-03 08:34:45 +08:00
Andrew B
1a75489b42 Enabling cli config options for android generator 2015-06-02 09:04:50 -07:00
xhh
24c29acc09 Merge branch 'develop_2.0' into java-api-client
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
2015-06-02 22:36:55 +08:00
Ole Lensmar
2662167372 Merge pull request #805 from hyeghiazaryan/develop_2.0
Support for file based config. Implementation for #616.
2015-06-02 09:33:52 -04:00
Ole Lensmar
e98320862c Merge pull request #706 from 0legg/feature/retrofit-templates
[WIP] add template for Retrofit and Gson
2015-06-02 09:09:41 -04:00
wing328
2d6a7092e3 removed unused file 2015-06-02 20:43:11 +08:00
wing328
7080983521 return exception instead of null for 404, add properties to api exception class 2015-06-02 17:25:38 +08:00
xhh
19540ed7f0 Store response headers and body in ApiException 2015-06-02 15:33:44 +08:00
geekerzp
699df0029b updated comments for objc client. 2015-06-02 15:33:33 +08:00
geekerzp
86971ee752 added comments for objc client 2015-06-02 11:50:47 +08:00
Hrachya Yeghiazaryan
d258a6c1c2 Merge branch 'develop_2.0' of https://github.com/hyeghiazaryan/swagger-codegen into develop_2.0 2015-06-01 10:44:23 -07:00
hrachya
3e0913a813 removing generic header comments 2015-06-01 10:43:23 -07:00
wing328
762a3279ea clean up test.php 2015-06-01 14:50:57 +08:00
wing328
f357f4c9d7 fix default header 2015-06-01 14:24:09 +08:00
wing328
8d708c2442 add test case for default header 2015-05-31 11:17:59 +08:00
wing328
83d069d053 add support for obj, remove null from serialized json string 2015-05-31 09:49:24 +08:00
geekerzp
b5429d9e8e Added authentication for objc client. 2015-05-30 18:04:20 +08:00
Richie Azaria
0996901e72 add documentation -c option and config-help 2015-05-29 13:01:42 -07:00
Oleg Godovykh
ec08d31031 add template for Retrofit and Gson 2015-05-29 12:23:18 -04:00
Ron
ca46405850 Update README.md 2015-05-29 08:53:06 -04:00
Ron
7d7ed15fdc Update README.md 2015-05-29 08:52:48 -04:00
Ron
34315f7338 Create LICENSE 2015-05-29 08:52:29 -04:00
Ron
26a22a30a1 Create LICENSE 2015-05-29 08:52:03 -04:00
Fredrik Gustafsson
41e4fc79ae Extended the api-class generation by a interface generation 2015-05-29 12:19:28 +02:00
Fredrik Gustafsson
049299f07f Updated 'api.mustache' to generate asynchronous methods aswell 2015-05-29 10:53:48 +02:00
wing328
5f36ad3b75 add authentication support 2015-05-29 16:43:27 +08:00
geekerzp
18cf6bcfa6 Updated python client.
Verified HTTPS with SSL/TLS.
2015-05-29 15:09:19 +08:00
xhh
a8c526efd5 Add unit tests for Configuration and ApiClient 2015-05-29 12:08:42 +08:00
xhh
62c8f9e1e2 Rebuild Java Petstore sample 2015-05-29 12:08:42 +08:00
xhh
ac134c0afa Make ApiClient more pluggable for Java
- Rename ApiInvoker to ApiClient
- Make ApiClient pluggable by allowing setting the ApiClient field of
  API classes
- Introduce a Configuration class, containing the default
  ApiClient (which is also customizable)
- Move basePath from API class to ApiClient
- Change static methods in ApiClient to instance level
2015-05-29 12:08:42 +08:00
xhh
a29c3abeb8 Use File.separatorChar in Ruby generator, add comments 2015-05-29 12:05:47 +08:00
xhh
623a1278cf Add test case for API key auth 2015-05-29 11:57:46 +08:00
xhh
e52694cde0 Regenerate Ruby Petstore sample 2015-05-29 11:57:46 +08:00
xhh
95813714a5 Add support of HTTP basic and API key auth to Ruby codegen 2015-05-29 11:57:46 +08:00
xhh
6a6473ede3 Allow omitting username/password for HTTP basic auth 2015-05-29 11:55:48 +08:00
xhh
e10e1f5249 Refactor auth method naming, add comments 2015-05-29 11:29:06 +08:00
xhh
6eb1a89205 Add authentication helper methods and test cases 2015-05-29 11:28:03 +08:00
xhh
4d25d264c4 Merge remote-tracking branch 'origin/develop_2.0' into java-auth
Conflicts:
	modules/swagger-codegen/src/main/resources/Java/apiInvoker.mustache
	samples/client/petstore/java/src/main/java/io/swagger/client/ApiInvoker.java
2015-05-29 10:08:50 +08:00
hrachya
ba7025d54b Adding config-help command 2015-05-28 15:02:32 -07:00
hrachya
1f360961e0 Simplifying CliOption class 2015-05-28 14:55:36 -07:00
hrachya
08647b337f fixing property name 2015-05-28 13:08:52 -07:00
hrachya
c5a7800ec6 fixing typo 2015-05-28 13:02:30 -07:00
hrachya
26a2290078 adding classPrefix, sourceFolder, projectName cli options to objc 2015-05-28 13:01:54 -07:00
wing328
2edcd82094 minor fix to output path 2015-05-28 19:16:26 +08:00
wing328
165efdbdbb rename apiinvoker to apiclient, add configuration, make apiclient an instance 2015-05-28 18:24:03 +08:00
wing328
412fcf11f9 update file separator 2015-05-28 15:19:05 +08:00
wing328
e993d08563 rename APIClient to ApiClient, APIClientException to APIException 2015-05-28 15:06:31 +08:00
wing328
61bc652229 use file separator 2015-05-28 14:34:39 +08:00
wing328
699f6fff44 update file path 2015-05-28 14:18:05 +08:00
wing328
1a868abdfa rename APIClient to ApiClient 2015-05-28 10:51:36 +08:00
hrachya
c9c58cbe4c new -c/--config option for swagger-cli to specify json config file path
setting options passed in config file if those were allowed by lang specific CodegenConfig
2015-05-27 17:37:07 -07:00
hrachya
c3055c7cc4 Adding Config and ConfigParser classes 2015-05-27 17:30:42 -07:00
hrachya
2cca1a8c2c Changing templateDir back to explicit option for cli 2015-05-27 17:22:44 -07:00
hrachya
a9e767cbd8 Rolling back changes to deprecated class 2015-05-27 17:19:34 -07:00
Ron
1657f2e5f7 Merge pull request #801 from rlo2014/develop_2.0
Removing comment (// do some magic!) that is no longer necessary and …
2015-05-27 19:48:51 -04:00
rlo2014
e93a377982 Removing comment (// do some magic!) that is no longer necessary and confusing. After olensmar refactor of jax-rs codegen, magic/implementation should be placed in the delegate/implementation as opposed to the api itself. Any logic put in api itself will be overwritten with the next code gen, whereas the delegate implemenation will remain intact. 2015-05-27 14:55:28 -07:00
wing328
2c12312b97 update user agent and add more test cases 2015-05-27 22:44:56 +08:00
wing328
866b546cfd make api client pluggable 2015-05-27 17:56:39 +08:00
hrachya
74f5c769f9 removing extra file, was committed by mistake 2015-05-26 17:10:19 -07:00
hrachya
1e09f5149e Add 'invokerPackage', 'groupId', 'arifactId', 'artifactVersion', 'sourceFolder' command line options for java (and all the derived ones jaxrs, spring-mvc ...)
Add processOpts override to process java  specific options
Move supporting file initialization from constructor to processOpts, since it uses some of the options that are not yet set in the constructor
Add setters
2015-05-26 17:05:53 -07:00
hrachya
e08a5a9d83 Add 'modelPackage' and 'apiPackage' as command line options
Add setters for modelPackage and apiPackage
2015-05-26 17:01:07 -07:00
hrachya
d7dec5a43d Use new functionality to add 't' as a command line option to set 'templateDir' 2015-05-26 16:02:27 -07:00
hrachya
33436d62c3 Get all cliOptions for available codegen configs and add to command line options
Add all the specified ones to clientOpts properties
2015-05-26 15:57:01 -07:00
hrachya
9f1504062a add List<CliOption> cliOptions() method to CodegenConfig interface with default implementation in DefaultCodegen 2015-05-26 15:52:25 -07:00
hrachya
f8cafaaee7 new CliOption class for wrapping org.apache.commons.cli.Option 2015-05-26 15:49:32 -07:00
wing328
4d1d163a73 update php template to debug curl 2015-05-26 23:52:35 +08:00
wing328
171bf969c7 add debug switch to configuration 2015-05-26 23:20:34 +08:00
geekerzp
ca145297e9 Updated ApiClient of objc sdk.
When create api instance, if we don't pass the `apiClient` parameter,
then get api client instance from the pool.
2015-05-26 18:00:45 +08:00
wing328
c2c43bba37 make datetime nullable 2015-05-26 17:48:52 +08:00
xhh
951b7a9075 Do not use JSON as default Accept header when no produces present 2015-05-26 10:35:49 +08:00
wing328
f807e34b2b refactor csharp (no compile error) 2015-05-25 18:21:17 +08:00
xhh
aa03be7f76 Clean up old code 2015-05-25 17:25:32 +08:00
xhh
ed14c515bf Add comments to string utility methods 2015-05-25 16:01:57 +08:00
geekerzp
2d545c7f0b updated ApiClient of python sdk.
Change staticmethod to instance method.
2015-05-25 15:29:31 +08:00
geekerzp
3beeb6125e updated ApiClient of python sdk.
When create api instance, if we don't pass the `api_client` parameter,
then use the default api_client in `config` module.
2015-05-25 14:31:55 +08:00
xhh
19a8ac4841 Add unit tests 2015-05-25 12:32:24 +08:00
xhh
85d0e08a80 Rebuild Java Petstore client 2015-05-25 12:31:54 +08:00
xhh
fff8972a77 Extract utility methods to the StringUtil class
and ignore case when comparing Accept/Content-Type
2015-05-25 12:29:41 +08:00
wing328
92dd5cab93 add restsharp.dll, update compile.bat 2015-05-25 11:44:08 +08:00
xhh
141b580c8c Minor improvement to Java API client accept and content-type header 2015-05-24 08:52:14 +08:00
Tony Tam
095771d345 Merge pull request #738 from tomtit/issue429
Fixes #429: Handling of composed models has been added.
2015-05-23 15:10:38 -07:00
Alexey Nechaev
5d581c3b03 Fixes #429: Handling of composed models has been added. 2015-05-24 00:54:25 +03:00
Tony Tam
087c28dae4 rebuilt client 2015-05-23 09:04:46 -07:00
Tony Tam
85c37fbe27 fix for #781 2015-05-23 09:04:40 -07:00
Tony Tam
ad9b790712 updated sample 2015-05-23 09:04:06 -07:00
Tony Tam
82436c5b44 Merge pull request #780 from geekerzp/develop_2.0_objc_contenttype
Minor improvement to Objc API Client 'accept' and 'content-type' header
2015-05-23 08:54:53 -07:00
Tony Tam
156afa7795 Merge pull request #778 from wing328/php_apiclient_instance
[PHP] Make API client more pluggable
2015-05-23 08:54:33 -07:00
Tony Tam
74dc05bbf5 Merge pull request #776 from wing328/php53_fix_warning
[PHP] Fix warning/error related to PHP5.3
2015-05-23 08:53:52 -07:00
Tony Tam
b6d206aff7 Merge pull request #774 from geekerzp/develop_2.0_python_contenttype
Minor improvement to Python API Client 'accept' and 'content-type' header
2015-05-23 08:53:34 -07:00
Tony Tam
e3c116312b Merge pull request #773 from hyperworks/master
Adds isPrimitiveType flag to CodegenParameter.
2015-05-23 08:53:06 -07:00
Tony Tam
5527932a8e Merge branch 'xhh-ruby-void-response' into develop_2.0 2015-05-23 08:52:15 -07:00
Tony Tam
3cb9d094d3 Merge branch 'ruby-void-response' of ssh://github.com/xhh/swagger-codegen into xhh-ruby-void-response 2015-05-23 08:49:28 -07:00
Tony Tam
d83a275b6e Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-23 08:48:40 -07:00
Tony Tam
98d5dd727b Merge branch 'tkQubo-feature/swift-PromiseKit' into develop_2.0 2015-05-23 08:48:28 -07:00
Tony Tam
565f054b79 merged 2015-05-23 08:48:18 -07:00
Tony Tam
f4aee62fb4 Merge pull request #775 from wing328/csharp_fix_object_type
[C#] Fix "object' type for response
2015-05-23 08:43:14 -07:00
Tony Tam
864f0f5a3a Merge branch 'sosso-origin/develop_2.0' into develop_2.0 2015-05-23 08:34:01 -07:00
Tony Tam
d447c423b5 updated test to get expected value 2015-05-23 08:33:48 -07:00
Tony Tam
f9ed8a9a08 updated test to get expected value 2015-05-23 08:33:40 -07:00
Tony Tam
3638d79291 updated test to get expected value 2015-05-23 08:33:27 -07:00
geekerzp
2514f3aa08 update SWGApiClient.h of objc client. 2015-05-23 15:29:38 +08:00
geekerzp
3d3cbe115e minor improvement to objc client accept and content-type header 2015-05-23 15:22:12 +08:00
wing328
691838c47d add test case for api client instance 2015-05-23 10:35:19 +08:00
wing328
612abf134b api client as instance (not static class) 2015-05-22 22:09:51 +08:00
geekerzp
87a730b5a2 Merge branch 'develop_2.0' into develop_2.0_objc_contenttype
Conflicts:
	samples/client/petstore/objc/client/SWGPetApi.m
2015-05-22 17:32:57 +08:00
geekerzp
8d0efd812c updated unittests of python client 2015-05-22 15:50:09 +08:00
geekerzp
245ce642ce add test cases for ApiClient.select_header_accept and
ApiClient.select_header_content_type of python client.
2015-05-22 15:28:36 +08:00
wing328
df4b952312 fix object type without ref for CSharp 2015-05-22 14:12:53 +08:00
xhh
43cfc7d401 Setup authentications in test cases 2015-05-22 12:07:08 +08:00
xhh
16ba2a54ea Add test cases for API key and HTTP basic auth 2015-05-22 11:17:44 +08:00
geekerzp
bc9abceef3 removed temp files from python client 2015-05-22 11:12:35 +08:00
geekerzp
8a311d693b updated python client samples 2015-05-22 10:50:11 +08:00
geekerzp
52807c0724 minor improvement to python client accept and content-type header 2015-05-22 10:45:38 +08:00
William Cheng
fa15f58506 fix warning/error in php5.3 2015-05-22 05:15:46 +08:00
xhh
f616605e7e Regenerate Java Petstore sample 2015-05-21 22:09:08 +08:00
xhh
3d4b5a10c9 Add support of HTTP basic and API key auth to Java codegen 2015-05-21 22:05:46 +08:00
Ron
2b7bbd9513 Merge pull request #772 from tomtit/issue771
Fixes #771: Unit test has been fixed after merge.
2015-05-21 06:07:00 -06:00
Chakrit Wichian
89e3bcc4bb Adds isPrimitiveType flag to CodegenParameter.
This is required in some languages like Obj-C where there is no automatic value boxing and
handling of primitive types require extra work compared to non-primitive types.

Case in point: BOOL type. To assign BOOL into a dictionary, one needs to box it into an
(NSValue *) instance, so to build a dictionary for sending form data, for example, you
cannot do this in the template:

    dict["{{paramName}}"] = {{paramName}};

Because if the parameter ends up being of type BOOL, an error about boxing values will be
generated:

    BOOL boolValue = NO;
    dict["boolValue"] = boolValue;
                        ^---------------- Cannot do the assignment here.

The fix is to wrap it in @() like so:

    BOOL boolValue = NO;
    dict["boolValue"] = @(boolValue);

So a flag is needed in CodegenParameter so we can selectively emit the right boxing or
non-boxing assignment in the templates.
2015-05-21 15:28:57 +07:00
Alexey Nechaev
a590239df9 Fixes #771: Unit test has been fixed after merge. 2015-05-21 10:49:20 +03:00
Tony Tam
0c3f7a54cd Merge pull request #770 from swagger-api/jaxrs-interface-generation
Jaxrs interface generation
2015-05-20 22:52:00 -07:00
Tony Tam
99a11636da rebuilt 2015-05-20 22:51:30 -07:00
Tony Tam
3a2f258517 Merge branch 'geekerzp-develop_2.0_python_urllib3' into develop_2.0 2015-05-20 22:51:09 -07:00
Tony Tam
3629a190ae merged 2015-05-20 22:50:59 -07:00
Tony Tam
715a9b8678 merged 2015-05-20 22:50:41 -07:00
Tony Tam
4187be2dc3 Merge pull request #767 from geekerzp/develop_2.0_python_model
Pretty print for models of python client
2015-05-20 22:46:41 -07:00
Tony Tam
dd70a13c02 Merge branch 'wing328-php_auth_setting' into develop_2.0 2015-05-20 22:46:02 -07:00
Tony Tam
c8a56add5d merged 2015-05-20 22:45:52 -07:00
Tony Tam
01ebdb6122 Merge pull request #763 from tomtit/issue728
Fixed #728: Handling of recursive model definitions has been improved.
2015-05-20 22:42:37 -07:00
Tony Tam
e66f9d7fce Merge pull request #760 from geekerzp/develop_2.0_objc_required_parameter
Fix required parameter validation for Objc
2015-05-20 22:42:10 -07:00
Tony Tam
35f63b3f6a Merge branch 'wing328-php-improve-header' into develop_2.0 2015-05-20 22:41:23 -07:00
Tony Tam
9bf9b3edb7 rebuilt 2015-05-20 22:41:09 -07:00
Tony Tam
92b1a13438 Merge branch 'swinz-develop_2.0_fixSpringMVCRequestParamDefaultValue' into develop_2.0 2015-05-20 22:37:59 -07:00
Tony Tam
515f5440a1 merged 2015-05-20 22:37:51 -07:00
Tony Tam
632480787d Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-20 22:35:23 -07:00
Tony Tam
e4faa82cfa Merge branch 'geekerzp-develop_2.0_objc_iso8601' into develop_2.0 2015-05-20 22:35:12 -07:00
Tony Tam
779915a51f rebuilt 2015-05-20 22:34:54 -07:00
Tony Tam
c509bbcb99 updated 2015-05-20 22:34:29 -07:00
Tony Tam
8231e7e36a Merge branch 'develop_2.0_objc_iso8601' of ssh://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_iso8601 2015-05-20 22:29:26 -07:00
Tony Tam
ee145aebe7 Merge pull request #743 from lugaru1234/model_ids_with_dots
Fixed #593: Python code failure caused by Model IDs with dots has been fixed
2015-05-20 22:27:53 -07:00
Tony Tam
11dd7784f8 rebuilt 2015-05-20 22:20:51 -07:00
Tony Tam
6fe6a6daa7 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-20 22:16:55 -07:00
Tony Tam
e921b7cbdc Merge branch 'Helmsdown-mime-type-fixes' into develop_2.0 2015-05-20 22:16:38 -07:00
Tony Tam
fd928a3d16 merged 2015-05-20 22:16:24 -07:00
Tony Tam
5a4d3317c2 Merge pull request #723 from swinz/develop_2.0_fixSpringMVCHeaderRequired
SpringMVC template is ignoring the required attribute in swagger definition when generating RequestHeader annotation
2015-05-20 22:14:29 -07:00
Tony Tam
ab23cccab4 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-20 22:13:03 -07:00
Tony Tam
7d4cc82077 Merge branch 'who-feature/android-maven-artifact-publishing' into develop_2.0 2015-05-20 22:12:45 -07:00
Tony Tam
e58f8db9aa merged 2015-05-20 22:12:37 -07:00
Tony Tam
b059910a01 Merge pull request #700 from wing328/csharp_restcsharp
Use RestSharp for CSharp API client
2015-05-20 21:52:28 -07:00
Ole Lensmar
19de558f4a Merge branches 'develop_2.0' and 'jaxrs-interface-generation' of https://github.com/swagger-api/swagger-codegen into jaxrs-interface-generation
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java
2015-05-20 22:51:49 -06:00
Tony Tam
2d9772e7a9 Merge branch 'tomtit-issue646' into develop_2.0 2015-05-20 21:48:14 -07:00
Tony Tam
0c1bdc0fd6 merged 2015-05-20 21:48:03 -07:00
Tony Tam
e592d1b46b Merge pull request #660 from denyago/master
Improve README for OS X Users with random Java versions
2015-05-20 21:42:40 -07:00
Tony Tam
8dbb1aa8e9 Merge pull request #654 from kvelakur/master
Issue #642 - Removing the unnecesary \n added to generated example reque...
2015-05-20 21:42:25 -07:00
Tony Tam
ef5cb5021b Merge branch 'cchafer-akka-scala' into develop_2.0 2015-05-20 21:41:24 -07:00
Tony Tam
ff81789b37 merged 2015-05-20 21:41:17 -07:00
Tony Tam
e6efcdb6af added files, updated parser version 2015-05-20 21:39:09 -07:00
xhh
9cf4c66331 Update method returning value comment 2015-05-21 11:30:30 +08:00
Tony Tam
956a3c024c Merge pull request #766 from swagger-api/core-1.5.2-M2-compatibility
updated core dependency version to 1.5.2-M2 with related fixes
2015-05-20 17:55:01 -07:00
Ole Lensmar
efb40e149f brought back scala tests 2015-05-20 18:23:44 -06:00
Ole Lensmar
a6876b8028 Merge branches 'core-1.5.2-M2-compatibility' and 'jaxrs-interface-generation' of https://github.com/swagger-api/swagger-codegen into jaxrs-interface-generation 2015-05-20 18:14:54 -06:00
Ole Lensmar
713e7a6584 updated core dependency version to 1.5.2-M2 with related fixes 2015-05-20 18:06:37 -06:00
Ole Lensmar
778ce0b9f6 Merge branches 'develop_2.0' and 'jaxrs-interface-generation' of https://github.com/swagger-api/swagger-codegen into jaxrs-interface-generation 2015-05-20 17:03:51 -06:00
Ole Lensmar
05268c2742 added system property for setting impl folder 2015-05-20 16:50:26 -06:00
Ole Lensmar
17d8d14cc8 defaulted sources to go to src/gen/main and added possibility to set impl folder via system property at command-line 2015-05-20 16:49:50 -06:00
wing328
4f310cd7b1 update function comment 2015-05-20 22:13:24 +08:00
geekerzp
9ff0d90853 Updated python models.
Overwrite the instance method `__repr__`,
make the `pprint` method output properties infos of the models.
2015-05-20 22:05:34 +08:00
wing328
6e13403a37 fix http basic auth, add test cases for new api client without host 2015-05-20 21:55:16 +08:00
xhh
8bf84aabe5 Add test case for nil return value 2015-05-20 21:13:20 +08:00
xhh
50a767ef03 Regenerate Ruby Petstore sample 2015-05-20 21:13:02 +08:00
xhh
4702285184 Correct indentation 2015-05-20 21:08:14 +08:00
xhh
dde73d592d Return nil in Ruby clients for operations that have no response type defined 2015-05-20 21:06:42 +08:00
wing328
9a1dedbe76 add test case (getPetbyId), remove old authenetication (only supports header) 2015-05-20 18:43:34 +08:00
wing328
20439e646f add test case and prefix support 2015-05-20 18:25:35 +08:00
wing328
06c7a6a109 add todo for oauth, support multiple api key 2015-05-20 17:13:52 +08:00
wing328
278a653154 add authentication 2015-05-20 17:13:52 +08:00
geekerzp
3a8b149f09 minor improvement to objc api client accept and content-type header 2015-05-20 15:52:00 +08:00
Tony Tam
deca6a0329 Merge pull request #662 from xhh/ruby-module-structure
Organize the generated Ruby code into a module structure
2015-05-19 20:16:52 -07:00
kubo_takaichi
7205407818 Add another date formatter (which should be externalized though) 2015-05-20 11:27:45 +09:00
kubo_takaichi
2f6b975669 Remove final mark 2015-05-20 11:27:45 +09:00
kubo_takaichi
16a4b60526 Handle NSNull 2015-05-20 11:27:45 +09:00
kubo_takaichi
9cf1835230 Fix bug 2015-05-20 11:27:45 +09:00
kubo_takaichi
3623a0dd56 Modify Cartfile 2015-05-20 11:27:45 +09:00
kubo_takaichi
e0c0d2a72a Remove dependency on SwiftyJSON 2015-05-20 11:27:45 +09:00
kubo_takaichi
dbfc46658f Add once-removed Array extension method 2015-05-20 11:27:45 +09:00
kubo_takaichi
bb3ec04ed1 Introduce Decoders class 2015-05-20 11:27:45 +09:00
kubo_takaichi
be7fccce68 Update JSONEncodable implementations 2015-05-20 11:27:45 +09:00
kubo_takaichi
f21d8503d5 Add manager storage to prevent request cancellation 2015-05-20 11:27:45 +09:00
kubo_takaichi
063e6d062d Introduce decodable array and dictionary 2015-05-20 11:27:45 +09:00
kubo_takaichi
0b7d758077 Add extension methods for primitives 2015-05-20 11:27:45 +09:00
kubo_takaichi
5dfa753f5c Do refactor and add extension methods 2015-05-20 11:27:45 +09:00
kubo_takaichi
23d714f2f1 Add swift code generator 2015-05-20 11:27:45 +09:00
kubo_takaichi
f627c81399 Remove some characters from param name and operation id
(since swagger-doc emits improper characters)
2015-05-20 11:27:45 +09:00
xhh
0fb1918196 Revert unnecessary changes on whitespace 2015-05-20 10:13:29 +08:00
xhh
312f1c6f25 Avoid the importPath field 2015-05-20 09:23:45 +08:00
xhh
792059f195 Avoid warnings for ruby gem building 2015-05-20 09:23:45 +08:00
xhh
70c74d282f Fix tests 2015-05-20 09:23:45 +08:00
xhh
ab4975b7f1 Regenerate petstore ruby sample 2015-05-20 09:23:44 +08:00
xhh
6eaaa5cc69 Include base_object model into module structure 2015-05-20 09:23:44 +08:00
xhh
f766614b4d Clean old files generated 2015-05-20 09:23:44 +08:00
xhh
fcf1327c1f Rename swagger-client to swagger_client
according to guides from rubygems: http://guides.rubygems.org/name-your-gem/
2015-05-20 09:23:44 +08:00
xhh
b140f1f152 Fix example code in README.md of Ruby petstore sample 2015-05-20 09:23:44 +08:00
xhh
87904e8b69 Set version dynamically in ruby codegen
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
	samples/client/petstore/ruby/lib/swagger/version.rb
2015-05-20 09:23:44 +08:00
xhh
194e9e6f05 Make petstore tests pass 2015-05-20 09:23:43 +08:00
xhh
8dd7d3aacd Regenerate ruby petstore sample code 2015-05-20 09:23:43 +08:00
xhh
104bcc1f89 Organize generated Ruby code into a module 2015-05-20 09:23:43 +08:00
Fake Bob Dobbs
a55c03013d use the defaultValue for spring mvc RequestHeader annotations; carry over the required value if set for RequestPart annotations 2015-05-19 11:47:34 -04:00
Fake Bob Dobbs
b783363c56 move the defaultValues for Forms and Headers as well 2015-05-19 11:45:48 -04:00
Alexey Nechaev
f0e4ea1780 Fixed #728: Handling of recursive model definitions has been improved. 2015-05-19 18:36:03 +03:00
Tony Tam
6a336f2e1e Merge pull request #758 from xhh/fix-android-form-test
Fix test of updatePetWithForm for Android Petstore sample
2015-05-19 08:29:48 -07:00
Ron
312637c94b Merge pull request #762 from wing328/update_readme
Update README.md with new generators
2015-05-19 07:21:52 -06:00
William Cheng
e717f74a0a update readme with new generators 2015-05-19 21:15:09 +08:00
Nadezhda Makarkina
3dde19bb59 Fixed #593: Python code failure caused by Model IDs with dots has been fixed 2015-05-19 14:31:42 +03:00
geekerzp
a0abea4b72 added required parameters check for objc 2015-05-19 17:12:46 +08:00
wing328
5744bd0138 better exception using InvalidArgumentException 2015-05-19 16:21:06 +08:00
xhh
db9ca1a485 Fix test of updatePetWithForm for Android Petstore sample 2015-05-19 15:42:29 +08:00
wing328
af260cba41 update api client to support default header 2015-05-19 15:33:03 +08:00
geekerzp
a77ae51318 update python tests 2015-05-19 15:21:09 +08:00
wing328
5aad44e628 added back test case for updatePetWithForm 2015-05-19 10:15:36 +08:00
wing328
41e178e268 better accept and content-type for php, added test cases 2015-05-18 22:16:54 +08:00
Tony Tam
e068ad4494 Merge pull request #756 from wing328/perl_improve_accept_header
[Perl] better logic for accept and content-type, added test cases
2015-05-18 06:36:11 -07:00
wing328
7fc2f74851 remove commented code 2015-05-18 16:39:33 +08:00
wing328
abbea5ec4c better logic for accept and content-type, added test cases 2015-05-18 16:23:46 +08:00
Tony Tam
72a4d2df2f Merge pull request #755 from wing328/ruby_cleanup_sample
[Ruby] Cleanup Ruby Petstore sample and bug fix
2015-05-17 21:41:21 -07:00
William Cheng
05ac516ffa clean up ruby sample, remove commented code, bug fix 2015-05-18 04:30:26 +08:00
Tony Tam
01423d4a6b Merge pull request #753 from wing328/ruby_model_improve
[Ruby] bug fixes for posting with sub-models and enhancements (refactoring)
2015-05-17 09:34:20 -07:00
William Cheng
3de9b4bfc8 remove (duplicated) object_to_http_body and object_to_hash from swagger.rb 2015-05-17 23:47:55 +08:00
William Cheng
92a2011207 fix post model, update rspec 2015-05-17 23:38:51 +08:00
William Cheng
8710fbfde7 add base object 2015-05-17 23:36:13 +08:00
Ron
0c94b89e42 Merge pull request #750 from sebest/patch-1
Fix a typo in the README
2015-05-17 07:33:48 +02:00
Sebastien Estienne
9e382ecf9a Fix a typo in the README 2015-05-16 22:05:44 -07:00
Tony Tam
0e0e265a2a Merge pull request #746 from wing328/ruby_fix_contenttype
Minor improvement to Ruby API Client 'accept' and 'content-type' header
2015-05-16 09:13:58 -07:00
Tony Tam
d6ac7c5ecf Merge pull request #659 from wing328/add_php_unit_test
Bug fix for PHP client POST (model) and add more PHP test cases
2015-05-16 09:13:35 -07:00
Tony Tam
8501ffe240 Merge pull request #716 from ponelat/fix/click-on-return-type-in-dynamic-html
Fix/click on return type in dynamic html
2015-05-16 09:11:26 -07:00
Tony Tam
919bab0765 Merge pull request #717 from ponelat/fix/dyn-html-pos-error
Fix dynamic-html positioning of parameters
2015-05-16 08:56:51 -07:00
Ron
3e719d087f Merge pull request #715 from ponelat/fix/dead-css-include
html: build and remove dead css include
2015-05-16 17:23:49 +02:00
Tony Tam
472e2afd8e Merge pull request #749 from wing328/perl_add_unittest
Add unit testing for Perl
2015-05-16 06:56:53 -07:00
geekerzp
68b0259c47 updated readme.md of python 2015-05-16 18:05:06 +08:00
geekerzp
9809ce1d18 updated python unittests 2015-05-16 17:30:42 +08:00
William Cheng
7a5db5e665 add pom.xml for perl integration test 2015-05-16 16:44:32 +08:00
Tony Tam
6ec7cf5a9d updated request process 2015-05-16 01:09:01 -07:00
Tony Tam
f4cbd88e2c fixed ordering 2015-05-16 00:45:42 -07:00
William Cheng
9904c0e09f add unit testing for pet 2015-05-16 15:37:58 +08:00
Fake Bob Dobbs
e4f5243e54 add defaultValues value to the SpringMVC RequestParam annotation 2015-05-15 17:17:46 -04:00
Fake Bob Dobbs
33138c139f A parameter's default value is not flowing from the swagger definition to the actual API implementation. This change makes the property from the swagger def json available to the templates. 2015-05-15 16:55:49 -04:00
Tony Tam
a2d2deeb0c Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-15 11:27:16 -07:00
Tony Tam
b4674d6fc5 template updates, tests 2015-05-15 11:27:03 -07:00
wing328
1f6a19b684 minor improvement to ruby api client accept and content-type header 2015-05-15 20:58:59 +08:00
geekerzp
c06cb38d64 updated objc client to support iso8601 datetime format 2015-05-15 17:49:56 +08:00
Josh Ponelat
3bc319d534 dynamic-html: refactor parameters view 2015-05-15 09:28:57 +02:00
Josh Ponelat
30496ffdc3 html: remove dead css line 2015-05-15 09:22:40 +02:00
Josh Ponelat
3544136ab1 dynamic-html: make sure clicking on return type works 2015-05-15 09:21:54 +02:00
geekerzp
6826a1d7df updated readme.mustache in python client 2015-05-15 14:51:51 +08:00
geekerzp
d798b943f5 added python 2.7 and python 3.4 test environments 2015-05-15 14:38:06 +08:00
wing328
4466b6e15e add test case for upload file, improve error handling 2015-05-15 11:08:33 +08:00
Tony Tam
0248d6fd9f Merge pull request #677 from wing328/fix_swagger_type2
Fix PHP swagger type
2015-05-14 11:50:57 -04:00
Tony Tam
bc66894553 Merge pull request #688 from xhh/scala-form-params
Add form parameters support to Scala codegen
2015-05-14 11:50:42 -04:00
wing328
c12673a407 fix error handling for 4xx, 5xx returned by server 2015-05-14 14:16:12 +08:00
geekerzp
86e48ceef8 refactor python client using urllib3 2015-05-14 10:45:05 +08:00
Ole Lensmar
adcd0f4bb8 changed interface to abstract class instead so we can use Override annotation to warn if we get dead methods when the definitions changes 2015-05-13 15:58:20 -07:00
Ole Lensmar
75b39e812e refactored to create separate serviceinterface, implementation and corresponding factory. JaxRs class uses the factory to find the implementation. Also fixed possibility for a code generator to control which API files that should be overwritten 2015-05-12 13:18:35 -04:00
Tony Tam
622d883344 fixed input type 2015-05-12 06:57:37 -04:00
Tony Tam
8519480f2c removed some cruft 2015-05-12 06:50:45 -04:00
Tony Tam
f9db729e75 added qt5 2015-05-12 06:05:09 -04:00
Tony Tam
0b2eced6a3 rebuilt 2015-05-12 06:05:00 -04:00
Tony Tam
dae01b5043 template update 2015-05-12 06:04:44 -04:00
Tony Tam
1912973d36 enabled qt5 2015-05-12 06:04:23 -04:00
Tony Tam
037a00720f added qt5 samples, script 2015-05-12 06:04:10 -04:00
Tony Tam
c2ee64e669 fixed version 2015-05-12 06:03:45 -04:00
Tony Tam
e703fc7982 fixed version 2015-05-12 06:03:37 -04:00
Tony Tam
5a1fa6ee65 added qt5 c++ templates 2015-05-12 05:56:12 -04:00
Tony Tam
d6016757cb Merge pull request #705 from wing328/fix_required_parameter
Fix required parameter validation for Java, Android, PHP and Ruby
2015-05-12 05:48:22 -04:00
Tony Tam
08184aab1d Merge pull request #679 from xhh/petstore-scala-tests
Fix tests for Scala petstore sample
2015-05-12 05:48:11 -04:00
Tony Tam
e33fbc67ad Merge pull request #648 from geekerzp/develop_2.0_objc_naming
Updated naming convention in objc client.
2015-05-12 05:47:51 -04:00
Tony Tam
f80238ae2d Merge pull request #737 from wing328/perl_codegen
Add templates for Perl
2015-05-12 05:47:25 -04:00
Ron
75ff9089af Merge pull request #739 from tomtit/revert726
Reverted JsonUtil.mustache for JavaClientCodegen after PR #726.
2015-05-12 09:42:37 +02:00
wing328
2f5f2b367b update package name to confirm to csharp convention, fix default header 2015-05-12 12:45:59 +08:00
Alexey Nechaev
66dea18b61 Reverted JsonUtil.mustache after PR #726. 2015-05-08 12:47:35 +00:00
Lorinda Brandon
bae40ded74 Update README.md 2015-05-07 19:23:49 -04:00
William Cheng
fc43828c20 update type mapping, update test.pl to use local file for testing upload 2015-05-08 03:58:02 +08:00
William Cheng
063a1ffd36 update type list in deserialize 2015-05-08 03:58:02 +08:00
William Cheng
1d4735f76d update subroutine argument 2015-05-08 03:58:01 +08:00
William Cheng
c03250132d update error message, update test script 2015-05-08 03:58:01 +08:00
William Cheng
48844442fc test post body (model), fix to_hash attribute mapping 2015-05-08 03:58:01 +08:00
William Cheng
f69fb40c71 add methods for static variable 2015-05-08 03:58:01 +08:00
William Cheng
0a34793f5a add inheritance to object (model) 2015-05-08 03:58:00 +08:00
William Cheng
07cd23edac seralization and deserialization work, get_pet_by_id and
update_pet_with_form work
2015-05-08 03:58:00 +08:00
William Cheng
a7ef1262e5 fix all swagger.pl syntax issue 2015-05-08 03:58:00 +08:00
William Cheng
c5fcf3ba2c remove pl files 2015-05-08 03:58:00 +08:00
William Cheng
d206035e0f add perl support - api template, bin, codegen 2015-05-08 03:57:59 +08:00
russellb337
2eeb96116d simplifying diff 2015-05-07 12:16:44 -07:00
russellb337
2edfb96c36 swagger codegen should honor global mime types 2015-05-07 12:02:25 -07:00
Tony Tam
c7e22b7a3b Merge pull request #726 from who/feature/gson-for-android-client
Feature: Use gson for android-client instead of jackson
2015-05-07 06:26:37 -07:00
Andrew B
20ced771ba Restoring the pom.xml so integration tests work 2015-05-07 01:09:25 -07:00
Andrew B
01b7385a5e Implementing gson in android client templates 2015-05-06 22:54:25 -07:00
wing328
070a6203e0 remove php comment 2015-05-07 13:35:19 +08:00
who
902c56f09b Initial commit of jackson-to-gson 2015-05-06 17:46:54 -07:00
russellb337
129086eea7 merge latest from develop_2.0 to fork 2015-05-06 13:44:10 -07:00
Tony Tam
157da246c0 added async test sample 2015-05-06 12:56:45 -07:00
Fake Bob Dobbs
321dfb7311 For SpringMVC, RequestHeader annotations are not setting the required attribute, even when required is false (RequestHeader uses default of true). This change always sets the required param 2015-05-06 09:05:57 -04:00
Tony Tam
65097a4908 Merge pull request #680 from geekerzp/develop_2.0_python_testing
Bug fix for deserialize model issue and added unit tests for python client
2015-05-04 21:11:35 -07:00
Tony Tam
df2cbfd0e9 Merge pull request #720 from akras14/master
Fixes a bug with Node.js example generating invalid package.json and swa...
2015-05-04 16:07:26 -07:00
Alex Kras
df95114a93 Fixes a bug with Node.js example generating invalid package.json and swagger.json
Currently string "... You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or ... " gets URL encoded, resuling in Node js throwing "Unable to parse" error.

Use of {{{ }}} forces mustache to skip URL encoding
http://mustache.github.io/mustache.5.html#Partials
2015-05-04 15:07:03 -07:00
Anthony Sosso
f7d30c847f Java: support x-www-form-urlencoded for PUT, POST, DELETE 2015-05-01 15:25:54 -07:00
who
b94eb443ea Adding some tests that were accidentally deleted 2015-04-30 12:52:21 -07:00
Ron
b70f5bc98b Merge pull request #709 from eerwitt/update_documentation_links
Found the 2.0.17 tag under 2.0.17 instead of v2.0.17.
2015-04-30 21:27:15 +03:00
e3
9876e792f1 Found the 2.0.17 tag under 2.0.17 instead of v2.0.17. 2015-04-30 11:22:45 -07:00
Ron
e3f09ae4cc Merge pull request #708 from eerwitt/update_documentation_links
Linked to the 2.0.18 tag instead of the no longer existing 2.0.17.
2015-04-30 21:21:32 +03:00
e3
cd2e030dc1 Linked to the 2.0.18 tag instead of the no longer existing 2.0.17. 2015-04-30 11:16:16 -07:00
who
6be2c06ed3 Adding maven publish functionality for android client 2015-04-30 10:34:43 -07:00
wing328
2e85871a4b remove hello.txt (created by mvn test) 2015-04-30 17:12:25 +08:00
wing328
47a8ef3031 fix required parameters in ruby 2015-04-30 17:01:36 +08:00
wing328
93e4ef0eec fix required parameters check for php 2015-04-30 16:52:33 +08:00
wing328
303378c5eb fix android required parameter check 2015-04-30 16:29:21 +08:00
Andrew B
5082f69631 Adding maven publish functionality for android client 2015-04-29 22:08:27 -07:00
Tony Tam
abe072c83d Merge pull request #703 from MaorBril/master
Added support for Basic Auth
2015-04-29 21:09:48 -07:00
maorb
5fbd0afdc5 Added support for Basic Auth 2015-04-29 18:19:16 -07:00
Tony Tam
4725dfb121 Merge pull request #702 from 0legg/feature/android-gradle
Jar and aar support for Android
2015-04-29 17:50:09 -07:00
Oleg Godovykh
14c2d14fc2 provide both jar and aar 2015-04-29 14:18:44 -04:00
Oleg Godovykh
119a981701 add possibility to create aar library 2015-04-29 13:39:00 -04:00
wing328
fb3088b765 fixed required parameter in java api 2015-04-29 17:31:38 +08:00
wing328
e7b170bf3c better comment on csharp api, add ParameterToString to handle date 2015-04-29 16:27:08 +08:00
wing328
96d837274e udpate csharp template with better comment and ParameterToString 2015-04-29 11:00:05 +08:00
wing328
8818c209df udpate csharp client with restsharp 2015-04-29 10:56:24 +08:00
wing328
5c057e1306 refactor csharp client using restsharp, getpetbyid working 2015-04-29 10:55:49 +08:00
Tony Tam
6c23a21312 Merge pull request #675 from marcinkiewiczblazej/issue-674
Fix for issue #674
2015-04-28 15:21:51 -07:00
Tony Tam
2f8e0bb09c Merge pull request #699 from 0legg/feature/android-gradle
Replace maven settings for Android client with gradle
2015-04-28 15:13:23 -07:00
Oleg Godovykh
b6495a9fc2 replace maven settings for Android client with gradle 2015-04-28 17:49:59 -04:00
Tony Tam
8952759eda Merge pull request #693 from lugaru1234/multiple_tags_operations
Generation of operations with multiple tags has been fixed #356
2015-04-28 07:03:23 -07:00
Tony Tam
c96f5f6fa8 added excludes for logback.xml per https://github.com/swagger-api/swagger-codegen/issues/689 2015-04-27 22:51:52 -07:00
Nadezhda Makarkina
b0d2d1116b Generation of operations with multiple tags has been fixed #356 2015-04-27 13:25:08 +03:00
xhh
4a55223a8f Add form parameters support to Scala codegen 2015-04-24 23:57:17 +08:00
geekerzp
3aa9982b23 Fixed issue that it will throw error when deserialize model in python client. 2015-04-23 18:19:08 +08:00
geekerzp
7d706f6a00 Added pom.xml for python client. 2015-04-23 18:09:32 +08:00
geekerzp
161aeb393b Add image file for python unit tests. 2015-04-23 17:38:57 +08:00
geekerzp
f9195a8a0e Added unit tests for python client. 2015-04-23 17:13:26 +08:00
Alexey Nechaev
9a36174685 Clean up of '\n' escaping. 2015-04-23 11:50:07 +03:00
xhh
4f5f6a9e8f Include Scala petstore sample into integration test 2015-04-23 15:27:44 +08:00
xhh
78072f753c Fix tests for Scala petstore sample 2015-04-23 09:38:27 +08:00
wing328
d5a3cc7300 fix php swagger type 2015-04-23 00:42:36 +08:00
Alexey Nechaev
fc0be6d503 Fixes #646: Example field handling has been fixed. 2015-04-22 16:17:28 +03:00
Alexey Nechaev
699973dcfe Group and version are avaiable from parent pom. 2015-04-22 16:11:16 +03:00
Blazej Marcinkiewicz
465266e219 Updated Java Spring MVC query param generation to include 'required' parameter if it's available. 2015-04-22 11:52:46 +02:00
Tony Tam
5c935a4c29 Merge pull request #668 from wing328/fix_swagger_type
[CSharp] Bug fix for swagger type
2015-04-21 10:01:35 -07:00
wing328
95ff0b9313 remove pettest, which is for testing only 2015-04-21 23:16:54 +08:00
wing328
eed04560c0 fix string? 2015-04-21 23:16:17 +08:00
William Cheng
2c0e8f6079 fix csharp model name issue 2015-04-21 22:42:13 +08:00
geekerzp
152eabbd6a Fixed PetstoreClient.xccheckout. 2015-04-21 16:33:28 +08:00
geekerzp
60ab624b23 Updated xcode project for petstore 2015-04-21 16:23:08 +08:00
geekerzp
4dd793c0ac Updated naming convention in objc client. 2015-04-21 16:23:08 +08:00
Tony Tam
7f4916f333 Merge pull request #664 from geekerzp/develop_2.0_python_content_type
Fixed encoding issue for request json body in python client.
2015-04-20 21:46:06 -07:00
Tony Tam
bf4d0a5466 Merge pull request #663 from wing328/better_method_doc
Better method documentation
2015-04-20 21:43:41 -07:00
geekerzp
d053d464dd Fixed encoding issue for request json body in python client. 2015-04-20 18:05:16 +08:00
William Cheng
5465708a42 add method documentation to android and scala 2015-04-19 23:51:46 +08:00
William Cheng
3622cfd169 add method documentation for objc client 2015-04-19 23:41:26 +08:00
William Cheng
ae389a8993 update python method documentation 2015-04-19 23:23:09 +08:00
Denis Yagofarov
1d175c1c7d + advices for OS X Users 2015-04-18 22:41:18 +03:00
wing328
7e37f3294a bug fix for post (model) and update php test cases 2015-04-17 20:01:58 +08:00
Karthik Velakur
1e273640b4 Issue #642 - Removing the unnecesary \n added to generated example requests 2015-04-16 13:26:52 -04:00
Tony Tam
cbbe29cf70 Merge pull request #651 from wing328/method_name_style
Update method name based on style guide
2015-04-16 10:09:47 -07:00
wing328
c87579e1f7 fix rspec due to change of optional parameter in ruby method 2015-04-17 01:03:15 +08:00
wing328
c30ed059fe update php api test with SwaggerClient.php 2015-04-17 00:26:06 +08:00
wing328
676c4d0835 add back php unit testing and readme to PHP SwaggerClient sample code 2015-04-17 00:26:06 +08:00
wing328
4c717829b3 update test.php, remove old SwaggerPetstore-php 2015-04-17 00:26:06 +08:00
wing328
8512259d02 update method name based on style guide, update petstore sample 2015-04-17 00:26:06 +08:00
Tony Tam
e45b04ef32 Merge pull request #649 from xhh/ruby-optional-params
Add support of optional parameters to Ruby codegen
2015-04-16 09:11:28 -07:00
xhh
de21088619 Support optional body parameter 2015-04-16 18:20:36 +08:00
xhh
61bf7f49cc Remove redundant blank lines 2015-04-16 15:56:08 +08:00
xhh
a819e4d523 Support optional parameters in Ruby client
* Pass optional parameters via the `opts` Hash
* Handle query parameters in a way similar to header/form parameters to
  support parameter name normalization, e.g. the "additional_metadata"
  key is passed for "additionalMetadata"
* Rename variables to be consistent: `query_params`, `header_params` and
  `form_params`
* Remove unnecessary blank lines
2015-04-16 15:56:08 +08:00
Tony Tam
57ca71fcc9 Merge pull request #626 from wing328/fix_ruby_rspec
Fixed Ruby rspec
2015-04-15 22:56:54 -07:00
Tony Tam
a03574e119 Merge pull request #631 from xhh/ruby-config
Fix hard-coded values in Ruby client: scheme, host and base_path
2015-04-15 22:54:46 -07:00
Tony Tam
19d7dad33c Merge pull request #618 from wing328/python3_codegen
Added back python 3 codegen
2015-04-15 22:53:15 -07:00
Tony Tam
2cd8ba9875 Merge branch 'geekerzp-develop_2.0_objc_tests' into develop_2.0 2015-04-15 22:49:05 -07:00
Tony Tam
dc11c94514 Merge branch 'develop_2.0_objc_tests' of https://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_tests 2015-04-15 22:46:46 -07:00
Tony Tam
037fe442dc Merge branch 'geekerzp-develop_2.0_objc_optional_property' into develop_2.0 2015-04-15 22:44:03 -07:00
Tony Tam
0525d66b86 regenerated 2015-04-15 22:43:48 -07:00
Tony Tam
a168c4bf06 Merge branch 'develop_2.0_objc_optional_property' of https://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_optional_property 2015-04-15 22:12:01 -07:00
Tony Tam
a465edd890 Merge pull request #645 from who/develop_2.0
[PHP Templates] Fixing a bug which was preventing payloads to serialize into JSON
2015-04-15 16:51:24 -07:00
who
164a01ed12 Fixing a bug which was preventing payloads to serialize into JSON 2015-04-15 16:17:21 -07:00
Tony Tam
39602c4b2b Merge pull request #644 from hyeghiazaryan/develop_2.0
Adding defaultHeaders dictionary to generated API classes.
2015-04-15 14:24:20 -07:00
hrachya
33dfcd247d Adding defaultHeaders dictionary to generated API classes. defaultHeaders will be merged with headerParams before sending the request.
fix for https://github.com/swagger-api/swagger-codegen/issues/638
2015-04-15 13:02:09 -07:00
Tony Tam
1617b76e27 Merge pull request #637 from hyeghiazaryan/develop_2.0
Adding import for Foundation.h to SWGQueryParamCollection.h
2015-04-15 10:08:21 -07:00
geekerzp
0a9df88e53 Using propertyIsOptional to implement optional property instead of
using `Optional` protocol in objc client.
2015-04-15 17:53:45 +08:00
geekerzp
989641892e Remove outdated tests in objc client 2015-04-15 15:10:46 +08:00
hrachya
21fcbc7acb Adding import for Foundation.h to SWGQueryParamCollection.h
fix for https://github.com/swagger-api/swagger-codegen/issues/636
2015-04-14 13:20:38 -07:00
Tony Tam
dfa17d2291 Merge pull request #630 from who/develop_2.0
Making default PHP namespace generic and fix issues 628 and 635
2015-04-14 12:35:44 -07:00
who
f4a2eff4b7 Fixing nested model deserialization - Issue #635 2015-04-14 12:24:59 -07:00
Tony Tam
f9fd511eb0 Merge pull request #634 from hyeghiazaryan/develop_2.0
Adding toParamName override to ObjcClientCodegen.java
2015-04-14 11:36:25 -07:00
hrachya
ff71a2cc60 Adding toParamName override to ObjcClientCodegen.java
fix for https://github.com/swagger-api/swagger-codegen/issues/633
2015-04-14 11:23:09 -07:00
xhh
41371bd901 Initialize a default configuration object 2015-04-14 15:03:21 +08:00
xhh
7db7b146be Fix hard-coded values in Ruby client: scheme, host and base_path 2015-04-14 12:32:25 +08:00
who
de25d63838 Making the default PHP package name more generic instead of being specific to Petstore 2015-04-13 16:27:30 -07:00
who
42829ffb13 A proposed fix for Issue #628 2015-04-13 13:14:10 -07:00
Tony Tam
444666a365 Merge pull request #629 from who/develop_2.0
Correct usage of strpos in PHP APIClient mustache template
2015-04-13 12:30:41 -07:00
who
41db8798af correct usage of strpos 2015-04-13 12:22:38 -07:00
Tony Tam
33bd614a42 Merge pull request #625 from geekerzp/develop_2.0_python_form_params
Fixed request content-type in python client
2015-04-13 10:26:17 -07:00
Tony Tam
10ad0b48dc Merge pull request #623 from wing328/php_fix_double
Fixed "double" response type in PHP client
2015-04-13 10:24:54 -07:00
wing328
4a0314849e fix ruby spec 2015-04-13 22:23:52 +08:00
geekerzp
10a9d298d7 Fixed request content-type in objc client.
In api.mustache the name of content-type is `Content-Type`,
but in swagger.mustache the name of content-type is `Content-type`.
2015-04-13 17:30:43 +08:00
William Cheng
13d513f02b fix double in php client response 2015-04-12 23:06:07 +08:00
Tony Tam
7f84deaf30 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-04-10 23:07:27 -07:00
Tony Tam
765a5c6aa1 added uniqueness for nickname, #612 2015-04-10 23:07:00 -07:00
Tony Tam
f7c195a7ac updated pom for #612 2015-04-10 23:06:47 -07:00
Tony Tam
252cb18aeb Merge pull request #619 from geekerzp/develop_2.0_python_package
Update Python codegen to support packaging via Setuptools
2015-04-10 21:03:08 -07:00
Tony Tam
54a5ecb101 Merge pull request #620 from geekerzp/develop_2.0_objc_content_type
Fixed request content-type in objc client
2015-04-10 21:01:25 -07:00
geekerzp
63ca000482 fixed request content-type to multipart/form-data when upload file is null 2015-04-11 11:46:55 +08:00
geekerzp
00aa844964 update readme.md 2015-04-11 10:38:32 +08:00
geekerzp
e6bf58a707 package python sdk using setuptools 2015-04-11 10:38:32 +08:00
William Cheng
ccc0653923 add python 3 codegen 2015-04-10 19:42:09 +08:00
Tony Tam
70c14092f9 Merge pull request #610 from xhh/ruby-gemspec
Generate Ruby gemspec
2015-04-09 07:37:26 -06:00
Tony Tam
a1e62ea4b1 Merge pull request #611 from wing328/csharp_date_iso8601
Updated CSharp client to support ISO8601 format
2015-04-09 07:26:12 -06:00
wing328
22f72e2b23 update comment for escapeString 2015-04-09 16:05:13 +08:00
wing328
a0756bf6f2 remove composer.lock 2015-04-09 15:57:25 +08:00
wing328
78e1fb231e remove php vendor 2015-04-09 15:56:19 +08:00
wing328
5cbe5d60aa add iso8601 support to csharp, add more comments, add PATCH support 2015-04-09 15:55:13 +08:00
xhh
e9c5c1434b Fix spec 2015-04-09 11:37:48 +08:00
xhh
817a74d4df Add README.md file containing instructions on Ruby petstore sample 2015-04-09 11:34:10 +08:00
xhh
02fa04aec8 Generate gemspec for Ruby client 2015-04-09 11:34:09 +08:00
xhh
7cd8d0a1ac Restructure gemspec related files to ease importing the files 2015-04-09 11:34:09 +08:00
Tony Tam
7dcdaca288 Merge pull request #609 from geekerzp/develop_2.0_python_better_import
Better import for python client
2015-04-08 21:15:38 -06:00
geekerzp
3259a1d814 Fixed module name in __init__.py in python client. 2015-04-09 10:37:15 +08:00
geekerzp
806c26d54f Merge branch 'develop_2.0' into develop_2.0_python_better_import
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/PythonClientCodegen.java
2015-04-09 09:31:50 +08:00
geekerzp
f2ecc271b5 Better import for python client. 2015-04-09 09:21:21 +08:00
Tony Tam
a05251da51 Merge pull request #601 from geekerzp/develop_2.0_python_unicode
Support unicode string in python client.
2015-04-08 06:56:19 -06:00
Tony Tam
555ef7677d Merge pull request #600 from wing328/python_variable_naming
Fixed parameter name, better naming convention for python client
2015-04-08 05:04:02 -06:00
Tony Tam
eb2ec92b66 Merge pull request #604 from wing328/php_fix_warning
Fixed PHP5.3 warning
2015-04-08 05:01:54 -06:00
Tony Tam
e1a3540caf fixed version 2015-04-08 05:00:10 -06:00
Tony Tam
c1d51266b3 fixed version 2015-04-08 04:51:54 -06:00
William Cheng
9de22c8146 update petstore php sample 2015-04-08 12:00:37 +08:00
William Cheng
eb0fccd1d2 fixed content-type check for model 2015-04-08 11:54:57 +08:00
William Cheng
cb2f5d3e25 fix php warning in php5.3 2015-04-08 11:33:09 +08:00
Tony Tam
73665a2b67 Merge pull request #602 from wing328/php_unit_test
Added unit testing for PHP Petstore client
2015-04-07 09:41:56 -06:00
geekerzp
24d5dc093f Support unicode string in python client. 2015-04-07 15:33:05 +08:00
William Cheng
18476114b9 update test case for php, add readme.md 2015-04-07 04:02:09 +08:00
William Cheng
bd07425b25 update php test case for PetApi 2015-04-07 03:59:20 +08:00
William Cheng
49ad6f47a5 fix parameter name, better naming convention for python client 2015-04-07 01:37:32 +08:00
Tony Tam
b85c8bbe7f rebuilt client 2015-04-06 08:08:36 -06:00
Tony Tam
e8ae9178af merged 2015-04-06 08:02:37 -06:00
Tony Tam
12d4e812a6 removed samples 2015-04-06 08:02:02 -06:00
Tony Tam
07030e1f42 Merge branch 'develop_2.0' 2015-04-06 08:01:24 -06:00
Tony Tam
c04f947a85 prepare for release 2015-04-06 08:00:16 -06:00
Tony Tam
d55aaffc48 Merge pull request #597 from wing328/php_package
Updated PHP codegen to support packaging via Composer
2015-04-06 07:44:00 -06:00
Tony Tam
b9514a40de Merge pull request #585 from wing328/ruby_fix_path_variable
Fixed Ruby path variable url-encoded twice, removed duplicated path variable replacement
2015-04-06 07:42:58 -06:00
William Cheng
ed43a38db2 Merge branch 'ruby_fix_path_variable' of https://github.com/wing328/swagger-codegen into ruby_fix_path_variable 2015-04-06 19:06:50 +08:00
William Cheng
2967cc3801 moved store spec into a separate file, update order id to 5 (as the
order with ID 2 is no longer found)
2015-04-06 19:05:19 +08:00
William Cheng
9c5153e8c8 fix test cases 2015-04-06 18:52:30 +08:00
William Cheng
0a4fc6a40f update ruby petstore sample 2015-04-06 18:52:30 +08:00
William Cheng
a717aba826 fixed path variable double uri-encoded issue 2015-04-06 18:52:30 +08:00
wing328
5c335beb60 removed description testing for Category 2015-04-06 18:28:43 +08:00
wing328
8d6d1cb329 recovered APIclient due to merge 2015-04-06 18:10:43 +08:00
wing328
6b2035e353 Merge branch 'php_package' of https://github.com/wing328/swagger-codegen into php_package
Conflicts:
	modules/swagger-codegen/src/main/resources/php/APIClient.mustache
	samples/client/petstore/php/SwaggerPetstore-php/lib/APIClient.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/PetApi.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/StoreApi.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/UserApi.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/models/Category.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/models/Order.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/models/Pet.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/models/Tag.php
	samples/client/petstore/php/SwaggerPetstore-php/lib/models/User.php
2015-04-06 18:05:10 +08:00
wing328
3811a5a209 resolve conflict during rebase 2015-04-06 18:03:15 +08:00
wing328
c1046cc87b add php packaging support 2015-04-06 17:59:42 +08:00
Tony Tam
2bb42a1147 updated version 2015-04-05 16:12:04 -07:00
Tony Tam
1b4367ffba updated readme 2015-04-05 13:50:49 -07:00
Tony Tam
b4df8477d8 updated parser version 2015-04-05 13:48:48 -07:00
Tony Tam
27c7e69fba updated templates 2015-04-05 13:42:20 -07:00
Tony Tam
5a5bb6edbf Merge branch 'geekerzp-develop_2.0_objc_form_params' into develop_2.0 2015-04-04 22:12:41 -07:00
Tony Tam
448462552f updated logic, merged 2015-04-04 22:12:30 -07:00
Tony Tam
14cbc2d90d Merge branch 'develop_2.0_objc_form_params' of https://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_form_params 2015-04-04 21:34:26 -07:00
Tony Tam
dfa2c22e0c Merge pull request #566 from geoand/Apache_HttpClient_Connection_Manager
Switched SingleClientConnManager with ThreadSafeClientConnManager.
2015-04-04 21:33:38 -07:00
Tony Tam
a57588caa1 Merge pull request #588 from wing328/csharp_response_warning
Eliminated warning related to response in CSharp API files
2015-04-04 21:00:31 -07:00
Tony Tam
fad7246e05 removed file 2015-04-04 20:59:57 -07:00
Tony Tam
a0c9296ee8 name rebuilds, tests 2015-04-04 20:04:10 -07:00
Tony Tam
0c2e464c71 updated jetty version 2015-04-04 17:49:36 -07:00
Tony Tam
15236ef376 updated ruby template 2015-04-04 17:45:22 -07:00
Tony Tam
950bfff1c1 fixed serialization of arrays 2015-04-04 17:20:18 -07:00
Tony Tam
bba91c7e92 added android tests 2015-04-04 17:20:04 -07:00
Tony Tam
33c87e8e72 added sample 2015-04-04 17:02:16 -07:00
Tony Tam
ba2ccf788c name rebuilds, tests 2015-04-04 17:00:22 -07:00
Tony Tam
e114875f02 updated test 2015-04-04 16:58:28 -07:00
Tony Tam
09346c761b added script 2015-04-04 16:28:53 -07:00
Tony Tam
f0e41bf43e template updates 2015-04-04 16:28:43 -07:00
Tony Tam
9c75304832 updated to overwrite files 2015-04-04 16:28:33 -07:00
Tony Tam
02fd96a24a added spring-mvc sample 2015-04-04 13:46:35 -07:00
Tony Tam
568ca26747 renamed folder 2015-04-04 11:53:02 -07:00
Tony Tam
1e82fc5d24 removed old code 2015-04-04 11:49:40 -07:00
Tony Tam
d9f8fcb7a4 fixes for #501 2015-04-04 00:02:34 -07:00
Tony Tam
17ca7c4648 ahhhh scala 2015-04-03 23:18:03 -07:00
Tony Tam
acf2c8cc9d removed printlns 2015-04-03 23:12:50 -07:00
Tony Tam
43c88f51c6 fixed #497 2015-04-03 23:04:18 -07:00
Tony Tam
60e5899dc3 updated codegen 2015-04-03 23:02:38 -07:00
Tony Tam
f75312105d added property file 2015-04-03 22:41:00 -07:00
Tony Tam
610143f4ad fix for #577, added newline replacement 2015-04-03 22:22:31 -07:00
Tony Tam
2cc9b10a1e Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-04-03 22:15:10 -07:00
Tony Tam
f3ab28b92d fix for #589, escape text for parameter description 2015-04-03 22:15:00 -07:00
wing328
660d336646 fix warning related to csharp response, better code format for csharp api 2015-04-03 23:10:10 +08:00
Tony Tam
15c25c8277 Merge pull request #587 from geekerzp/develop_2.0_python_user_agent
Fixed user agent in python client
2015-04-03 07:34:19 -07:00
geekerzp
b4d4fa1a43 Update python sample code. 2015-04-03 18:21:33 +08:00
geekerzp
d4ac668cd4 Set default User-Agent for Python client. 2015-04-03 18:04:05 +08:00
Tony Tam
38e34e0dd6 Merge pull request #584 from wing328/ruby_fix_accept
Fixed Ruby header: "Accept", "Content-Type"
2015-04-02 21:56:44 -07:00
Tony Tam
9159892965 updated templates 2015-04-02 18:32:16 -07:00
Tony Tam
eda1a44fa3 updated parser 2015-04-02 18:30:00 -07:00
Camille Chafer
65b6d210bc Examples updated with names lower-camelized 2015-04-02 18:02:21 +02:00
Camille Chafer
6c4765fd00 Parameters names where camelized with first letter not lower 2015-04-02 18:00:25 +02:00
Camille Chafer
ef3811390f Some fixes for Wordnik & Petstore examples 2015-04-02 17:46:26 +02:00
Camille Chafer
2ce55115a6 Add wordnik and petstore examples 2015-04-02 16:26:16 +02:00
Camille Chafer
0811e0bce3 Add Akka-Scala client generator. This client uses Spray as Http Client. 2015-04-02 16:22:52 +02:00
William Cheng
40d512fe43 fix test cases 2015-04-02 21:37:54 +08:00
William Cheng
e73957e790 update ruby petstore sample 2015-04-02 21:12:01 +08:00
William Cheng
b773d40034 fixed path variable double uri-encoded issue 2015-04-02 16:15:08 +08:00
Tony Tam
b6be19b266 Merge pull request #582 from guptasu/develop_2.0
Fixed the compile time error in the generated code caused due to unescaped new line characters.
2015-04-01 20:58:01 -07:00
William Cheng
1c0cb7f884 fix syntax 2015-04-02 06:12:07 +08:00
William Cheng
bc24e5e290 update ruby accept header 2015-04-02 05:23:53 +08:00
Sunny Gupta
80259fbcc4 Fixed the compile time error in the generated code caused due to unescaped new line characters.
Since the description text is not being escaped, if there is a new line character, it will cause a new line to be added to the source code. This can cause compile time error if the new line character is part of a string (e.g. java string) and there is no '+' sign explicitly added to the code. Note: The code was doing escapeText for properties but not for models. This patch fixes that.
2015-04-01 12:33:44 -07:00
Tony Tam
64292cdc9b Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-04-01 07:41:54 -07:00
Tony Tam
df771b5a4d updated springfox templates 2015-04-01 07:41:45 -07:00
Tony Tam
8b8e8d70f9 Merge pull request #580 from wing328/php_content_type
Fix content-type and accept in PHP API
2015-04-01 07:29:57 -07:00
William Cheng
27dfa12335 remove csharp model files (lower case) 2015-04-01 17:43:36 +08:00
Tony Tam
13ee40a4b8 added test script 2015-03-31 21:48:12 -07:00
Tony Tam
df9efe5734 added script 2015-03-31 21:48:04 -07:00
Tony Tam
f142474a54 updated templates 2015-03-31 21:47:30 -07:00
Tony Tam
084d448fd4 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-31 21:00:34 -07:00
Tony Tam
1385a157e9 moved count 2015-03-31 21:00:15 -07:00
Tony Tam
fe3c3cc8bc fix for #578 2015-03-31 20:59:57 -07:00
Tony Tam
97e44679d3 Merge pull request #579 from xhh/fix-android-datetime-pattern
Fix date time format for Android client
2015-03-31 20:12:59 -07:00
xhh
d5ad4c4ae7 Fix date time format for Android client
According to Android's docs (https://developer.android.com/reference/java/text/SimpleDateFormat.html)
the `SimpleDateFormat` class in Android does not accept `XXX` as the timezone, it uses `Z` instead.

Also updated the date time format of Android and Java clients to include milliseconds.
2015-04-01 10:22:04 +08:00
Tony Tam
6ac497d774 rebuilt 2015-03-31 16:12:42 -07:00
Tony Tam
cd2c8f6527 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-31 16:08:53 -07:00
Tony Tam
d4b9a41786 added ruby 2015-03-31 16:08:47 -07:00
Tony Tam
93fef67c7e added required check 2015-03-31 16:08:37 -07:00
Tony Tam
f72e5907bb formatting 2015-03-31 16:08:09 -07:00
Tony Tam
01c956caba cleanup 2015-03-31 16:07:56 -07:00
Tony Tam
5f07fb0b03 sorted 2015-03-31 16:07:37 -07:00
Tony Tam
f17968d5b3 fixed required flag 2015-03-31 16:07:24 -07:00
Tony Tam
055c4397e9 renamed 2015-03-31 16:07:07 -07:00
Tony Tam
62a99115fc renamed 2015-03-31 16:06:52 -07:00
Tony Tam
7483a06226 renamed 2015-03-31 16:06:46 -07:00
Tony Tam
f265ce361a Merge pull request #556 from FindTheBest/develop_2.0
Python Binding Request Headers
2015-03-31 15:58:34 -07:00
Tony Tam
744952aee4 formatting 2015-03-31 15:57:50 -07:00
Tony Tam
66591f567c Merge pull request #576 from wing328/ruby_petstore_test
Fix Ruby rspec
2015-03-31 15:47:54 -07:00
William Cheng
03c48af9e6 Fix content-type and accept in PHP API 2015-04-01 04:26:32 +08:00
Tony Tam
3096c6c3ce updated versions 2015-03-31 08:47:35 -07:00
William Cheng
cb2f1e1bb1 update test case for StoreApi.getOrderById (id: 1 => 2) 2015-03-31 14:37:59 +08:00
William Cheng
59140bd3f3 remove commented unused code from response spec 2015-03-31 14:17:58 +08:00
James Ebentier
ce700b9421 Fixing one more issue with the defaultHeaders merging and removing unnecessary code 2015-03-30 12:47:56 -07:00
James Ebentier
761ab22f08 Adding Self to setDefaultHeader method signature 2015-03-30 12:28:17 -07:00
William Cheng
0ee39c67fe fix rspec, update ruby client default configuration 2015-03-31 01:28:33 +08:00
James Ebentier
148b2daaa3 Python Formatting: removing semicolons from the python code 2015-03-30 08:42:12 -07:00
geekerzp
a927d679f0 fixed issue that it throw exceptions when request with form parameters
in objective-c client
2015-03-30 17:42:47 +08:00
Tony Tam
a4ce6d7074 updated scripts 2015-03-29 20:55:26 -07:00
Tony Tam
3739d2876e removed file 2015-03-29 20:50:23 -07:00
Tony Tam
0c50d9807e added jaxrs 2015-03-29 20:50:10 -07:00
Tony Tam
5e83b6602e updated templates for baseName 2015-03-29 20:49:51 -07:00
Tony Tam
5ab425e82d rebuilt 2015-03-29 20:42:20 -07:00
Tony Tam
b5be12a25b Merge branch 'wing328-add_csharp_codegen' into develop_2.0 2015-03-29 20:03:25 -07:00
Tony Tam
367f81d52d Merge branch 'add_csharp_codegen' of https://github.com/wing328/swagger-codegen into wing328-add_csharp_codegen 2015-03-29 20:03:16 -07:00
Tony Tam
b10445f3f6 Merge pull request #561 from wing328/ruby_doc
Update ruby api files with better documentation
2015-03-29 19:58:21 -07:00
Tony Tam
1e7862a466 Merge pull request #574 from geekerzp/develop_2.0_python_urlencode
Fixed issue that query parameters double url encoded in python client
2015-03-29 19:56:02 -07:00
Tony Tam
943efce971 rebuilt 2015-03-29 19:43:29 -07:00
Tony Tam
e7675e48ed updated snapshot 2015-03-29 19:42:12 -07:00
Tony Tam
63efc4f442 removed println 2015-03-29 19:41:58 -07:00
Tony Tam
a5c92be360 updated sample 2015-03-29 19:41:37 -07:00
Tony Tam
8de8f48679 fix for Optional 2015-03-29 19:41:24 -07:00
Tony Tam
63fae85ff4 updated sample 2015-03-29 19:40:54 -07:00
geekerzp
8f6afda99a fixed issue that query parameters double url encoded 2015-03-30 10:34:01 +08:00
Tony Tam
510254e5a3 fixed required flag 2015-03-29 19:17:54 -07:00
wing328
9981daad61 add back php petstore samples 2015-03-30 09:39:37 +08:00
wing328
c1824b5387 fix parameter name in API, update petstore sample 2015-03-30 09:31:49 +08:00
Tony Tam
517c0a4f52 Merge pull request #558 from geekerzp/develop_2.0_objc_jsonmodel
Add JSONModel to objective-c client
2015-03-29 08:53:14 -07:00
Tony Tam
cab50ccb59 Merge pull request #548 from xhh/java-android-user-agent
Set default User-Agent for Java and Android clients
2015-03-29 08:52:56 -07:00
Tony Tam
e51f548807 Merge pull request #559 from wing328/java_doc
Update Java documentation for methods (endpoints)
2015-03-29 08:52:32 -07:00
Tony Tam
8a214838e5 Merge pull request #565 from wing328/php_doc
Update PHP documentation for method
2015-03-29 08:52:01 -07:00
geekerzp
37118cab47 Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
Conflicts:
	samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m
2015-03-29 18:15:02 +08:00
geekerzp
e6d7517e63 Update api-body.mustache, api-header.mustache,
apiBodyResponseWithContainer.mustache and apiNonPrimitiveResponse.mustache
templates in objective-c client.

* Update `asDictionary` method to `toDictionary` method which provided by
  JSONModel.
* Update `initWithValues` method to `initWithDictionary` method which
  provided by JSONModel.
2015-03-29 18:06:52 +08:00
xhh
90db8e2147 Add setUserAgent method to Java and Android clients 2015-03-29 09:55:20 +08:00
xhh
65883a5d85 Set default User-Agent for Java and Android clients 2015-03-29 09:55:19 +08:00
Tony Tam
7383520639 added objc target 2015-03-28 10:48:18 -07:00
Tony Tam
49e9c74324 Merge pull request #572 from swagger-api/issue-567
Issue 570
2015-03-28 10:46:17 -07:00
Tony Tam
492ab20c00 fix for issue 567, added reserved words, rebuilt client 2015-03-28 10:42:02 -07:00
Tony Tam
92621f2f2d fix for issue 567, added reserved words, rebuilt client 2015-03-28 10:41:51 -07:00
Tony Tam
f2ce5ef273 Merge pull request #571 from lanwen/cli-doc
update docs and bash about CLI usage, deprecate old cli classes
2015-03-28 08:50:46 -07:00
William Cheng
836f7ecb95 rebase with develop_2.0 2015-03-28 22:55:15 +08:00
MerkushevKirill
0dcd307333 update docs and bash about CLI usage, deprecate old cli classes
(after #547)
2015-03-28 12:34:44 +03:00
William Cheng
c2b3e68f8c rebase on develop_2.0 2015-03-28 16:48:07 +08:00
William Cheng
11c8e2268a Merge branch 'java_doc' of https://github.com/wing328/swagger-codegen into java_doc 2015-03-28 16:48:02 +08:00
William Cheng
a12cc1c544 remove {{newline}} as it has no impact at all 2015-03-28 16:43:16 +08:00
William Cheng
27e1b1c4b2 update java doc 2015-03-28 16:43:15 +08:00
Tony Tam
a62cd193ad Merge pull request #569 from swagger-api/issue-567
updated camelize function for #567
2015-03-27 23:23:02 -07:00
Tony Tam
0686a91690 updated camelize function for #567 2015-03-27 23:18:54 -07:00
Tony Tam
4f6d5f6265 Merge pull request #568 from swagger-api/feature/objc-templates
Feature/objc templates
2015-03-27 23:04:16 -07:00
Tony Tam
99271e77ab added multi-param args 2015-03-27 22:55:06 -07:00
Tony Tam
c9a2a14da5 added queryParamCollection 2015-03-27 22:17:50 -07:00
Tony Tam
236a1147b7 minor comment 2015-03-27 09:53:40 -07:00
gandrianakis
7eba8670e3 Switched SingleClientConnManager with ThreadSafeClientConnManager.
The SingleClientConnManager cannot be used safely in multi-threaded environments
2015-03-27 18:41:16 +02:00
William Cheng
bdd1d1621f remove {{newLine}} and replace tab wtih 2 spaces 2015-03-27 23:55:26 +08:00
Tony Tam
98c8f867e5 enabled java test 2015-03-27 08:52:22 -07:00
William Cheng
bfb35aa3ee remove {{newline}} as it has no impact at all 2015-03-27 23:49:27 +08:00
William Cheng
6ab51bcb4e remove tab with 2 spaces in php api template 2015-03-27 23:11:13 +08:00
William Cheng
1c547e9598 update php documentation 2015-03-27 22:40:59 +08:00
geekerzp
19c05eefab Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
Conflicts:
	pom.xml
2015-03-27 17:27:58 +08:00
Tony Tam
3d12c8847f Merge pull request #562 from swagger-api/feature/java-client
Feature/java client
2015-03-26 23:31:47 -07:00
Tony Tam
5d6d563a8e updated versions 2015-03-26 23:17:17 -07:00
Tony Tam
442be8624c rebuilt client, added tests 2015-03-26 23:10:10 -07:00
Tony Tam
287bb7d936 fixed builder, error msg 2015-03-26 23:09:47 -07:00
Tony Tam
ddb1d6e0d3 removed 404 handling 2015-03-26 23:09:29 -07:00
Tony Tam
8b98a92805 adds tests, fixes for java templates 2015-03-26 20:32:59 -07:00
William Cheng
8b4a077f8a Merge branch 'ruby_doc' of https://github.com/wing328/swagger-codegen into ruby_doc 2015-03-27 02:12:33 +08:00
William Cheng
3d53cfc298 better ruby method argument format 2015-03-27 02:11:49 +08:00
William Cheng
fb2ab79455 update ruby doc 2015-03-27 02:11:49 +08:00
William Cheng
731bfc1fc6 Merge branch 'java_doc' of https://github.com/wing328/swagger-codegen into java_doc 2015-03-27 02:00:05 +08:00
William Cheng
ae52a62c09 update java doc 2015-03-27 01:59:05 +08:00
russellb337
62d4516fe7 Merge remote-tracking branch 'upstream/develop_2.0' into develop_2.0 2015-03-26 09:06:35 -07:00
William Cheng
9ba1398831 better ruby method argument format 2015-03-26 20:20:28 +08:00
William Cheng
a4690d76db update ruby doc 2015-03-26 19:55:48 +08:00
William Cheng
fe11b064af update java doc 2015-03-26 16:27:00 +08:00
Tony Tam
a2dc767559 Update .travis.yml 2015-03-25 20:57:48 -07:00
geekerzp
93e19e48db update swagger-core version to 1.5.4-M1-SNAPSHOT 2015-03-26 11:23:47 +08:00
geekerzp
fbe069cf5c add jsonmodel in objective-c client 2015-03-26 10:07:33 +08:00
Tony Tam
20add5b58e updated tests, jetty 2015-03-25 16:16:03 -07:00
Tony Tam
b7c2c3448e renamed package 2015-03-25 12:12:04 -07:00
Tony Tam
f577345b14 fixed examples, readme 2015-03-25 12:11:40 -07:00
James Ebentier
bf46da7c14 Python: modifying request headers in ApiClient to act like those in Java and PHP 2015-03-25 11:44:46 -07:00
Tony Tam
d2f5b9ea65 added recursion check 2015-03-25 11:11:04 -07:00
Tony Tam
e8052f0505 Merge pull request #550 from swagger-api/feature/ios-templates
added command-line tests
2015-03-25 09:27:42 -07:00
Tony Tam
be373f88d4 fixed test errors 2015-03-25 09:27:12 -07:00
Tony Tam
ceffa10ab7 added command-line tests 2015-03-24 23:24:13 -07:00
Tony Tam
b36f3c98ca Merge pull request #547 from lanwen/cli
add - new command line interface in distribution module
2015-03-24 20:34:34 -07:00
Tony Tam
f459982560 Merge pull request #549 from swagger-api/feature/ios-templates
Feature/ios templates
2015-03-24 19:59:54 -07:00
Tony Tam
56104566fc added void response 2015-03-24 19:57:51 -07:00
Tony Tam
85463f049c rebuilt sample 2015-03-24 19:56:45 -07:00
Tony Tam
30acfc1869 added sys property 2015-03-24 19:56:38 -07:00
Tony Tam
2ce0049ce4 updated templates to fix petstore build error 2015-03-24 19:56:28 -07:00
Tony Tam
e82ecf695d added array support 2015-03-24 19:56:04 -07:00
Tony Tam
dc9a00809c Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-24 17:13:02 -07:00
Tony Tam
31418b3936 added property for app name 2015-03-24 17:12:20 -07:00
Tony Tam
db14a3fd05 added property for app name 2015-03-24 17:02:12 -07:00
Tony Tam
de0e108d27 added property for app name 2015-03-24 17:02:03 -07:00
Tony Tam
b8cd52aa07 Merge pull request #540 from lanwen/develop_2.0
rft - only codestyle, remove wildcard imports and use string-utils from apache
2015-03-24 16:56:01 -07:00
Tony Tam
16403950d5 Merge pull request #545 from wing328/ruby_better_naming
Update ruby codgen for better naming convention
2015-03-24 16:53:20 -07:00
MerkushevKirill
8ba444141e add - new command line interface in distribution module
can replace Codegen and MetaGenerator classes. Provides a bit different cli interface
based on refactored pom from #541,
affects #349

```
usage: swagger <command> [<args>]

The most commonly used swagger commands are:
    generate   Generate code with chosen lang
    help       Display help information
    langs      Shows available langs
    meta       MetaGenerator. Generator for creating a new template set and configuration for Codegen.  The output will be based on the language you specify, and includes default templates to include.
 ```
  **generate** and **meta** commands have same as current cli options
2015-03-25 01:59:55 +03:00
William Cheng
fb3e44ecc4 break down ruby reservedWord list into multiple lines 2015-03-24 16:34:41 +08:00
William Cheng
8107162540 update ruby codgen for better naming convention 2015-03-24 16:24:31 +08:00
MerkushevKirill
ee096569c4 rft - only codestyle with indents, remove wildcard imports and use string-utils from apache 2015-03-24 11:13:01 +03:00
Tony Tam
81e1fd53e2 Merge pull request #544 from geekerzp/develop_2.0_python_key_map
Support attribute key mapping in python client
2015-03-23 22:18:25 -07:00
geekerzp
07237f8eb9 add model attribute name json key mapping in python clent 2015-03-24 11:55:20 +08:00
Tony Tam
9442e23fd9 Merge pull request #543 from wing328/remove_old_php_sample
Remove old model files in PHP petstore
2015-03-23 20:35:13 -07:00
russellb337
970facaa8a merge latest from develop_2.0 to fork 2015-03-23 17:01:49 -07:00
russellb337
fe92889b10 merge latest from develop_2.0 to to fork 2015-03-23 17:01:35 -07:00
Tony Tam
fe82d7dc05 Merge pull request #542 from mrwanny/fix_MissingTag_StringIndexOutOfBoundsException
fix StringIndexOutOfBoundsException when tag is not provided
2015-03-23 16:22:01 -07:00
Wanny
915fcf9b92 fix cleanup 2015-03-23 16:08:26 -07:00
Wanny
31e8d58b1d fix StringIndexOutOfBoundsException when tag is not provided 2015-03-23 15:29:39 -07:00
William Cheng
87b85e5b93 remove old php model files 2015-03-24 02:33:08 +08:00
Tony Tam
823ac04abb Merge pull request #534 from Juliens/master
add version in properties
2015-03-23 08:47:06 -07:00
Tony Tam
0cf1c3c74a Merge pull request #536 from wing328/android_better_naming
better naming convention for android-java codegen
2015-03-23 08:44:01 -07:00
William Cheng
fd602af180 better naming convention for android-java codegen 2015-03-23 15:41:24 +08:00
Tony Tam
048bea6249 Merge pull request #535 from wing328/java_beter_naming
Better variable and model property naming for Java
2015-03-22 21:19:01 -07:00
Tony Tam
601a519cb6 Merge pull request #530 from FindTheBest/master
PHP Request Headers and Deserialization
2015-03-22 21:17:10 -07:00
Tony Tam
f1f9805a01 Merge pull request #527 from geekerzp/develop_2.0_python
Support iso8601 datetime format in Python client
2015-03-22 19:35:18 -07:00
William Cheng
62d28ebca5 better variable and model property naming for java 2015-03-22 23:24:43 +08:00
Julien SALLEYRON
c46f3f9ee4 add version in properties 2015-03-21 20:12:44 +01:00
Tony Tam
f008b75e99 Merge pull request #528 from wing328/php_better_variable_naming
PHP better naming convention
2015-03-21 08:18:46 -07:00
Tony Tam
38204b2237 Merge pull request #531 from geekerzp/develop_2.0_python_datetime
Update santizeForSerialization to normalize parameters for Python client
2015-03-21 08:18:00 -07:00
Tony Tam
d71785470b Merge pull request #532 from xhh/android-form-params
Add support of form parameter to Android client
2015-03-21 08:16:20 -07:00
xhh
b5a4d5be04 Add support of form parameter to Android client
* Handle form parameters in a way similar to Java client.
* Handle file uploading.
* Normalize query, header and form parameters with the
  ApiInvoker.parameterToString method, which formats Date value to ISO 8601.
2015-03-21 22:20:28 +08:00
geekerzp
f085860eb1 Update sanitizeForSerialization to sanitize parameters to Python client
* Refactor santizeForSerialzation to static method.
* Sanitize header/query/form/body parameters.
* Sanitize datetime.datetime and datetime.date to iso8601 format string.
* Sanitize swagger model to dict.
2015-03-21 14:58:32 +08:00
James Ebentier
8323fdf8e8 Fixing deserialization bug in PHP bindings 2015-03-20 15:35:09 -07:00
James Ebentier
0c3f06604d Correcting spelling error in comment 2015-03-20 14:54:53 -07:00
James Ebentier
e782ea2c05 Default Headers: allowing the setting of defaultHeaders on ApiClient 2015-03-20 14:45:12 -07:00
Tony Tam
9062016bf0 Merge pull request #529 from mrwanny/add_springdox
Add server codegen for springdox
2015-03-20 14:17:31 -07:00
Wanny
2301e604b3 clean up README.md 2015-03-20 13:53:07 -07:00
Wanny
34eab98ce4 Merge branch 'develop_2.0' into add_springdox 2015-03-20 13:47:08 -07:00
Wanny
00c1018d79 add basi Springdox server generation 2015-03-20 13:45:01 -07:00
William Cheng
c36e5a96fe update php codegen with better naming convention 2015-03-20 21:56:41 +08:00
geekerzp
c024a4c099 use dateutil to parse string to datetime in python 2015-03-20 14:38:18 +08:00
Tony Tam
92e5574ec1 Merge pull request #526 from swagger-api/feature/example-generator
Feature/example generator
2015-03-19 15:49:47 -07:00
Tony Tam
cdf8648d3b made noservice option 2015-03-19 14:59:32 -07:00
Tony Tam
de56f76284 rebuilt sample 2015-03-19 14:52:45 -07:00
Tony Tam
ae1d43dc84 added more instructions, service template 2015-03-19 14:47:43 -07:00
Tony Tam
531e2d7032 added example generator, updated signatures to match 2015-03-19 14:45:22 -07:00
Tony Tam
32fe6b0333 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-19 09:04:16 -07:00
Tony Tam
75714ac518 added default for filename generation 2015-03-19 09:04:12 -07:00
Tony Tam
8262d30202 Merge pull request #459 from geoand/objc-dictionary-fix-dev2_0
Fixed bug that prevented Objective-C code from compiling when using a Sw...
2015-03-19 08:52:25 -07:00
Tony Tam
d332cdf200 Merge pull request #522 from wing328/ruby_user_agent
Fix User-Agent in Ruby API cleint
2015-03-19 08:32:59 -07:00
Tony Tam
f6c18cd50f Merge pull request #524 from wing328/php_property_mapping
Add Attribute Mapping to PHP model
2015-03-19 08:28:02 -07:00
William Cheng
ab8d62214a add attributemap to php model, update php petstore sample 2015-03-19 20:58:22 +08:00
William Cheng
a149bb9120 update ruby petstore example 2015-03-19 17:17:39 +08:00
William Cheng
02283fae46 udpate ruby api client to support user-agent 2015-03-19 17:09:27 +08:00
gandrianakis
c82b31aa61 Reintroduce objc dictionary fix to updated develop_2.0 branch 2015-03-19 11:07:54 +02:00
gandrianakis
37303745df Merge branch 'develop_2.0' into objc-dictionary-fix-dev2_0
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java
2015-03-19 10:59:47 +02:00
gandrianakis
e5357df67a Merge remote-tracking branch 'upstream/master' into objc-dictionary-fix-dev2_0 2015-03-19 10:45:27 +02:00
Tony Tam
c109c11bea added yaml output 2015-03-18 23:26:45 -07:00
Tony Tam
3a8c798596 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-18 23:25:48 -07:00
Tony Tam
9311bdf972 added yaml generator 2015-03-18 23:24:47 -07:00
Tony Tam
925caa223a Merge pull request #482 from FindTheBest/master
Python: fixing an issue in swagger python code generation
2015-03-18 22:59:26 -07:00
Tony Tam
95e7265bd7 Merge pull request #498 from burmanm/issue_495
Fix NPE with resourcePath = /, issue #495
2015-03-18 22:58:45 -07:00
Tony Tam
93afc3bd95 Merge pull request #516 from wing328/ruby_header_param
Bug fix for ruby header parameter and better code format
2015-03-18 22:58:31 -07:00
Tony Tam
cbdb31048e updated to release version 2015-03-18 22:40:41 -07:00
Tony Tam
6b1f176a66 Merge pull request #417 from Helmsdown/additional-codegen-properties
Add API Version to Codegen Additional Properties
2015-03-18 17:05:59 -07:00
Tony Tam
f2ee9b39e9 Merge pull request #519 from swagger-api/feature/swagger-tools
updated nodejs server to swagger-tools, supports 2.0 spec
2015-03-18 16:30:57 -07:00
Tony Tam
b6e5c55817 updated nodejs server to swagger-tools, supports 2.0 spec 2015-03-18 16:10:54 -07:00
Tony Tam
963d92e23f Merge pull request #518 from cchafer/add_response_headers
Add defined response headers in CodegenResponse. at this time, only the ...
2015-03-18 14:10:08 -07:00
Camille Chafer
081757c592 headers list is CodegenResponse is always defined (no null list) 2015-03-18 19:01:45 +01:00
Camille Chafer
ac78c15fbf Add defined response headers in CodegenResponse. at this time, only the headers of the 'default' response are included in the operation. 2015-03-18 18:38:27 +01:00
Tony Tam
dd78de1ed8 updated basePath, contextPath 2015-03-18 09:34:38 -07:00
Tony Tam
64fbcb6045 rebuilt client 2015-03-18 09:34:19 -07:00
Tony Tam
86c6892eb6 rebuilt samples 2015-03-18 09:32:45 -07:00
Tony Tam
9cfbd8bde0 updated sample 2015-03-18 09:32:18 -07:00
Tony Tam
1e1d193556 Merge pull request #517 from xhh/java-param-to-str
Add parameterToString to normalize parameters for Java client
2015-03-18 07:12:32 -07:00
xhh
f8a5e900f8 Add parameterToString to normalize parameters for Java client
* Convert values to string for query/header/form parameters.
* For parameter of type Date, convert to ISO 8601 format.
* Also add utility methods to parse date in ISO 8601 format.
2015-03-18 18:58:13 +08:00
William Cheng
d0dcb2fb43 fix bug with ruby header parameter, remove extra linebreak in generated
code
2015-03-18 16:33:00 +08:00
Tony Tam
bb45790375 Merge pull request #513 from wing328/add_ruby_to_readme
update README with ruby on the codegen usage
2015-03-17 17:51:54 -07:00
Tony Tam
369689d001 merged 2015-03-17 16:30:59 -07:00
Tony Tam
df39fe5d08 added Json schema fields 2015-03-17 16:30:42 -07:00
sosso
b73340ab83 Java: properly add request headers
https://jersey.java.net/nonav/apidocs/1.8/jersey/com/sun/jersey/api/client/PartialRequestBuilder.html#header(java.lang.String, java.lang.Object)

We were running into issues with our headers not making it into our requests.  Upon some research, it appears that Jersey's header() method returns the builder object, meaning we have to do this assignment to properly construct the request.  After making the change, our requests work as expected.
2015-03-17 11:39:32 -07:00
William Cheng
a1d02785af update README with ruby on the codegen usage 2015-03-18 00:14:39 +08:00
Tony Tam
4f32e9dbff Merge pull request #502 from FindTheBest/develop_2.0
PHP Generated Models
2015-03-17 08:51:02 -07:00
Tony Tam
b6ca69f57a Merge pull request #510 from xhh/patch-2
update null comparison for query params in Java
2015-03-17 07:10:52 -07:00
Tony Tam
62992c2de1 Merge pull request #509 from wing328/ruby_form_parameter
update ruby client to support form parameters, add PATCH support
2015-03-17 07:05:09 -07:00
Xu Hui Hui
b2da6dc8a2 update null comparison for query params in Java
to make it clear and also allow a query parameter to be set with string value: "null" (4 characters string)
2015-03-17 16:34:01 +08:00
Tony Tam
c96853d5aa Merge pull request #507 from cchafer/security_schemes_definition
Adding defintion of security schemes in CodegenSecurity
2015-03-16 22:13:19 -07:00
Tony Tam
c215d8ab91 fix and tests for #503 2015-03-16 22:10:35 -07:00
Tony Tam
46d1950fbd removed unnecessary file 2015-03-16 21:04:21 -07:00
Tony Tam
03b764d404 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-16 20:54:14 -07:00
Tony Tam
a8aebec9ba removed description 2015-03-16 20:54:08 -07:00
Tony Tam
fd72ff56bf fixed context path 2015-03-16 20:54:01 -07:00
Tony Tam
ebec85fd54 added context path 2015-03-16 20:53:48 -07:00
Tony Tam
fd792ef180 added more helpful error trace 2015-03-16 20:53:34 -07:00
Tony Tam
486186e042 Merge pull request #505 from wing328/php_support_user_agent
update User-agent in PHP API client
2015-03-16 20:44:46 -07:00
Tony Tam
8111d4e909 Merge pull request #506 from wing328/ruby_codegen
Add ruby codegen, update sample (petstore) for ruby
2015-03-16 19:49:21 -07:00
William Cheng
fc9d632522 update ruby client to support form parameters, add PATCH support, update
ruby petstore client
2015-03-17 05:24:43 +08:00
Camille Chafer
d580d294b6 Adding defintion of security schemes in CodegenSecurity 2015-03-16 11:58:29 +01:00
William Cheng
e9227ad7e5 add ruby codegen, update sample (petstore) for ruby 2015-03-16 18:47:22 +08:00
Tony Tam
156ec2a2dd Merge pull request #485 from wing328/fix_php_string_response
minor bug fixes and enhancement to Swagger.php
2015-03-15 21:02:37 -07:00
William Cheng
186310b553 Merge branch 'fix_php_string_response' of https://github.com/wing328/swagger-codegen into fix_php_string_response
Conflicts:
	modules/swagger-codegen/src/main/resources/php/Swagger.mustache
	samples/client/petstore/php/Swagger.php
2015-03-15 22:08:44 +08:00
William Cheng
bcdee4e038 update php petstore sample code 2015-03-15 22:06:42 +08:00
William Cheng
6bc8de1230 rebase on develop_2.0 2015-03-15 22:02:16 +08:00
William Cheng
b8166f283a update php to support user agent 2015-03-15 16:33:57 +08:00
Tony Tam
ad7a5967ff Merge pull request #504 from wing328/php_param_supppor_datetime
PHP parameters to suppport datetime (ISO8601)
2015-03-14 22:41:54 -07:00
William Cheng
a0dc2097eb update php api client to support datetime (iso8601) for parameters
(header, path, url, form)
2015-03-14 23:48:05 +08:00
James Ebentier
24842d4a29 PHP Models: fixing an issue with commas being where they shouldn't 2015-03-13 10:53:42 -07:00
James Ebentier
0854ca5ce5 PHP Models: updating the models generated for PHP styling 2015-03-13 10:53:19 -07:00
James Ebentier
6ca34e362d PHP Models: updating the models generated for PHP to be array accessable and have a simple constructor 2015-03-13 10:51:45 -07:00
Tony Tam
470ba201d8 build error fix 2015-03-13 10:45:12 -07:00
Tony Tam
fc52ab972b Merge pull request #494 from FindTheBest/develop_2.0
Fixing bug in new APIClientException
2015-03-13 09:44:02 -07:00
Tony Tam
7aca1cfb3f Merge pull request #486 from wing328/php_fix_deserialize
Bug fixes for Swagger.php deserialize function
2015-03-13 09:39:50 -07:00
Ron
d9b247f302 Merge pull request #500 from jwyterlin/patch-1
Update README.md
2015-03-13 09:38:18 -04:00
Jhonathan Wyterlin
c1e45a5931 Update README.md 2015-03-13 10:35:59 -03:00
Michael Burman
4748af4d59 Fix NPE with resourcePath = /, issue #495
(cherry picked from commit 01515e4ded6fa59da87d109dd8056c1b4a64e0f7)
2015-03-13 14:38:19 +02:00
James Ebentier
575967b5de Fixing bug in new APIClientException
This new exception had a typo in it for the construct class declaration.
2015-03-12 13:23:46 -07:00
Tony Tam
6c57d6a76e Merge pull request #491 from FindTheBest/develop_2.0
PHP Bindings: exposing response and response info in Exceptions
2015-03-12 12:23:34 -07:00
James Ebentier
56ff34dc47 PHP Bindings: exposing response and response info to be accessible through thrown exceptions when non 200 response code is received 2015-03-12 12:12:07 -07:00
David Valdez
5b72653d7f Update README.md 2015-03-12 12:07:24 -07:00
Tony Tam
0a949e26f0 Merge pull request #487 from wing328/update_php_form
form parameter(single quote), add more comments
2015-03-11 08:44:26 -07:00
William Cheng
5347915c12 form parameter(single quote), add more comment 2015-03-11 21:14:17 +08:00
William Cheng
d0edb836ac fix syntax error at 223, update array comparision (case insensitive) 2015-03-11 15:47:28 +08:00
James Ebentier
c75cd55e2c Merge remote-tracking branch 'wordnik/master' 2015-03-10 13:05:16 -07:00
Tony Tam
911be4360a Merge pull request #483 from wing328/add_patch_php
Add PATCH support to PHP API client
2015-03-10 11:42:57 -07:00
Tony Tam
939b4c713d per #458 2015-03-10 11:42:31 -07:00
Tony Tam
e6abc2a881 Merge pull request #458 from djvaldez/master
Update README.md - fixed incorrect flag for custom generator class
2015-03-10 11:40:34 -07:00
Tony Tam
b2977cd29b Merge pull request #477 from wing328/fix_php_basename
use baseName for parameter name in PHP api
2015-03-10 11:39:28 -07:00
Tony Tam
da6f0eec84 Merge pull request #481 from godaddy/develop_2.0
Develop 2.0 - Fix for python3 client deserialize passing wrong parameter
2015-03-10 11:38:59 -07:00
William Cheng
7555dda2bf add logic to handle all 2xx response code, bug fix for string response,
bug fix for showing error message using serialize
2015-03-11 01:37:39 +08:00
William Cheng
941f6e7757 add PATCH support to PHP API client 2015-03-10 18:13:55 +08:00
Tony Tam
1887170dad updated links 2015-03-09 18:50:23 -07:00
James Ebentier
b2cfb77222 Python: fixing an issue in swagger python code generation where attribute classes aren't respected 2015-03-09 18:18:20 -07:00
Brad Figler
5d77321dca syncing remote 2.0 branch 2015-03-09 20:47:48 +00:00
Brad Figler
f20522a586 Merge remote branch 'upstream/master' 2015-03-09 19:10:14 +00:00
Brad Figler
17435212ed Properly serailze the correct object type versus the parent objClass 2015-03-09 19:00:35 +00:00
Tony Tam
6207c2b5e9 fix for #475 building on java8 2015-03-09 10:09:33 -07:00
Tony Tam
b6f7f85baa updated links 2015-03-09 09:32:22 -07:00
Tony Tam
9c77742046 updated links 2015-03-09 09:31:34 -07:00
Tony Tam
e9d0619358 updated versions 2015-03-09 08:59:16 -07:00
William Cheng
7c23eedf07 use baseName for parameter name in PHP api 2015-03-09 23:15:12 +08:00
Ron
27c6af3491 Update README.md 2015-03-07 16:34:39 -05:00
Tony Tam
dc5ee9dcf5 added reserved words 2015-03-04 20:44:26 -08:00
Tony Tam
07ff6a2278 Merge pull request #468 from cor3ntin/fix_base_path_upstream
Fix {{basePath}} value in support files.
2015-03-04 07:25:29 -08:00
Tony Tam
dce9a81536 Merge pull request #467 from cor3ntin/security_upstream
Expose Security schemes of operations.
2015-03-04 07:25:00 -08:00
Corentin Jabot
156055fdd5 Fix {{basePath}} value in support files.
Make {{basePath}} value in support files be the
same as in operation files, aka host/path, instead of /path.
2015-03-04 15:01:07 +01:00
Corentin Jabot
3a5c03c778 Expose Security schemes of operations.
A template can now refer to the type ( oath2.0, apiKey, basic )
as well as the name of the security schemes it rquires.

Usage :

{{#operations}}
{{#authMethods}}
{{type}}  {{name}}
{{/authMethods}}
{{/operations}}
2015-03-04 14:54:48 +01:00
Tony Tam
9ce4156e4c Merge pull request #455 from cchafer/responses
Implements CodegenResponse, and return default response in Operaiton.Responses (#293)
2015-03-03 17:34:47 -08:00
Tony Tam
f82afe0026 Merge pull request #452 from herveDarritchon/develop_2.0
Defect (Issue #445) : change the call of initialCaps for getter and setter proper generation
2015-03-03 17:33:01 -08:00
Ron
c3bb458ed9 Merge pull request #463 from yzats/patch-3
Fixed spelling errors in README.md
2015-03-03 18:45:46 -05:00
yzats
5c2c8e1d76 Update README.md
Fix spelling errors
2015-03-03 12:42:15 -08:00
Tony Tam
ced95d658f added instructions for the meta generator 2015-03-02 23:37:21 -08:00
Tony Tam
a724cd0780 added meta generator 2015-03-02 23:28:59 -08:00
Tony Tam
6b823b88d9 moved logic into abstract class for extensions 2015-03-02 17:29:29 -08:00
Tony Tam
8fb180133a merged from master 2015-03-02 10:59:35 -08:00
Tony Tam
e877abf153 Merge pull request #461 from natechadwick/master
The --auth parameter was setup to ignore values.
2015-03-01 13:45:50 -08:00
nate
dd0ccff58a Minor typo in help text. 2015-03-01 14:18:11 -05:00
nate
a793d5c6cc Changed the --auth parameter to require a value so it is not ignored. 2015-03-01 14:13:08 -05:00
gandrianakis
d313d4da3f Fixed bug that prevented Objective-C code from compiling when using a Swagger 'map' type 2015-02-27 10:11:35 +02:00
David Valdez
dfc8f7c60f Update README.md 2015-02-26 12:42:41 -08:00
Camille Chafer
c15ac0b6d4 Each type used by any response is now added to the imports list 2015-02-25 17:12:28 +01:00
Camille Chafer
f9a16d856c Add 'default' response (200) to responses list, and add Types to the CodegenResponse object (#293). In the same time, clarify, simplfy and factorize code. 2015-02-25 16:46:33 +01:00
Camille Chafer
5713dce00a add missing types on the Responses Object implementation( CodegenResponse.java) (part of #293) 2015-02-25 16:39:10 +01:00
Tony Tam
23e848b437 added ignored test for #453, nested containers 2015-02-25 07:35:05 -08:00
Tony Tam
5b01e78a72 Merge branch 'godaddy-master' into develop_2.0 2015-02-24 23:23:40 -08:00
Tony Tam
eb68d0bdbd Merge branch 'master' of https://github.com/godaddy/swagger-codegen into godaddy-master 2015-02-24 23:23:19 -08:00
Tony Tam
05297e05a5 made annotations FQ to avoid collisions 2015-02-24 21:12:08 -08:00
Tony Tam
1a0d2d19f5 updated template 2015-02-24 18:07:13 -08:00
Tony Tam
292fc99bd5 fixed response types 2015-02-24 11:03:00 -08:00
Hervé Darritchon
b339db65be Pull request #452 : Add some unit tests for this PR 2015-02-24 09:23:07 +01:00
Tony Tam
e5c70d5961 updated online version, added tag example 2015-02-23 23:23:37 -08:00
Hervé Darritchon
69be95d586 Defect (Issue #445) : change the call of initialCaps for getter and setter with Introspector.decapitalize from pakage java.beans. 2015-02-24 08:20:49 +01:00
Tony Tam
c82dfa3a64 updated version 2015-02-23 23:03:18 -08:00
Tony Tam
4fd4c17036 Merge pull request #451 from swagger-api/develop_2.0
Merged from develop_2.0
2015-02-23 22:51:46 -08:00
Tony Tam
4bd227271a updated version 2015-02-23 22:45:06 -08:00
Tony Tam
5c31d68fee updated to add resolve flag 2015-02-23 22:42:45 -08:00
Tony Tam
bfc1ed3081 added async scala generator #440 2015-02-22 08:57:40 -08:00
Tony Tam
1c7c39c1ab added logback 2015-02-22 08:56:31 -08:00
Tony Tam
4ce0a65ad5 fix for #444, paths on windows 2015-02-22 08:56:03 -08:00
Tony Tam
784afee7b7 prepare for next dev version 2015-02-17 22:06:25 -08:00
Tony Tam
f89e04d210 Update README.md 2015-02-17 22:04:12 -08:00
Tony Tam
12531943d0 Merge pull request #438 from swagger-api/develop_2.0
merged to master for patch release
2015-02-17 21:48:20 -08:00
Tony Tam
3061cd8277 put parser back to 1.0.0 2015-02-17 21:41:36 -08:00
Tony Tam
686f3656c5 updated to new patch 2015-02-17 21:38:02 -08:00
Tony Tam
9ae106affd rebuilt clients 2015-02-17 21:37:51 -08:00
Tony Tam
2550539495 added shade plugin to properly include service descriptions 2015-02-17 18:54:57 -08:00
Tony Tam
06164cdc51 updated file separator replacement 2015-02-17 15:04:06 -08:00
Tony Tam
583a932fba Merge pull request #436 from kreymerman/patch-python-codegen
Fix StringIndexOutOfBoundsException on Windows
2015-02-17 15:02:58 -08:00
Mikhail Kreymerman
fdd485608f fixed StringIndexOutOfBoundsException on Windows 2015-02-17 23:00:23 +01:00
Tony Tam
0307d3818a added friendly download links 2015-02-17 12:59:31 -08:00
Tony Tam
9a473ceae6 enabled url-only reading of specs 2015-02-17 12:43:10 -08:00
Tony Tam
12365b9591 removed cruft 2015-02-17 12:43:01 -08:00
Tony Tam
c832889db8 added slf4j, updated server gen logic 2015-02-17 11:15:08 -08:00
Tony Tam
39487d9917 disabled outdated routes, made languages GET method dynamic 2015-02-17 10:29:35 -08:00
Tony Tam
aa37542411 added version to make swagger valid 2015-02-17 10:29:06 -08:00
Tony Tam
279f43d697 Update README.md 2015-02-17 08:57:39 -08:00
Tony Tam
fee6de5974 Merge branch 'geoand-jackson_array' into develop_2.0 2015-02-17 07:08:55 -08:00
gandrianakis
5fa98b12b8 Fixed bug that did not allow json arrays to be deserialized by Jackson 2015-02-17 15:17:32 +02:00
Tony Tam
ff94196295 updated to snapshot version 2015-02-16 22:16:40 -08:00
Tony Tam
0195749f3b merged 2015-02-16 22:08:52 -08:00
Tony Tam
577aad3364 added file 2015-02-16 22:02:27 -08:00
Tony Tam
05c6cc756c remove cruft 2015-02-16 22:01:33 -08:00
russellb337
bd91922072 Add API Version to Codeine Additional Properties
Also updated htmlDocs template so html documentation shows API version.
2015-02-06 16:26:33 -08:00
Dan Peschman
ec995838fb python3: support PATCH verb for partial updates - http://tools.ietf.org/html/rfc5789 2015-01-24 21:58:33 +00:00
Dan Peschman
4198779b5b python3: support datetime produced by datetime.isoformat like '2015-01-17T00:15:29.515' 2015-01-17 00:41:37 +00:00
Dan Peschman
711d2c8cf4 revert previous: no special handling for '' in python3 parseDatetime 2015-01-16 23:44:02 +00:00
Dan Peschman
42ad403e5e python3 parseDatetime: return None if passed '' 2015-01-16 23:09:54 +00:00
Dan Peschman
527fca5a8b python3 parseDatetime: return None if passed None 2015-01-15 23:19:01 +00:00
Dan Peschman
60bd56b91c python3: support more iso8601 datetime formats - http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#date.and.time.format.examples 2015-01-15 22:42:59 +00:00
10800 changed files with 997932 additions and 65204 deletions

26
.dockerignore Normal file
View File

@@ -0,0 +1,26 @@
.git/
*.iml
out/
*.ipr
*.iws
classpath.txt
version.properties
.project
.classpath
lib/*
build/*
generated-files/*
generated-sources/*
generated-code/*
*.swp
*.swo
*.bak
project/
samples/*
target/
.idea/
.lib/
.DS_Store
# Not needed in a linux container
bin/windows/*

46
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,46 @@
<!--
Please follow the issue template below for bug reports and feature requests.
Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar
-->
##### Description
<!-- describe what is the question, suggestion or issue and why this is a problem for you. -->
##### Swagger-codegen version
<!-- which version of swagger-codegen are you using, is it a regression? -->
##### Swagger declaration file content or url
<!-- if it is a bug, a json or yaml that produces it.
If you post the code inline, please wrap it with
```yaml
(here your code)
```
(for YAML code) or
```json
(here your code)
```
(for JSON code), so it becomes more readable. If it is longer than about ten lines,
please create a Gist (https://gist.github.com) or upload it somewhere else and
link it here.
-->
##### Command line used for generation
<!-- including the language, libraries and various options -->
##### Steps to reproduce
<!-- unambiguous set of steps to reproduce the bug.-->
##### Related issues/PRs
<!-- has a similar issue/PR been reported/opened before? Please do a search in https://github.com/swagger-api/swagger-codegen/issues?utf8=%E2%9C%93&q=is%3Aissue%20 -->
##### Suggest a fix/enhancement
<!-- if you can't fix the bug yourself, perhaps you can point to what might be
causing the problem (line of code or commit), or simply make a suggestion -->

10
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,10 @@
### PR checklist
- [ ] 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 `2.3.0` branch for breaking (non-backward compatible) changes.
### Description of the PR
(details of the change, additional tests that have been done, reference to the issue for tracking, etc)

156
.gitignore vendored
View File

@@ -4,27 +4,161 @@ out/
*.iws
classpath.txt
version.properties
!modules/swagger-codegen-cli/src/main/resources/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
target
.idea
.lib
atlassian-ide-plugin.xml
.DS_Store
packages/
.pub
.packages
.vagrant/
.vscode/
.settings
*.mustache~
*.java~
*.pm~
*.xml~
*.t~
/target
/generated-files
nbactions.xml
# scalatra
samples/server-generator/scalatra/output
samples/server-generator/scalatra/target
samples/server-generator/scalatra/output/.history
# nodejs
**/node_modules
samples/server-generator/node/output/node_modules
samples/server/petstore/nodejs/node_modules
samples/server/petstore/nodejs-server/node_modules
# qt5 cpp
samples/client/petstore/qt5cpp/PetStore/moc_*
samples/client/petstore/qt5cpp/PetStore/*.o
samples/client/petstore/qt5cpp/build-*
samples/client/petstore/qt5cpp/PetStore/PetStore
samples/client/petstore/qt5cpp/PetStore/Makefile
samples/client/petstore/qt5cpp/PetStore/PetStore.pro.user
#Java/Android
**/.gradle
samples/client/petstore/java/hello.txt
samples/client/petstore/java/okhttp-gson/hello.txt
samples/client/petstore/java/jersey1/hello.txt
samples/client/petstore/java/jersey2-java8/hello.txt
samples/client/petstore/java/jersey2/hello.txt
samples/client/petstore/android/default/hello.txt
samples/client/petstore/android/volley/.gradle/
samples/client/petstore/android/volley/build/
samples/client/petstore/java/jersey2/.gradle/
samples/client/petstore/java/jersey2/build/
samples/client/petstore/java/okhttp-gson/.gradle/
samples/client/petstore/java/okhttp-gson/build/
samples/client/petstore/java/feign/build/
samples/client/petstore/java/retrofit/build/
samples/client/petstore/java/retrofit2/build/
samples/client/petstore/java/retrofit2rx/build/
samples/client/petstore/java/default/build/
samples/client/petstore/scala/build/
samples/client/petstore/java/resttemplate/hello.txt
samples/client/petstore/java/retrofit2/hello.txt
samples/client/petstore/java/feign/hello.txt
#PHP
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/
**/vendor/
**/composer.lock
# Perl
samples/client/petstore/perl/deep_module_test/
# Objc
samples/client/petstore/objc/default/SwaggerClientTests/SwaggerClient.xcodeproj/xcuserdata
samples/client/petstore/objc/default/SwaggerClientTests/Build
samples/client/petstore/objc/default/SwaggerClientTests/Pods
samples/client/petstore/objc/default/SwaggerClientTests/SwaggerClient.xcworkspace
samples/client/petstore/objc/default/SwaggerClientTests/Podfile.lock
samples/client/petstore/objc/core-data/SwaggerClientTests/SwaggerClient.xcodeproj/xcuserdata
samples/client/petstore/objc/core-data/SwaggerClientTests/Build
samples/client/petstore/objc/core-data/SwaggerClientTests/Pods
samples/client/petstore/objc/core-data/SwaggerClientTests/SwaggerClient.xcworkspace
samples/client/petstore/objc/core-data/SwaggerClientTests/Podfile.lock
# Swift
samples/client/petstore/swift/**/SwaggerClientTests/SwaggerClient.xcodeproj/xcuserdata
samples/client/petstore/swift/**/SwaggerClientTests/SwaggerClient.xcworkspace/xcuserdata
samples/client/petstore/swift/**/SwaggerClientTests/Pods/
#samples/client/petstore/swift/**/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata
#samples/client/petstore/swift/**/SwaggerClientTests/Pods/Pods.xcodeproj/xcshareddata/xcschemes
samples/client/petstore/swift/**/SwaggerClientTests/Podfile.lock
# Swift3
samples/client/petstore/swift3/**/SwaggerClientTests/SwaggerClient.xcodeproj/xcuserdata
samples/client/petstore/swift3/**/SwaggerClientTests/SwaggerClient.xcworkspace/xcuserdata
#samples/client/petstore/swift3/**/SwaggerClientTests/Pods/
#samples/client/petstore/swift3/**/SwaggerClientTests/Pods/Pods.xcodeproj/xcuserdata
#samples/client/petstore/swift3/**/SwaggerClientTests/Pods/Pods.xcodeproj/xcshareddata/xcschemes
samples/client/petstore/swift3/**/SwaggerClientTests/Podfile.lock
# C#
*.csproj.user
samples/client/petstore/csharp/SwaggerClient/IO.Swagger.userprefs
samples/client/petstore/csharp/SwaggerClientTest/.vs
samples/client/petstore/csharp/SwaggerClientTest/obj
samples/client/petstore/csharp/SwaggerClientTest/bin
samples/client/petstore/csharp/SwaggerClientTest/packages
samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/
samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/
samples/client/petstore/csharp/SwaggerClientTest/TestResult.xml
samples/client/petstore/csharp/SwaggerClientTest/nuget.exe
samples/client/petstore/csharp/SwaggerClientTest/testrunner/
samples/client/petstore/csharp/SwaggerClient/.vs
samples/client/petstore/csharp/SwaggerClient/nuget.exe
samples/client/petstore/csharp/SwaggerClient/obj
samples/client/petstore/csharp/SwaggerClient/bin
samples/client/petstore/csharp/SwaggerClient/obj/Debug/
samples/client/petstore/csharp/SwaggerClient/bin/Debug/
samples/client/petstore/csharp/SwaggerClient/packages
samples/client/petstore/csharp/SwaggerClient/TestResult.xml
samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/IO.Swagger.userprefs
# Python
*.pyc
__pycache__
samples/client/petstore/python/dev-requirements.txt.log
samples/client/petstore/python/swagger_client.egg-info/SOURCES.txt
samples/client/petstore/python/.coverage
samples/client/petstore/python/.projectile
samples/client/petstore/python/.venv/
# ts
samples/client/petstore/typescript-node/npm/node_modules
samples/client/petstore/typescript-node/**/typings
samples/client/petstore/typescript-angular/**/typings
samples/client/petstore/typescript-fetch/**/dist/
samples/client/petstore/typescript-fetch/**/typings
samples/client/petstore/typescript-angular2/npm/npm-debug.log
samples/client/petstore/typescript-node/npm/npm-debug.log
# aspnetcore
samples/server/petstore/aspnetcore/.vs/
effective.pom

View File

@@ -1,4 +1,110 @@
language: java
script: mvn verify
jdk:
- oraclejdk7
sudo: required
language: objective-c
osx_image: xcode8.2
cache:
directories:
- $HOME/.m2
- $HOME/.ivy2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/samples/client/petstore/php/SwaggerClient-php/vendor
- $HOME/samples/client/petstore/ruby/venodr/bundle
- $HOME/samples/client/petstore/python/.venv/
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
- $HOME/samples/client/petstore/typescript-node/npm/typings/
- $HOME/samples/client/petstore/typescript-fetch/tests/default/node_modules
- $HOME/samples/client/petstore/typescript-fetch/tests/default/typings
- $HOME/samples/client/petstore/typescript-fetch/builds/default/node_modules
- $HOME/samples/client/petstore/typescript-fetch/builds/default/typings
- $HOME/samples/client/petstore/typescript-fetch/builds/es6-target/node_modules
- $HOME/samples/client/petstore/typescript-fetch/builds/es6-target/typings
- $HOME/samples/client/petstore/typescript-fetch/builds/with-npm-version/node_modules
- $HOME/samples/client/petstore/typescript-fetch/npm/with-npm-version/typings
- $HOME/samples/client/petstore/typescript-angular/node_modules
- $HOME/samples/client/petstore/typescript-angular/typings
- $HOME/.cocoapods/repos/master
# note: docker is not yet supported in iOS build
#services:
# - docker
# comment out the host table change to use the public petstore server
addons:
hosts:
- petstore.swagger.io
before_install:
- export SW=`pwd`
- rvm list
- rvm use 2.2.5
- gem environment
- gem install bundler -N --no-ri --no-rdoc
- gem install cocoapods -v 1.2.1 -N --no-ri --no-rdoc
- gem install xcpretty -N --no-ri --no-rdoc
- pod --version
# comment out below to avoid errors
#- pod repo update
- pod setup --silent > /dev/null
- npm install -g typescript
- npm config set registry http://registry.npmjs.org/
- brew install sbt
- brew install leiningen
- brew install bats
- brew install curl
- brew install python3
- pip install virtualenv
# start local petstore server
- git clone -b docker --single-branch https://github.com/wing328/swagger-samples
- cd swagger-samples/java/java-jersey-jaxrs
- sudo mvn jetty:run &
- cd $SW
# NOTE: iOS build not support docker at the moment
# 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 rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests.
# - Travis CI does not support rebar3 [yet](https://github.com/travis-ci/travis-ci/issues/6506#issuecomment-275189490).
# - Rely on `kerl` for [pre-compiled versions available](https://docs.travis-ci.com/user/languages/erlang#Choosing-OTP-releases-to-test-against). Rely on installation path chosen by [`travis-erlang-builder`](https://github.com/travis-ci/travis-erlang-builder/blob/e6d016b1a91ca7ecac5a5a46395bde917ea13d36/bin/compile#L18).
# show host table to confirm petstore.swagger.io is mapped to localhost
- cat /etc/hosts
# show java version
- java -version
# show brew version
- brew --version
# show xcpretty version
- xcpretty -v
# show go version
- go version
install:
# Add Godeps dependencies to GOPATH and PATH
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
script:
# fail fast
- set -e
# fail if templates/generators contain carriage return '\r'
- /bin/bash ./bin/utils/detect_carriage_return.sh
# fail if generators contain merge conflicts
- /bin/bash ./bin/utils/detect_merge_conflict.sh
# fail if generators contain tab '\t'
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
# run integration tests defined in maven pom.xml
- mvn -q --batch-mode verify -Psamples
### docker-related tasks have been moved to CircleCI
# docker: build generator image and push to Docker Hub
#- if [ $DOCKER_HUB_USERNAME ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD && docker build -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/swagger-generator && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_GENERATOR_IMAGE_NAME:latest $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_GENERATOR_IMAGE_NAME; fi; fi
## docker: build cli image and push to Docker Hub
#- if [ $DOCKER_HUB_USERNAME ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD && docker build -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/swagger-codegen-cli && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME; fi; fi
#env:
# - DOCKER_GENERATOR_IMAGE_NAME=swaggerapi/swagger-generator DOCKER_CODEGEN_CLI_IMAGE_NAME=swaggerapi/swagger-codegen-cli
after_success:
# push a snapshot version to maven repo
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_BRANCH" = "master" ]; then
mvn clean deploy --settings .travis/settings.xml;
echo "Finished mvn clean deploy";
fi;

18
.travis/settings.xml Normal file
View File

@@ -0,0 +1,18 @@
<settings>
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
<mirrors/>
<proxies/>
<profiles/>
<activeProfiles/>
</settings>

89
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,89 @@
# Guidelines For Contributing
## Before submitting an issue
- If you're not using the latest master to generate API clients or server stubs, please give it another try by pulling the latest master as the issue may have already been addressed. Ref: [Getting Started](https://github.com/swagger-api/swagger-codegen#getting-started)
- 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.
- File an [issue ticket](https://github.com/swagger-api/swagger-codegen/issues/new) by providing all the required information.
- Test with the latest master by building the JAR locally to see if the issue has already been addressed.
- 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.
- It's recommended to **create a new git branch** for the change so that the merge commit message looks nicer in the commit history.
## How to contribute
### git
If you're new to git, you may find the following FAQs useful:
https://github.com/swagger-api/swagger-codegen/wiki/FAQ#git
### 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 languages:
- 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
- C++: https://google.github.io/styleguide/cppguide.html
- C++ (Tizen): https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide#C.2B.2B_Coding_Style
- Clojure: https://github.com/bbatsov/clojure-style-guide
- Elixir: https://github.com/christopheradams/elixir_style_guide
- Erlang: https://github.com/inaka/erlang_guidelines
- 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/
- 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
- Python: https://www.python.org/dev/peps/pep-0008/
- 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
- 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.
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 added new vendor extensions as part of your PR, please update the wiki page.
### 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. (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI/Swagger spec from time to time. If you've questions or concerns, please open a ticket to start a discussion)
- Run the tests in the sample folder, 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)
- File a PR with meaningful title, description and commit messages. A good example is [PR-3306](https://github.com/swagger-api/swagger-codegen/pull/3306)
- Recommended git settings
- `git config --global core.autocrlf input` to tell Git convert CRLF to LF on commit but not the other way around

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM jimschubert/8-jdk-alpine-mvn:1.0
ENV GEN_DIR /opt/swagger-codegen
RUN set -x && \
apk add --no-cache bash
RUN mkdir /opt
ADD . ${GEN_DIR}
VOLUME ${MAVEN_HOME}/.m2/repository
WORKDIR ${GEN_DIR}
RUN mvn -am -pl "modules/swagger-codegen-cli" package
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["build"]

11
LICENSE Normal file
View File

@@ -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.

986
README.md

File diff suppressed because it is too large Load Diff

36
Vagrantfile vendored Normal file
View File

@@ -0,0 +1,36 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.name = "swagger-codegen"
v.memory = 2048
v.cpus = 2
end
config.vm.box_check_update = true
#SSH
config.ssh.forward_agent = true
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
#Provision
config.vm.provision "shell", inline: <<-SHELL
sudo touch /var/lib/cloud/instance/locale-check.skip
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
sudo apt-cache policy docker-engine
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y docker-engine
sudo usermod -aG docker vagrant
SHELL
end

47
appveyor.yml Normal file
View File

@@ -0,0 +1,47 @@
# for CI with appveyor.yml
# Ref: http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html
version: '{branch}-{build}'
os: Windows Server 2012
hosts:
petstore.swagger.io: 127.0.0.1
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile(
'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
- 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-ci"
build_script:
# build C# API client
- nuget restore samples\client\petstore\csharp\SwaggerClient\IO.Swagger.sln
- msbuild samples\client\petstore\csharp\SwaggerClient\IO.Swagger.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# build C# API client (with PropertyChanged)
- nuget restore samples\client\petstore\csharp\SwaggerClientWithPropertyChanged\IO.Swagger.sln
- msbuild samples\client\petstore\csharp\SwaggerClientWithPropertyChanged\IO.Swagger.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# build C# .net standard 1.3+ API client
- nuget restore samples\client\petstore\csharp\SwaggerClientNetStandard\IO.Swagger.sln
- msbuild samples\client\petstore\csharp\SwaggerClientNetStandard\IO.Swagger.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# install swagger codegen locally
- mvn clean install --batch-mode
test_script:
# test c# API client
- nunit-console samples\client\petstore\csharp\SwaggerClient\src\IO.Swagger.Test\bin\Debug\IO.Swagger.Test.dll --result=myresults.xml;format=AppVeyor
# test c# API client (with PropertyChanged)
- nunit-console samples\client\petstore\csharp\SwaggerClientWithPropertyChanged\src\IO.Swagger.Test\bin\Debug\IO.Swagger.Test.dll --result=myresults.xml;format=AppVeyor
# generate all petstore clients
- .\bin\windows\run-all-petstore.cmd
#cache:
# - C:\maven\
# - C:\Users\appveyor\.m2

View File

@@ -1,6 +0,0 @@
val version = scala.util.Properties.scalaPropOrElse("version.number", "unknown").toString match {
case s if s startsWith "2.10" => "2.10"
case s if s startsWith "2.11" => "2.11"
case e: String => e
}
println(version)

31
bin/akka-scala-petstore.sh Executable file
View File

@@ -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 --artifact-id "scala-akka-petstore-client" -t modules/swagger-codegen/src/main/resources/akka-scala -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l akka-scala -o samples/client/petstore/akka-scala"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -1,31 +0,0 @@
#!/bin/sh
SCRIPT="$0"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
cd $APP_DIR
./bin/android-java-petstore.sh
./bin/dynamic-html.sh
./bin/html.sh
./bin/jaxrs-petstore-server.sh
./bin/java-petstore-filemap.sh
./bin/java-petstore.sh
./bin/php-petstore.sh
./bin/python-petstore.sh
./bin/objc-petstore.sh
./bin/scala-petstore.sh
./bin/tizen-petstore.sh

View File

@@ -1,24 +0,0 @@
#!/bin/sh
SCRIPT="$0"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
cd $APP_DIR
./bin/android-java-wordnik-api.sh
./bin/java-wordnik-api.sh
./bin/objc-wordnik-api.sh
./bin/scala-wordnik-api.sh

View File

@@ -1,36 +0,0 @@
#!/bin/sh
SCRIPT="$0"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.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="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l android -o samples/client/petstore/android-java"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -1,36 +0,0 @@
#!/bin/sh
SCRIPT="$0"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.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="$@ -i modules/swagger-codegen/src/test/resources/2_0/wordnik.json -l android -o samples/client/wordnik/android-java"
java $JAVA_OPTS -jar $executable $ags

5
bin/android-petstore-all.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
./bin/android-petstore-httpclient.sh
./bin/android-petstore-volley.sh

View File

@@ -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/android -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l android -Dlibrary=httpclient -o samples/client/petstore/android/httpclient"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "volley",
"artifactId": "swagger-petstore-android-volley"
}

31
bin/android-petstore-volley.sh Executable file
View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l android -c bin/android-petstore-volley.json -o samples/client/petstore/android/volley"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,31 @@
#!/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"
ags="$@ generate -l apache2 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -o samples/config/petstore/apache2"
java $JAVA_OPTS -jar $executable $ags

31
bin/apex-petstore.sh Executable file
View File

@@ -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/apex -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l apex -o samples/client/petstore/apex"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,31 @@
#!/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"
ags="$@ generate -l aspnetcore -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -o samples/server/petstore/aspnetcore --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5}"
java $JAVA_OPTS -jar $executable $ags

31
bin/bash-petstore.sh Executable file
View File

@@ -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"
args="$@ generate -t modules/swagger-codegen/src/main/resources/bash -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l bash -o samples/client/petstore/bash -c modules/swagger-codegen/src/test/resources/2_0/bash-config.json --additional-properties hideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $args

31
bin/clojure-petstore.sh Executable file
View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l clojure -o samples/client/petstore/clojure"
java $JAVA_OPTS -jar $executable $ags

31
bin/cpprest-petstore.sh Executable file
View File

@@ -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/cpprest -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l cpprest -o samples/client/petstore/cpprest"
java $JAVA_OPTS -jar $executable $ags

31
bin/csharp-dotnet2-petstore.sh Executable file
View File

@@ -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 -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"
java $JAVA_OPTS -jar $executable $ags

10
bin/csharp-petstore-all.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# C# Petstore API client
./bin/csharp-petstore.sh
# C# Petstore API client with PropertyChanged
./bin/csharp-property-changed-petstore.sh
# C# Petstore API client (v5.0 for .net standarnd 1.3+)
./bin/csharp-petstore-net-standard.sh

View File

@@ -0,0 +1,3 @@
{
"targetFramework": "v5.0"
}

View File

@@ -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 $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNetStandard --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-standard.json"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNetCoreProject --additional-properties packageGuid={67035b31-f8e5-41a4-9673-954035084f7d},netCoreProjectFile=true -c ./bin/csharp-petstore-net-standard.json"
java $JAVA_OPTS -jar $executable $ags

31
bin/csharp-petstore.sh Executable file
View File

@@ -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 $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientWithPropertyChanged --additional-properties generatePropertyChanged=true --additional-properties packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5}"
java $JAVA_OPTS -jar $executable $ags

31
bin/cwiki-petstore.sh Executable file
View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l cwiki -o samples/documentation/cwiki"
java $JAVA_OPTS -jar $executable $ags

41
bin/dart-petstore.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/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/dart -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l dart -o samples/client/petstore/dart/swagger -DhideGenerationTimestamp=true"
# 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"
java $JAVA_OPTS -jar $executable $ags
# There is a proposal to allow importing different libraries depending on the environment:
# https://github.com/munificent/dep-interface-libraries
# When this is implemented there will only be one library.
# The current petstore test will then work for both: the browser library and the vm library.

View File

@@ -17,12 +17,7 @@ if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
if [ ! -f "$executable" ]
then
@@ -31,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="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l dynamic-html -o samples/dynamic-html"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l dynamic-html -o samples/dynamic-html"
java $JAVA_OPTS -jar $executable $ags

31
bin/elixir-petstore.sh Executable file
View File

@@ -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"
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"
java $JAVA_OPTS -jar $executable $args

31
bin/erlang-petstore-server.sh Executable file
View File

@@ -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/erlang-server -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l erlang-server -o samples/server/petstore/erlang-server"
java $JAVA_OPTS -jar $executable $ags

31
bin/finch-petstore-server.sh Executable file
View File

@@ -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/finch -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l finch -o samples/server/petstore/finch"
java $JAVA_OPTS -jar $executable $ags

31
bin/flash-petstore.sh Executable file
View File

@@ -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/flash -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l flash -o samples/client/petstore/flash"
java $JAVA_OPTS -jar $executable $ags

33
bin/flaskConnexion-python2.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/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.yaml -l python-flask -o samples/server/petstore/flaskConnexion-python2 -DsupportPython2=true"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/flaskConnexion -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l python-flask -o samples/server/petstore/flaskConnexion-python2 -c bin/supportPython2.json -D service"
rm -rf samples/server/petstore/flaskConnexion-python2/*
java $JAVA_OPTS -jar $executable $ags

32
bin/flaskConnexion.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/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/flaskConnexion -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l python-flask -o samples/server/petstore/flaskConnexion -Dservice"
rm -rf samples/server/petstore/flaskConnexion/*
java $JAVA_OPTS -jar $executable $ags

31
bin/go-petstore-server.sh Executable file
View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l go-server -o samples/server/petstore/go-api-server -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice"
java $JAVA_OPTS -jar $executable $ags

31
bin/go-petstore.sh Executable file
View File

@@ -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/go -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l go -o samples/client/petstore/go/go-petstore -DpackageName=petstore "
java $JAVA_OPTS -jar $executable $ags

30
bin/groovy-petstore.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/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.yaml -l groovy -o samples/client/petstore/groovy -DhideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

31
bin/haskell-servant-petstore.sh Executable file
View File

@@ -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/haskell-servant -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l haskell -o samples/server/petstore/haskell-servant"
java $JAVA_OPTS -jar $executable $ags

31
bin/html-markdown.sh Executable file
View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/markdown.yaml -l html -o samples/html.md"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -17,12 +17,7 @@ if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
if [ ! -f "$executable" ]
then
@@ -31,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="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l html -o samples/html"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l html -o samples/html"
java $JAVA_OPTS -jar $executable $ags

31
bin/html2-petstore.sh Executable file
View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l html2 -o samples/html2 --additional-properties hideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/JavaInflector -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l inflector -o samples/server/petstore/java-inflector -DhideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 -t modules/swagger-codegen/src/main/resources/MSF4J -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l msf4j -o samples/server/petstore/java-msf4j/ -DhideGenerationTimestamp=true --additional-properties artifactId=swagger-msf4j-server"
echo "Removing files and folders under samples/server/petstore/java-msf4j/src/main"
rm -rf samples/server/petstore/java-msf4j/src/main
find samples/server/petstore/java-msf4j -maxdepth 1 -type f ! -name "README.md" ! -name "pom.xml" ! -name "mvn_test_jdk8_only.sh" ! -name ".swagger-codegen-ignore" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

18
bin/java-petstore-all.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
# update java petstore for all supported http libraries
./bin/java-petstore-jersey1.sh
./bin/java-petstore-jersey2.sh
./bin/java-petstore-feign.sh
./bin/java-petstore-okhttp-gson.sh
./bin/java-petstore-okhttp-gson-parcelable.sh
./bin/java-petstore-retrofit.sh
./bin/java-petstore-retrofit2.sh
./bin/java-petstore-retrofit2rx.sh
./bin/java-petstore-retrofit2rx2.sh
./bin/java8-petstore-jersey2.sh
./bin/java-petstore-retrofit2-play24.sh
./bin/java-petstore-jersey2-java6.sh
./bin/java-petstore-resttemplate.sh
./bin/java-petstore-resttemplate-withxml.sh
./bin/java-petstore-resteasy.sh

View File

@@ -0,0 +1,4 @@
{
"library": "feign",
"artifactId": "swagger-petstore-feign"
}

34
bin/java-petstore-feign.sh Executable file
View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Java/libraries/feign -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-feign.json -o samples/client/petstore/java/feign -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/feign/src/main"
rm -rf samples/client/petstore/java/feign/src/main
find samples/client/petstore/java/feign -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

34
bin/java-petstore-jersey1.sh Executable file
View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Java -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -o samples/client/petstore/java/jersey1 -DhideGenerationTimestamp=true --library=jersey1"
echo "Removing files and folders under samples/client/petstore/java/jersey1/src/main"
rm -rf samples/client/petstore/java/jersey1/src/main
find samples/client/petstore/java/jersey1 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 --artifact-id swagger-petstore-jersey2-java6 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-jersey2.json -o samples/client/petstore/java/jersey2-java6 -DhideGenerationTimestamp=true,supportJava6=true"
echo "Removing files and folders under samples/client/petstore/java/jersey2/src/main"
rm -rf samples/client/petstore/java/jersey2-java6/src/main
find samples/client/petstore/java/jersey2-java6 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "jersey2",
"artifactId": "swagger-petstore-jersey2"
}

34
bin/java-petstore-jersey2.sh Executable file
View File

@@ -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 java -c bin/java-petstore-jersey2.json -o samples/client/petstore/java/jersey2 -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/jersey2/src/main"
rm -rf samples/client/petstore/java/jersey2/src/main
find samples/client/petstore/java/jersey2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,33 @@
#!/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/Java/libraries/okhttp-gson -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson-parcelableModel -DhideGenerationTimestamp=true,parcelableModel=true"
rm -rf samples/client/petstore/java/okhttp-gson-parcelableModel/src/main
find samples/client/petstore/java/okhttp-gson-parcelableModel -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "okhttp-gson",
"artifactId": "swagger-petstore-okhttp-gson"
}

View File

@@ -0,0 +1,33 @@
#!/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/Java/libraries/okhttp-gson -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson -DhideGenerationTimestamp=true"
rm -rf samples/client/petstore/java/okhttp-gson/src/main
find samples/client/petstore/java/okhttp-gson -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "resteasy",
"artifactId": "swagger-petstore-resteasy"
}

34
bin/java-petstore-resteasy.sh Executable file
View File

@@ -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 java -c bin/java-petstore-resteasy.json -o samples/client/petstore/java/resteasy -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/resteasy/src/main"
rm -rf samples/client/petstore/java/resteasy/src/main
find samples/client/petstore/java/resteasy -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 --artifact-id swagger-pestore-resttemplate-withxml -l java -c bin/java-petstore-resttemplate.json -o samples/client/petstore/java/resttemplate-withXml -DhideGenerationTimestamp=true,withXml=true"
echo "Removing files and folders under samples/client/petstore/java/resttemplate/src/main"
rm -rf samples/client/petstore/java/resttemplate-withXml/src/main
find samples/client/petstore/java/resttemplate-withXml -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "resttemplate",
"artifactId": "swagger-petstore-resttemplate"
}

View File

@@ -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 java -c bin/java-petstore-resttemplate.json -o samples/client/petstore/java/resttemplate -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/resttemplate/src/main"
rm -rf samples/client/petstore/java/resttemplate/src/main
find samples/client/petstore/java/resttemplate -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "retrofit",
"artifactId": "swagger-petstore-retrofit"
}

34
bin/java-petstore-retrofit.sh Executable file
View File

@@ -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 java -c bin/java-petstore-retrofit.json -o samples/client/petstore/java/retrofit -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit/src/main"
rm -rf samples/client/petstore/java/retrofit/src/main
find samples/client/petstore/java/retrofit -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,6 @@
#!/bin/sh
./bin/java-petstore-retrofit2-play24.sh
./bin/java-petstore-retrofit2.sh
./bin/java-petstore-retrofit2rx.sh
./bin/java-petstore-retrofit2rx2.sh

View File

@@ -0,0 +1 @@
{"useBeanValidation":"true","enableBuilderSupport":"true","library":"retrofit2", "usePlay24WS":"true"}

View File

@@ -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 java -c bin/java-petstore-retrofit2-play24.json -o samples/client/petstore/java/retrofit2-play24 -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2-play24/src/main"
rm -rf samples/client/petstore/java/retrofit2-play24/src/main
find samples/client/petstore/java/retrofit2-play24 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "retrofit2",
"artifactId": "swagger-petstore-retrofit2"
}

34
bin/java-petstore-retrofit2.sh Executable file
View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2.json -o samples/client/petstore/java/retrofit2 -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2/src/main"
rm -rf samples/client/petstore/java/retrofit2/src/main
find samples/client/petstore/java/retrofit2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "retrofit2",
"artifactId": "swagger-petstore-retrofit2-rx"
}

View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2rx.json -o samples/client/petstore/java/retrofit2rx -DuseRxJava=true,hideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2rx/src/main"
rm -rf samples/client/petstore/java/retrofit2rx/src/main
find samples/client/petstore/java/retrofit2rx -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,4 @@
{
"library": "retrofit2",
"artifactId": "swagger-petstore-retrofit2-rx2"
}

View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2rx2.json -o samples/client/petstore/java/retrofit2rx2 -DuseRxJava2=true,hideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/retrofit2rx2/src/main"
rm -rf samples/client/petstore/java/retrofit2rx2/src/main
find samples/client/petstore/java/retrofit2rx2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -1,36 +0,0 @@
#!/bin/sh
SCRIPT="$0"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.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="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l java -o samples/client/petstore/java"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/JavaPlayFramework -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l java-play-framework -o samples/server/petstore/java-play-framework -DhideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/undertow -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l undertow -o samples/server/petstore/undertow --additional-properties hideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l java-vertx -o samples/server/petstore/java-vertx/async -DvertxSwaggerRouterVersion=1.2.0"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l java-vertx -o samples/server/petstore/java-vertx/rx -DvertxSwaggerRouterVersion=1.2.0,rxInterface=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -1,36 +0,0 @@
#!/bin/sh
SCRIPT="$0"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.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="$@ -i modules/swagger-codegen/src/test/resources/2_0/wordnik.json -l java -o samples/client/wordnik/java"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,5 @@
{
"library": "jersey2",
"artifactId": "swagger-petstore-jersey2",
"dateLibrary": "java8"
}

34
bin/java8-petstore-jersey2.sh Executable file
View File

@@ -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 java -c bin/java8-petstore-jersey2.json -o samples/client/petstore/java/jersey2-java8 -DhideGenerationTimestamp=true"
echo "Removing files and folders under samples/client/petstore/java/jersey2-java8/src/main"
rm -rf samples/client/petstore/java/jersey2-java8/src/main
find samples/client/petstore/java/jersey2-java8 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l javascript-closure-angular -o samples/client/petstore/javascript-closure-angular $@"
java $JAVA_OPTS -jar $executable $ags

34
bin/javascript-es6-petstore.sh Executable file
View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Javascript/es6 \
-i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l javascript \
-o samples/client/petstore/javascript-es6 \
--additional-properties useES6=true $@"
java -DappName=PetstoreClient $JAVA_OPTS -jar $executable $ags

6
bin/javascript-petstore-all.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
./bin/javascript-petstore.sh
./bin/javascript-promise-petstore.sh
./bin/javascript-es6-petstore.sh
./bin/javascript-promise-es6-petstore.sh

31
bin/javascript-petstore.sh Executable file
View File

@@ -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/Javascript -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l javascript -o samples/client/petstore/javascript -DappName=PetstoreClient --additional-properties useES6=false $@"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 -t modules/swagger-codegen/src/main/resources/Javascript/es6 \
-i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l javascript \
-o samples/client/petstore/javascript-promise-es6 \
--additional-properties usePromises=true,useES6=true $@"
java -DappName=PetstoreClient $JAVA_OPTS -jar $executable $ags

View File

@@ -0,0 +1,37 @@
#!/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/Javascript \
-i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml \
-l javascript \
-o samples/client/petstore/javascript-promise \
--additional-properties usePromises=true,useES6=false \
-DappName=PetstoreClient $@"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/JavaJaxRS/cxf-cdi -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-cxf-cdi -o samples/server/petstore/jaxrs-cxf-cdi -DhideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 --artifact-id "jaxrs-cxf-petstore-client" -t modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/ -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-cxf -o samples/client/petstore/jaxrs-cxf-client/"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/JavaJaxRS/cxf -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-cxf -o samples/server/petstore/jaxrs-cxf-annotated-base-path -DhideGenerationTimestamp=true,useAnnotatedBasePath=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/JavaJaxRS/cxf -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-cxf -o samples/server/petstore/jaxrs-cxf-non-spring-app -DhideGenerationTimestamp=true,generateNonSpringApplication=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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/JavaJaxRS/cxf -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs-cxf -o samples/server/petstore/jaxrs-cxf -DhideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@@ -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 -t modules/swagger-codegen/src/main/resources/JavaJaxRS/libraries/jersey1 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs -o samples/server/petstore/jaxrs/jersey1 -DhideGenerationTimestamp=true,serverPort=8080 --library=jersey1 --artifact-id=swagger-jaxrs-jersey1-server"
echo "Removing files and folders under samples/server/petstore/jaxrs/jersey1/src/main"
rm -rf samples/server/petstore/jaxrs/jersey1/src/main
find samples/server/petstore/jaxrs/jersey1 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

View File

@@ -17,12 +17,7 @@ if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`cd "${APP_DIR}"; pwd`
fi
root=./modules/swagger-codegen-distribution/pom.xml
# gets version of swagger-codegen
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
if [ ! -f "$executable" ]
then
@@ -31,6 +26,9 @@ 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="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l jaxrs -o samples/server/petstore/jaxrs"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaJaxRS -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs -o samples/server/petstore/jaxrs/jersey2 -DhideGenerationTimestamp=true,serverPort=8080"
echo "Removing files and folders under samples/server/petstore/jaxrs/jersey2/src/main"
rm -rf samples/server/petstore/jaxrs/jersey2/src/main
find samples/server/petstore/jaxrs/jersey2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

Some files were not shown because too many files have changed in this diff Show More