Skip to content

Commit b480496

Browse files
committed
chore: install swagger on client generation
We don't need swagger installed for `modify-swagger-file`
1 parent af00660 commit b480496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ download-swagger:
2525
./scripts/extract_paths.py swagger/form3-swagger-raw.yaml swagger/paths.yaml
2626

2727
.PHONY: modify-swagger-file
28-
modify-swagger-file: download-swagger install-swagger
28+
modify-swagger-file: download-swagger
2929
# Add an operation name (operationId) to each endpoint
3030
yq eval-all 'select(fi==0) * select(fi==1)' swagger/form3-swagger-raw.yaml operationNames.yaml > swagger/form3-swagger-updated.yaml
3131
# Delete the ReportDetailsResponse links property (and its definition)
@@ -52,7 +52,7 @@ modify-swagger-file: download-swagger install-swagger
5252

5353

5454
.PHONY: generate-client
55-
generate-client: modify-swagger-file
55+
generate-client: modify-swagger-file install-swagger
5656
@rm -rf pkg/generated
5757
@mkdir pkg/generated
5858
./bin/swagger generate client -f swagger/form3-swagger-updated.yaml -t pkg/generated/ -T templates -C templates/layout.yaml

0 commit comments

Comments
 (0)