Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
#2694 hide com.google.protobuf.Any from Swagger introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindanr committed Jan 19, 2022
1 parent 7597796 commit 95a6835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.netflix.conductor.annotations.protogen.ProtoMessage;

import com.google.protobuf.Any;
import io.swagger.v3.oas.annotations.Hidden;

/** Result of the task execution. */
@ProtoMessage
Expand Down Expand Up @@ -63,6 +64,7 @@ public enum Status {
private Map<String, Object> outputData = new HashMap<>();

@ProtoField(id = 8)
@Hidden
private Any outputMessage;

private List<TaskExecLog> logs = new CopyOnWriteArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.netflix.conductor.annotations.protogen.ProtoMessage;

import com.google.protobuf.Any;
import io.swagger.v3.oas.annotations.Hidden;

@ProtoMessage(toProto = false)
public class SkipTaskRequest {
Expand All @@ -29,9 +30,11 @@ public class SkipTaskRequest {
private Map<String, Object> taskOutput;

@ProtoField(id = 3)
@Hidden
private Any taskInputMessage;

@ProtoField(id = 4)
@Hidden
private Any taskOutputMessage;

public Map<String, Object> getTaskInput() {
Expand Down

0 comments on commit 95a6835

Please sign in to comment.