Open ErikGrimes opened 5 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
See https://github.com/swagger-api/swagger-parser/pull/1333 for a PR to fix this issue if the discriminator has a mapping defined.
Description
Given the setup below, the generator only generates Animal and AnimalFarmEntry. The should also generate Cat and Dog.
openapi-generator version
3.3.4
OpenAPI declaration file content or url
api.yaml
schema.yaml
Command line used for generation
openapi-generate generate -g spring -i api.yaml -i generated
Steps to reproduce
Invoke the generator above using the provided inputs.
Suggest a fix
This is appears to be an issue with the Swagger parser. I've filed swagger-api/swagger-parser#970.