Skip to content

Commit 15715b1

Browse files
committed
fix codegen
1 parent 4419a01 commit 15715b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/openapi-generator/src/main/java/org/openapitools/codegen/languages

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
10831083

10841084
addSpringNullableImportForOperation(codegenOperation);
10851085

1086-
if (includeHttpRequestContext && DocumentationProvider.SPRINGFOX.equals(getDocumentationProvider())) {
1086+
if (DocumentationProvider.SPRINGFOX.equals(getDocumentationProvider()) && (includeHttpRequestContext == null || includeHttpRequestContext)) {
10871087
codegenOperation.imports.add("ApiIgnore");
10881088
}
10891089
if (reactive && sse) {

0 commit comments

Comments
 (0)