Skip to content

Commit

Permalink
Add conformance tests for trimmed UUIDs (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodaine authored Apr 1, 2024
1 parent 3e01074 commit 264fbad
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 97 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: f05a6f4403ce4327bae4f50f281c3ed0
digest: shake256:668a0661b8df44d41839194896329330965fc215f3d2f88057fd60eeb759c2daf6cc6edfdd13b2a653d49fe2896ebedcb1a33c4c5b2dd10919f03ffb7fc52ae6
commit: b983156c5e994cc9892e0ce3e64e17e0
digest: shake256:fb47a62989d38c2529bcc5cd86ded43d800eb84cee82b42b9e8a9e815d4ee8134a0fb9d0ce8299b27c2d2bbb7d6ade0c4ad5a8a4d467e1e2c7ca619ae9f634e2
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ message StringURIRef {
message StringUUID {
string val = 1 [(buf.validate.field).string.uuid = true];
}
message StringTUUID {
string val = 1 [(buf.validate.field).string.tuuid = true];
}
message StringHttpHeaderName {
string val = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_NAME];
}
Expand Down
Loading

0 comments on commit 264fbad

Please sign in to comment.