Skip to content

Commit

Permalink
fix: Fixed swagger error. Fixes argoproj#8922 (argoproj#9078)
Browse files Browse the repository at this point in the history
Signed-off-by: Teng, Jessie <[email protected]>
  • Loading branch information
JessieTeng89 authored Jul 14, 2022
1 parent b0c1df6 commit 2b92b1a
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 28 deletions.
12 changes: 10 additions & 2 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3757,7 +3757,11 @@
],
"responses": {
"200": {
"description": "An artifact file."
"description": "An artifact file.",
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
"description": "An unexpected error response.",
Expand Down Expand Up @@ -3897,7 +3901,11 @@
],
"responses": {
"200": {
"description": "An artifact file."
"description": "An artifact file.",
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
"description": "An unexpected error response.",
Expand Down
48 changes: 38 additions & 10 deletions pkg/apiclient/_.primary.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,9 @@
"responses": {
"200": {
"description": "An artifact file.",
"content": {
"schema": {
"type": "string",
"format": "binary"
}
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
Expand Down Expand Up @@ -231,11 +229,9 @@
"responses": {
"200": {
"description": "An artifact file.",
"content": {
"schema": {
"type": "string",
"format": "binary"
}
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
Expand Down Expand Up @@ -301,6 +297,38 @@
"items": {
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.WorkflowStep"
}
},
"google.protobuf.Any": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"grpc.gateway.runtime.Error": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/google.protobuf.Any"
}
},
"error": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
14 changes: 8 additions & 6 deletions sdks/java/client/docs/ArtifactServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Name | Type | Description | Notes

<a name="artifactServiceGetInputArtifact"></a>
# **artifactServiceGetInputArtifact**
> artifactServiceGetInputArtifact(namespace, name, nodeId, artifactName)
> File artifactServiceGetInputArtifact(namespace, name, nodeId, artifactName)
Get an input artifact.

Expand Down Expand Up @@ -122,7 +122,8 @@ public class Example {
String nodeId = "nodeId_example"; // String |
String artifactName = "artifactName_example"; // String |
try {
apiInstance.artifactServiceGetInputArtifact(namespace, name, nodeId, artifactName);
File result = apiInstance.artifactServiceGetInputArtifact(namespace, name, nodeId, artifactName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactServiceApi#artifactServiceGetInputArtifact");
System.err.println("Status code: " + e.getCode());
Expand All @@ -145,7 +146,7 @@ Name | Type | Description | Notes

### Return type

null (empty response body)
[**File**](File.md)

### Authorization

Expand Down Expand Up @@ -310,7 +311,7 @@ Name | Type | Description | Notes

<a name="artifactServiceGetOutputArtifactByUID"></a>
# **artifactServiceGetOutputArtifactByUID**
> artifactServiceGetOutputArtifactByUID(uid, nodeId, artifactName)
> File artifactServiceGetOutputArtifactByUID(uid, nodeId, artifactName)
Get an output artifact by UID.

Expand Down Expand Up @@ -340,7 +341,8 @@ public class Example {
String nodeId = "nodeId_example"; // String |
String artifactName = "artifactName_example"; // String |
try {
apiInstance.artifactServiceGetOutputArtifactByUID(uid, nodeId, artifactName);
File result = apiInstance.artifactServiceGetOutputArtifactByUID(uid, nodeId, artifactName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactServiceApi#artifactServiceGetOutputArtifactByUID");
System.err.println("Status code: " + e.getCode());
Expand All @@ -362,7 +364,7 @@ Name | Type | Description | Notes

### Return type

null (empty response body)
[**File**](File.md)

### Authorization

Expand Down
8 changes: 4 additions & 4 deletions sdks/python/client/argo_workflows/api/artifact_service_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions sdks/python/client/docs/ArtifactServiceApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2b92b1a

Please sign in to comment.