Skip to content

Commit 74de5d4

Browse files
committed
Fix: description
1 parent 60e0f27 commit 74de5d4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

codersdk/authorization.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ type AuthorizationRequest struct {
2020
Checks map[string]AuthorizationCheck `json:"checks"`
2121
}
2222

23-
// @Description AuthorizationCheck is used to check if the currently authenticated user (or
24-
// @Description the specified user) can do a given action to a given set of objects.
23+
// AuthorizationCheck is used to check if the currently authenticated user (or the specified user) can do a given action to a given set of objects.
24+
//
25+
// @Description AuthorizationCheck is used to check if the currently authenticated user (or the specified user) can do a given action to a given set of objects.
2526
type AuthorizationCheck struct {
2627
// Object can represent a "set" of objects, such as:
2728
// - All workspaces in an organization
@@ -37,6 +38,9 @@ type AuthorizationCheck struct {
3738
Action string `json:"action" enums:"create,read,update,delete"`
3839
}
3940

41+
// AuthorizationObject can represent a "set" of objects, such as: all workspaces in an organization, all workspaces owned by me,
42+
// all workspaces across the entire product.
43+
//
4044
// @Description AuthorizationObject can represent a "set" of objects, such as: all workspaces in an organization, all workspaces owned by me,
4145
// @Description all workspaces across the entire product.
4246
type AuthorizationObject struct {

scripts/apidocgen/markdown-template/parameters.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
|Name|In|Type|Required|Description|
1515
|---|---|---|---|---|
16-
{{~ data.parameters :p}}|{{=p.name}}|{{=p.in}}|{{= renderParameterType(p)}}|{{=p.required}}|{{=p.shortDesc || 'none'}}|
16+
{{~ data.parameters :p}}|{{=p.name}}|{{=p.in}}|{{= renderParameterType(p)}}|{{=p.required}}|{{=p.shortDesc||''}}|
1717
{{~}}
1818

1919
{{? data.longDescs }}

0 commit comments

Comments
 (0)