-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuf.gen.yaml
34 lines (34 loc) · 1.05 KB
/
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
version: v1
managed:
enabled: true
plugins:
- plugin: go
out: gen/protos
opt: paths=source_relative
- plugin: go-grpc
out: gen/protos
opt: paths=source_relative,require_unimplemented_servers=false
- plugin: grpc-gateway
out: gen/protos
opt: paths=source_relative
- plugin: openapiv2
out: gen/openapiv2
opt: allow_merge=true,merge_file_name=apidocs
strategy: all
# https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/customizing_openapi_output/#merging-output
- plugin: grpc-gateway-ts
out: gen/api-ts
- name: gateway-client
path: protoc-gen-grpc-gateway-client
out: gen/protos
opt:
- paths=source_relative
###############################################################################
# Unused
###############################################################################
# - plugin: buf.build/protocolbuffers/python
# out: gen/pre-python
# - plugin: buf.build/grpc/python
# out: gen/pre-python
# - plugin: buf.build/community/google-gnostic-openapi
# out: gen/openapi