bloomrpc icon indicating copy to clipboard operation
bloomrpc copied to clipboard

Unable to Load Protobuf File with Field Options

Open borchero opened this issue 3 years ago • 4 comments

I currently have a Protobuf file similar to the following to validate input in Go:

syntax = "proto3";
package rpc;
option go_package = "go.example.com/rpc";
import "validate/validate.proto";

service Service {
    rpc Do(DoRequest) returns (DoResponse);
}

message DoRequest {
    string name = 1 [(validate.rules).string.pattern = "^[a-z]+$"];
}

message DoResponse {}

However, when I try loading the definition, I get the following error:

illegal value '[' (/Users/username/test.proto, line 11)

Although BloomRPC can easily ignore these options, it would be nice to still be able to use definitions like these without manually removing the options.

  • BloomRPC version: 1.4.1

borchero avatar Aug 21 '20 15:08 borchero

can you please try latest release?

jackielii avatar Nov 11 '20 13:11 jackielii

I'm running version 1.5.2 and have a similar problem

cetanu avatar Feb 07 '21 05:02 cetanu

I'm running into the same issue. How do you ignore these errors? Mine just won't load the proto at all because of the errors

darewreck54 avatar May 12 '22 14:05 darewreck54

My solution was to move to https://github.com/fullstorydev/grpcui 🙃

borchero avatar May 12 '22 17:05 borchero