forked from openfga/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuf.gen.yaml
executable file
·34 lines (34 loc) · 888 Bytes
/
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
#!/usr/bin/env -S buf generate --template
---
version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/openfga/api/proto
except:
- buf.build/googleapis/googleapis
- buf.build/envoyproxy/protoc-gen-validate
- buf.build/grpc-ecosystem/grpc-gateway
plugins:
- plugin: buf.build/protocolbuffers/go:v1.34.0
out: proto/
opt:
- paths=source_relative
- plugin: buf.build/grpc/go:v1.3.0
out: proto/
opt:
- paths=source_relative
- plugin: buf.build/bufbuild/validate-go:v1.0.4
out: proto/
opt:
- paths=source_relative
- plugin: buf.build/grpc-ecosystem/gateway:v2.19.1
out: proto/
opt:
- paths=source_relative
- logtostderr=true
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.16.0
out: docs/openapiv2
opt:
- openapi_naming_strategy=simple
- allow_merge=true