-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: clarify default fields examples (#32)
Signed-off-by: Alexandre Gaudreault <[email protected]>
- Loading branch information
1 parent
61557bb
commit 1f96499
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ type CreateAccessRequestInput struct { | |
|
||
// CreateAccessRequestBody defines the create access response body. | ||
type CreateAccessRequestBody struct { | ||
RoleName string `json:"roleName" example:"custom-role" doc:"The role name to request."` | ||
RoleName string `json:"roleName" example:"custom-role-template" doc:"The role template name to request."` | ||
} | ||
|
||
// CreateAccessRequestResponse defines the create access response. | ||
|
@@ -78,9 +78,9 @@ type AccessRequestResponseBody struct { | |
Name string `json:"name" example:"some-accessrequest" doc:"The access request name."` | ||
Namespace string `json:"namespace" example:"some-namespace" doc:"The access request namespace."` | ||
Username string `json:"username" example:"[email protected]" doc:"The user associated with the access request."` | ||
Permission string `json:"permission" example:"ReadOnly" doc:"The current permission description for the user."` | ||
Permission string `json:"permission" example:"Operator Access" doc:"The permission description of the role associated to this access request."` | ||
Role string `json:"role" example:"custom-role-template" doc:"The role template associated to this access request."` | ||
RequestedAt string `json:"requestedAt,omitempty" example:"2024-02-14T18:25:50Z" doc:"The timestamp the access was requested (RFC3339 format)." format:"date-time"` | ||
Role string `json:"role,omitempty" example:"DevOps" doc:"The current role the user is associated with."` | ||
Status string `json:"status,omitempty" example:"GRANTED" doc:"The current access request status." enum:"REQUESTED,GRANTED,EXPIRED,DENIED,INVALID"` | ||
ExpiresAt string `json:"expiresAt,omitempty" example:"2024-02-14T18:25:50Z" doc:"The timestamp the access will expire (RFC3339 format)." format:"date-time"` | ||
Message string `json:"message,omitempty" example:"Click the link to see more details: ..." doc:"A human readeable description with details about the access request."` | ||
|