File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
protoc-gen-openapiv3/internal/genopenapiv3 Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package genopenapiv3
2
2
3
3
import (
4
4
"github.com/getkin/kin-openapi/openapi3"
5
+ "google.golang.org/protobuf/proto"
6
+
5
7
"github.com/grpc-ecosystem/grpc-gateway/v2/internal/descriptor"
6
8
"github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv3/options"
7
- "google.golang.org/protobuf/proto"
8
9
)
9
10
10
11
func convertFileOptions (target * descriptor.File ) * openapi3.T {
@@ -17,7 +18,10 @@ func convertFileOptions(target *descriptor.File) *openapi3.T {
17
18
}
18
19
}
19
20
20
- return & openapi3.T {OpenAPI : OpenAPIVersion }
21
+ return & openapi3.T {OpenAPI : OpenAPIVersion , Info : & openapi3.Info {
22
+ Title : target .GetName (),
23
+ Version : "versoin is not set" ,
24
+ }}
21
25
}
22
26
23
27
func convertServers (servers []* options.Server ) openapi3.Servers {
@@ -91,4 +95,3 @@ func convertSecurityRequiremnt(requirements []*options.SecurityRequirement) *ope
91
95
92
96
return oAPIReqs
93
97
}
94
-
You can’t perform that action at this time.
0 commit comments