-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][JAVA][Spring] Config options for Pageable & ApiIgnore #8360
Comments
I believe #8192 also relates to this. It seems to have been introduced by #5022, which added the imports for There seems to exist a computed flag/setting for the use of I was actually facing the same issue and was planning on coming up with a patch to only add those imports when they're needed, but I couldn't find my way around the test suite—which test methods/resources would need to be updated, or even how to properly run the tests in the first place =/ |
@feliperuiz there is no need to run tests. after you fix templates you simply has to re-generate all related samples via |
Fixed locally by adding new config options & changing mustache template. Will prepare PR for this fix |
Is there any workaround available already? (beside adding unnecessary imports to you project) |
@MatCyg As quick solution you can use 5.0.0-beta2 and any earlier version |
Same problem with version 5.0.1 |
Any workaround? |
@bruteforce partially resolved in #8915, 5.1.0 release |
Is this issue fixed in the latest release? |
Seems to be fixed in 5.3.0 |
Resolved in 5.3.0 |
Bug Report Checklist
Description
Trying to generate pure interfaces using next config:
Following lines are added to generated api file:
and produced compilation error due those classes needed additional dependencies (spring-data-commons&springfox-core)
Didn't manage to find any option to disable those imports (like
openApiNullable
for disablingorg.openapitools.jackson.nullable.JsonNullable
)openapi-generator version
5.0.0
OpenAPI declaration file content or url
Sample project for quick reproducing https://github.com/morphlne/openapi-generator-demo
Steps to reproduce
Clone https://github.com/morphlne/openapi-generator-demo.git
run
mvn compile
Related issues/PRs
Both imports added in mustache files in PR: #5022
Suggest a fix
Add support for next config options:
The text was updated successfully, but these errors were encountered: