cleanup deps

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-23 23:30:16 +03:00
parent 506f19310f
commit 74fecbec12
4 changed files with 4 additions and 24 deletions

View File

@@ -22,7 +22,6 @@ import (
"sort"
"strings"
jsonpbcodec "github.com/unistack-org/micro-codec-jsonpb/v3"
annotations "go.unistack.org/micro-proto/v3/api"
v3 "go.unistack.org/micro-proto/v3/openapiv3"
"google.golang.org/protobuf/compiler/protogen"
@@ -51,7 +50,7 @@ func (g *Generator) openapiv3Generate(component string, plugin *protogen.Plugin)
d := og.buildDocumentV3(plugin)
bytes, err := jsonpbcodec.NewCodec(jsonpbcodec.MarshalOptions(jsonpb.MarshalOptions{Indent: " "})).Marshal(d)
bytes, err := (jsonpb.MarshalOptions{Indent: " "}).Marshal(d)
if err != nil {
return fmt.Errorf("failed to marshal: %s", err.Error())
}