-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuf.gen.yaml
41 lines (41 loc) · 1.01 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
35
36
37
38
39
40
41
version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/spacemeshos/api/release/go
except:
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
plugins:
- name: go
out: release/go
opt:
- paths=source_relative
- name: go-grpc
out: release/go
opt:
- paths=source_relative
- require_unimplemented_servers=false
- name: grpc-gateway
out: release/go
opt:
- paths=source_relative
- generate_unbound_methods=true
- name: openapiv2
out: release/openapi/swagger/src
strategy: all
opt:
- generate_unbound_methods=true
- allow_merge
- visibility_restriction_selectors=V2
- merge_file_name=api
- use_go_templates=true
- name: openapiv2
out: release/openapi/swagger/src
strategy: all
opt:
- generate_unbound_methods=true
- allow_merge
- visibility_restriction_selectors=v2beta1
- merge_file_name=api_v2beta1
- use_go_templates=true