Skip to content

Commit

Permalink
fix: HTTP uri must be non nul
Browse files Browse the repository at this point in the history
Fixes #57
  • Loading branch information
loicmathieu committed May 23, 2023
1 parent 7125b15 commit 69f5c3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/io/kestra/plugin/fs/http/AbstractHttp.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
import java.util.Map;
import java.util.stream.Collectors;

import javax.validation.constraints.NotNull;

import static io.kestra.core.utils.Rethrow.throwFunction;

@SuperBuilder
Expand All @@ -47,13 +49,14 @@ abstract public class AbstractHttp extends Task {
title = "The fully-qualified URIs that point to destination http server"
)
@PluginProperty(dynamic = true)
@NotNull
protected String uri;

@Schema(
title = "The http method to use"
)
@Builder.Default
@PluginProperty(dynamic = false)
@PluginProperty
protected HttpMethod method = HttpMethod.GET;

@Schema(
Expand Down

0 comments on commit 69f5c3e

Please sign in to comment.