Open premkumar-masilamani opened 5 years ago
I would suggest updating the spec instead to replace "io.argoproj.workflow.v1alpha1" with an empty string.
The challenge I see is that we need to add the same option to all generators, which do not seem like a good idea.
Hi @wing328 - This spec is autogenerated from an opensource project called argo-workflows. I can check with the team. But the point is - if the option to skip the package name is available for Kotlin, why not for Java and other languages?
Is your feature request related to a problem? Please describe.
I am trying to create the Java Model classes for the below argo workflow open api spec.
https://raw.githubusercontent.com/argoproj/argo/master/api/openapi-spec/swagger.json
Here is the command that I used to create the java model classes.
Here is the config.json
What I get is a bunch of java model classes with the package name prefixed to the classname.
Describe the solution you'd like
What I expect is just the class name, without the package names prefix.
Describe alternatives you've considered
I tried swagger-codegen and the Open API Generator Plugin in IntelliJ. The output is the same.
Additional context
I see an option to skip the package names for Kotlin. Not for Java.