Open dkirrane opened 5 years ago
Any news about it? I'm blocking for that.
Could anyone add any workaround?
Thank you!
I could see that if you use the configOption "
It seems to work with current version 5.3.0 of the eopenapi-generator-maven-plugin when setting <generateSupportingFiles>false</generateSupportingFiles>
in the <configuration>
section. š
So I wonder why this issue is still open?
It seems to work with current version 5.3.0 of the eopenapi-generator-maven-plugin when setting
<generateSupportingFiles>false</generateSupportingFiles>
in the<configuration>
section. šSo I wonder why this issue is still open?
Sorry. I see it still generates a DefaultAPI using the ApiUtil class, even when I managed to omit to generate it by setting <generateSupportingFiles>
to false.
I use 5.4.0 in Gradle and generateSupportingFiles
does not have affect.
I use 5.4.0 in Gradle and
generateSupportingFiles
does not have affect.
In order not to generate example response try to use <skipOperationExample>true</skipOperationExample>
Description
ApiUtil
should not be used whengenerateSupportingFiles=false
Generator config
Sample Spec
Actual output for delegate method
Expected output for delegate method
Suggested fix in https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/main/resources/JavaSpring/methodBody.mustache
The examples section in
methodBody.mustache
should probably check forgenerateSupportingFiles=false
.Also, note that the response in the OpenAPI Spec provided. It doesn't define any examples so not sure why it's getting into the examples block. It seems to just use the User Schema if an example is not defined, which seems like another bug.