-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 897 Bytes
/
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
generate_clients: clean swift_client typescript_client kotlin_client
swift_client:
$(MAKE) create_sdk_dir SDK=swift && \
npx @openapitools/openapi-generator-cli generate \
-i flow-forecast.openapi.yml \
-g swift5 \
-o ./sdks/swift/ \
--additional-properties projectName=FlowForecast \
--additional-properties useSPMFileStructure=true \
--additional-properties useClasses=false \
--additional-properties useJsonEncodable=false \
--additional-properties responseAs=AsyncAwait
typescript_client:
$(MAKE) create_sdk_dir SDK=typescript && \
npx @openapitools/openapi-generator-cli generate -i flow-forecast.openapi.yml -g typescript-fetch -o ./sdks/typescript/
kotlin_client:
$(MAKE) create_sdk_dir SDK=kotlin && \
npx @openapitools/openapi-generator-cli generate -i flow-forecast.openapi.yml -g kotlin -o ./sdks/kotlin/
create_sdk_dir:
mkdir -p ./sdks/$(SDK)
clean:
rm -rf ./sdks