forked from yonaskolb/SwagGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
47 lines (47 loc) · 1.68 KB
/
template.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
formatter: swift
options:
name: API
dependencies:
- pod: JSONUtilities
github: yonaskolb/JSONUtilities
version: 3.3.8
- pod: Alamofire
github: Alamofire/Alamofire
version: 4.4.0
- pod: Result
github: antitypical/Result
version: 3.2.1
templateFiles:
- path: Package.swift
- path: Podspec.podspec
destination: "{{ options.name }}.podspec"
- path: Cartfile
- path: enum.swift
context: enums
destination: "Sources/{{ options.name }}/Enums/{{ enumName }}.swift"
- path: model.swift
context: definitions
destination: "Sources/{{ options.name }}/Models/{{ filename }}.swift"
- path: request.swift
context: operations
destination: "Sources/{{ options.name }}/Requests{% if tag %}/{{ tag|upperCamelCase }}{% endif %}/{{ filename }}.swift"
- path: API.swift
destination: "Sources/{{ options.name }}/API.swift"
- path: Decoding.swift
destination: "Sources/{{ options.name }}/Decoding.swift"
- path: APIRequest.swift
destination: "Sources/{{ options.name }}/APIRequest.swift"
- path: APIClient.swift
destination: "Sources/{{ options.name }}/APIClient.swift"
- path: APIService.swift
destination: "Sources/{{ options.name }}/APIService.swift"
- path: APIError.swift
destination: "Sources/{{ options.name }}/APIError.swift"
- path: APIResponse.swift
destination: "Sources/{{ options.name }}/APIResponse.swift"
- path: Authorization.swift
destination: "Sources/{{ options.name }}/Authorization.swift"
- path: APIResult.swift
destination: "Sources/{{ options.name }}/APIResult.swift"
- path: RequestBehaviour.swift
destination: "Sources/{{ options.name }}/RequestBehaviour.swift"