Skip to content

Commit

Permalink
Re-enable IP prefix tests (#120)
Browse files Browse the repository at this point in the history
See #119 and #99
  • Loading branch information
rodaine authored Oct 30, 2023
1 parent c6f187e commit b0c0e8a
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 228 deletions.
4 changes: 2 additions & 2 deletions proto/protovalidate-testing/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ deps:
- remote: buf.build
owner: bufbuild
repository: protovalidate
commit: b9b8148056b94f6898cc669574bae125
digest: shake256:5660d7a38dd2ff9a7b8a6304bca6fe798dc6bcd7ecb06c4ce8ebdc0649c2fe969356b90a445a391195fdeae461fbbd9a917dab7687e090465addcb2dbb285b36
commit: 12f9cba37c9d49eeb6827dde227d6031
digest: shake256:a9470135a1736bdb74396e35342b4431b0bf3a5e7a2198fb77f49be46af744aae134f8e0593683216e836f1f0a551ccf86a9f8857c6829b8d33f4b604602a5ff
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,24 @@ message StringIPv4 {
message StringIPv6 {
string val = 1 [(buf.validate.field).string.ipv6 = true];
}

//message StringIPWithPrefixLen {
// string val = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
//}
//message StringIPv4WithPrefixLen {
// string val = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
//}
//message StringIPv6WithPrefixLen {
// string val = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
//}
//message StringIPPrefix {
// string val = 1 [(buf.validate.field).string.ip_prefix = true];
//}
//message StringIPv4Prefix {
// string val = 1 [(buf.validate.field).string.ipv4_prefix = true];
//}
//message StringIPv6Prefix {
// string val = 1 [(buf.validate.field).string.ipv6_prefix = true];
//}
message StringIPWithPrefixLen {
string val = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
}
message StringIPv4WithPrefixLen {
string val = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
}
message StringIPv6WithPrefixLen {
string val = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
}
message StringIPPrefix {
string val = 1 [(buf.validate.field).string.ip_prefix = true];
}
message StringIPv4Prefix {
string val = 1 [(buf.validate.field).string.ipv4_prefix = true];
}
message StringIPv6Prefix {
string val = 1 [(buf.validate.field).string.ipv6_prefix = true];
}
message StringURI {
string val = 1 [(buf.validate.field).string.uri = true];
}
Expand Down
Loading

0 comments on commit b0c0e8a

Please sign in to comment.