Skip to content

Commit 9711249

Browse files
committed
rename ProvisionerKet to CoderProvisionerKey in swagger doc
1 parent 5f6430c commit 9711249

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/coderdtest/swaggerparser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func assertPathParametersDefined(t *testing.T, comment SwaggerComment) {
302302
func assertSecurityDefined(t *testing.T, comment SwaggerComment) {
303303
authorizedSecurityTags := []string{
304304
"CoderSessionToken",
305-
"ProvisionerKey",
305+
"CoderProvisionerKey",
306306
}
307307

308308
if comment.router == "/updatecheck" ||
@@ -313,7 +313,7 @@ func assertSecurityDefined(t *testing.T, comment SwaggerComment) {
313313
comment.router == "/users/otp/change-password" {
314314
return // endpoints do not require authorization
315315
}
316-
assert.Containsf(t, authorizedSecurityTags, comment.security, "@Security must be in %v", authorizedSecurityTags)
316+
assert.Containsf(t, authorizedSecurityTags, comment.security, "@Security must be either of these options: %v", authorizedSecurityTags)
317317
}
318318

319319
func assertAccept(t *testing.T, comment SwaggerComment) {

enterprise/coderd/provisionerkeys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (api *API) deleteProvisionerKey(rw http.ResponseWriter, r *http.Request) {
202202

203203
// @Summary Fetch provisioner key details
204204
// @ID fetch-provisioner-key-details
205-
// @Security ProvisionerKey
205+
// @Security CoderProvisionerKey
206206
// @Produce json
207207
// @Tags Enterprise
208208
// @Param provisionerkey path string true "Provisioner Key"

0 commit comments

Comments
 (0)