Commit Graph

7420 Commits

Author SHA1 Message Date
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
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
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
wing328
4b0d58abfd fix hasHeaderParams tag 2016-10-13 18:15:04 +08: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
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