-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
executable file
·40 lines (40 loc) · 1.48 KB
/
buf.gen.yaml
File metadata and controls
executable file
·40 lines (40 loc) · 1.48 KB
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
35
36
37
38
39
40
#!/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:
- name: go
path: ["go", "run", "google.golang.org/protobuf/cmd/protoc-gen-go"]
out: pkg/pb
opt: paths=source_relative
- name: go-grpc
path: ["go", "run", "google.golang.org/grpc/cmd/protoc-gen-go-grpc"]
out: pkg/pb
opt: paths=source_relative
- name: go-vtproto
path: ["go", "run", "github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto"]
out: pkg/pb
opt: paths=source_relative,features=marshal+unmarshal+size+clone+pool+equal
- name: validate
path: ["go", "run", "github.com/envoyproxy/protoc-gen-validate"]
out: pkg/pb
opt: paths=source_relative,lang=go
- name: grpc-gateway
path: ["go", "run", "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway"]
out: pkg/pb
opt: paths=source_relative
- name: openapiv2
path: ["go", "run", "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"]
out: docs/api-reference
opt: openapi_naming_strategy=simple,allow_merge=true
- name: openapiv2
path: ["go", "run", "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"]
out: docs/api-reference/openapiv2
opt: omit_enum_default_value=true,openapi_naming_strategy=simple,allow_merge=true