From 2b2281fffe9df2297093c148fc62c80ebc0a590f Mon Sep 17 00:00:00 2001 From: Kevin McDonald Date: Wed, 13 Nov 2024 09:06:19 +0100 Subject: [PATCH 1/2] fix: correct docs for string.example --- proto/protovalidate/buf/validate/validate.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/protovalidate/buf/validate/validate.proto b/proto/protovalidate/buf/validate/validate.proto index 7236347..53d3ba7 100644 --- a/proto/protovalidate/buf/validate/validate.proto +++ b/proto/protovalidate/buf/validate/validate.proto @@ -3732,8 +3732,8 @@ message StringRules { // ```proto // message MyString { // string value = 1 [ - // (buf.validate.field).string.example = 1, - // (buf.validate.field).string.example = 2 + // (buf.validate.field).string.example = "hello", + // (buf.validate.field).string.example = "world" // ]; // } // ``` From c4cdeba161b485bca2448730286add5ef8714f2f Mon Sep 17 00:00:00 2001 From: Kevin McDonald Date: Thu, 14 Nov 2024 01:33:22 +0100 Subject: [PATCH 2/2] chore: regenerate --- tools/internal/gen/buf/validate/validate.pb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/internal/gen/buf/validate/validate.pb.go b/tools/internal/gen/buf/validate/validate.pb.go index 519fc02..a52d4ea 100644 --- a/tools/internal/gen/buf/validate/validate.pb.go +++ b/tools/internal/gen/buf/validate/validate.pb.go @@ -4663,8 +4663,8 @@ type StringRules struct { // // message MyString { // string value = 1 [ - // (buf.validate.field).string.example = 1, - // (buf.validate.field).string.example = 2 + // (buf.validate.field).string.example = "hello", + // (buf.validate.field).string.example = "world" // ]; // } //