Skip to content

Commit

Permalink
[fix] do not throw error if missing one of the field extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvladco committed Jul 16, 2019
1 parent 1e2b17d commit 7b0577d
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 18 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: install example

install:
go install github.com/gogo/protobuf/protoc-gen-gogo
protoc --gogo_out=paths=source_relative,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:./pb \
-I=${GOPATH}/pkg/mod/ -I=./pb ./pb/*.proto
go install ./protoc-gen-gql
Expand Down
37 changes: 37 additions & 0 deletions example/constructs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions example/options.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 20 additions & 14 deletions pb/gql.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ func (p *Plugin) getMethodType(rpc *descriptor.MethodDescriptorProto) gql.Type {
if tt != nil {
return *tt
}
} else {
p.Error(err)
}
}

Expand All @@ -431,8 +429,6 @@ func (p *Plugin) getServiceType(svc *descriptor.ServiceDescriptorProto) gql.Type
if tt != nil {
return *tt
}
} else {
p.Error(err)
}
}

Expand Down

0 comments on commit 7b0577d

Please sign in to comment.