Skip to content

Commit

Permalink
fix: Fix response type for artifact service OpenAPI and SDKs. Fixes #…
Browse files Browse the repository at this point in the history
…7781 (#8332)

Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec authored and sarabala1979 committed Apr 17, 2022
1 parent a3bce2a commit 0a09568
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 38 deletions.
12 changes: 10 additions & 2 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4177,7 +4177,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 @@ -4223,7 +4227,11 @@
],
"responses": {
"200": {
"description": "An artifact file."
"description": "An artifact file.",
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
"description": "An unexpected error response.",
Expand Down
32 changes: 12 additions & 20 deletions pkg/apiclient/_.primary.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,9 @@
"responses": {
"200": {
"description": "An artifact file.",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
Expand Down Expand Up @@ -119,10 +116,9 @@
"200": {
"description": "An artifact file.",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
"schema": {
"type": "string",
"format": "binary"
}
}
},
Expand Down Expand Up @@ -166,10 +162,9 @@
"200": {
"description": "An artifact file.",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
"schema": {
"type": "string",
"format": "binary"
}
}
},
Expand Down Expand Up @@ -218,12 +213,9 @@
"responses": {
"200": {
"description": "An artifact file.",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
"schema": {
"type": "string",
"format": "binary"
}
},
"default": {
Expand Down
14 changes: 8 additions & 6 deletions sdks/java/client/docs/ArtifactServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ No authorization required

<a name="artifactServiceGetInputArtifactByUID"></a>
# **artifactServiceGetInputArtifactByUID**
> artifactServiceGetInputArtifactByUID(namespace, uid, podName, artifactName)
> File artifactServiceGetInputArtifactByUID(namespace, uid, podName, artifactName)
Get an input artifact by UID.

Expand All @@ -102,7 +102,8 @@ public class Example {
String podName = "podName_example"; // String |
String artifactName = "artifactName_example"; // String |
try {
apiInstance.artifactServiceGetInputArtifactByUID(namespace, uid, podName, artifactName);
File result = apiInstance.artifactServiceGetInputArtifactByUID(namespace, uid, podName, artifactName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactServiceApi#artifactServiceGetInputArtifactByUID");
System.err.println("Status code: " + e.getCode());
Expand All @@ -125,7 +126,7 @@ Name | Type | Description | Notes

### Return type

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

### Authorization

Expand All @@ -144,7 +145,7 @@ No authorization required

<a name="artifactServiceGetOutputArtifact"></a>
# **artifactServiceGetOutputArtifact**
> artifactServiceGetOutputArtifact(namespace, name, podName, artifactName)
> File artifactServiceGetOutputArtifact(namespace, name, podName, artifactName)
Get an output artifact.

Expand All @@ -168,7 +169,8 @@ public class Example {
String podName = "podName_example"; // String |
String artifactName = "artifactName_example"; // String |
try {
apiInstance.artifactServiceGetOutputArtifact(namespace, name, podName, artifactName);
File result = apiInstance.artifactServiceGetOutputArtifact(namespace, name, podName, artifactName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactServiceApi#artifactServiceGetOutputArtifact");
System.err.println("Status code: " + e.getCode());
Expand All @@ -191,7 +193,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 0a09568

Please sign in to comment.