-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
46 lines (41 loc) · 1.47 KB
/
buf.gen.yaml
File metadata and controls
46 lines (41 loc) · 1.47 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
41
42
43
44
45
46
# Buf code generation configuration v2
version: v2
# Managed mode - automatically manages go_package options
managed:
enabled: true
override:
# Set default Go package prefix for generated code
- file_option: go_package_prefix
value: github.com/SebastienMelki/sebuf/examples/nested-resources/api
# Disable package prefix for Google APIs (use their standard packages)
- file_option: go_package_prefix
module: buf.build/googleapis/googleapis
value: ""
# Disable package prefix for protovalidate (use their standard packages)
- file_option: go_package_prefix
module: buf.build/bufbuild/protovalidate
value: ""
# Disable package prefix for sebuf (use standard import path)
- file_option: go_package_prefix
module: buf.build/sebmelki/sebuf
value: ""
# Local protoc plugins (installed via make install)
plugins:
# Standard Go protobuf code generation
- local: protoc-gen-go
out: ./api
opt: module=github.com/SebastienMelki/sebuf/examples/nested-resources/api
# OpenAPI v3 documentation generation in YAML format
- local: ../../bin/protoc-gen-openapiv3
out: ./docs
# OpenAPI v3 documentation generation in JSON format
- local: ../../bin/protoc-gen-openapiv3
out: ./docs
opt:
- format=json
# HTTP service generation (custom)
- local: ../../bin/protoc-gen-go-http
out: api
opt:
- module=github.com/SebastienMelki/sebuf/examples/nested-resources/api
- generate_mock=false