Skip to content

Commit 60e0f27

Browse files
committed
Fix: godoc nice
1 parent e8286f6 commit 60e0f27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

coderd/authorize.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ func (h *HTTPAuthorizer) AuthorizeSQLFilter(r *http.Request, action rbac.Action,
104104
return prepared, nil
105105
}
106106

107+
// checkAuthorization returns if the current API key can use the given
108+
// permissions, factoring in the current user's roles and the API key scopes.
109+
//
107110
// @Summary Check authorization
108111
// @ID check-authorization
109112
// @Security CoderSessionToken
@@ -113,9 +116,6 @@ func (h *HTTPAuthorizer) AuthorizeSQLFilter(r *http.Request, action rbac.Action,
113116
// @Param request body codersdk.AuthorizationRequest true "Authorization request"
114117
// @Success 200 {object} codersdk.AuthorizationResponse
115118
// @Router /authcheck [post]
116-
//
117-
// checkAuthorization returns if the current API key can use the given
118-
// permissions, factoring in the current user's roles and the API key scopes.
119119
func (api *API) checkAuthorization(rw http.ResponseWriter, r *http.Request) {
120120
ctx := r.Context()
121121
auth := httpmw.UserAuthorization(r)

codersdk/parameters.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ type ParameterSchema struct {
8383
ValidationContains []string `json:"validation_contains,omitempty"`
8484
}
8585

86+
// CreateParameterRequest is a structure used to create a new parameter value for a scope.
87+
//
8688
// @Description CreateParameterRequest is a structure used to create a new parameter value for a scope.
8789
type CreateParameterRequest struct {
8890
// CloneID allows copying the value of another parameter.

0 commit comments

Comments
 (0)