-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate_sdks.sh
executable file
·32 lines (28 loc) · 1.05 KB
/
generate_sdks.sh
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
#!/usr/bin/env bash
# Fixme
swagger-codegen generate \
-i docs/src/main/tut/swagger.json \
-l swift4 \
--type-mappings number=Int64 \
--language-specific-primitives Int16,Int32,Int64,NSDate \
--additional-properties projectName="Cactacea" \
--additional-properties podVersion="19.9.2" \
--additional-properties podSummary="Cactacea iOS SDK" \
--additional-properties podDescription="An iOS library to interface with Cactacea backend API" \
--additional-properties podSource="" \
--additional-properties podAuthors="" \
--additional-properties podLicense="" \
--additional-properties podHomepage=https://github.com/cactacea/ios \
--additional-properties responseAs=RxSwift \
-o ../ios
swagger-codegen generate \
-i docs/src/main/tut/swagger.json \
-l kotlin \
--model-package io.github.cactacea.backend \
--model-name-suffix Json \
-o ../android
swagger-codegen generate \
-i docs/src/main/tut/swagger.json \
-l typescript-angular \
--additional-properties ngVersion=6 \
-o ../angular