Skip to content
Permalink
Browse files

chore: small fix

  • Loading branch information...
moul committed Apr 25, 2019
1 parent 6f6919b commit f591c526497bec803d5fbec719698d78edc5787d
Showing with 57 additions and 69 deletions.
  1. +1 −0 .gitignore
  2. +3 −1 Makefile
  3. +52 −56 server/server.pb.go
  4. +0 −11 server/server.proto
  5. +1 −1 swagger.yaml
@@ -2,6 +2,7 @@ vendor/
*~
*#
.#*
swagger.yaml.tmp

*.swagger.json

@@ -117,8 +117,10 @@ swagger.yaml: $(PROTOS)
$(PROTOC_OPTS) \
--swagger_out=logtostderr=true:. \
./server/*.proto
cat server/server.swagger.json | json2yaml > swagger.yaml
echo 'swagger: "2.0"' > swagger.yaml.tmp
cat server/server.swagger.json | json2yaml | grep -v 'swagger:."2.0"' >> swagger.yaml.tmp
rm -f server/server.swagger.json
mv swagger.yaml.tmp swagger.yaml

.PHONY: docker.build
docker.build:

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -82,17 +82,6 @@ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
};
};
};
responses: {
key: "418";
value: {
description: "I'm a teapot.";
schema: {
json_schema: {
ref: ".grpc.gateway.examples.examplepb.NumericEnum";
};
};
};
};
};

service Server {
@@ -894,4 +894,4 @@ securityDefinitions:
name: X-API-Key
type: apiKey
BasicAuth:
type: basic
type: basic

0 comments on commit f591c52

Please sign in to comment.
You can’t perform that action at this time.