From b08f7010c102974b88d58fa792a63a37d86c6cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Tue, 5 Sep 2023 15:23:33 +0200 Subject: [PATCH] fix(core): support flow labels as map (#2009) close #2006 --- core/src/main/java/io/kestra/core/models/flows/Flow.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/io/kestra/core/models/flows/Flow.java b/core/src/main/java/io/kestra/core/models/flows/Flow.java index dc57407abc0..e29e7d1df64 100644 --- a/core/src/main/java/io/kestra/core/models/flows/Flow.java +++ b/core/src/main/java/io/kestra/core/models/flows/Flow.java @@ -10,6 +10,7 @@ import io.kestra.core.exceptions.InternalException; import io.kestra.core.models.DeletedInterface; import io.kestra.core.models.Label; +import io.kestra.core.models.annotations.PluginProperty; import io.kestra.core.models.executions.Execution; import io.kestra.core.models.listeners.Listener; import io.kestra.core.models.tasks.FlowableTask; @@ -22,6 +23,7 @@ import io.kestra.core.services.FlowService; import io.kestra.core.validations.FlowValidation; import io.micronaut.core.annotation.Introspected; +import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import lombok.experimental.SuperBuilder; import org.slf4j.Logger; @@ -70,6 +72,7 @@ public boolean hasIgnoreMarker(final AnnotatedMember m) { @JsonSerialize(using = ListOrMapOfLabelSerializer.class) @JsonDeserialize(using = ListOrMapOfLabelDeserializer.class) + @Schema(implementation = Object.class, anyOf = {List.class, Map.class}) List