forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buf.gen.yaml
34 lines (34 loc) · 883 Bytes
/
buf.gen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env -S buf generate --template
---
version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/Permify/permify/pkg/pb
except:
- buf.build/googleapis/googleapis
- buf.build/envoyproxy/protoc-gen-validate
- buf.build/grpc-ecosystem/grpc-gateway
plugins:
- plugin: buf.build/protocolbuffers/go:v1.30.0
out: pkg/pb
opt:
- paths=source_relative
- plugin: buf.build/grpc/go:v1.3.0
out: pkg/pb
opt:
- paths=source_relative
- plugin: buf.build/bufbuild/validate-go:v1.0.0
out: pkg/pb
opt:
- paths=source_relative
- plugin: buf.build/grpc-ecosystem/gateway:v2.16.2
out: pkg/pb
opt:
- paths=source_relative
- logtostderr=true
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.16.2
out: docs
opt:
- openapi_naming_strategy=simple
- allow_merge=true