Skip to content

Commit 170b960

Browse files
committed
feat NEXUS-817: make generate commands even more modular for easier debugging
1 parent 7e46969 commit 170b960

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,20 @@ download-openapi-specs:
7373
client-merge-serverless-platform:
7474
speakeasy merge -s ./openapi_platform_api.json -s ./openapi_serverless.json -o ./openapi_merged.yaml
7575

76-
## client-generate-unified-sdk-local: Generate the SDK using merged schemas
77-
.PHONY: client-generate-unified-sdk-local
78-
client-generate-unified-sdk-local:
76+
## client-apply-overlay: Apply overlay on the merged schema
77+
.PHONY: client-apply-overlay
78+
client-apply-overlay:
7979
speakeasy overlay validate -o ./overlay_client.yaml
8080
speakeasy overlay apply -s ./openapi_merged.yaml -o ./overlay_client.yaml > ./openapi_platform_serverless_client.yaml
81+
82+
## client-generate-unified-sdk-local: Generate the SDK from the merged schema
83+
.PHONY: client-generate-unified-sdk-local
84+
client-generate-unified-sdk-local:
8185
speakeasy generate sdk -s ./openapi_platform_serverless_client.yaml -o ./ -l python
8286

8387
## client-generate-sdk: Do all the steps to generate the SDK
8488
.PHONY: client-generate-sdk
85-
client-generate-sdk: download-openapi-specs client-merge-serverless-platform client-generate-unified-sdk-local
89+
client-generate-sdk: download-openapi-specs client-merge-serverless-platform client-apply-overlay client-generate-unified-sdk-local
8690

8791

8892
.PHONY: publish

0 commit comments

Comments
 (0)