mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 17:09:01 +00:00
Use better return types for the reactive option (#913)
This commit is contained in:
committed by
William Cheng
parent
8ccb7135d3
commit
026c26075d
@@ -355,6 +355,9 @@ public class SpringCodegen extends AbstractJavaCodegen
|
||||
if (this.async) {
|
||||
additionalProperties.put(RESPONSE_WRAPPER, "CompletableFuture");
|
||||
}
|
||||
if (this.reactive) {
|
||||
additionalProperties.put(RESPONSE_WRAPPER, "Mono");
|
||||
}
|
||||
} else if (this.async) {
|
||||
additionalProperties.put(RESPONSE_WRAPPER, "Callable");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user