OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.56k stars 6.52k forks source link

[BUG][JAVA][SPRING] HomeController template ignored #12905

Open CidTori opened 2 years ago

CidTori commented 2 years ago

Bug Report Checklist

Description

It seems that JavaSpring's template for HomeController.java (homeController.mustache) is completely ignored:

openapi-generator version

6.0.0

OpenAPI declaration file content or url

Irrelevant

Generation Details

Any generation with supporting files should show the comment difference.

I'm using the maven plugin with configuration <supportingFilesToGenerate>ApiUtil.java,HomeController.java,openapi.yaml</supportingFilesToGenerate>.

Steps to reproduce

Any generation with supporting files should show the comment difference.

Related issues/PRs

None found

Suggest a fix
CidTori commented 2 years ago

Well, I don't understand what happened, but we were using another project for custom templates, and we just migrated from swagger-codegen, and the old handlebars/JavaSpring directory kept being present in the final jar locally (along with the new JavaSpring). I deleted the target directory, the handlebars disappeared at the next build, and now HomeController.java is good...