Description
|
// google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; |
|
// google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; |
|
// google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; |
|
// google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; |
|
// google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; |
Some of the duration examples use a string. This doesn't actually work. None of the conformance protos use a string.
Steps to Reproduce
Expected Behavior
Docs should be accurate.
Actual Behavior
Docs are misleading.
Description
protovalidate/proto/protovalidate/buf/validate/validate.proto
Line 4461 in 9018216
protovalidate/proto/protovalidate/buf/validate/validate.proto
Line 4476 in 9018216
protovalidate/proto/protovalidate/buf/validate/validate.proto
Line 4493 in 9018216
protovalidate/proto/protovalidate/buf/validate/validate.proto
Line 4614 in 9018216
protovalidate/proto/protovalidate/buf/validate/validate.proto
Line 4630 in 9018216
Some of the duration examples use a string. This doesn't actually work. None of the conformance protos use a string.
Steps to Reproduce
Expected Behavior
Docs should be accurate.
Actual Behavior
Docs are misleading.