Open rmharris157 opened 7 years ago
Not sure why, but when I create two path that have identical structures other than the name of the title, only the first titled object is generated.
I think that's because there are some logics in code gen to name the inline model with the same name if the properties are the same.
In your case, please try to define the models in a separate section instead of doing it inline.
I thought that was supposed to be overridden by the title property.
On Apr 5, 2017, at 10:14 AM, wing328 notifications@github.com wrote:
Not sure why, but when I create two path that have identical structures other than the name of the title, only the first titled object is generated.
I think that's because there are some logics in code gen to name the inline model with the same name if the properties are the same.
In your case, please try to define the models in a separate section instead of doing it inline.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/swagger-api/swagger-codegen/issues/5171#issuecomment-291874762, or mute the thread https://github.com/notifications/unsubscribe-auth/AMQSR8-7_ee_opwlzwoOwaslIInpX3oLks5rs6HjgaJpZM4MlscN.
Agree with you it's a bug. Please use the workaround for the time being.
If you've time to contribute a fix, I can show you some good starting points.
Description
Not sure why, but when I create two path that have identical structures other than the name of the title, only the first titled object is generated.
Swagger-codegen version
Codegen 2.2.2:
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Using above the following is rendered...
I would also expect a model for GetAppConfigKeyResponse.java to be created.