Skip to content

Commit e5a4618

Browse files
committed
Fix
1 parent 2f0b499 commit e5a4618

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ const docTemplate = `{
790790
}
791791
},
792792
"codersdk.CreateParameterRequest": {
793+
"description": "CreateParameterRequest is a structure used to create a new parameter value for a scope.",
793794
"type": "object",
794795
"required": [
795796
"destination_scheme",

coderd/apidoc/swagger.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@
694694
}
695695
},
696696
"codersdk.CreateParameterRequest": {
697+
"description": "CreateParameterRequest is a structure used to create a new parameter value for a scope.",
697698
"type": "object",
698699
"required": [
699700
"destination_scheme",

codersdk/parameters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type ParameterSchema struct {
8383
ValidationContains []string `json:"validation_contains,omitempty"`
8484
}
8585

86-
// CreateParameterRequest is used to create a new parameter value for a scope.
86+
// @Description CreateParameterRequest is a structure used to create a new parameter value for a scope.
8787
type CreateParameterRequest struct {
8888
// CloneID allows copying the value of another parameter.
8989
// The other param must be related to the same template_id for this to

docs/api/schemas.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
117117
}
118118
```
119119

120+
CreateParameterRequest is a structure used to create a new parameter value for a scope.
121+
120122
### Properties
121123

122124
| Name | Type | Required | Restrictions | Description |
@@ -168,7 +170,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
168170
| `display_name` | string | false | none | Display name is the displayed name of the template. |
169171
| `icon` | string | false | none | Icon is a relative path or external URL that specifies<br>an icon to be displayed in the dashboard. |
170172
| `name` | string | true | none | Name is the name of the template. |
171-
| `parameter_values` | array of [codersdk.CreateParameterRequest](#codersdkcreateparameterrequest) | false | none | none |
173+
| `parameter_values` | array of [codersdk.CreateParameterRequest](#codersdkcreateparameterrequest) | false | none | Parameter values is a structure used to create a new parameter value for a scope.] |
172174
| `template_version_id` | string | true | none | Template version id is an in-progress or completed job to use as an initial version<br>of the template.<br><br>This is required on creation to enable a user-flow of validating a<br>template works. There is no reason the data-model cannot support empty<br>templates, but it doesn't make sense for users. |
173175

174176
## codersdk.DERPRegion

0 commit comments

Comments
 (0)