18059 Commits

Author SHA1 Message Date
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
4785451bf8 Merge pull request #4272 from swagger-api/pr_4223_b
[Typescript][Angular2] update to angular2 release version
2016-11-28 21:51:22 +08:00
Kristof Vrolijkx
764b4c8423 fixing whitespace 2016-11-28 19:11:50 +08:00
Kristof Vrolijkx
2050624298 running sample generation 2016-11-28 19:11:21 +08:00
wing328
9bc41c458d disable AbstractIntegrationTest 2016-11-28 18:23:10 +08:00
wing328
60083abd87 disable appveyor cache 2016-11-28 18:12:58 +08:00
Kristof Vrolijkx
b35e4c99c6 exposing api.module in index.ts 2016-11-28 18:10:21 +08:00
Kristof Vrolijkx
dc256e5554 removing postinstall to fix problems when installing published api in other project 2016-11-28 18:10:07 +08:00
Kristof Vrolijkx
24c23d748c updating versions of package.json + ignoring build files + adding basePath to ConfigurationObject and giving de ConfigurationObject an easy constructor 2016-11-28 18:09:54 +08:00
Kristof Vrolijkx
68bda09cd8 fixing integration tests 2016-11-28 18:09:39 +08:00
Kristof Vrolijkx
0faac57423 fixing import problems and updating integration tests 2016-11-28 18:08:51 +08:00
Sebastian Haas
7ea419dc5d Added Angular 2 module structure. 2016-11-28 18:03:40 +08:00
wing328
0f8ce8b8e2 Merge pull request #4216 from ButterflyNetwork/swift-3-iso-date
[Swift 3] Use ISOFullDate for date format
2016-11-28 10:27:26 +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