6160 Commits

Author SHA1 Message Date
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
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
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
wing328
960198d345 flash generator code format, update default value 2018-04-02 10:00:52 +08:00
wing328
6f5dee6169 add flash generator 2018-04-02 09:44:05 +08:00
wing328
bbadc7f439 add scalatra generator 2018-04-02 00:33:58 +08:00
wing328
9226ce61b1 add scalaz generator 2018-04-01 23:49:21 +08:00
wing328
3fc37cf13a add scala lagom server generator 2018-04-01 23:34:56 +08:00
wing328
e9089c85ae add scala gatling server 2018-04-01 23:13:50 +08:00
wing328
00f73f0ea8 add finch generator 2018-04-01 22:41:39 +08:00
wing328
cba5d7cabe Merge branch 'oas3_support2' of https://github.com/wing328/generate_test into oas3_support2 2018-04-01 22:25:50 +08:00
wing328
b0fc3e94a3 format code, add helper function to check body/form param 2018-04-01 22:25:22 +08:00
William Cheng
2fb9ce43b5
Merge pull request #9 from ackintosh/fix-discriminator
Fix broken discriminator
2018-04-01 19:09:54 +08:00
akihito.nakano
28fcf48f42 Add a method returns discriminator name
refs https://github.com/wing328/openapi-generator/pull/9#issuecomment-377776109
2018-04-01 19:38:19 +09:00
wing328
240d1fe7eb Merge branch 'oas3_support2' of https://github.com/wing328/generate_test into oas3_support2 2018-04-01 17:57:45 +08:00
wing328
af17953bf9 add apex generator 2018-04-01 17:57:21 +08:00
akihito.nakano
7daa2ec5da Fix broken discriminator 2018-04-01 18:29:13 +09:00
William Cheng
24db65b2b9
Merge pull request #8 from ackintosh/fix-required-flag
Fix 'required' flag
2018-04-01 14:37:04 +08:00
akihito.nakano
8e191a121b Fix 'required' flag 2018-04-01 13:05:57 +09:00
wing328
88f48c4a41 add Ada client, server generator 2018-04-01 11:19:22 +08:00
wing328
b287520e8a Merge branch 'master' into oas3_support2 2018-04-01 01:45:34 +08:00
William Cheng
f0497e249d
Merge pull request #7 from ackintosh/fix-missing-requestbody-param
Fix missing requestBody param
2018-04-01 00:58:31 +08:00
wing328
177c0105c3 add groovy generator, abstract java class (with TODO) 2018-04-01 00:25:12 +08:00
akihito.nakano
d1c1ef73eb Fix missing 'requestBody' param 2018-04-01 00:40:06 +09:00
wing328
efada7c540 fix the location of openapi.yaml/json file 2018-03-31 23:01:34 +08:00
wing328
a784932f04 add erlang client, server 2018-03-31 22:17:49 +08:00
wing328
b774a98822 add js closure angualr client generator 2018-03-31 22:06:51 +08:00
akihito.nakano
faa901640c Replace with the helper function: getTypeDeclaration 2018-03-31 20:52:44 +09:00
akihito.nakano
353c51fc0a Add helper function 2018-03-31 20:30:47 +09:00
William Cheng
d9ec433a5b
Merge pull request #2 from ackintosh/php-client
[WIP] Make PHPUnit green
2018-03-31 18:45:48 +08:00
wing328
5cea5972fa add swift 4 generator 2018-03-31 18:36:39 +08:00
wing328
b27e844661 fix openapi yaml/json file generation 2018-03-31 18:13:42 +08:00
wing328
565102eddf add swift3 client generator 2018-03-31 17:42:49 +08:00
wing328
5383c33181 add swift generator 2018-03-31 17:30:56 +08:00
wing328
eaed75229a add helper function to generate openapi yaml/json file 2018-03-31 17:11:54 +08:00
Ben Wells
c8650d0e34 Make optional properties in models optional parameters (#7859)
* Make optional properties in models optional parameters

Move incorrect location of typescript-node client

* Add typescript node package.json to swagger ignore
2018-03-31 12:12:06 +08:00
wing328
e3a4bd6e68 rename cpp related generator 2018-03-31 10:36:31 +08:00
Daiki Matsudate
46e5dddb05 removing trailing spaces (#7943) 2018-03-30 17:13:51 +08:00
Ben Wells
260375c9e1 Fix typescript-node generation of array type models (#7861) 2018-03-30 11:08:30 +08:00