Skip to content

Commit b9a5f0e

Browse files
committed
Fix: swagger notice
1 parent cbc7dcb commit b9a5f0e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ const docTemplate = `{
310310
"CoderSessionToken": []
311311
}
312312
],
313-
"description": "Notice: Swagger 2.0 doesn't support file upload with a ` + "`" + `content-type` + "`" + ` different than ` + "`" + `application/x-www-form-urlencoded` + "`" + `.",
313+
"description": "Swagger notice: Swagger 2.0 doesn't support file upload with a ` + "`" + `content-type` + "`" + ` different than ` + "`" + `application/x-www-form-urlencoded` + "`" + `.",
314314
"consumes": [
315315
"application/x-tar"
316316
],

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
"CoderSessionToken": []
265265
}
266266
],
267-
"description": "Notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.",
267+
"description": "Swagger notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.",
268268
"consumes": ["application/x-tar"],
269269
"produces": ["application/json"],
270270
"tags": ["Files"],

coderd/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
)
2525

2626
// @Summary Upload file
27-
// @Description Notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.
27+
// @Description Swagger notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.
2828
// @ID update-file
2929
// @Security CoderSessionToken
3030
// @Produce json

docs/api/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ curl -X POST http://coder-server:8080/api/v2/files \
1616

1717
`POST /files`
1818

19-
Notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.
19+
Swagger notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.
2020

2121
> Body parameter
2222

0 commit comments

Comments
 (0)