We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
When I'm trying to use https://github.com/mwitkow/go-proto-validators, I got a bug.
put simply, look at following protofile.
syntax = "proto3"; package pkgname; message A{ B b = 1; message B { string c = 2; } }
And try compile using protoc with retool,
protoc
$ retool do protoc --proto_path=${GOPATH}/src:. --twirp_out=. --twirp_dart_out=package_name=pkgname:./dart_client --go_out=. ./rpc/protobuf/service.proto
I got this code,
import 'dart:convert'; class A { A( this.b,); B b; factory A.fromJson(Map<String,dynamic> json) { return new A( new B.fromJson(json), ); } Map<String,dynamic>toJson() { var map = new Map<String, dynamic>(); map['b'] = b.toJson(); return map; } @override String toString() { return json.encode(toJson()); } }
It seems, not define message B in message A.
message B
message A
Thanks.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hi,
When I'm trying to use https://github.com/mwitkow/go-proto-validators, I got a bug.
put simply, look at following protofile.
And try compile using
protoc
with retool,I got this code,
It seems, not define
message B
inmessage A
.Thanks.
The text was updated successfully, but these errors were encountered: