Commit Graph

10040 Commits

Author SHA1 Message Date
wing328
803cafb995 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2018-02-11 17:29:10 +08:00
wing328
8ba9db67f5 remove oudated php, node server samples 2018-02-11 17:28:38 +08:00
Aykut Akin
0b845a57e4 [Rust] Changes hard coded body to dynamic parameter name - Fixes #6569 (#7630) 2018-02-10 22:27:44 +08:00
William Cheng
854b5012be
fix NPE when host is undefined (#7633) 2018-02-10 17:11:11 +08:00
Matthew McGarvey
0a28aad73b [MAVEN PLUGIN] Checking for null configOptions before looking for property (#7613)
* Checking for null configOptions

* Inline configOptions check
2018-02-10 16:08:47 +08:00
jarlesat
f41683a5ba Update README.md (#7615)
Added Husbanken who uses swagger-codegen to specify, document and generate api-stubs for internal web-services.
2018-02-08 16:32:14 +08:00
wing328
0c3fc84f52 minor enhancemnt to swift3 bin scripts 2018-02-08 15:14:49 +08:00
Aykut Akin
62b93fc5cb [Python][Flask] Handles UUID format - Fixes #7469 (#7507) 2018-02-08 14:57:46 +08:00
Victor Orlovsky
62a930223f [JAVA][Rest-assured] reqSpec() method has been added into api.mustache for requests custom… (#7556)
* reqSpec() method has been added into api.mustache for requests customisation (group operations)

* add - reqSpec() has been added to samples
2018-02-08 14:51:23 +08:00
Alexander Ovchinnikov
ee561fcd63 Add withXml option for Go language (#7566)
* Added support for application/xml content-type for GO language
Issue #7463

* Added test scripts for Go lang "withXml" feature

* Added samples for Go land "withXml" feature.

* "withXml" feature for Go language is only available for client.
2018-02-08 14:47:47 +08:00
Jim Schubert
8668175879 [aspnetcore] Fix string enum generation (#7581)
* [aspnetcore] Fix enum strings generation regression

* [aspnetcore] Regenerate sample
2018-02-08 14:43:47 +08:00
Xiaoxiao
b184fb1d9c [Swift3] escape URL parameters (#7529)
* Escape URL parameters for Swift4 and update its Petstore sample

* Update the code style

* Update code style

* Update code style

* Remove break statements in switch for AlamofireImplementations
2018-02-08 00:19:04 +08:00
William Cheng
52f606b8dc
Fix Swift3 test cases and add pom.xml, travis config for iOS test (#7608)
* add pom.xml for testing objc, swift

* add travis config for testing swift, objc

* test swift, objc clients

* use ruby 2.4.2

* remove stack

* update swift3 petstore

* test with xcode9

* remove testing inline additional properties for swift3

* restore travis, pom
2018-02-07 23:13:48 +08:00
Clinton Christian
d38a090395 Add SessionM to list of companies using swagger. (#7598) 2018-02-07 16:46:06 +08:00
Jim Schubert
0e34bcf4e4 [csharp] ctor params should always be camelCase (#7519)
* [csharp] ctor params should always be camelCase

After PR #6305, var names defaulted to PascalCase results in constructor
arguments also being PacalCase. Model properties and constructor
arguments have no reason to be the same case, and in fact may cause
issues (`name = name` will result in a compilation error).

This commit forces all constructor params in models to lowerCase.

This is a necessary change, for instance, if client SDK consumers assign
using named args:

var a = new Model(first = "", second = "")

The PacalCase default and update to constructor arg casing will break
existing consumers of the client.

See #7070 for more details and discussion.

* [csharp] Regenerate samples

* [csharp] Remove client models generated from a different spec.

* [csharp] Escape reserved words on camelcase/lowercase lambdas

* [csharp] Regenerate samples
2018-02-06 22:54:26 +08:00
chrishiggins34
1139f3f053 Add a link to eBook on top (#7588)
The eBook is hard to find as it's in the presentation section (bottom)
2018-02-06 22:35:42 +08:00
William Cheng
87a4e296c0
Add link for the FOSDEM 2018 presentation 2018-02-05 18:07:09 +08:00
Stephane Carrez
9ba74f4840 [Ada] Fix GNAT project and server skeleton to avoid sending a response when an error is returned (#7574)
* Fix the GNAT project for the client and server to avoid using unecessary projects on
the client side

* Define a minimal configuration for user and application definition

* Fix the server skeleton to emit the response only when the status code is 200

* Fix the Ada petstore GNAT project
2018-02-05 17:47:20 +08:00
William Cheng
dbe78e23e8
[Lua] Improve auto-generated test files (#7568)
* move lua spec folder, remove extra endline

* remove extra line

* remove duplicated import
2018-02-04 22:06:43 +08:00
William Cheng
6c79052ac4
Add auto-generated Lua spec files for APIs, models (#7562)
* add auto-generated lua spec files for api, models

* use partial header in test files
2018-02-03 00:12:01 +08:00
shwetas1205
dfbef43743 Fixed unicode error and supported allow_nonstandard_methods in tornado based python client (#7560)
* fixing "decoding Unicode is not supported" error for py2 when data is unicode

* allowing nonstandard methods for tornado python client.

* Making sure to return unicode when needed
2018-02-02 23:00:04 +08:00
micheleISEP
ea27924f5c [Ada] changed default project/package name, to solve circular dependencies (#7550)
* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450

* Updated the Ada petstore samples

* Committing "VERSION" file and the rest of the petstore samples

* Changed default project name and package name for Ada, not to have circular dependencies between gpr files.
2018-02-02 17:36:15 +08:00
REST United
0e52dcd0c0 Add restunited to the list of companies (#7555) 2018-02-02 14:26:07 +08:00
William Cheng
38a2c1dde9
[Lua] Fix Rockpec (#7554)
* fix lua rockspec

* use dot in the rockspec namespace
2018-02-02 14:03:58 +08:00
wing328
73231bda1f Merge branch 'wingsofovnia-fix/issue-6553-completable' 2018-02-02 13:53:40 +08:00
wing328
5a2c3a6571 Merge branch 'fix/issue-6553-completable' of https://github.com/wingsofovnia/swagger-codegen into wingsofovnia-fix/issue-6553-completable 2018-02-02 12:19:44 +08:00
William Cheng
fec0363f7d
[Java] Add back byte array enhancement (#7546)
* add back byte array enhanceement

* add okio dependency to java rest assured api client
2018-02-01 21:49:22 +08:00
Michael Simons
9c79297d6a Use latest version in dependencies snippet (#7545)
Please use the latest version in the snippet as the older ones may contain nasty bugs (like this one https://github.com/swagger-api/swagger-codegen/issues/6122). Thanks.
2018-02-01 21:22:41 +08:00
William Cheng
13e3db59e3
Add operationIdOriginal to store the original operationId (#7522)
* add operationIdOriginal to store the original operationId

* store the original operation Id in DefaultCodegen
2018-02-01 19:25:25 +08:00
wing328
d01a60cb14 update ts petstore files 2018-02-01 19:20:35 +08:00
wing328
3adbd86760 remove corrupted ts files 2018-02-01 19:18:14 +08:00
wing328
1fbc3768a2 use python 3.6.3 as default in travis build 2018-02-01 17:28:55 +08:00
Tomasz Prus
f6e0e297eb [python-asyncio] tests and fixes (#7235)
* fix: creating ssl context and passing args/files/forms

* feat: python-async add tests

* chore: rebuild petstore sample for python, tornado and asyncio

* feat: add python asyncio to travis

* feat: print coverage (python-asyncio)
2018-02-01 17:26:38 +08:00
Erik Timmers
157e6b7fab [angular] Add option to generate tagged unions (#7245)
Using the option `taggedUnions` will create a union type for each parent
type instead of extending interfaces. The union types are tagged by using
the discriminator values.

And also:
* Add support for aliases;
* Add support for read-only properties.
2018-02-01 17:20:50 +08:00
William Cheng
36f69a034d
remove trailing spaces in qt5 c++ templates (#7525) 2018-02-01 13:35:09 +08:00
Jon Schoning
2d0bafb6b2 [haskell-http-client] default InlineMimeTypes=true (#7534)
- default CLI option InlineMimeTypes to True, since it produces cleaner code

- update bounds on dependancies
2018-02-01 12:26:13 +08:00
William Cheng
6b9d38d40a
remove trailing spaces in ada template (#7527) 2018-01-30 14:39:13 +08:00
wing328
4b428e89b6 resume docker build for swagger codegen cli 2018-01-30 11:46:11 +08:00
wing328
2178abe472 resume docker build for swagger generator 2018-01-30 11:24:39 +08:00
William Cheng
8aa5642845
add dart style guide 2018-01-30 11:06:42 +08:00
Jörn Ahrens
f1638a659a [Dart] Allow setting an accessToken for OAuth (#7528)
* dart - allow setting an accessToken for oauth

* Remove unneeded accessToken member
2018-01-30 11:04:04 +08:00
William Cheng
eb35870d11
remove trailing spaces in r templates (#7526) 2018-01-30 11:02:13 +08:00
wing328
5d92717dc9 update jaxrs to listent at port 10080 2018-01-30 00:23:08 +08:00
wing328
36b042d605 update ts aurelia petstore samples 2018-01-29 16:42:16 +08:00
Konstantin Simon Maria Möllers
7faaa091cd Fix generated module imports in Aurelia APIs (#7465) (#7520) 2018-01-29 15:46:51 +08:00
wing328
7c20316755 update artifict id for jaxrs datelib j8 2018-01-29 13:51:21 +08:00
wing328
cf21ac0327 update spring petstore samples 2018-01-29 01:38:13 +08:00
Adam Conway
d14318cf25 [JAVA][Spring]Optional params with delegate (#7180)
* Fixed data type for optional parameters in delegate

When generating using the delegatePattern and including an optional parameter, the api used a type of Optional<T> while the delegate used just T.  This resulted in a java error in the generated code wen trying to call one from the other.
Fixed by using correct data type in delegate

Fix #7179

* Updated samples using supplied (Windows) scripts

* Revert "Updated samples using supplied (Windows) scripts"

This reverts commit 58b9c618085ac4201cfb011def96e14caaaff3f8.
2018-01-29 01:31:47 +08:00
Victor Orlovsky
abdc6759d3 @viclovsky has been added to template creators (#7517) 2018-01-29 01:16:21 +08:00
wing328
87cdddcf17 add CI test for JAXRS datelibrary java8 2018-01-29 00:35:09 +08:00