Arne Jørgensen
9f40a82310
[PHP] Fix ArrayAccess interface implmentation in models
...
The models didn't implement a generally working ArrayAccess
interface. This would fail on list container types (array).
This commit refactors some internals of the model object. The model
properties are no longer stored as separate properties on the PHP object
but as entries in a `$container` property.
This is needed to make the model work also for list containers. Besides
it avoids potential problems where the model would specify property
names that could collide with names used by the Swagger model
implementation itself (i.e. `$attributeMap`).
2016-04-27 21:00:58 +02:00
Arne Jørgensen
bbe12c1658
[PHP] Use parentSchema instead parent to detect inheritance
...
`parent` in a model is set not only when the model inherits from another
model but also when a parent container exists.
So We will now use `parentSchema` to check whether a parent class
exists. If si we still use `parent` to output the class name because
that has been converted to a proper model name and `parentSchema`
hasn't.
2016-04-27 21:00:58 +02:00
Arne Jørgensen
7f99469efd
[PHP] Add test case testing ArrayAccess interface
...
Test if we implement the ArrayAccess interface correct on out model objects.
2016-04-27 21:00:58 +02:00
wing328
67b6c3f3d3
Merge pull request #2721 from fabdslv/issue-2116
...
Fix typo introduced while fixing #2116
2016-04-27 21:42:16 +08:00
wing328
46f049bef1
Merge pull request #2719 from wing328/add_uuid_mapping
...
[Python] mapped uuid to str in python
2016-04-27 21:14:00 +08:00
Fabien Da Silva
74fb6175b6
Fix typo introduced while fixing #2116
2016-04-27 13:25:33 +02:00
wing328
0244c62b47
Merge pull request #2718 from neilotoole/issue-2717
...
issue #2717 - go code won't compile due to not respecting packageName variable
2016-04-27 17:55:59 +08:00
wing328
87c6566bd0
mapped uuid to str in python
2016-04-27 17:37:44 +08:00
Neil O'Toole
8753faf2a5
issue #2717 - go code won't compile due to not respecting packageName var
2016-04-27 09:19:23 +01:00
wing328
4d3f82e701
renmae toJSONSchemaPattern to toRegularExpression
2016-04-27 16:09:53 +08:00
wing328
3289933405
Merge pull request #2708 from PagerDuty/ruby-model-boolean-fix
...
Fix ruby model Boolean Attributes not being set
2016-04-27 13:46:21 +08:00
wing328
d9e4d5ccd1
Merge pull request #2637 from fabdslv/issue-2116
...
[Swift] Force required attrs to be defined with unwrapRequired
2016-04-27 13:32:41 +08:00
wing328
3ea3f9f0bf
Merge pull request #2712 from neilotoole/issue-2711-equals-hashcode
...
issue #2711 adding equals, hashcode etc to model classes
2016-04-27 13:17:40 +08:00
wing328
1169abac2e
Merge pull request #2707 from wing328/qt5_date
...
[Qt5][C++] fix date mapping in qt5cpp
2016-04-27 10:33:14 +08:00
Neil O'Toole
dab2b13df1
issue #2711 adding equals, hashcode etc to model classes
2016-04-27 01:32:02 +01:00
Brian Hou
1361bb7c0b
Fix ruby model boolean attributes
2016-04-26 10:21:16 -07:00
wing328
2b71165584
fix date mapping in qt5cpp
2016-04-27 00:06:29 +08:00
wing328
07d2374320
Merge pull request #2699 from mateuszmackowiak/feature/obj/jsonModel_deserialization_errors
...
#1907 JsonModel deserialization errors
2016-04-26 21:20:50 +08:00
Mateusz Mackowiak
18783e3fc7
#1907 JsonModel deserialization errors
2016-04-25 19:04:00 +02:00
Fabien Da Silva
dc4c8e5864
[Swift] Force required attrs to be defined with unwrapRequired
...
Fix #2116
Removal of forced unwrapping, replaced by required attributes in constructor
2016-04-25 18:36:32 +02:00
wing328
354449ebfe
add validation to method parameters
2016-04-26 00:06:44 +08:00
wing328
89703d86b7
add hasValidation to codegenParameter
2016-04-25 22:45:45 +08:00
wing328
0792ddc9b4
Merge pull request #2695 from wing328/model-min-max-pattern
...
[Ruby] Add more validation rules to Ruby models
2016-04-25 22:41:19 +08:00
wing328
4854b79a31
add pattern check to ruby model
2016-04-25 22:23:23 +08:00
wing328
0e58265eb5
use instance variable in validation rule
2016-04-25 21:52:37 +08:00
wing328
82ee716f53
Merge pull request #2692 from guohuang/apiclient_update
...
Rewrite Api_Client.go to use resty api
2016-04-25 21:34:39 +08:00
wing328
e17a620506
add methods to validate the ruby object
2016-04-25 19:18:05 +08:00
wing328
3c36f1df37
use ArgumentError in ruby model
2016-04-25 17:45:32 +08:00
wing328
ab986a7228
add more validation test for ruby model
2016-04-25 17:36:32 +08:00
wing328
e143c6cd2f
add validation to ruby model
2016-04-25 17:07:42 +08:00
Guo Huang
7599dcb112
changed Api to API based on golang's convention
2016-04-24 21:10:32 -07:00
Guo Huang
ea445c1e28
added missing file
2016-04-24 15:44:52 -07:00
wing328
d225da082c
Merge pull request #2691 from wing328/add_required_optional_vars
...
Add requiredVars and optionalVars for codegen model
2016-04-24 21:21:34 +08:00
wing328
fb883e5f03
add back groovy code generator
2016-04-24 16:33:15 +08:00
Guo Huang
1de18eb074
added implementation of the new ApiResponse struct
2016-04-23 17:50:17 -07:00
Guo Huang
7df5c8ffbf
added model ApiResponse, moved ApiResponse parameter
2016-04-23 16:41:14 -07:00
Guo Huang
e7df5f9551
fixed multiple import mapping issue
2016-04-23 09:52:17 -07:00
wing328
a281afaebf
add requiredVars and optionalVars for codegen model
2016-04-23 22:48:24 +08:00
wing328
f1d75f46cf
fix #2688
2016-04-23 16:49:52 +08:00
wing328
5602cb6db8
Merge pull request #2676 from Vrolijkx/master
...
Typescript angular2 client can be published to npm
2016-04-23 14:58:28 +08:00
wing328
f127bbe891
Merge pull request #2685 from wing328/java_client_update
...
[Java] update maven and gradle version for Java api client
2016-04-23 13:51:49 +08:00
wing328
1ca246c4c8
update java version in pom for java api client
2016-04-23 12:59:36 +08:00
Scott Kirkpatrick
bf35d57178
Update Java version to 1.7 in generated pom
...
This fixes #2607 and brings the Java version in the generated pom
to match the version in the generated build.gradle.
2016-04-22 11:47:34 -07:00
wing328
8c27f296fb
update maven and gradle version for java api client
2016-04-22 23:13:12 +08:00
wing328
a63dbeb4c8
fix bug related to api, model doc for java server generator
2016-04-22 17:05:22 +08:00
wing328
fb04bb7d4d
Revert "Revert "[Java] Add auto-generated documentation in Markdown to Java clients""
2016-04-22 10:13:54 +08:00
wing328
c171356d24
Revert "[Java] Add auto-generated documentation in Markdown to Java clients"
2016-04-22 00:21:04 +08:00
wing328
b847838a0c
Merge pull request #2655 from kolyjjj/issue2621
...
include underscore when generating nodejs controller and service method
2016-04-21 23:35:17 +08:00
wing328
bb54f8a39e
Merge pull request #2674 from cjolif/int64
...
Make sure to convert Int32/Int64 to NSNumber. fixes #2669 .
2016-04-21 22:20:15 +08:00
Kristof Vrolijkx
9195e92023
using all config properties and adding extra space to package.mustache.
2016-04-21 15:52:43 +02:00