Skip to content

Commit

Permalink
docs: clarify default fields examples (#32)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Gaudreault <[email protected]>
  • Loading branch information
agaudreault authored Oct 16, 2024
1 parent 61557bb commit 1f96499
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/backend/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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."`
Expand Down

0 comments on commit 1f96499

Please sign in to comment.