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 bde1b57026..e9ee9788c6 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 @@ -22,22 +22,22 @@ 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; import org.slf4j.LoggerFactory; +import java.util.*; +import java.util.stream.Collectors; +import java.util.stream.Stream; import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolationException; import javax.validation.Valid; import javax.validation.constraints.*; -import java.util.*; -import java.util.stream.Collectors; -import java.util.stream.Stream; @SuperBuilder(toBuilder = true) @Getter -@AllArgsConstructor @NoArgsConstructor @Introspected @ToString @@ -62,7 +62,6 @@ public boolean hasIgnoreMarker(final AnnotatedMember m) { @Pattern(regexp = "[a-z0-9._-]+") String namespace; - @With @Min(value = 1) Integer revision; @@ -70,9 +69,9 @@ public boolean hasIgnoreMarker(final AnnotatedMember m) { @JsonSerialize(using = ListOrMapOfLabelSerializer.class) @JsonDeserialize(using = ListOrMapOfLabelDeserializer.class) + @Schema(implementation = Object.class, anyOf = {List.class, Map.class}) List