fix: set FlowWithSource as implementation for getFlow method (#12644)

This commit is contained in:
YannC
2025-11-04 16:16:54 +01:00
committed by GitHub
parent 18b6b4ce5d
commit 190bf6f3db

View File

@@ -164,7 +164,7 @@ public class FlowController {
@Get(uri = "{namespace}/{id}")
@Operation(tags = {"Flows"}, summary = "Get a flow")
@Schema(
oneOf = {FlowWithSource.class, Flow.class}
implementation = FlowWithSource.class
)
//FIXME we return Object instead of Flow as Micronaut, since 4, has an issue with subtypes serialization, see https://github.com/micronaut-projects/micronaut-core/issues/10294.
public Object getFlow(