-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
dashboard:
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.10.0 generate \
--generator-name go \
--input-spec /local/swagger.yml \
--output /local/pkg/dashboard/ \
--skip-overwrite \
--git-host github.com \
--git-user-id TykTechnologies \
--git-repo-id dashboard-sdk \
--package-name dashboard \
--api-name-suffix API \
--minimal-update \
--global-property skipFormModel=true \
--global-property skipFormModel=true \
--global-property apis,apiTests=false,apiDocs=true \
--global-property models,modelTests=true,modelDocs=true \
--global-property supportingFiles \
-c /local/config.json\
--name-mappings _id=MID
sudo rm -rf pkg/dashboard/model_server_variable.go
sudo python3 file_replace.py
sudo mv pkg/dashboard/docs/XTykApiGateway.md pkg/dashboard/docs/XTykapi.md
sudo gofmt -s -w .
go mod tidy
validate-swagger:
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.10.0 validate \
-i /local/swagger.yml
tests:
go test ./... -count=1 -cover