Skip to content

Commit 94085d6

Browse files
committed
Add schemes to Swagger docs
1 parent 630841d commit 94085d6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/api/docs/docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
22
// This file was generated by swaggo/swag at
3-
// 2019-08-07 14:48:29.881959 +0300 EEST m=+0.022469914
3+
// 2019-08-07 15:15:38.193457 +0300 EEST m=+0.022158637
44

55
package docs
66

@@ -566,7 +566,7 @@ type swaggerInfo struct {
566566
}
567567

568568
// SwaggerInfo holds exported Swagger Info so clients can modify it
569-
var SwaggerInfo = swaggerInfo{Schemes: []string{}}
569+
var SwaggerInfo = swaggerInfo{Schemes: []string{"http", "https"}}
570570

571571
type s struct{}
572572

pkg/api/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package api
1212

1313
// @host localhost:9898
1414
// @BasePath /
15+
// @schemes http https
1516

1617
type ArrayResponse []string
1718
type MapResponse map[string]string

0 commit comments

Comments
 (0)