blob: 61de67ee345abc077cd2206e640e1fc5cd0e7328 [file] [log] [blame]
GNOSTIC = $(GOPATH)/src/github.com/googleapis/gnostic
plugin:
node_modules/.bin/pbjs -t json \
$(GNOSTIC)/OpenAPIv2/OpenAPIv2.proto \
$(GNOSTIC)/OpenAPIv3/OpenAPIv3.proto \
$(GNOSTIC)/discovery/discovery.proto \
$(GNOSTIC)/surface/surface.proto \
$(GNOSTIC)/plugins/plugin.proto \
> bundle.json
node_modules/.bin/nexe gnostic-lint-responses.js
mv gnostic-lint-responses $(GOPATH)/bin
run: plugin
gnostic $(GNOSTIC)/examples/v2.0/yaml/petstore.yaml --lint-responses
setup:
npm install