Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #10287
Closed
Open
Issue created Aug 30, 2021 by Administrator@rootContributor4 of 5 checklist items completed4/5 checklist items

[BUG][JAVA] swaggerDocketConfig not working as expected

Created by: Blubb324

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

In the current version I have seen following behaviour. If I´m setting <swaggerDocketConfig>false</swaggerDocketConfig> to false, the class OpenAPIDocumentationConfig.java with Docket (springfox) is still generated.

For me it looks like there are some impacts to other properties.

Expected behaviour

Don´t generate OpenAPIDocumentationConfig.java if property is set to false.

config-snipped from pom.xml:

<configuration>
	<inputSpec>src/main/resources/schema/my.yaml</inputSpec>
	<generatorName>spring</generatorName>
	<library>spring-boot</library>
	<configOptions>
		<delegatePattern>true</delegatePattern>
		<swaggerDocketConfig>false</swaggerDocketConfig>
	</configOptions>
</configuration>
openapi-generator version

5.2.1

Assignee
Assign to
Time tracking