Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea/
.vscode/
*.sublime-workspace
.devcontainer/
# Vim temp files
*~
.dccache
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
all: patch-swagger-doc format

buf-gen: init-git-hooks
./buf.gen.yaml
buf generate --template buf.gen.yaml
buf generate --template buf.gen.swagger.yaml --exclude-path storage/v1beta1

patch-swagger-doc: buf-gen
./scripts/update_swagger.sh docs/openapiv2/apidocs.swagger.json
Expand Down
15 changes: 15 additions & 0 deletions buf.gen.swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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/grpc-ecosystem/openapiv2:v2.16.0
out: docs/openapiv2
opt:
- openapi_naming_strategy=simple
- allow_merge=true
5 changes: 0 additions & 5 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,3 @@ plugins:
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
Loading