Skip to content

Commit

Permalink
fix(json): fix Output for the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Sep 13, 2024
1 parent ef7c4cd commit adc7bd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@EqualsAndHashCode
@Getter
@NoArgsConstructor
public abstract class Transform extends Task implements JSONataInterface, RunnableTask<Output> {
public abstract class Transform<T extends Output> extends Task implements JSONataInterface, RunnableTask<T> {

private static final ObjectMapper ION_OBJECT_MAPPER = JacksonMapper.ofIon();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Iterator;
import java.util.stream.StreamSupport;

import com.fasterxml.jackson.core.type.TypeReference;
Expand All @@ -19,7 +18,6 @@
import io.kestra.core.models.annotations.Example;
import io.kestra.core.models.annotations.Plugin;
import io.kestra.core.models.annotations.PluginProperty;
import io.kestra.core.models.tasks.Output;
import io.kestra.core.models.tasks.RunnableTask;
import io.kestra.core.runners.RunContext;
import io.kestra.core.serializers.FileSerde;
Expand Down Expand Up @@ -89,7 +87,7 @@
)
}
)
public class TransformItems extends Transform implements RunnableTask<Output> {
public class TransformItems extends Transform<TransformItems.Output> implements RunnableTask<TransformItems.Output> {

private static final ObjectMapper ION_OBJECT_MAPPER = JacksonMapper.ofIon();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import io.kestra.core.models.annotations.Example;
import io.kestra.core.models.annotations.Plugin;
import io.kestra.core.models.annotations.PluginProperty;
import io.kestra.core.models.tasks.Output;
import io.kestra.core.models.tasks.RunnableTask;
import io.kestra.core.runners.RunContext;
import io.kestra.core.serializers.JacksonMapper;
Expand Down Expand Up @@ -81,7 +80,7 @@
)
}
)
public class TransformValue extends Transform implements RunnableTask<Output> {
public class TransformValue extends Transform<TransformValue.Output> implements RunnableTask<TransformValue.Output> {

public static final ObjectMapper JSON_OBJECT_MAPPER = JacksonMapper.ofJson();

Expand Down

0 comments on commit adc7bd0

Please sign in to comment.