10446 Commits

Author SHA1 Message Date
Akihito Nakano
4a5d16b236 [PHP] Fix string length validation (#7953)
* Add a test case which reproduces the issue

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

* Change `strlen` -> `mb_strlen` in order to count the length correctly

* Regenerate the samples
2018-04-06 14:20:05 +08:00
Benjamin Gill
37faaf9266 [rust-server] API version constant and composite version support (#7969)
* Add constant with API version

* Use semver::Version for ApiVersion

* Go back to API version as a string

* Rust composite services

* Actually use the version from the swagger file
2018-04-06 13:27:13 +08:00
wing328
d48c4e5038 Merge branch 'master' into oas3_support2 2018-04-05 23:49:59 +08:00
Jérémie Bresson
386b9f432a Modify "postProcessOperations" for "jaxrs-cxf-client" (#7886)
* Fix sh script for 'jaxrs-cxf-client' and generate sample

* Modify "postProcessOperations" for "jaxrs-cxf-client"

* Update "jaxrs-cxf-client" sample
2018-04-05 23:34:37 +08:00
wing328
3cb3faedc1 update swagger core version to 2.0.0 2018-04-05 16:51:33 +08:00
wing328
409015461c fix file type in qt5cpp 2018-04-05 15:56:30 +08:00
wing328
a4bcb3bc73 fix datetime and map type for qt5cpp 2018-04-05 14:36:35 +08:00
wing328
d882ad2fcb using isMapSchema in generator 2018-04-05 13:18:04 +08:00
wing328
b8031b631d fix npe by MapSchema 2018-04-04 23:02:13 +08:00
wing328
df19e1e05e fix NPE with qt5 pestore 3.0 spec 2018-04-04 22:37:12 +08:00
wing328
8dbf2ed851 add spring generator 2018-04-04 22:20:22 +08:00
wing328
7310bbf31e add openapi (json/yaml) generator 2018-04-04 22:00:15 +08:00
wing328
1bc015f5ae add java undertow server generator 2018-04-04 18:40:31 +08:00
wing328
a6c8330e10 add elm generator 2018-04-04 18:20:17 +08:00
wing328
4887be0b1e add ts inversify generator 2018-04-04 17:45:39 +08:00
wing328
ffa89dc373 Merge branch 'master' into oas3_support2 2018-04-04 17:33:28 +08:00
wing328
8b3bd049a9 add JavaJAXRSCXFCDIServerCodegen generator 2018-04-04 17:25:13 +08:00
wing328
60fdfdfbed add jaxrs spec generator, rename openapi.mustache 2018-04-04 17:18:48 +08:00
wing328
c843712cdb add java inflector 2018-04-04 17:05:07 +08:00
wing328
e53d375589 add java-msf4j generator 2018-04-04 16:57:44 +08:00
wing328
c45a217a8c add java cxf client, server generator 2018-04-04 16:51:57 +08:00
wing328
f6c268ddd9 add jaxrs jersey server generator 2018-04-04 16:32:06 +08:00
wing328
b45b0c6cd1 add java resteasy eap server generator 2018-04-04 16:22:24 +08:00
wing328
5180881a50 add resteasy server genrator 2018-04-04 16:16:04 +08:00
Yukio Ejiri
3c5fb1d809 [kotlin] Add json annotation to each enum value. (#7908)
* [kotlin] Add moshi.Json annotation.

* [kotlin] update petstore samples.

* [kotlin] Remove extra new lines.
2018-04-04 15:26:19 +08:00
wing328
1db42ba317 add jmeter generator 2018-04-04 00:56:12 +08:00
Gualtieri Mario
e2c58fad71 Add typescript-inversify code generator (#7885)
* Add typescript-inversify language

* Add windows script


Add windows script

* Use rxjs instead of rx and encoding only the value of URL parameters

* Remove lodash dependency


Remove lodash dependency

* Readd linux user detail on run-docker script

* Solve import problems

* Remove configuration template

* Add usePromise config's variable

* Align Test to check usePromise config parameter

* Add possibility to receive all the httpResponse

* Better ts-lint on api service

* Update sample client example with new ts-lint

* Update petstore sample with new ts-lint
2018-04-04 00:30:53 +08:00
wing328
581b22bbc0 add java pkmst server generator 2018-04-04 00:24:01 +08:00
gs
240aad8686 Additional reserved python keywords (#7956) 2018-04-04 00:15:15 +08:00
William Cheng
74fa9418d8
add link to Swagger Codegen eBook in Japanese 2018-04-04 00:14:06 +08:00
wing328
8b39024932 add java vertx server generator 2018-04-03 22:04:51 +08:00
wing328
2297a70512 add play generator 2018-04-03 15:59:15 +08:00
wing328
d4cd0bdc3e add java generator 2018-04-03 15:45:24 +08:00
wing328
ffecaa1b0b add html, html2 generators 2018-04-03 14:36:08 +08:00
wing328
0081a2b89f add dynamic-html generator 2018-04-03 14:21:31 +08:00
wing328
e2b9c8323d Merge branch 'master' into oas3_support2 2018-04-02 23:01:07 +08:00
wing328
70fec38022 remove old codegen files 2018-04-02 22:53:22 +08:00
murzic4
bad1885b47 fix #7906 [cpprest] add parameterToString for number type with unspecified format (double) (#7929) 2018-04-02 16:44:09 +08:00
wing328
5d1874028b add class as a keyword in objc generator 2018-04-02 16:36:01 +08:00
wing328
904cdc0d5b Merge branch 'master' into oas3_support2 2018-04-02 16:34:11 +08:00
wing328
7673813648 update cpp qt5 sample 2018-04-02 16:25:35 +08:00
Martin Delille
23b31aba89 [qt5cpp] Fix crash when API return a map container (#7933)
* [qt5cpp] Fix crash when API return a map container

* qint32 => {{returnBaseType}}
2018-04-02 16:24:57 +08:00
William Cheng
f2186b212c
Merge pull request #4 from wing328/qt-update-client
Qt update client
2018-04-02 16:06:56 +08:00
wing328
b550471573 fix long cast to int 2018-04-02 16:03:40 +08:00
wing328
d690f429df fix model name when obtaining from get$ref 2018-04-02 15:28:03 +08:00
aneeshkasokan
1b8df5c20f Update ObjcClientCodegen.java (#7950)
Added "class" as a reserved keyword for Objc.
2018-04-02 15:05:32 +08:00
Euan Kemp
b443573945 [Rust] Implement minimal auth support (#7338)
* [Rust] Implement minimal auth support

This is pretty much the bare minimum needed to get v2 auth working.

This is partly based on the Go implementation.

* [Rust] properly format query string

* [Rust] Improve auth formatting

* [Rust] Regenerate petstore sample
2018-04-02 14:58:26 +08:00
wing328
d40c28b2b9 add rust client, server generator 2018-04-02 12:53:06 +08:00
Benjamin Gill
6c7813e79c [rust-server] asynchronous support via hyper v0.11 (#7896)
* End use of deprecated openssl method

* Enhance rust-server to use hyper 0.11 to support handling operations asynchronously

The changes are complete and working (at least for microservices tested within Metaswitch).  This isn't completely compatible with the (previous/current) synchronous swagger-codegen.  Specifically,

*   `Client` is no longer `Send + Sync`
*   Api implementations used by Server are no longer expected to be `Send + Sync` (which is good, because it's quite hard if `Client` isn't)
*   the code to create `Client`s and `Server`s, and hook them into `hyper` or `tokio` is different.

Importantly, though, the business logic itself should be unchanged.

* Re-adds the `basePath` element to all server endpoints. This mean clients and servers can talk to each other again.

* Fix multipart formdata codegen

* Fix up handling of multipart messages
* Fix server -> client multipart message response
* Correct handling of optional file types

* Add authorization header to requests with basic auth

* Add client support for `application/x-www-form-urlencoded`

* Import uuid library if headers use UUID type

* Add BASE_PATH to the server module.

* Wrap client connector

* Support both query and body parameters on the same operation
2018-04-02 10:32:45 +08:00
wing328
9b5c71fdb2 add eiffel generator 2018-04-02 10:29:35 +08:00