mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-11-24 12:33:39 +00:00
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');
```