No longer need to convert yaml to json to generate client
parent
4d1a7e3a28
commit
03598b8397
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue