From 8847c476ea8efe6df93ae3acc101b27feacda9a4 Mon Sep 17 00:00:00 2001 From: Joel Griffith Date: Mon, 17 Jun 2019 10:42:15 -0400 Subject: [PATCH] Add UUID as a well-known string type Signed-off-by: Joel Griffith --- README.md | 3 + .../io/envoyproxy/pgv/StringValidation.java | 8 + .../envoyproxy/pgv/StringValidationTest.java | 19 ++ rule_comparison.md | 1 + templates/cc/known.go | 10 + templates/cc/msg.go | 2 + templates/cc/register.go | 1 + templates/cc/string.go | 7 + templates/go/file.go | 3 + templates/gogo/file.go | 3 + templates/goshared/known.go | 10 + templates/goshared/msg.go | 2 + templates/goshared/register.go | 1 + templates/goshared/string.go | 4 + templates/java/string.go | 3 + templates/shared/well_known.go | 5 + tests/harness/cases/strings.proto | 1 + tests/harness/executor/cases.go | 14 + validate/validate.pb.go | 293 ++++++++++-------- validate/validate.proto | 4 + 20 files changed, 264 insertions(+), 130 deletions(-) diff --git a/README.md b/README.md index aaade9398..42326f326 100644 --- a/README.md +++ b/README.md @@ -330,6 +330,9 @@ Check the [constraint rule comparison matrix](rule_comparison.md) for language-s // x must be a valid URI reference (either absolute or relative) string x = 1 [(validate.rules).string.uri_ref = true]; + + // x must be a valid UUID (via RFC 4122) + string x = 1 [(validate.rules).string.uuid = true]; ``` ### Bytes diff --git a/java/pgv-java-stub/src/main/java/io/envoyproxy/pgv/StringValidation.java b/java/pgv-java-stub/src/main/java/io/envoyproxy/pgv/StringValidation.java index 5cba846a8..918f1c14f 100644 --- a/java/pgv-java-stub/src/main/java/io/envoyproxy/pgv/StringValidation.java +++ b/java/pgv-java-stub/src/main/java/io/envoyproxy/pgv/StringValidation.java @@ -153,6 +153,14 @@ public static void uriRef(String field, String value) throws ValidationException } } + private static final Pattern uuidPattern = Pattern.compile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"); + public static void uuid(String field, String value) throws ValidationException { + Matcher matcher = uuidPattern.matcher(value); + if (!matcher.matches()) { + throw new ValidationException(field, enquote(value), "should be a valid uuid"); + } + } + private static String enquote(String value) { return "\"" + value + "\""; } diff --git a/java/pgv-java-stub/src/test/java/io/envoyproxy/pgv/StringValidationTest.java b/java/pgv-java-stub/src/test/java/io/envoyproxy/pgv/StringValidationTest.java index 4ab886039..1d67d3ff7 100644 --- a/java/pgv-java-stub/src/test/java/io/envoyproxy/pgv/StringValidationTest.java +++ b/java/pgv-java-stub/src/test/java/io/envoyproxy/pgv/StringValidationTest.java @@ -209,4 +209,23 @@ public void uriRefWorks() throws ValidationException { // No Match assertThatThrownBy(() -> StringValidation.uri("x", "this is not a uri")).isInstanceOf(ValidationException.class); } + + @Test + public void uuidWorks() throws ValidationException { + // Match + StringValidation.uuid("x", "00000000-0000-0000-0000-000000000000"); + StringValidation.uuid("x", "b45c0c80-8880-11e9-a5b1-000000000000"); + StringValidation.uuid("x", "B45C0C80-8880-11E9-A5B1-000000000000"); + StringValidation.uuid("x", "b45c0c80-8880-21e9-a5b1-000000000000"); + StringValidation.uuid("x", "B45C0C80-8880-21E9-A5B1-000000000000"); + StringValidation.uuid("x", "a3bb189e-8bf9-3888-9912-ace4e6543002"); + StringValidation.uuid("x", "A3BB189E-8BF9-3888-9912-ACE4E6543002"); + StringValidation.uuid("x", "8b208305-00e8-4460-a440-5e0dcd83bb0a"); + StringValidation.uuid("x", "8B208305-00E8-4460-A440-5E0DCD83BB0A"); + StringValidation.uuid("x", "a6edc906-2f9f-5fb2-a373-efac406f0ef2"); + StringValidation.uuid("x", "A6EDC906-2F9F-5FB2-A373-EFAC406F0EF2"); + // No Match + assertThatThrownBy(() -> StringValidation.uuid("x", "foobar")).isInstanceOf(ValidationException.class); + assertThatThrownBy(() -> StringValidation.uuid("x", "ffffffff-ffff-ffff-ffff-fffffffffffff")).isInstanceOf(ValidationException.class); + } } diff --git a/rule_comparison.md b/rule_comparison.md index b6043a3cc..dd47aa598 100644 --- a/rule_comparison.md +++ b/rule_comparison.md @@ -33,6 +33,7 @@ | ipv6 |✅|✅|✅|✅| | uri |✅|✅|✅|✅| | uri_ref |✅|✅|✅|✅| +| uuid |✅|✅|❌|✅| ## Bytes | Constraint Rule | Go | GoGo | C++ | Java | diff --git a/templates/cc/known.go b/templates/cc/known.go index 3aa6c4aab..87fb1b979 100644 --- a/templates/cc/known.go +++ b/templates/cc/known.go @@ -53,3 +53,13 @@ const emailTpl = ` return m._validateHostname(parts[1]) } ` + +const uuidTpl = ` + func (m {{ .TypeName.Pointer }}) _validateUuid(uuid string) error { + if matched := _{{ .File.InputPath.BaseName }}_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil + } +` diff --git a/templates/cc/msg.go b/templates/cc/msg.go index e55ae85ce..da4a2f946 100644 --- a/templates/cc/msg.go +++ b/templates/cc/msg.go @@ -88,6 +88,8 @@ bool Validate(const {{ class . }}& m, pgv::ValidationMsg* err) { {{ if needs . "hostname" }}{{ template "hostname" . }}{{ end }} {{ if needs . "email" }}{{ template "email" . }}{{ end }} + +{{ if needs . "uuid" }}{{ template "uuid" . }}{{ end }} */}} ` diff --git a/templates/cc/register.go b/templates/cc/register.go index 70536796a..223f6230e 100644 --- a/templates/cc/register.go +++ b/templates/cc/register.go @@ -77,6 +77,7 @@ func RegisterModule(tpl *template.Template, params pgs.Parameters) { template.Must(tpl.New("email").Parse(emailTpl)) template.Must(tpl.New("hostname").Parse(hostTpl)) template.Must(tpl.New("address").Parse(hostTpl)) + template.Must(tpl.New("uuid").Parse(uuidTpl)) template.Must(tpl.New("enum").Parse(enumTpl)) template.Must(tpl.New("message").Parse(messageTpl)) diff --git a/templates/cc/string.go b/templates/cc/string.go index a1a38de77..0b97f6571 100644 --- a/templates/cc/string.go +++ b/templates/cc/string.go @@ -166,6 +166,13 @@ const strTpl = ` return {{ errCause . "err" "value must be a valid URI" }} } */}} + {{ else if $r.GetUuid }} + {{ unimplemented }} + {{/* TODO(akonradi) implement UUID constraints + if err := m._validateUuid({{ accessor . }}); err != nil { + return {{ errCause . "err" "value must be a valid UUID" }} + } + */}} {{ end }} {{ if $r.Pattern }} diff --git a/templates/go/file.go b/templates/go/file.go index 51f0a2568..3823d1a12 100644 --- a/templates/go/file.go +++ b/templates/go/file.go @@ -43,6 +43,9 @@ var ( {{ end }} ) +// define the regex for a UUID once up-front +var _{{ .File.InputPath.BaseName }}_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + {{ range .AllMessages }} {{ template "msg" . }} {{ end }} diff --git a/templates/gogo/file.go b/templates/gogo/file.go index eb8b110f9..8bab102c0 100644 --- a/templates/gogo/file.go +++ b/templates/gogo/file.go @@ -43,6 +43,9 @@ var ( {{ end }} ) +// define the regex for a UUID once up-front +var _{{ .File.InputPath.BaseName }}_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + {{ range .AllMessages }} {{ template "msg" . }} {{ end }} diff --git a/templates/goshared/known.go b/templates/goshared/known.go index 2ff8dbf1b..3eda74d70 100644 --- a/templates/goshared/known.go +++ b/templates/goshared/known.go @@ -53,3 +53,13 @@ const emailTpl = ` return m._validateHostname(parts[1]) } ` + +const uuidTpl = ` + func (m {{ (msgTyp .).Pointer }}) _validateUuid(uuid string) error { + if matched := _{{ .File.InputPath.BaseName }}_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil + } +` diff --git a/templates/goshared/msg.go b/templates/goshared/msg.go index ec6a09551..55bd556c1 100644 --- a/templates/goshared/msg.go +++ b/templates/goshared/msg.go @@ -40,6 +40,8 @@ func (m {{ (msgTyp .).Pointer }}) Validate() error { {{ if needs . "email" }}{{ template "email" . }}{{ end }} +{{ if needs . "uuid" }}{{ template "uuid" . }}{{ end }} + {{ cmt (errname .) " is the validation error returned by " (msgTyp .) ".Validate if the designated constraints aren't met." -}} type {{ errname . }} struct { field string diff --git a/templates/goshared/register.go b/templates/goshared/register.go index 22e274972..f98ed5237 100644 --- a/templates/goshared/register.go +++ b/templates/goshared/register.go @@ -73,6 +73,7 @@ func Register(tpl *template.Template, params pgs.Parameters) { template.Must(tpl.New("email").Parse(emailTpl)) template.Must(tpl.New("hostname").Parse(hostTpl)) template.Must(tpl.New("address").Parse(hostTpl)) + template.Must(tpl.New("uuid").Parse(uuidTpl)) template.Must(tpl.New("enum").Parse(enumTpl)) template.Must(tpl.New("repeated").Parse(repTpl)) diff --git a/templates/goshared/string.go b/templates/goshared/string.go index 3092d08b5..6421866fc 100644 --- a/templates/goshared/string.go +++ b/templates/goshared/string.go @@ -110,6 +110,10 @@ const strTpl = ` if _, err := url.Parse({{ accessor . }}); err != nil { return {{ errCause . "err" "value must be a valid URI" }} } + {{ else if $r.GetUuid }} + if err := m._validateUuid({{ accessor . }}); err != nil { + return {{ errCause . "err" "value must be a valid UUID" }} + } {{ end }} {{ if $r.Pattern }} diff --git a/templates/java/string.go b/templates/java/string.go index 49995d475..82ec9e73d 100644 --- a/templates/java/string.go +++ b/templates/java/string.go @@ -83,4 +83,7 @@ const stringTpl = `{{ $f := .Field }}{{ $r := .Rules -}} {{- if $r.GetUriRef }} io.envoyproxy.pgv.StringValidation.uriRef("{{ $f.FullyQualifiedName }}", {{ accessor . }}); {{- end -}} +{{- if $r.GetUuid }} + io.envoyproxy.pgv.StringValidation.uuid("{{ $f.FullyQualifiedName }}", {{ accessor . }}); +{{- end -}} ` diff --git a/templates/shared/well_known.go b/templates/shared/well_known.go index c38e5a057..6ec62af14 100644 --- a/templates/shared/well_known.go +++ b/templates/shared/well_known.go @@ -10,6 +10,7 @@ type WellKnown string const ( Email WellKnown = "email" Hostname WellKnown = "hostname" + UUID WellKnown = "uuid" ) // Needs returns true if a well-known string validator is needed for this @@ -56,6 +57,10 @@ func strRulesNeeds(rules *validate.StringRules, wk WellKnown) bool { if rules.GetEmail() || rules.GetHostname() || rules.GetAddress() { return true } + case UUID: + if rules.GetUuid() { + return true + } } return false diff --git a/tests/harness/cases/strings.proto b/tests/harness/cases/strings.proto index f8ad0e103..cabd96359 100644 --- a/tests/harness/cases/strings.proto +++ b/tests/harness/cases/strings.proto @@ -32,3 +32,4 @@ message StringIPv4 { string val = 1 [(validate.rules).string.ipv4 = tr message StringIPv6 { string val = 1 [(validate.rules).string.ipv6 = true]; } message StringURI { string val = 1 [(validate.rules).string.uri = true]; } message StringURIRef { string val = 1 [(validate.rules).string.uri_ref = true]; } +message StringUUID { string val = 1 [(validate.rules).string.uuid = true]; } diff --git a/tests/harness/executor/cases.go b/tests/harness/executor/cases.go index 160cfd9d3..e499e0da5 100644 --- a/tests/harness/executor/cases.go +++ b/tests/harness/executor/cases.go @@ -843,6 +843,20 @@ var stringCases = []TestCase{ {"string - URI - valid", &cases.StringURIRef{Val: "http://example.com/foo/bar?baz=quux"}, true}, {"string - URI - valid (relative)", &cases.StringURIRef{Val: "/foo/bar?baz=quux"}, true}, {"string - URI - invalid", &cases.StringURIRef{Val: "!@#$%^&*%$#"}, false}, + + {"string - UUID - valid (nil)", &cases.StringUUID{Val: "00000000-0000-0000-0000-000000000000"}, true}, + {"string - UUID - valid (v1)", &cases.StringUUID{Val: "b45c0c80-8880-11e9-a5b1-000000000000"}, true}, + {"string - UUID - valid (v1 - case-insensitive)", &cases.StringUUID{Val: "B45C0C80-8880-11E9-A5B1-000000000000"}, true}, + {"string - UUID - valid (v2)", &cases.StringUUID{Val: "b45c0c80-8880-21e9-a5b1-000000000000"}, true}, + {"string - UUID - valid (v2 - case-insensitive)", &cases.StringUUID{Val: "B45C0C80-8880-21E9-A5B1-000000000000"}, true}, + {"string - UUID - valid (v3)", &cases.StringUUID{Val: "a3bb189e-8bf9-3888-9912-ace4e6543002"}, true}, + {"string - UUID - valid (v3 - case-insensitive)", &cases.StringUUID{Val: "A3BB189E-8BF9-3888-9912-ACE4E6543002"}, true}, + {"string - UUID - valid (v4)", &cases.StringUUID{Val: "8b208305-00e8-4460-a440-5e0dcd83bb0a"}, true}, + {"string - UUID - valid (v4 - case-insensitive)", &cases.StringUUID{Val: "8B208305-00E8-4460-A440-5E0DCD83BB0A"}, true}, + {"string - UUID - valid (v5)", &cases.StringUUID{Val: "a6edc906-2f9f-5fb2-a373-efac406f0ef2"}, true}, + {"string - UUID - valid (v5 - case-insensitive)", &cases.StringUUID{Val: "A6EDC906-2F9F-5FB2-A373-EFAC406F0EF2"}, true}, + {"string - UUID - invalid", &cases.StringUUID{Val: "foobar"}, false}, + {"string - UUID - invalid (bad UUID)", &cases.StringUUID{Val: "ffffffff-ffff-ffff-ffff-fffffffffffff"}, false}, } var bytesCases = []TestCase{ diff --git a/validate/validate.pb.go b/validate/validate.pb.go index 255dc5ec0..ae4cb351a 100644 --- a/validate/validate.pb.go +++ b/validate/validate.pb.go @@ -57,7 +57,7 @@ func (m *FieldRules) Reset() { *m = FieldRules{} } func (m *FieldRules) String() string { return proto.CompactTextString(m) } func (*FieldRules) ProtoMessage() {} func (*FieldRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{0} + return fileDescriptor_validate_ad37172d27ffd103, []int{0} } func (m *FieldRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldRules.Unmarshal(m, b) @@ -861,7 +861,7 @@ func (m *FloatRules) Reset() { *m = FloatRules{} } func (m *FloatRules) String() string { return proto.CompactTextString(m) } func (*FloatRules) ProtoMessage() {} func (*FloatRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{1} + return fileDescriptor_validate_ad37172d27ffd103, []int{1} } func (m *FloatRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FloatRules.Unmarshal(m, b) @@ -963,7 +963,7 @@ func (m *DoubleRules) Reset() { *m = DoubleRules{} } func (m *DoubleRules) String() string { return proto.CompactTextString(m) } func (*DoubleRules) ProtoMessage() {} func (*DoubleRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{2} + return fileDescriptor_validate_ad37172d27ffd103, []int{2} } func (m *DoubleRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DoubleRules.Unmarshal(m, b) @@ -1065,7 +1065,7 @@ func (m *Int32Rules) Reset() { *m = Int32Rules{} } func (m *Int32Rules) String() string { return proto.CompactTextString(m) } func (*Int32Rules) ProtoMessage() {} func (*Int32Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{3} + return fileDescriptor_validate_ad37172d27ffd103, []int{3} } func (m *Int32Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Int32Rules.Unmarshal(m, b) @@ -1167,7 +1167,7 @@ func (m *Int64Rules) Reset() { *m = Int64Rules{} } func (m *Int64Rules) String() string { return proto.CompactTextString(m) } func (*Int64Rules) ProtoMessage() {} func (*Int64Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{4} + return fileDescriptor_validate_ad37172d27ffd103, []int{4} } func (m *Int64Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Int64Rules.Unmarshal(m, b) @@ -1269,7 +1269,7 @@ func (m *UInt32Rules) Reset() { *m = UInt32Rules{} } func (m *UInt32Rules) String() string { return proto.CompactTextString(m) } func (*UInt32Rules) ProtoMessage() {} func (*UInt32Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{5} + return fileDescriptor_validate_ad37172d27ffd103, []int{5} } func (m *UInt32Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UInt32Rules.Unmarshal(m, b) @@ -1371,7 +1371,7 @@ func (m *UInt64Rules) Reset() { *m = UInt64Rules{} } func (m *UInt64Rules) String() string { return proto.CompactTextString(m) } func (*UInt64Rules) ProtoMessage() {} func (*UInt64Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{6} + return fileDescriptor_validate_ad37172d27ffd103, []int{6} } func (m *UInt64Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UInt64Rules.Unmarshal(m, b) @@ -1473,7 +1473,7 @@ func (m *SInt32Rules) Reset() { *m = SInt32Rules{} } func (m *SInt32Rules) String() string { return proto.CompactTextString(m) } func (*SInt32Rules) ProtoMessage() {} func (*SInt32Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{7} + return fileDescriptor_validate_ad37172d27ffd103, []int{7} } func (m *SInt32Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SInt32Rules.Unmarshal(m, b) @@ -1575,7 +1575,7 @@ func (m *SInt64Rules) Reset() { *m = SInt64Rules{} } func (m *SInt64Rules) String() string { return proto.CompactTextString(m) } func (*SInt64Rules) ProtoMessage() {} func (*SInt64Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{8} + return fileDescriptor_validate_ad37172d27ffd103, []int{8} } func (m *SInt64Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SInt64Rules.Unmarshal(m, b) @@ -1677,7 +1677,7 @@ func (m *Fixed32Rules) Reset() { *m = Fixed32Rules{} } func (m *Fixed32Rules) String() string { return proto.CompactTextString(m) } func (*Fixed32Rules) ProtoMessage() {} func (*Fixed32Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{9} + return fileDescriptor_validate_ad37172d27ffd103, []int{9} } func (m *Fixed32Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Fixed32Rules.Unmarshal(m, b) @@ -1779,7 +1779,7 @@ func (m *Fixed64Rules) Reset() { *m = Fixed64Rules{} } func (m *Fixed64Rules) String() string { return proto.CompactTextString(m) } func (*Fixed64Rules) ProtoMessage() {} func (*Fixed64Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{10} + return fileDescriptor_validate_ad37172d27ffd103, []int{10} } func (m *Fixed64Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Fixed64Rules.Unmarshal(m, b) @@ -1881,7 +1881,7 @@ func (m *SFixed32Rules) Reset() { *m = SFixed32Rules{} } func (m *SFixed32Rules) String() string { return proto.CompactTextString(m) } func (*SFixed32Rules) ProtoMessage() {} func (*SFixed32Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{11} + return fileDescriptor_validate_ad37172d27ffd103, []int{11} } func (m *SFixed32Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SFixed32Rules.Unmarshal(m, b) @@ -1983,7 +1983,7 @@ func (m *SFixed64Rules) Reset() { *m = SFixed64Rules{} } func (m *SFixed64Rules) String() string { return proto.CompactTextString(m) } func (*SFixed64Rules) ProtoMessage() {} func (*SFixed64Rules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{12} + return fileDescriptor_validate_ad37172d27ffd103, []int{12} } func (m *SFixed64Rules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SFixed64Rules.Unmarshal(m, b) @@ -2065,7 +2065,7 @@ func (m *BoolRules) Reset() { *m = BoolRules{} } func (m *BoolRules) String() string { return proto.CompactTextString(m) } func (*BoolRules) ProtoMessage() {} func (*BoolRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{13} + return fileDescriptor_validate_ad37172d27ffd103, []int{13} } func (m *BoolRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoolRules.Unmarshal(m, b) @@ -2148,6 +2148,7 @@ type StringRules struct { // *StringRules_Uri // *StringRules_UriRef // *StringRules_Address + // *StringRules_Uuid WellKnown isStringRules_WellKnown `protobuf_oneof:"well_known"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2158,7 +2159,7 @@ func (m *StringRules) Reset() { *m = StringRules{} } func (m *StringRules) String() string { return proto.CompactTextString(m) } func (*StringRules) ProtoMessage() {} func (*StringRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{14} + return fileDescriptor_validate_ad37172d27ffd103, []int{14} } func (m *StringRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StringRules.Unmarshal(m, b) @@ -2305,6 +2306,10 @@ type StringRules_Address struct { Address bool `protobuf:"varint,21,opt,name=address,oneof"` } +type StringRules_Uuid struct { + Uuid bool `protobuf:"varint,22,opt,name=uuid,oneof"` +} + func (*StringRules_Email) isStringRules_WellKnown() {} func (*StringRules_Hostname) isStringRules_WellKnown() {} @@ -2321,6 +2326,8 @@ func (*StringRules_UriRef) isStringRules_WellKnown() {} func (*StringRules_Address) isStringRules_WellKnown() {} +func (*StringRules_Uuid) isStringRules_WellKnown() {} + func (m *StringRules) GetWellKnown() isStringRules_WellKnown { if m != nil { return m.WellKnown @@ -2384,6 +2391,13 @@ func (m *StringRules) GetAddress() bool { return false } +func (m *StringRules) GetUuid() bool { + if x, ok := m.GetWellKnown().(*StringRules_Uuid); ok { + return x.Uuid + } + return false +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*StringRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _StringRules_OneofMarshaler, _StringRules_OneofUnmarshaler, _StringRules_OneofSizer, []interface{}{ @@ -2395,6 +2409,7 @@ func (*StringRules) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) e (*StringRules_Uri)(nil), (*StringRules_UriRef)(nil), (*StringRules_Address)(nil), + (*StringRules_Uuid)(nil), } } @@ -2458,6 +2473,13 @@ func _StringRules_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { } b.EncodeVarint(21<<3 | proto.WireVarint) b.EncodeVarint(t) + case *StringRules_Uuid: + t := uint64(0) + if x.Uuid { + t = 1 + } + b.EncodeVarint(22<<3 | proto.WireVarint) + b.EncodeVarint(t) case nil: default: return fmt.Errorf("StringRules.WellKnown has unexpected type %T", x) @@ -2524,6 +2546,13 @@ func _StringRules_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu x, err := b.DecodeVarint() m.WellKnown = &StringRules_Address{x != 0} return true, err + case 22: // well_known.uuid + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.WellKnown = &StringRules_Uuid{x != 0} + return true, err default: return false, nil } @@ -2557,6 +2586,9 @@ func _StringRules_OneofSizer(msg proto.Message) (n int) { case *StringRules_Address: n += 2 // tag and wire n += 1 + case *StringRules_Uuid: + n += 2 // tag and wire + n += 1 case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) @@ -2612,7 +2644,7 @@ func (m *BytesRules) Reset() { *m = BytesRules{} } func (m *BytesRules) String() string { return proto.CompactTextString(m) } func (*BytesRules) ProtoMessage() {} func (*BytesRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{15} + return fileDescriptor_validate_ad37172d27ffd103, []int{15} } func (m *BytesRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BytesRules.Unmarshal(m, b) @@ -2864,7 +2896,7 @@ func (m *EnumRules) Reset() { *m = EnumRules{} } func (m *EnumRules) String() string { return proto.CompactTextString(m) } func (*EnumRules) ProtoMessage() {} func (*EnumRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{16} + return fileDescriptor_validate_ad37172d27ffd103, []int{16} } func (m *EnumRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_EnumRules.Unmarshal(m, b) @@ -2929,7 +2961,7 @@ func (m *MessageRules) Reset() { *m = MessageRules{} } func (m *MessageRules) String() string { return proto.CompactTextString(m) } func (*MessageRules) ProtoMessage() {} func (*MessageRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{17} + return fileDescriptor_validate_ad37172d27ffd103, []int{17} } func (m *MessageRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MessageRules.Unmarshal(m, b) @@ -2988,7 +3020,7 @@ func (m *RepeatedRules) Reset() { *m = RepeatedRules{} } func (m *RepeatedRules) String() string { return proto.CompactTextString(m) } func (*RepeatedRules) ProtoMessage() {} func (*RepeatedRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{18} + return fileDescriptor_validate_ad37172d27ffd103, []int{18} } func (m *RepeatedRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RepeatedRules.Unmarshal(m, b) @@ -3062,7 +3094,7 @@ func (m *MapRules) Reset() { *m = MapRules{} } func (m *MapRules) String() string { return proto.CompactTextString(m) } func (*MapRules) ProtoMessage() {} func (*MapRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{19} + return fileDescriptor_validate_ad37172d27ffd103, []int{19} } func (m *MapRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MapRules.Unmarshal(m, b) @@ -3137,7 +3169,7 @@ func (m *AnyRules) Reset() { *m = AnyRules{} } func (m *AnyRules) String() string { return proto.CompactTextString(m) } func (*AnyRules) ProtoMessage() {} func (*AnyRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{20} + return fileDescriptor_validate_ad37172d27ffd103, []int{20} } func (m *AnyRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AnyRules.Unmarshal(m, b) @@ -3212,7 +3244,7 @@ func (m *DurationRules) Reset() { *m = DurationRules{} } func (m *DurationRules) String() string { return proto.CompactTextString(m) } func (*DurationRules) ProtoMessage() {} func (*DurationRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{21} + return fileDescriptor_validate_ad37172d27ffd103, []int{21} } func (m *DurationRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DurationRules.Unmarshal(m, b) @@ -3326,7 +3358,7 @@ func (m *TimestampRules) Reset() { *m = TimestampRules{} } func (m *TimestampRules) String() string { return proto.CompactTextString(m) } func (*TimestampRules) ProtoMessage() {} func (*TimestampRules) Descriptor() ([]byte, []int) { - return fileDescriptor_validate_c8f5e113dd6422a8, []int{22} + return fileDescriptor_validate_ad37172d27ffd103, []int{22} } func (m *TimestampRules) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TimestampRules.Unmarshal(m, b) @@ -3465,111 +3497,112 @@ func init() { proto.RegisterExtension(E_Rules) } -func init() { proto.RegisterFile("validate/validate.proto", fileDescriptor_validate_c8f5e113dd6422a8) } - -var fileDescriptor_validate_c8f5e113dd6422a8 = []byte{ - // 1640 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x98, 0xcd, 0x6e, 0xdb, 0xc6, - 0x16, 0xc7, 0xaf, 0xf8, 0x25, 0x6a, 0x2c, 0x45, 0xd2, 0xc4, 0x76, 0x18, 0xdf, 0x8f, 0x38, 0x5a, - 0x5c, 0x38, 0xb9, 0x89, 0x9d, 0xeb, 0xb8, 0x42, 0x90, 0xa2, 0x05, 0x6a, 0xa4, 0x41, 0x83, 0x36, - 0x4d, 0x40, 0x37, 0x9b, 0x6e, 0x04, 0xda, 0x1a, 0x29, 0x03, 0x53, 0x43, 0x86, 0xa4, 0x6c, 0xeb, - 0x21, 0xd2, 0x76, 0xd7, 0xbe, 0x4a, 0x57, 0xdd, 0xf7, 0x4d, 0xba, 0xee, 0x0b, 0x14, 0xf3, 0xc5, - 0x8f, 0x43, 0x5a, 0x5e, 0x74, 0xa7, 0x39, 0xe7, 0x7f, 0x66, 0x7e, 0xf8, 0x0f, 0x39, 0x73, 0x28, - 0x74, 0xe7, 0x22, 0x08, 0xe9, 0x34, 0xc8, 0xc8, 0x81, 0xfe, 0xb1, 0x1f, 0x27, 0x51, 0x16, 0x61, - 0x57, 0x8f, 0x77, 0x76, 0xe7, 0x51, 0x34, 0x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xf5, 0x20, 0x50, - 0x0f, 0x02, 0xf5, 0x20, 0x50, 0x0f, 0x02, 0xf5, 0x1a, 0x80, 0x7a, 0x10, 0xa8, 0xd1, 0x21, 0xab, - 0x0e, 0x64, 0x41, 0x20, 0x0b, 0x02, 0x59, 0x10, 0xc8, 0x82, 0x40, 0x56, 0x03, 0x90, 0x55, 0x06, - 0x3a, 0xb9, 0xce, 0xa1, 0x61, 0x1d, 0x68, 0x08, 0x81, 0x86, 0x10, 0x68, 0x08, 0x81, 0x86, 0x10, - 0x68, 0xd8, 0x00, 0x34, 0x84, 0x40, 0x8d, 0x0e, 0xe1, 0x3a, 0x10, 0x86, 0x40, 0x18, 0x02, 0x61, - 0x08, 0x84, 0x21, 0x10, 0x6e, 0x00, 0xc2, 0x1a, 0xe8, 0xc7, 0x16, 0xea, 0x96, 0x6f, 0xb0, 0x2a, - 0x51, 0xbb, 0x4e, 0xd4, 0x86, 0x44, 0x6d, 0x48, 0xd4, 0x86, 0x44, 0x6d, 0x48, 0xd4, 0x6e, 0x20, - 0x6a, 0xd7, 0x88, 0x1a, 0x3d, 0x72, 0xea, 0x44, 0x0e, 0x24, 0x72, 0x20, 0x91, 0x03, 0x89, 0x1c, - 0x48, 0xe4, 0x34, 0x10, 0x39, 0x9a, 0xe8, 0xa7, 0x16, 0xea, 0x9d, 0x5c, 0x6f, 0x52, 0xbf, 0x8e, - 0xd4, 0x87, 0x48, 0x7d, 0x88, 0xd4, 0x87, 0x48, 0x7d, 0x88, 0xd4, 0x6f, 0x40, 0xea, 0xd7, 0x91, - 0x1a, 0x5d, 0x1a, 0xd4, 0x91, 0x06, 0x10, 0x69, 0x00, 0x91, 0x06, 0x10, 0x69, 0x00, 0x91, 0x06, - 0x0d, 0x48, 0x03, 0x8d, 0x74, 0x1f, 0x75, 0xf2, 0x0e, 0xa5, 0x4a, 0xe3, 0x2a, 0x9a, 0xd1, 0x2f, - 0x16, 0xda, 0x28, 0x35, 0x26, 0x55, 0x55, 0x47, 0x33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- 0x68, 0x87, 0x46, 0xfb, 0x84, 0x5d, 0x44, 0xab, 0x38, 0x89, 0xae, 0x56, 0xfb, 0xf1, 0xfc, 0x22, - 0xd7, 0x7f, 0x7f, 0x38, 0xa7, 0xd9, 0xfb, 0xe5, 0xe9, 0xfe, 0x59, 0xb4, 0x38, 0x28, 0x34, 0xf2, - 0xcf, 0xcd, 0xb3, 0xc7, 0x73, 0xc2, 0x1e, 0xd7, 0xfe, 0x53, 0xfd, 0x2b, 0x00, 0x00, 0xff, 0xff, - 0xca, 0xcb, 0x15, 0xa8, 0x67, 0x15, 0x00, 0x00, +func init() { proto.RegisterFile("validate/validate.proto", fileDescriptor_validate_ad37172d27ffd103) } + +var fileDescriptor_validate_ad37172d27ffd103 = []byte{ + // 1652 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x98, 0x4b, 0x73, 0xdb, 0xc8, + 0x11, 0xc7, 0x43, 0xbc, 0x08, 0x8e, 0x48, 0x93, 0x1c, 0x4b, 0x32, 0xac, 0x3c, 0x2c, 0xf3, 0x90, + 0x92, 0x1d, 0x5b, 0x72, 0x64, 0x85, 0xe5, 0x72, 0x2a, 0xa9, 0x8a, 0xca, 0x71, 0xc5, 0x95, 0x38, + 0x76, 0x41, 0xf1, 0x25, 0x17, 0x16, 0x24, 0x0e, 0xe9, 0x29, 0x81, 0x03, 0x18, 0x0f, 0x49, 0xfc, + 0x10, 0x4e, 0x72, 0xcb, 0xb7, 0xd8, 0xfb, 0x9e, 0xf6, 0xbe, 0xdf, 0x64, 0xcf, 0xfb, 0x05, 0xb6, + 0xe6, 0x85, 0x47, 0x03, 0xa2, 0x0e, 0x7b, 0xe3, 0x74, 0xff, 0x7b, 0xe6, 0x57, 0xdd, 0x40, 0x4f, + 0x83, 0xe8, 0xc1, 0x55, 0x10, 0xd2, 0x79, 0x90, 0x91, 0x23, 0xfd, 0xe3, 0x30, 0x4e,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18, 0xba, 0x0d, 0x78, 0x3b, 0x10, + 0xe3, 0x8d, 0xf2, 0x14, 0x18, 0x5a, 0x8a, 0x5f, 0xa1, 0x5e, 0xd1, 0x1d, 0xbc, 0x5d, 0x11, 0xe7, + 0x95, 0x71, 0xff, 0xd2, 0x2e, 0x1d, 0x58, 0x8a, 0x4f, 0x1d, 0x64, 0x65, 0xeb, 0x98, 0x4c, 0xbe, + 0x76, 0x10, 0x2a, 0xfb, 0x04, 0xde, 0x46, 0xf6, 0x45, 0xc4, 0x52, 0xd9, 0x4c, 0x0c, 0x5f, 0x2e, + 0xf0, 0x3d, 0x64, 0x84, 0x99, 0x68, 0x18, 0x86, 0x6f, 0x84, 0x19, 0x1e, 0x21, 0x33, 0xcc, 0x88, + 0xe8, 0x08, 0x86, 0xcf, 0x7f, 0x72, 0xc5, 0x32, 0x13, 0x2f, 0xbd, 0xe1, 0x1b, 0x4b, 0xa1, 0x58, + 0x66, 0x44, 0xbc, 0xd6, 0x86, 0xcf, 0x7f, 0x72, 0x05, 0x65, 0x9e, 0xb3, 0x6f, 0x72, 0x05, 0x65, + 0x78, 0x07, 0x39, 0x2c, 0xca, 0x66, 0x94, 0x79, 0x5d, 0x61, 0xb3, 0x59, 0x94, 0xbd, 0x63, 0x93, + 0xff, 0x74, 0xd0, 0x56, 0xa5, 0x11, 0xd5, 0x81, 0x3a, 0x4d, 0xa0, 0x0e, 0x04, 0xea, 0x40, 0xa0, + 0x0e, 0x04, 0xea, 0x40, 0xa0, 0x4e, 0x0b, 0x50, 0x47, 0x03, 0xf1, 0x04, 0x95, 0x9d, 0xa2, 0xce, + 0x63, 0x37, 0x79, 0x6c, 0xc8, 0x63, 0x43, 0x1e, 0x1b, 0xf2, 0xd8, 0x90, 0xc7, 0x6e, 0xe1, 0xb1, + 0x01, 0x8f, 0x7a, 0x69, 0xeb, 0x3c, 0x66, 0x93, 0xc7, 0x84, 0x3c, 0x26, 0xe4, 0x31, 0x21, 0x8f, + 0x09, 0x79, 0xcc, 0x16, 0x1e, 0xb3, 0x5a, 0xb0, 0x4f, 0xb7, 0x25, 0x68, 0xd0, 0x04, 0x1a, 0x40, + 0xa0, 0x01, 0x04, 0x1a, 0x40, 0xa0, 0x01, 0x04, 0x1a, 0xb4, 0x00, 0x0d, 0x20, 0x50, 0x6b, 0x86, + 0xac, 0x26, 0x90, 0x05, 0x81, 0x2c, 0x08, 0x64, 0x41, 0x20, 0x0b, 0x02, 0x59, 0x2d, 0x40, 0x56, + 0x15, 0xe8, 0xec, 0xb6, 0x0c, 0x8d, 0x9b, 0x40, 0x63, 0x08, 0x34, 0x86, 0x40, 0x63, 0x08, 0x34, + 0x86, 0x40, 0xe3, 0x16, 0xa0, 0x31, 0x04, 0x6a, 0xcd, 0x10, 0x6e, 0x02, 0x61, 0x08, 0x84, 0x21, + 0x10, 0x86, 0x40, 0x18, 0x02, 0xe1, 0x16, 0x20, 0xac, 0x81, 0xfe, 0xdb, 0x41, 0xfd, 0xea, 0x0d, + 0x56, 0x27, 0xea, 0x36, 0x89, 0xba, 0x90, 0xa8, 0x0b, 0x89, 0xba, 0x90, 0xa8, 0x0b, 0x89, 0xba, + 0x2d, 0x44, 0xdd, 0x06, 0x51, 0x6b, 0x8e, 0x9c, 0x26, 0x91, 0x03, 0x89, 0x1c, 0x48, 0xe4, 0x40, + 0x22, 0x07, 0x12, 0x39, 0x2d, 0x44, 0x8e, 0x26, 0xfa, 0x5f, 0x07, 0x0d, 0xce, 0x6e, 0x4f, 0xd2, + 0xb0, 0x89, 0x34, 0x84, 0x48, 0x43, 0x88, 0x34, 0x84, 0x48, 0x43, 0x88, 0x34, 0x6c, 0x41, 0x1a, + 0x36, 0x91, 0x5a, 0xb3, 0x34, 0x6a, 0x22, 0x8d, 0x20, 0xd2, 0x08, 0x22, 0x8d, 0x20, 0xd2, 0x08, + 0x22, 0x8d, 0x5a, 0x90, 0x46, 0x1a, 0xe9, 0x31, 0xea, 0x15, 0x13, 0x4a, 0x9d, 0xc6, 0x55, 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 0x03, 0x5e, 0xff, 0x1d, 0xd9, 0x89, 0xa8, 0x73, 0x33, + 0x52, 0xbc, 0xda, 0xf5, 0xc8, 0x5b, 0xbb, 0x96, 0xd8, 0xe3, 0xf4, 0x23, 0xda, 0xa3, 0xd1, 0x21, + 0x61, 0x57, 0xd1, 0x3a, 0x4e, 0xa2, 0x9b, 0xf5, 0x61, 0xbc, 0xbc, 0x2a, 0xf4, 0xff, 0x3e, 0x5e, + 0xd2, 0xec, 0x73, 0x7e, 0x7e, 0x78, 0x11, 0xad, 0x8e, 0x4a, 0x8d, 0xfc, 0xcb, 0xf3, 0xe2, 0xf9, + 0x92, 0xb0, 0xe7, 0x8d, 0x7f, 0x5a, 0x7f, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xe9, 0x29, 0x8f, + 0x7d, 0x15, 0x00, 0x00, } diff --git a/validate/validate.proto b/validate/validate.proto index e50286e22..3307e7f85 100644 --- a/validate/validate.proto +++ b/validate/validate.proto @@ -545,6 +545,10 @@ message StringRules { // defined by RFC 1034 (which does not support internationalized domain // names or IDNs), or it can be a valid IP (v4 or v6). bool address = 21; + + // Uuid specifies that the field must be a valid UUID as defined by + // RFC 4122 + bool uuid = 22; } }