Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Java Class duplication among sub types #25

Open
ktmcgrat opened this issue May 2, 2018 · 1 comment
Open

Java Class duplication among sub types #25

ktmcgrat opened this issue May 2, 2018 · 1 comment

Comments

@ktmcgrat
Copy link

ktmcgrat commented May 2, 2018

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.

@jaubuchon
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants