OpenAPITools / OpenAPITools/openapi-generator
[BUG] [JAVA] [SPRING] no class SpringDocConfiguration is generated
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
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?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
In a project I can configure to get delegate interfaces and controllers generated.
If however I set reactive=true no class SpringDocConfiguration is generated.
<configuration>
<typeMappings>
<typeMapping>OffsetDateTime=java.time.LocalDateTime</typeMapping>
</typeMappings>
<inputSpec>${project.parent.basedir}/openapi-spec/openapi.yaml</inputSpec>
<generatorName>spring</generatorName>
<apiPackage>${project-base-package}.api</apiPackage>
<modelPackage>${project-base-package}.model</modelPackage>
<invokerPackage>${project-base-package}.app</invokerPackage>
<skipValidateSpec>false</skipValidateSpec>
<strictSpec>true</strictSpec>
<generateModels>true</generateModels>
<generateModelTests>false</generateModelTests>
<generateAliasAsModel>false</generateAliasAsModel>
<generateApiTests>false</generateApiTests>
<configOptions>
<openApiNullable>false</openApiNullable>
<library>spring-boot</library>
<reactive>true</reactive>
<delegatePattern>true</delegatePattern>
<!--suppress UnresolvedMavenProperty -->
<additionalModelTypeAnnotations>@lombok.Builder @lombok.NoArgsConstructor
@lombok.AllArgsConstructor
</additionalModelTypeAnnotations>
</configOptions>
</configuration>
openapi-generator version
6.0.1, maven plugin.
OpenAPI declaration file content or url
https://github.com/Maxxx873/disposable-email-project/blob/main/openapi-spec/openapi.yaml
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the Maven plugin, the spring generator, the linked OpenAPI declaration, and the shown reactive=true and delegatePattern=true options. Inspect how SpringDocConfiguration generation changes for reactive projects, then verify that the class is generated for this configuration and add or update a regression check if the generator's existing tests cover this path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100