You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grpc_api_configuration is a sidecar .yml file allowing for specifying varying API configurations outside of the .proto file. It would be awesome if go-proto-validators could generate validators for a gRPC configuration based on this, so that clients don't have to include go-proto-validators in a non-Go project.
To take the example on the README.
packagevalidator.examples;
import"github.com/mwitkow/go-proto-validators/validator.proto";
messageInnerMessage {
// some_integer can only be in range (1, 100).int32some_integer=1 [(validator.field) = {int_gt: 0, int_lt: 100}];
// some_float can only be in range (0;1).doublesome_float=2 [(validator.field) = {float_gte: 0, float_lte: 1}];
}
grpc_api_configuration is a sidecar .yml file allowing for specifying varying API configurations outside of the .proto file. It would be awesome if
go-proto-validators
could generate validators for a gRPC configuration based on this, so that clients don't have to includego-proto-validators
in a non-Go project.To take the example on the README.
Could be specified as:
The text was updated successfully, but these errors were encountered: