raml-java-client-generator icon indicating copy to clipboard operation
raml-java-client-generator copied to clipboard

Java Class duplication among sub types

Open ktmcgrat opened this issue 6 years ago • 1 comments

Describe the bug Java Classes are duplicated for sub types

To Reproduce Steps to reproduce the behavior:

generate java classes from ramls in the attached zip, for the complex.raml and the simple.raml, both generate duplicates of the Log class.

Expected behavior The Log class should have been generated once.

** version tested ** f9575cf

Additional context attached zip of ramls

classduplication.zip

For the complex raml, the Logs class is created 7 times. For simple it is generated 4 times.

ktmcgrat avatar May 02 '18 23:05 ktmcgrat

Hello, +1 on this.

I have a RAML api definition from which I generate pojos.

But there is a type that is reused across the spec end up being duplicated in multiple different classes (suffixed by __1, __2, __3).

Unfortunately, this limitation is a blocker for me.

jaubuchon avatar Jan 28 '20 20:01 jaubuchon