Skip to content

Commit

Permalink
openAPI change ,v0.2 =>v0.9 ,openapi3.Swagger =>openapi3.T
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybber committed Mar 23, 2022
1 parent 4bfddcb commit b17f5d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/protoc-gen-openapi/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
// Converter is everything you need to convert Micro protos into an OpenAPI spec:
type Converter struct {
microServiceName string
openAPISpec *openapi3.Swagger
openAPISpec *openapi3.T
sourceInfo *sourceCodeInfo
req *plugin.CodeGeneratorRequest
plug *prot.Plugin
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-openapi/converter/default_openapi_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func (c *Converter) defaultSpec() {

// Spec ready to take schemas:
c.openAPISpec = &openapi3.Swagger{
c.openAPISpec = &openapi3.T{
Components: openapi3.Components{
RequestBodies: make(map[string]*openapi3.RequestBodyRef),
Responses: make(map[string]*openapi3.ResponseRef),
Expand Down

0 comments on commit b17f5d3

Please sign in to comment.