forked from hellosign/hellosign-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel-index.mustache
66 lines (63 loc) · 1.42 KB
/
model-index.mustache
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{{#models}}
{{#model}}
import { {{classname}} } from '{{{ classFilename }}}';
{{/model}}
{{/models}}
import { EventCallbackHelper } from "./eventCallbackHelper";
import {
RequestDetailedFile,
RequestFile,
AttributeTypeMap,
ObjectSerializer,
Authentication,
HttpBasicAuth,
HttpBearerAuth,
ApiKeyAuth,
OAuth,
VoidAuth,
Interceptor,
} from "./models";
export let enumsMap: {[index: string]: any} = {
{{#models}}
{{#model}}
{{#hasEnums}}
{{#vars}}
{{#isEnum}}
{{#isContainer}}"{{classname}}.{{enumName}}": {{classname}}.{{enumName}}{{/isContainer}}{{^isContainer}}"{{datatypeWithEnum}}": {{datatypeWithEnum}}{{/isContainer}},
{{/isEnum}}
{{/vars}}
{{/hasEnums}}
{{#isEnum}}
"{{classname}}": {{classname}},
{{/isEnum}}
{{/model}}
{{/models}}
}
export let typeMap: {[index: string]: any} = {
{{#models}}
{{#model}}
{{^isEnum}}
"{{classname}}": {{classname}},
{{/isEnum}}
{{/model}}
{{/models}}
}
export {
{{#models}}
{{#model}}
{{classname}},
{{/model}}
{{/models}}
EventCallbackHelper,
RequestDetailedFile,
RequestFile,
AttributeTypeMap,
ObjectSerializer,
Authentication,
HttpBasicAuth,
HttpBearerAuth,
ApiKeyAuth,
OAuth,
VoidAuth,
Interceptor,
};