Skip to content

Commit

Permalink
Fix expected return type for resource reviewer stages
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-opal committed Feb 2, 2023
1 parent 3368fb2 commit cfe2cd1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ paths:
items:
$ref: '#/components/schemas/ReviewerStage'
type: array
description: The IDs of owners that are reviewers for this resource.
description: The reviewer stages for this resource.
security:
- BearerAuth: []
tags:
Expand Down Expand Up @@ -1428,12 +1428,11 @@ paths:
content:
application/json:
schema:
description: A list of reviewer stages.
items:
example: 1b978423-db0a-4037-a4cf-f79c60cb67b3
format: uuid
type: string
$ref: '#/components/schemas/ReviewerStage'
type: array
description: The updated IDs of owners that are reviewers for this resource
description: The updated reviewer stages for this resource.
security:
- BearerAuth: []
tags:
Expand Down
8 changes: 4 additions & 4 deletions api_resources.go

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

6 changes: 3 additions & 3 deletions docs/ResourcesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ Name | Type | Description | Notes

## SetResourceReviewerStages

> []string SetResourceReviewerStages(ctx, resourceId).ReviewerStageList(reviewerStageList).Execute()
> []ReviewerStage SetResourceReviewerStages(ctx, resourceId).ReviewerStageList(reviewerStageList).Execute()


Expand Down Expand Up @@ -1059,7 +1059,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Error when calling `ResourcesApi.SetResourceReviewerStages``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SetResourceReviewerStages`: []string
// response from `SetResourceReviewerStages`: []ReviewerStage
fmt.Fprintf(os.Stdout, "Response from `ResourcesApi.SetResourceReviewerStages`: %v\n", resp)
}
```
Expand All @@ -1084,7 +1084,7 @@ Name | Type | Description | Notes

### Return type

**[]string**
[**[]ReviewerStage**](ReviewerStage.md)

### Authorization

Expand Down

0 comments on commit cfe2cd1

Please sign in to comment.