No longer need to convert yaml to json to generate client

pull/10616/head
Brandon Farmer 2018-12-20 14:59:24 -08:00
parent 4d1a7e3a28
commit 03598b8397
1 changed files with 1 additions and 3 deletions

View File

@ -20,8 +20,6 @@ clean: $(SUBDIRS)
GO_RUN := env GO111MODULE=on go run
../ui/src/api/api.ts: $(SOURCES)
cat cur_swagger.yml | $(GO_RUN) ../internal/yaml2json > openapi.json
openapi-generator generate -g typescript-axios -o ../ui/src/api -i openapi.json
rm openapi.json
openapi-generator generate -g typescript-axios -o ../ui/src/api -i cur_swagger.yml
.PHONY: all clean $(SUBDIRS)