Skip to content

Releases: bufbuild/protoc-gen-validate

v0.6.4

28 Feb 18:46
3898097
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.3...v0.6.4

v0.6.3: Feature/add optional support (#537)

12 Jan 22:46
dc51e59
Compare
Choose a tag to compare
* pgs: support proto3 presence & bump go.mod (#431)

Signed-off-by: Sarthak Gupta <[email protected]>

* bump lyft/protoc-gen-start to v0.6.0

Signed-off-by: Mitchell Bundy <[email protected]>

* bump protoc-gen-star to 0.6.0 in bazel dependencies

Signed-off-by: Mitchell Bundy <[email protected]>

* add 'optional.proto' file to test harness

Signed-off-by: Mitchell Bundy <[email protected]>

* add supported feature optional to go init

Signed-off-by: Mitchell Bundy <[email protected]>

* add types/pluginpb to list of deps in BUILD

Signed-off-by: Mitchell Bundy <[email protected]>

* bump protobuf in bazel deps to match go.mod version, add deps to BUILD

Signed-off-by: Mitchell Bundy <[email protected]>

* bump com_google_protobuf to v3.15.3, matches go-protobuf v1.27 dependency

Signed-off-by: Mitchell Bundy <[email protected]>

* update optional test to include optional int64 field within message

Signed-off-by: Mitchell Bundy <[email protected]>

* add some test cases to try out

Signed-off-by: Mitchell Bundy <[email protected]>

* remove optionalCases from cases

Signed-off-by: Mitchell Bundy <[email protected]>

Co-authored-by: Sarthak Gupta <[email protected]>
Co-authored-by: Ryan Michela <[email protected]>

v0.6.2

21 Oct 19:17
8c0f637
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.1...v0.6.2

v0.6.1

26 Apr 14:00
758c5fc
Compare
Choose a tag to compare

Changes

  • Remove support for returning multiple validation errors. This feature caused silent breakage of validations for consumers due to an API change.

v0.6.0

22 Apr 19:34
5ef93ae
Compare
Choose a tag to compare
  • In generated Go code, allows returning a list of validation errors instead of only the first failed.
  • Adds support for the module=example.com/foo flag described here
  • Removes all references to github.com/golang/protobuf in favor of google.golang.org/protobuf

v0.5.1

01 Apr 17:49
1b9f543
Compare
Choose a tag to compare

Changes

  • Example workspace to demonstrate Bazel usage
  • Fix Bazel rules for validation code generation
  • Support for newer TLDs in email validation

v0.5.0

15 Mar 19:20
4ff9878
Compare
Choose a tag to compare

Changes

  • reduce minimum required Go version
  • bug fixes for existing rules
  • ability to suppress validation generation
  • bump protobuf version to v3.14.0
  • improve Bazel support
  • PyPi packaging for Python

v0.4.1

11 Aug 20:48
e020f3a
Compare
Choose a tag to compare

Changes

  • update golang/protobuf to v1.4.2
  • update lyft/protoc-gen-star to v0.5.1
  • update google/re2 to 2020-07-06
  • fix hostname validation in python
  • fix timestamp comparison for gt_now and within
  • cache generated functions for python validation to improve perf for repeated messages

v0.4.0

23 Jun 18:16
beba99e
Compare
Choose a tag to compare

Changes

  • removes support for Gogo proto
  • use Go modules instead of vendored dependencies
  • fixes Go generation for repeated enum with not_in constraint (#329)
  • fix build to work with bazelisk --strict (#327)

v0.3.0-java

20 Feb 02:13
Compare
Choose a tag to compare

Fixed:

  • Only add a generater java file if lang == "java" #242
  • Append correct literal suffix for map keys/values constraints #294
  • Update Maven Central server URLs to use HTTPS #311

Added:

  • Java validation errors now included proto-encoded field details. #317
  • Add new validation type not_contains #253