Skip to content

Commit

Permalink
feat: generate file with apiary-ready filename
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jan 15, 2019
1 parent 3999dc0 commit 51d8c68
Show file tree
Hide file tree
Showing 3 changed files with 925 additions and 1,531 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GENERATED_FILES = \
$(patsubst %.proto,%.pb.go,$(PROTOS)) \
$(call rwildcard .//, *.gen.go) \
$(call rwildcard .//, *.pb.gw.go) \
apidocs.swagger.json
swagger.yaml

PROTOC_OPTS = -I/protobuf:vendor:.
RUN_OPTS ?=
Expand Down Expand Up @@ -90,11 +90,12 @@ test: .generated
--gogofaster_out=plugins=grpc:"$(GOPATH)/src" \
"$(dir $<)"/*.proto

apidocs.swagger.json: $(OUR_PROTOS)
swagger.yaml: $(OUR_PROTOS)
protoc \
$(PROTOC_OPTS) \
--swagger_out=allow_merge=true:. \
./api/api.proto
mv apidocs.swagger.json swagger.yaml

.PHONY: lint
lint:
Expand Down
Loading

0 comments on commit 51d8c68

Please sign in to comment.