Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions proto/protovalidate/buf/validate/validate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4124,10 +4124,12 @@ message BytesRules {
}
];

// `uuid` ensures that the field value encodes 128-bit UUID data as defined
// by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
// The field must contain exactly 16 bytes representing the UUID. If the
// field value isn't a valid UUID, an error message will be generated.
// `uuid` ensures that the field `value` is exactly 16 bytes long,
// the size of a UUID in binary form as defined by
// [RFC 9562](https://datatracker.ietf.org/doc/html/rfc9562#section-4).
// Only the length is enforced: the version and variant fields
// are not checked, and any 16 bytes are accepted.
// If the field value doesn't meet this rule, an error message is generated.
//
// ```proto
// message MyBytes {
Expand Down
10 changes: 6 additions & 4 deletions tools/internal/gen/buf/validate/validate.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading