Skip to content

Commit cc34361

Browse files
committed
1 parent 4f6c93a commit cc34361

File tree

1 file changed

+3
-1
lines changed
  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java

1 file changed

+3
-1
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java/InterfaceWriter.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ class InterfaceWriter(
139139
}
140140

141141
if (resultStatus && response.hasSingleResponse(resultStyle)) {
142-
imports.addAll(annotations.getAnnotation(response).imports)
142+
val annotation = annotations.getAnnotation(response)
143+
imports.addAll(annotation.imports)
144+
imports.addAll(annotation.referencedImports)
143145
}
144146
}
145147
}

0 commit comments

Comments
 (0)