openapi-generator/samples/client/petstore
Arne Jørgensen 65d677c385 Set discriminator property in constructor
When using inheritance let the constructor set the discriminator
property to the model name.

This avoids redundant and error prone stuff like:

```
  $animal = new \Swagger\Client\Model\Dog();
  $animal->setClassName('Dog');
```
2016-04-09 21:05:18 +02:00
..
akka-scala updated swagger-core versions 2016-02-04 18:02:19 -08:00
android update build.gradle for android (default, volley) 2016-03-25 17:35:21 +08:00
async-scala rebuilt 2015-10-20 10:31:42 -07:00
clojure push new git_push and .gitinore file 2016-03-12 18:01:53 +08:00
csharp/SwaggerClientTest better code quality 2016-04-09 19:03:31 +08:00
csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient fix comment in csharpdonet2.0 2016-01-10 00:31:37 +08:00
dart Generate auth files to correct location 2015-09-06 19:58:28 -04:00
flash ADD: Add the flash client library sample 2016-02-05 12:16:46 +01:00
go updated sample files 2016-04-07 22:27:33 -07:00
java Provide dependency to javax.annotation.Generated for android with Retrofit 2 2016-04-07 17:38:10 +02:00
javascript add new files for JS 2016-03-30 21:54:38 +08:00
javascript-closure-angular Add tests for API 2016-02-02 00:45:40 -07:00
javascript-promise add new files for JS 2016-03-30 21:54:38 +08:00
objc add oauth support to objc 2016-04-05 23:31:22 +08:00
perl add new files for perl, php, ruby 2016-03-30 22:38:53 +08:00
php Set discriminator property in constructor 2016-04-09 21:05:18 +02:00
python Merge pull request #2529 from cobain/bugfix/issue2061_fix_DeprecationWarning_in_unit_tests 2016-04-09 22:08:31 +08:00
qt5cpp fix file support in form parameter (qt5cpp) 2016-01-30 15:31:08 +08:00
ruby update ruby sample 2016-04-09 17:55:52 +08:00
scala update docstring to include default value 2016-03-17 17:43:21 +08:00
swift Make sure body params of type Int32/Int64 are correctly encoded for that create JSONEncodable extensions for Int32/Int64. Re-use extensions in Model.encodeToJSON to simplify code. 2016-03-22 22:23:47 +01:00
tizen/client rebuilt 2015-10-20 10:30:19 -07:00
typescript-angular better hanlding of model name starting with number 2016-03-17 11:49:06 +08:00
typescript-node better hanlding of model name starting with number 2016-03-17 11:49:06 +08:00