-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
Description
Trying to generate pure interfaces using next config:
<generateSupportingFiles>false</generateSupportingFiles>
<configOptions>
<openApiNullable>false</openApiNullable>
<java8>false</java8>
<interfaceOnly>true</interfaceOnly>
<hideGenerationTimestamp>true</hideGenerationTimestamp>
</configOptions>Following lines are added to generated api file:
import org.springframework.data.domain.Pageable;
import springfox.documentation.annotations.ApiIgnore;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 disabling org.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:
<usePageable>false</usePageable>
<useApiIgnore>false</useApiIgnore>Reactions are currently unavailable