diff --git a/Makefile b/Makefile index e16a8b4..b6469f4 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ lint: $(BIN)/buf ## Lint all APIs .PHONY: upgrade upgrade: $(BIN)/buf ## Upgrade dependencies - buf mod update + buf dep update .PHONY: generate generate: $(BIN)/buf $(BIN)/license-header ## Format and regenerate license headers diff --git a/buf.lock b/buf.lock index 186cc36..6013ba0 100644 --- a/buf.lock +++ b/buf.lock @@ -2,5 +2,5 @@ version: v2 deps: - name: buf.build/bufbuild/protovalidate - commit: a6c49f84cc0f4e038680d390392e2ab0 - digest: b5:e968392e88ff7915adcbd1635d670b45bff8836ec2415d81fc559ca5470a695dbdc30030bad8bc5764647c731079e9e7bba0023ea25c4e4a1672a7d2561d4a19 + commit: 6c6e0d3c608e4549802254a2eee81bc8 + digest: b5:a7ca081f38656fc0f5aaa685cc111d3342876723851b47ca6b80cbb810cbb2380f8c444115c495ada58fa1f85eff44e68dc54a445761c195acdb5e8d9af675b6 diff --git a/buf/plugin/info/v1/license.proto b/buf/plugin/info/v1/license.proto index b971345..f47416b 100644 --- a/buf/plugin/info/v1/license.proto +++ b/buf/plugin/info/v1/license.proto @@ -28,7 +28,7 @@ message License { string spdx_license_id = 1 [ (buf.validate.field).string.min_len = 1, (buf.validate.field).string.pattern = "^[a-zA-Z0-9-.+]+$", - (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED + (buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE ]; // The source of a license is either raw text, or a URL that contains the license. oneof source { @@ -38,7 +38,7 @@ message License { string text = 2; // The url that contains the license. string url = 3 [ - (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED, + (buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE, (buf.validate.field).string.uri = true ]; }