-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
37 lines (33 loc) · 823 Bytes
/
buf.gen.yaml
File metadata and controls
37 lines (33 loc) · 823 Bytes
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
version: v1
plugins:
# Generate marshalling/unmarshalling for messages in golang
- name: go
out: generated/
strategy: all
opt:
- paths=source_relative
# Generate gRPC binding for messages in golang
- name: go-grpc
out: generated/
strategy: all
opt:
- paths=source_relative
# Generate gRPC Gateway binding for messages in golang
- name: grpc-gateway
out: generated/
strategy: all
opt:
- paths=source_relative
# Generate validation function for messages in golang
- name: validate
out: generated/
strategy: all
opt:
- paths=source_relative
- lang=go
- plugin: buf.build/grpc-ecosystem/openapiv2
out: generated/openapiv2
opt:
- logtostderr=true
- allow_merge=true
- json_names_for_fields=false