Skip to content

Commit 977063e

Browse files
authored
Add a make client-generate-local command (#128)
For easier testing of local API changes. Run the server at port 5000, and then use `make client-generate-local` to see how the SDK changes.
1 parent f69d6d8 commit 977063e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ client-generate:
6060
speakeasy overlay apply -s ./openapi.json -o ./overlay_client.yaml > ./openapi_client.json
6161
speakeasy generate sdk -s ./openapi_client.json -o ./ -l python
6262

63+
.PHONY: client-generate-local
64+
client-generate-local:
65+
wget -nv -q -O openapi.json http://localhost:5000/general/openapi.json
66+
speakeasy overlay validate -o ./overlay_client.yaml
67+
speakeasy overlay apply -s ./openapi.json -o ./overlay_client.yaml > ./openapi_client.json
68+
speakeasy generate sdk -s ./openapi_client.json -o ./ -l python
69+
6370
.PHONY: publish
6471
publish:
6572
./scripts/publish.sh

0 commit comments

Comments
 (0)