Commit Graph

991 Commits

Author SHA1 Message Date
wing328
4bfc032a64 add oauth2 support for Perl 2015-11-05 16:32:46 +08:00
wing328
30a4be833b Merge pull request #1502 from dvz5/master
Rebuild perl petstore client after previous updates
2015-11-05 11:59:11 +08:00
Dave Baird
107452d406 Merge remote-tracking branch 'upstream/master' 2015-11-04 22:00:13 +00:00
Dave Baird
baf20ca226 Fix errors from using wrong JSON spec
I've been using http://petstore.swagger.io/v2/swagger.json instead of
modules/swagger-codegen/src/test/resources/2_0/petstore.json as the
input spec for building the petstore. This commit reverts the changes
introduced from that.
2015-11-04 22:24:49 +01:00
Dave Baird
f521680c0f Moved object classes' constructor into base class 2015-11-04 21:42:27 +01:00
Dave Baird
4264b74e40 Minor tidying up
Some documentation, fix a warning, added a couple of logger calls.
2015-11-04 20:27:23 +01:00
xhh
1a67f452e2 Make parameters unique in generated code
through a config option "ensureUniqueParams" which is false by default

Closes #1422
2015-11-04 20:51:56 +08:00
wing328
40bd4415f9 Merge pull request #1497 from aersamkull/master
Aligns the two typescript generators
2015-11-04 15:54:13 +08:00
wing328
12b872cd14 Merge pull request #1498 from xhh/ruby-deserialize-additional-properties
Ruby: support map/hash in model deserialization with additionalProperties
2015-11-04 15:13:12 +08:00
wing328
8fa06a1878 Merge pull request #1496 from wing328/python_improvement1
[Python] Add OAuth support
2015-11-04 14:33:47 +08:00
xhh
7813976d9b Minor changes 2015-11-04 10:26:14 +08:00
xhh
18abc56688 Add tests for array and map property deserialization 2015-11-04 10:23:21 +08:00
Dave Baird
37b123530f Add ApiFactory class and proper accessors on object classes
ApiFactory provides a get_api() method to generate API objects without
having to hard-code class names. All API and object classes are loaded
automatically.

Also, added proper accessors for attributes of object classes.
2015-11-03 17:58:53 +01:00
Dave Baird
8428e7963b Rebuild perl petstore client after previous updates
At least 2 previous updates were committed without rebuilding the perl
petstore client. One was my fault (BaseObject.pm changes), the other
changes come from an upstream update or updates  I can't identify.
2015-11-03 16:46:47 +01:00
wing328
c8ce84f650 replace tab with space, update samples 2015-11-03 21:34:44 +08:00
wing328
5bf4d022cf Merge pull request #1490 from xhh/java-oauth
Add oauth support for Java client
2015-11-03 20:34:12 +08:00
xhh
abe44df1ec Ruby: support map/hash in model deserialization with additionalProperties
For example, the "scoreMap" and "cateMap" properties below:

  "definitions": {
    "User": {
      "properties": {
        "scoreMap": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "int32",
          }
        },
        "cateMap": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/Category"
          }
        }
      }
    }
  }
2015-11-03 16:39:54 +08:00
aersamkull
5580eb7ac3 Aligns the two typescript generators 2015-11-03 09:03:52 +01:00
wing328
792726ddc5 update sample, better handle of $ in naming 2015-11-03 10:29:28 +08:00
wing328
89ec500744 add oauth support in python 2015-11-03 10:14:20 +08:00
wing328
86efdc5b54 Merge pull request #1485 from xhh/ruby-oauth
Add oauth support for Ruby client
2015-11-03 09:13:53 +08:00
cbornet
8b0bf8ff72 add a listener on new token reception
Add a listener on new token reception that can then be stored or logged for debug
Add an helper method to add authorizations (otherwise if the swagger def is not complete or correct, it is hard to configure from the main app)
2015-11-02 19:20:24 +01:00
xhh
a94f9b69af Add oauth support to other Java clients
with libraries jersey2 and okhttp-gson
2015-11-02 22:52:51 +08:00
wing328
9f7427b1cf Merge pull request #1489 from dvz5/master
Fix array query param processing
2015-11-02 21:36:25 +08:00
xhh
b27931cd8c Add oauth support for Java client 2015-11-02 21:27:53 +08:00
Dave Baird
3559a8bd09 Fix array query param processing
A couple of PHP functions that don't exist in Perl were being called to
process array query parameters.
2015-11-02 10:47:46 +01:00
xhh
1c3dc28c67 Add oauth support for Ruby client 2015-11-02 12:50:23 +08:00
dvz5
08f424824c Update 02_store_api.t 2015-11-01 23:14:22 +01:00
dvz5
2e03ecc4b8 Update 01_pet_api.t
Add tests for photoUrls, to check correct mapping from object attribute name to JSON attribute name.
2015-11-01 23:10:20 +01:00
wing328
7bc523324d Merge pull request #1446 from wing328/php_improvement1
[PHP] add OAuth support
2015-10-31 22:46:52 +08:00
xhh
953edc940f Java jersey2: use a shared Client instance 2015-10-29 09:40:07 +08:00
wing328
6c12e5ac8b update php sample 2015-10-28 21:45:22 +08:00
wing328
67815ed5f2 add oauth support for php 2015-10-28 21:44:12 +08:00
wing328
55d69d80bc update c# sample code 2015-10-28 15:33:56 +08:00
Arne Jørgensen
47b2ae934b Regenerated PHP petstore sample. 2015-10-27 22:58:25 +01:00
xhh
95113dbe22 Fix syntax error on authMethods in java retrofit client 2015-10-27 10:45:23 +08:00
xhh
dcec2e7b5d Forgot to use _to_hash for non-array value 2015-10-23 18:03:38 +08:00
xhh
940e76f45f Ruby client: include empty arrays in model serialization 2015-10-23 17:08:12 +08:00
Ampem Darko
57e3ea3e9c Ensure parameters to "each" is a hash in TO_JSON and from_hash 2015-10-21 13:35:48 +00:00
xhh
214e0186e8 Ignore null fields in model serialization
in Java clients.

Closes #1413
2015-10-21 12:05:27 +08:00
Tony Tam
7f5cdba606 rebuilt 2015-10-20 11:42:40 -07:00
Tony Tam
295af57c9a fixed build error 2015-10-20 11:31:21 -07:00
Tony Tam
10a9c62e2b merged 2015-10-20 10:57:36 -07:00
Tony Tam
a6bd0773f7 added files 2015-10-20 10:56:18 -07:00
Tony Tam
a21f08118e rebuilt 2015-10-20 10:31:42 -07:00
Tony Tam
96380bbc83 rebuilt 2015-10-20 10:31:17 -07:00
Tony Tam
abe4980449 rebuilt 2015-10-20 10:30:19 -07:00
Tony Tam
e3151c57a0 rebuilt 2015-10-20 10:29:48 -07:00
Tony Tam
b41a40f9be rebuilt 2015-10-20 10:28:49 -07:00
Tony Tam
2f3a2413c7 rebuilt 2015-10-20 08:49:26 -07:00