Skip to content

Commit

Permalink
fix(core): support flow labels as map (#2009)
Browse files Browse the repository at this point in the history
close #2006
  • Loading branch information
loicmathieu authored and brian-mulier-p committed Sep 11, 2023
1 parent f30bef9 commit 7c72990
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/io/kestra/core/models/flows/Flow.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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<Label> labels;


Expand Down

0 comments on commit 7c72990

Please sign in to comment.