-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to detect wellknown types in nested messages (#505)
* detect wellknown types in nested messages Signed-off-by: Bert Van Hauwaert <bert@becoded.be> * revert Makefile Signed-off-by: Bert Van Hauwaert <bert@becoded.be> * Revert bumping resoruces / deps Signed-off-by: Bert Van Hauwaert <bert@becoded.be> * revert tests go.mod and validate version Signed-off-by: Bert Van Hauwaert <bert@becoded.be> * revert clean up unused Signed-off-by: Bert Van Hauwaert <bert@becoded.be>
- Loading branch information
Showing
7 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package tests.harness.cases; | ||
option go_package = "github.com/envoyproxy/protoc-gen-validate/tests/harness/cases/go;cases"; | ||
|
||
import "validate/validate.proto"; | ||
|
||
message WktLevelOne { | ||
message WktLevelTwo { | ||
message WktLevelThree { | ||
string uuid = 1 [(validate.rules).string.uuid = true]; | ||
} | ||
|
||
WktLevelThree three = 1 [(validate.rules).message.required = true]; | ||
} | ||
|
||
WktLevelTwo two = 1 [(validate.rules).message.required = true]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters