Skip to content

Commit

Permalink
fix: Fixed Swagger error. Fixes #8830 (#8886)
Browse files Browse the repository at this point in the history
Signed-off-by: Teng, Jessie <yilin.teng@fmr.com>
  • Loading branch information
JessieTeng89 authored Jun 2, 2022
1 parent 8592e9c commit 7dacb5b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 62 deletions.
12 changes: 0 additions & 12 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4260,12 +4260,6 @@
"name": "artifactDiscriminator",
"in": "path",
"required": true
},
{
"type": "string",
"name": "artifactName",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -4383,12 +4377,6 @@
"summary": "Get an input artifact by UID.",
"operationId": "ArtifactService_GetInputArtifactByUID",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "uid",
Expand Down
12 changes: 0 additions & 12 deletions pkg/apiclient/_.primary.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@
"enum": [
"outputs"
]
},
{
"type": "string",
"name": "artifactName",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -261,12 +255,6 @@
"summary": "Get an input artifact by UID.",
"operationId": "ArtifactService_GetInputArtifactByUID",
"parameters": [
{
"type": "string",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"name": "uid",
Expand Down
12 changes: 4 additions & 8 deletions sdks/java/client/docs/ArtifactServiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Method | HTTP request | Description

<a name="artifactServiceGetArtifactFile"></a>
# **artifactServiceGetArtifactFile**
> File artifactServiceGetArtifactFile(namespace, idDiscriminator, id, nodeId, artifactName, artifactDiscriminator, artifactName2)
> File artifactServiceGetArtifactFile(namespace, idDiscriminator, id, nodeId, artifactName, artifactDiscriminator)
Get an artifact.

Expand Down Expand Up @@ -45,9 +45,8 @@ public class Example {
String nodeId = "nodeId_example"; // String |
String artifactName = "artifactName_example"; // String |
String artifactDiscriminator = "artifactDiscriminator_example"; // String |
String artifactName2 = "artifactName_example"; // String |
try {
File result = apiInstance.artifactServiceGetArtifactFile(namespace, idDiscriminator, id, nodeId, artifactName, artifactDiscriminator, artifactName2);
File result = apiInstance.artifactServiceGetArtifactFile(namespace, idDiscriminator, id, nodeId, artifactName, artifactDiscriminator);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactServiceApi#artifactServiceGetArtifactFile");
Expand All @@ -70,7 +69,6 @@ Name | Type | Description | Notes
**nodeId** | **String**| |
**artifactName** | **String**| |
**artifactDiscriminator** | **String**| | [enum: outputs]
**artifactName2** | **String**| |

### Return type

Expand Down Expand Up @@ -166,7 +164,7 @@ null (empty response body)

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

Expand All @@ -192,12 +190,11 @@ public class Example {
//BearerToken.setApiKeyPrefix("Token");

ArtifactServiceApi apiInstance = new ArtifactServiceApi(defaultClient);
String namespace = "namespace_example"; // String |
String uid = "uid_example"; // String |
String nodeId = "nodeId_example"; // String |
String artifactName = "artifactName_example"; // String |
try {
File result = apiInstance.artifactServiceGetInputArtifactByUID(namespace, uid, nodeId, artifactName);
File result = apiInstance.artifactServiceGetInputArtifactByUID(uid, nodeId, artifactName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactServiceApi#artifactServiceGetInputArtifactByUID");
Expand All @@ -214,7 +211,6 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**namespace** | **String**| |
**uid** | **String**| |
**nodeId** | **String**| |
**artifactName** | **String**| |
Expand Down
24 changes: 2 additions & 22 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.

12 changes: 4 additions & 8 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 7dacb5b

Please sign in to comment.