Forum Discussion
Hi wz2b ,
This is not my expertise. Could you expand on what you're seeing the duplicates? Is it in the Java POJO, or in the generated OpenAPI output?
There are some options to control filtering and mapping, which can be found here: https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Integration-and-configuration#configuration-properties .
I'm not an expert, either . I'm using this [Official Jetbrains Plugin](https://plugins.jetbrains.com/plugin/14394-openapi-specifications). It doesn't seem to give you much in the way of generation options. I'm not actually trying to generate any code (yet) - just documentation and the live test features - but maybe I should try to generate code and see if that helps me figure out where these extra objects are coming from.
The names of the objects do seem to line up with the paths. If I generate an object /xyz it will make an object /xyz even if the Response type is my own type. It generates mine, plus its own that is empty. It's strange.
Related Content
- 2 years ago
- 4 months ago
- 3 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 20 days ago