File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ if (OpenAPI) {
43
43
exportModels : JSON . parse ( params . exportModels ) === true ,
44
44
exportSchemas : JSON . parse ( params . exportSchemas ) === true ,
45
45
indent : params . indent ,
46
- postfix : params . postfix ,
46
+ postfixServices : params . postfix ?? params . postfixServices ,
47
+ postfixModels : params . postfixModels ,
47
48
request : params . request ,
48
49
} )
49
50
. then ( ( ) => {
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ export type Options = {
24
24
exportModels ?: boolean ;
25
25
exportSchemas ?: boolean ;
26
26
indent ?: Indent ;
27
- /**
28
- * @deprecated use postfixServices instead
29
- */
30
- postfix ?: string ;
31
27
postfixServices ?: string ;
32
28
postfixModels ?: string ;
33
29
request ?: string ;
@@ -49,7 +45,6 @@ export type Options = {
49
45
* @param exportModels Generate models
50
46
* @param exportSchemas Generate schemas
51
47
* @param indent Indentation options (4, 2 or tab)
52
- * @param postfix Deprecated: Param to support old parameter postfix, use postfixServices instead
53
48
* @param postfixServices Service name postfix
54
49
* @param postfixModels Model name postfix
55
50
* @param request Path to custom request file
@@ -67,7 +62,6 @@ export const generate = async ({
67
62
exportModels = true ,
68
63
exportSchemas = false ,
69
64
indent = Indent . SPACE_4 ,
70
- postfix,
71
65
postfixServices = 'Service' ,
72
66
postfixModels = '' ,
73
67
request,
@@ -98,7 +92,7 @@ export const generate = async ({
98
92
exportModels ,
99
93
exportSchemas ,
100
94
indent ,
101
- postfix ?? postfixServices ,
95
+ postfixServices ,
102
96
postfixModels ,
103
97
clientName ,
104
98
request
@@ -122,7 +116,7 @@ export const generate = async ({
122
116
exportModels ,
123
117
exportSchemas ,
124
118
indent ,
125
- postfix ?? postfixServices ,
119
+ postfixServices ,
126
120
postfixModels ,
127
121
clientName ,
128
122
request
You can’t perform that action at this time.
0 commit comments