File: test_validate.proto

package info (click to toggle)
golang-github-grpc-ecosystem-go-grpc-middleware 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,464 kB
  • sloc: makefile: 107; sh: 9
file content (24 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
syntax = "proto3";

package testing.testvalidate.v1;

option go_package = "github.com/grpc-ecosystem/go-grpc-middleware/testing/testvalidate/v1;testvalidatev1";

import "buf/validate/validate.proto";

service TestValidateService {
  rpc Send(SendRequest) returns (SendResponse) {}
  rpc SendStream(SendStreamRequest) returns (stream SendStreamResponse) {}
}

message SendRequest {
  string message = 1 [(buf.validate.field).string.email = true];
}

message SendResponse {}

message SendStreamRequest {
  string message = 1 [(buf.validate.field).string.email = true];
}

message SendStreamResponse {}