From 4357de6274e99e74ce627c20944b9ca511b3b9d8 Mon Sep 17 00:00:00 2001 From: Milas Bowman Date: Fri, 16 Aug 2024 09:43:25 -0400 Subject: [PATCH] chore(docs): add `buf.gen.yaml` v2 schema example --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b746edc..96c6e33 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ the generated code via `buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/ If you are using Buf [managed mode](https://buf.build/docs/generate/managed-mode/) to augment Go code generation, ensure that the `protovalidate` module is excluded in your [`buf.gen.yaml`](https://buf.build/docs/configuration/v1/buf-gen-yaml#except): +**`buf.gen.yaml` v1** ```yaml version: v1 # @@ -108,6 +109,18 @@ managed: # ``` +**`buf.gen.yaml` v2** +```yaml +version: v2 +# +managed: + enabled: true + disable: + - file_option: go_package_prefix + module: buf.build/bufbuild/protovalidate +# +``` + ### Example ```go